import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient"; import type { DeleteInstanceProfileMessage, DeleteInstanceProfileResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteInstanceProfileCommand}. */ export interface DeleteInstanceProfileCommandInput extends DeleteInstanceProfileMessage { } /** * @public * * The output of {@link DeleteInstanceProfileCommand}. */ export interface DeleteInstanceProfileCommandOutput extends DeleteInstanceProfileResponse, __MetadataBearer { } declare const DeleteInstanceProfileCommand_base: { new (input: DeleteInstanceProfileCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteInstanceProfileCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the specified instance profile.

* *

All migration projects associated with the instance profile must be deleted or * modified before you can delete the instance profile.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, DeleteInstanceProfileCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, DeleteInstanceProfileCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import * // import type { DatabaseMigrationServiceClientConfig } from "@aws-sdk/client-database-migration-service"; * const config = {}; // type is DatabaseMigrationServiceClientConfig * const client = new DatabaseMigrationServiceClient(config); * const input = { // DeleteInstanceProfileMessage * InstanceProfileIdentifier: "STRING_VALUE", // required * }; * const command = new DeleteInstanceProfileCommand(input); * const response = await client.send(command); * // { // DeleteInstanceProfileResponse * // InstanceProfile: { // InstanceProfile * // InstanceProfileArn: "STRING_VALUE", * // AvailabilityZone: "STRING_VALUE", * // KmsKeyArn: "STRING_VALUE", * // PubliclyAccessible: true || false, * // NetworkType: "STRING_VALUE", * // InstanceProfileName: "STRING_VALUE", * // Description: "STRING_VALUE", * // InstanceProfileCreationTime: new Date("TIMESTAMP"), * // SubnetGroupIdentifier: "STRING_VALUE", * // VpcSecurityGroups: [ // StringList * // "STRING_VALUE", * // ], * // }, * // }; * * ``` * * @param DeleteInstanceProfileCommandInput - {@link DeleteInstanceProfileCommandInput} * @returns {@link DeleteInstanceProfileCommandOutput} * @see {@link DeleteInstanceProfileCommandInput} for command's `input` shape. * @see {@link DeleteInstanceProfileCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link AccessDeniedFault} (client fault) *

DMS was denied access to the endpoint. Check that the * role is correctly configured.

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

A dependency threw an exception.

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

The resource is in a state that prevents it from being used for database migration.

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

The resource could not be found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @example Delete Instance Profile * ```javascript * // Deletes the specified instance profile. * const input = { * InstanceProfileIdentifier: "arn:aws:dms:us-east-1:012345678901:instance-profile:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345" * }; * const command = new DeleteInstanceProfileCommand(input); * const response = await client.send(command); * /* response is * { * InstanceProfile: { * InstanceProfileArn: "arn:aws:dms:us-east-1:012345678901:instance-profile:my-instance-profile", * InstanceProfileCreationTime: "2022-12-16T09:44:43.543246Z", * InstanceProfileName: "my-instance-profile", * KmsKeyArn: "arn:aws:kms:us-east-1:012345678901:key/01234567-89ab-cdef-0123-456789abcdef", * PubliclyAccessible: true, * SubnetGroupIdentifier: "public-subnets", * VpcSecurityGroups: [ * "sg-0123456" * ] * } * } * *\/ * ``` * * @public */ export declare class DeleteInstanceProfileCommand extends DeleteInstanceProfileCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteInstanceProfileMessage; output: DeleteInstanceProfileResponse; }; sdk: { input: DeleteInstanceProfileCommandInput; output: DeleteInstanceProfileCommandOutput; }; }; }