import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DescribeImageAttributeRequest, ImageAttribute } from "../models/models_3"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeImageAttributeCommand}. */ export interface DescribeImageAttributeCommandInput extends DescribeImageAttributeRequest { } /** * @public * * The output of {@link DescribeImageAttributeCommand}. */ export interface DescribeImageAttributeCommandOutput extends ImageAttribute, __MetadataBearer { } declare const DescribeImageAttributeCommand_base: { new (input: DescribeImageAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeImageAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes the specified attribute of the specified AMI. You can specify only one attribute * at a time.

* *

The order of the elements in the response, including those within nested structures, * might vary. Applications should not assume the elements appear in a particular order.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeImageAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeImageAttributeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DescribeImageAttributeRequest * Attribute: "description" || "kernel" || "ramdisk" || "launchPermission" || "productCodes" || "blockDeviceMapping" || "sriovNetSupport" || "bootMode" || "tpmSupport" || "uefiData" || "lastLaunchedTime" || "imdsSupport" || "deregistrationProtection", // required * ImageId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new DescribeImageAttributeCommand(input); * const response = await client.send(command); * // { // ImageAttribute * // Description: { // AttributeValue * // Value: "STRING_VALUE", * // }, * // KernelId: { * // Value: "STRING_VALUE", * // }, * // RamdiskId: { * // Value: "STRING_VALUE", * // }, * // SriovNetSupport: { * // Value: "STRING_VALUE", * // }, * // BootMode: { * // Value: "STRING_VALUE", * // }, * // TpmSupport: "", * // UefiData: "", * // LastLaunchedTime: "", * // ImdsSupport: "", * // DeregistrationProtection: "", * // ImageId: "STRING_VALUE", * // LaunchPermissions: [ // LaunchPermissionList * // { // LaunchPermission * // OrganizationArn: "STRING_VALUE", * // OrganizationalUnitArn: "STRING_VALUE", * // UserId: "STRING_VALUE", * // Group: "all", * // }, * // ], * // ProductCodes: [ // ProductCodeList * // { // ProductCode * // ProductCodeId: "STRING_VALUE", * // ProductCodeType: "devpay" || "marketplace", * // }, * // ], * // BlockDeviceMappings: [ // BlockDeviceMappingList * // { // BlockDeviceMapping * // Ebs: { // EbsBlockDevice * // DeleteOnTermination: true || false, * // Iops: Number("int"), * // SnapshotId: "STRING_VALUE", * // VolumeSize: Number("int"), * // VolumeType: "standard" || "io1" || "io2" || "gp2" || "sc1" || "st1" || "gp3", * // KmsKeyId: "STRING_VALUE", * // Throughput: Number("int"), * // OutpostArn: "STRING_VALUE", * // AvailabilityZone: "STRING_VALUE", * // Encrypted: true || false, * // VolumeInitializationRate: Number("int"), * // AvailabilityZoneId: "STRING_VALUE", * // EbsCardIndex: Number("int"), * // }, * // NoDevice: "STRING_VALUE", * // DeviceName: "STRING_VALUE", * // VirtualName: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param DescribeImageAttributeCommandInput - {@link DescribeImageAttributeCommandInput} * @returns {@link DescribeImageAttributeCommandOutput} * @see {@link DescribeImageAttributeCommandInput} for command's `input` shape. * @see {@link DescribeImageAttributeCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To describe the launch permissions for an AMI * ```javascript * // This example describes the launch permissions for the specified AMI. * const input = { * Attribute: "launchPermission", * ImageId: "ami-5731123e" * }; * const command = new DescribeImageAttributeCommand(input); * const response = await client.send(command); * /* response is * { * ImageId: "ami-5731123e", * LaunchPermissions: [ * { * UserId: "123456789012" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeImageAttributeCommand extends DescribeImageAttributeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeImageAttributeRequest; output: ImageAttribute; }; sdk: { input: DescribeImageAttributeCommandInput; output: DescribeImageAttributeCommandOutput; }; }; }