import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateCrossAccountAttachmentRequest, CreateCrossAccountAttachmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateCrossAccountAttachmentCommand}. */ export interface CreateCrossAccountAttachmentCommandInput extends CreateCrossAccountAttachmentRequest { } /** * @public * * The output of {@link CreateCrossAccountAttachmentCommand}. */ export interface CreateCrossAccountAttachmentCommandOutput extends CreateCrossAccountAttachmentResponse, __MetadataBearer { } declare const CreateCrossAccountAttachmentCommand_base: { new (input: CreateCrossAccountAttachmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCrossAccountAttachmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Create a cross-account attachment in Global Accelerator. You create a cross-account attachment to * specify the principals who have permission to work with resources * in accelerators in their own account. You specify, in the same attachment, the resources that are shared.

*

A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an * accelerator. For account numbers that are listed as principals, to work with a resource listed in the attachment, * you must sign in to an account specified as a principal. Then, you can work with resources that are listed, * with any of your accelerators. If an accelerator ARN is listed in the cross-account attachment as a principal, * anyone with permission to make updates to the accelerator can work with resources that are listed in the * attachment.

*

Specify each principal and resource separately. To specify two CIDR address pools, list * them individually under Resources, and so on. For a command line operation, for example, * you might use a statement like the following:

*

* "Resources": [\{"Cidr": "169.254.60.0/24"\},\{"Cidr": "169.254.59.0/24"\}] *

*

For more information, see * Working with cross-account attachments and resources in Global Accelerator in the * Global Accelerator Developer Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlobalAcceleratorClient, CreateCrossAccountAttachmentCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import * // const { GlobalAcceleratorClient, CreateCrossAccountAttachmentCommand } = 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 = { // CreateCrossAccountAttachmentRequest * Name: "STRING_VALUE", // required * Principals: [ // Principals * "STRING_VALUE", * ], * Resources: [ // Resources * { // Resource * EndpointId: "STRING_VALUE", * Cidr: "STRING_VALUE", * Region: "STRING_VALUE", * }, * ], * IdempotencyToken: "STRING_VALUE", // required * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateCrossAccountAttachmentCommand(input); * const response = await client.send(command); * // { // CreateCrossAccountAttachmentResponse * // 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 CreateCrossAccountAttachmentCommandInput - {@link CreateCrossAccountAttachmentCommandInput} * @returns {@link CreateCrossAccountAttachmentCommandOutput} * @see {@link CreateCrossAccountAttachmentCommandInput} for command's `input` shape. * @see {@link CreateCrossAccountAttachmentCommandOutput} 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 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 LimitExceededException} (client fault) *

Processing your request would cause you to exceed an Global Accelerator limit.

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

There's already a transaction in progress. Another transaction can't be processed.

* * @throws {@link GlobalAcceleratorServiceException} *

Base exception class for all service exceptions from GlobalAccelerator service.

* * * @public */ export declare class CreateCrossAccountAttachmentCommand extends CreateCrossAccountAttachmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCrossAccountAttachmentRequest; output: CreateCrossAccountAttachmentResponse; }; sdk: { input: CreateCrossAccountAttachmentCommandInput; output: CreateCrossAccountAttachmentCommandOutput; }; }; }