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 { DescribeIamInstanceProfileAssociationsRequest, DescribeIamInstanceProfileAssociationsResult } from "../models/models_3"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeIamInstanceProfileAssociationsCommand}. */ export interface DescribeIamInstanceProfileAssociationsCommandInput extends DescribeIamInstanceProfileAssociationsRequest { } /** * @public * * The output of {@link DescribeIamInstanceProfileAssociationsCommand}. */ export interface DescribeIamInstanceProfileAssociationsCommandOutput extends DescribeIamInstanceProfileAssociationsResult, __MetadataBearer { } declare const DescribeIamInstanceProfileAssociationsCommand_base: { new (input: DescribeIamInstanceProfileAssociationsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeIamInstanceProfileAssociationsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes your IAM instance profile associations.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeIamInstanceProfileAssociationsCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeIamInstanceProfileAssociationsCommand } = 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 = { // DescribeIamInstanceProfileAssociationsRequest * AssociationIds: [ // AssociationIdList * "STRING_VALUE", * ], * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", * Values: [ // ValueStringList * "STRING_VALUE", * ], * }, * ], * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new DescribeIamInstanceProfileAssociationsCommand(input); * const response = await client.send(command); * // { // DescribeIamInstanceProfileAssociationsResult * // IamInstanceProfileAssociations: [ // IamInstanceProfileAssociationSet * // { // IamInstanceProfileAssociation * // AssociationId: "STRING_VALUE", * // InstanceId: "STRING_VALUE", * // IamInstanceProfile: { // IamInstanceProfile * // Arn: "STRING_VALUE", * // Id: "STRING_VALUE", * // }, * // State: "associating" || "associated" || "disassociating" || "disassociated", * // Timestamp: new Date("TIMESTAMP"), * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeIamInstanceProfileAssociationsCommandInput - {@link DescribeIamInstanceProfileAssociationsCommandInput} * @returns {@link DescribeIamInstanceProfileAssociationsCommandOutput} * @see {@link DescribeIamInstanceProfileAssociationsCommandInput} for command's `input` shape. * @see {@link DescribeIamInstanceProfileAssociationsCommandOutput} 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 an IAM instance profile association * ```javascript * // This example describes the specified IAM instance profile association. * const input = { * AssociationIds: [ * "iip-assoc-0db249b1f25fa24b8" * ] * }; * const command = new DescribeIamInstanceProfileAssociationsCommand(input); * const response = await client.send(command); * /* response is * { * IamInstanceProfileAssociations: [ * { * AssociationId: "iip-assoc-0db249b1f25fa24b8", * IamInstanceProfile: { * Arn: "arn:aws:iam::123456789012:instance-profile/admin-role", * Id: "AIPAJVQN4F5WVLGCJDRGM" * }, * InstanceId: "i-09eb09efa73ec1dee", * State: "associated" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeIamInstanceProfileAssociationsCommand extends DescribeIamInstanceProfileAssociationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeIamInstanceProfileAssociationsRequest; output: DescribeIamInstanceProfileAssociationsResult; }; sdk: { input: DescribeIamInstanceProfileAssociationsCommandInput; output: DescribeIamInstanceProfileAssociationsCommandOutput; }; }; }