import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateTrustAnchorRequest, TrustAnchorDetailResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateTrustAnchorCommand}. */ export interface CreateTrustAnchorCommandInput extends CreateTrustAnchorRequest { } /** * @public * * The output of {@link CreateTrustAnchorCommand}. */ export interface CreateTrustAnchorCommandOutput extends TrustAnchorDetailResponse, __MetadataBearer { } declare const CreateTrustAnchorCommand_base: { new (input: CreateTrustAnchorCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateTrustAnchorCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.

Required permissions: rolesanywhere:CreateTrustAnchor.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RolesAnywhereClient, CreateTrustAnchorCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import * // const { RolesAnywhereClient, CreateTrustAnchorCommand } = require("@aws-sdk/client-rolesanywhere"); // CommonJS import * // import type { RolesAnywhereClientConfig } from "@aws-sdk/client-rolesanywhere"; * const config = {}; // type is RolesAnywhereClientConfig * const client = new RolesAnywhereClient(config); * const input = { // CreateTrustAnchorRequest * name: "STRING_VALUE", // required * source: { // Source * sourceType: "STRING_VALUE", * sourceData: { // SourceData Union: only one key present * x509CertificateData: "STRING_VALUE", * acmPcaArn: "STRING_VALUE", * }, * }, * enabled: true || false, * tags: [ // TagList * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * notificationSettings: [ // NotificationSettings * { // NotificationSetting * enabled: true || false, // required * event: "STRING_VALUE", // required * threshold: Number("int"), * channel: "STRING_VALUE", * }, * ], * }; * const command = new CreateTrustAnchorCommand(input); * const response = await client.send(command); * // { // TrustAnchorDetailResponse * // trustAnchor: { // TrustAnchorDetail * // trustAnchorId: "STRING_VALUE", * // trustAnchorArn: "STRING_VALUE", * // name: "STRING_VALUE", * // source: { // Source * // sourceType: "STRING_VALUE", * // sourceData: { // SourceData Union: only one key present * // x509CertificateData: "STRING_VALUE", * // acmPcaArn: "STRING_VALUE", * // }, * // }, * // enabled: true || false, * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // notificationSettings: [ // NotificationSettingDetails * // { // NotificationSettingDetail * // enabled: true || false, // required * // event: "STRING_VALUE", // required * // threshold: Number("int"), * // channel: "STRING_VALUE", * // configuredBy: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param CreateTrustAnchorCommandInput - {@link CreateTrustAnchorCommandInput} * @returns {@link CreateTrustAnchorCommandOutput} * @see {@link CreateTrustAnchorCommandInput} for command's `input` shape. * @see {@link CreateTrustAnchorCommandOutput} for command's `response` shape. * @see {@link RolesAnywhereClientResolvedConfig | config} for RolesAnywhereClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ValidationException} (client fault) *

Validation exception error.

* * @throws {@link RolesAnywhereServiceException} *

Base exception class for all service exceptions from RolesAnywhere service.

* * * @public */ export declare class CreateTrustAnchorCommand extends CreateTrustAnchorCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateTrustAnchorRequest; output: TrustAnchorDetailResponse; }; sdk: { input: CreateTrustAnchorCommandInput; output: CreateTrustAnchorCommandOutput; }; }; }