import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeCrossAccountAttachmentRequest, DescribeCrossAccountAttachmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeCrossAccountAttachmentCommand}. */ export interface DescribeCrossAccountAttachmentCommandInput extends DescribeCrossAccountAttachmentRequest { } /** * @public * * The output of {@link DescribeCrossAccountAttachmentCommand}. */ export interface DescribeCrossAccountAttachmentCommandOutput extends DescribeCrossAccountAttachmentResponse, __MetadataBearer { } declare const DescribeCrossAccountAttachmentCommand_base: { new (input: DescribeCrossAccountAttachmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeCrossAccountAttachmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets configuration information about a cross-account attachment.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlobalAcceleratorClient, DescribeCrossAccountAttachmentCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import * // const { GlobalAcceleratorClient, DescribeCrossAccountAttachmentCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import * // import type { GlobalAcceleratorClientConfig } from "@aws-sdk/client-global-accelerator"; * const config = {}; // type is GlobalAcceleratorClientConfig * const client = new GlobalAcceleratorClient(config); * const input = { // DescribeCrossAccountAttachmentRequest * AttachmentArn: "STRING_VALUE", // required * }; * const command = new DescribeCrossAccountAttachmentCommand(input); * const response = await client.send(command); * // { // DescribeCrossAccountAttachmentResponse * // CrossAccountAttachment: { // Attachment * // AttachmentArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Principals: [ // Principals * // "STRING_VALUE", * // ], * // Resources: [ // Resources * // { // Resource * // EndpointId: "STRING_VALUE", * // Cidr: "STRING_VALUE", * // Region: "STRING_VALUE", * // }, * // ], * // LastModifiedTime: new Date("TIMESTAMP"), * // CreatedTime: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param DescribeCrossAccountAttachmentCommandInput - {@link DescribeCrossAccountAttachmentCommandInput} * @returns {@link DescribeCrossAccountAttachmentCommandOutput} * @see {@link DescribeCrossAccountAttachmentCommandInput} for command's `input` shape. * @see {@link DescribeCrossAccountAttachmentCommandOutput} for command's `response` shape. * @see {@link GlobalAcceleratorClientResolvedConfig | config} for GlobalAcceleratorClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have access permission.

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

No cross-account attachment was found.

* * @throws {@link InternalServiceErrorException} (server fault) *

There was an internal error for Global Accelerator.

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

An argument that you specified is invalid.

* * @throws {@link GlobalAcceleratorServiceException} *

Base exception class for all service exceptions from GlobalAccelerator service.

* * * @public */ export declare class DescribeCrossAccountAttachmentCommand extends DescribeCrossAccountAttachmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeCrossAccountAttachmentRequest; output: DescribeCrossAccountAttachmentResponse; }; sdk: { input: DescribeCrossAccountAttachmentCommandInput; output: DescribeCrossAccountAttachmentCommandOutput; }; }; }