import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient"; import type { GetDistributionConfigurationRequest, GetDistributionConfigurationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetDistributionConfigurationCommand}. */ export interface GetDistributionConfigurationCommandInput extends GetDistributionConfigurationRequest { } /** * @public * * The output of {@link GetDistributionConfigurationCommand}. */ export interface GetDistributionConfigurationCommandOutput extends GetDistributionConfigurationResponse, __MetadataBearer { } declare const GetDistributionConfigurationCommand_base: { new (input: GetDistributionConfigurationCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetDistributionConfigurationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Gets a distribution configuration.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ImagebuilderClient, GetDistributionConfigurationCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import * // const { ImagebuilderClient, GetDistributionConfigurationCommand } = require("@aws-sdk/client-imagebuilder"); // CommonJS import * // import type { ImagebuilderClientConfig } from "@aws-sdk/client-imagebuilder"; * const config = {}; // type is ImagebuilderClientConfig * const client = new ImagebuilderClient(config); * const input = { // GetDistributionConfigurationRequest * distributionConfigurationArn: "STRING_VALUE", // required * }; * const command = new GetDistributionConfigurationCommand(input); * const response = await client.send(command); * // { // GetDistributionConfigurationResponse * // requestId: "STRING_VALUE", * // distributionConfiguration: { // DistributionConfiguration * // arn: "STRING_VALUE", * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // distributions: [ // DistributionList * // { // Distribution * // region: "STRING_VALUE", // required * // amiDistributionConfiguration: { // AmiDistributionConfiguration * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // targetAccountIds: [ // AccountList * // "STRING_VALUE", * // ], * // amiTags: { // TagMap * // "": "STRING_VALUE", * // }, * // kmsKeyId: "STRING_VALUE", * // launchPermission: { // LaunchPermissionConfiguration * // userIds: [ * // "STRING_VALUE", * // ], * // userGroups: [ // StringList * // "STRING_VALUE", * // ], * // organizationArns: [ // OrganizationArnList * // "STRING_VALUE", * // ], * // organizationalUnitArns: [ // OrganizationalUnitArnList * // "STRING_VALUE", * // ], * // }, * // }, * // containerDistributionConfiguration: { // ContainerDistributionConfiguration * // description: "STRING_VALUE", * // containerTags: [ * // "STRING_VALUE", * // ], * // targetRepository: { // TargetContainerRepository * // service: "ECR", // required * // repositoryName: "STRING_VALUE", // required * // }, * // }, * // licenseConfigurationArns: [ // LicenseConfigurationArnList * // "STRING_VALUE", * // ], * // launchTemplateConfigurations: [ // LaunchTemplateConfigurationList * // { // LaunchTemplateConfiguration * // launchTemplateId: "STRING_VALUE", // required * // accountId: "STRING_VALUE", * // setDefaultVersion: true || false, * // }, * // ], * // s3ExportConfiguration: { // S3ExportConfiguration * // roleName: "STRING_VALUE", // required * // diskImageFormat: "VMDK" || "RAW" || "VHD", // required * // s3Bucket: "STRING_VALUE", // required * // s3Prefix: "STRING_VALUE", * // }, * // fastLaunchConfigurations: [ // FastLaunchConfigurationList * // { // FastLaunchConfiguration * // enabled: true || false, // required * // snapshotConfiguration: { // FastLaunchSnapshotConfiguration * // targetResourceCount: Number("int"), * // }, * // maxParallelLaunches: Number("int"), * // launchTemplate: { // FastLaunchLaunchTemplateSpecification * // launchTemplateId: "STRING_VALUE", * // launchTemplateName: "STRING_VALUE", * // launchTemplateVersion: "STRING_VALUE", * // }, * // accountId: "STRING_VALUE", * // }, * // ], * // ssmParameterConfigurations: [ // SsmParameterConfigurationList * // { // SsmParameterConfiguration * // amiAccountId: "STRING_VALUE", * // parameterName: "STRING_VALUE", // required * // dataType: "text" || "aws:ec2:image", * // }, * // ], * // }, * // ], * // timeoutMinutes: Number("int"), // required * // dateCreated: "STRING_VALUE", * // dateUpdated: "STRING_VALUE", * // tags: { * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param GetDistributionConfigurationCommandInput - {@link GetDistributionConfigurationCommandInput} * @returns {@link GetDistributionConfigurationCommandOutput} * @see {@link GetDistributionConfigurationCommandInput} for command's `input` shape. * @see {@link GetDistributionConfigurationCommandOutput} for command's `response` shape. * @see {@link ImagebuilderClientResolvedConfig | config} for ImagebuilderClient's `config` shape. * * @throws {@link CallRateLimitExceededException} (client fault) *

You have exceeded the permitted request rate for the specific operation.

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

These errors are usually caused by a client action, such as using an action or * resource on behalf of a user that doesn't have permissions to use the action or * resource, or specifying an invalid resource identifier.

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

You are not authorized to perform the requested operation.

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

You have requested an action that that the service doesn't support.

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

This exception is thrown when the service encounters an unrecoverable * exception.

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

The service is unable to process your request at this time.

* * @throws {@link ImagebuilderServiceException} *

Base exception class for all service exceptions from Imagebuilder service.

* * * @public */ export declare class GetDistributionConfigurationCommand extends GetDistributionConfigurationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDistributionConfigurationRequest; output: GetDistributionConfigurationResponse; }; sdk: { input: GetDistributionConfigurationCommandInput; output: GetDistributionConfigurationCommandOutput; }; }; }