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

Gets a trust anchor.

Required permissions: rolesanywhere:GetTrustAnchor.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RolesAnywhereClient, GetTrustAnchorCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import * // const { RolesAnywhereClient, GetTrustAnchorCommand } = 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 = { // ScalarTrustAnchorRequest * trustAnchorId: "STRING_VALUE", // required * }; * const command = new GetTrustAnchorCommand(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 GetTrustAnchorCommandInput - {@link GetTrustAnchorCommandInput} * @returns {@link GetTrustAnchorCommandOutput} * @see {@link GetTrustAnchorCommandInput} for command's `input` shape. * @see {@link GetTrustAnchorCommandOutput} 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 ResourceNotFoundException} (client fault) *

The resource could not be found.

* * @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 GetTrustAnchorCommand extends GetTrustAnchorCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ScalarTrustAnchorRequest; output: TrustAnchorDetailResponse; }; sdk: { input: GetTrustAnchorCommandInput; output: GetTrustAnchorCommandOutput; }; }; }