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 { ModifyInstanceProfileMessage, ModifyInstanceProfileResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyInstanceProfileCommand}. */ export interface ModifyInstanceProfileCommandInput extends ModifyInstanceProfileMessage { } /** * @public * * The output of {@link ModifyInstanceProfileCommand}. */ export interface ModifyInstanceProfileCommandOutput extends ModifyInstanceProfileResponse, __MetadataBearer { } declare const ModifyInstanceProfileCommand_base: { new (input: ModifyInstanceProfileCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyInstanceProfileCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Modifies the specified instance profile using the provided parameters.

* *

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

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ModifyInstanceProfileCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ModifyInstanceProfileCommand } = 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 = { // ModifyInstanceProfileMessage * InstanceProfileIdentifier: "STRING_VALUE", // required * AvailabilityZone: "STRING_VALUE", * KmsKeyArn: "STRING_VALUE", * PubliclyAccessible: true || false, * NetworkType: "STRING_VALUE", * InstanceProfileName: "STRING_VALUE", * Description: "STRING_VALUE", * SubnetGroupIdentifier: "STRING_VALUE", * VpcSecurityGroups: [ // StringList * "STRING_VALUE", * ], * }; * const command = new ModifyInstanceProfileCommand(input); * const response = await client.send(command); * // { // ModifyInstanceProfileResponse * // 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 ModifyInstanceProfileCommandInput - {@link ModifyInstanceProfileCommandInput} * @returns {@link ModifyInstanceProfileCommandOutput} * @see {@link ModifyInstanceProfileCommandInput} for command's `input` shape. * @see {@link ModifyInstanceProfileCommandOutput} 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 KMSKeyNotAccessibleFault} (client fault) *

DMS cannot access the KMS key.

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

The resource could not be found.

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

Insufficient privileges are preventing access to an Amazon S3 object.

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

A specified Amazon S3 bucket, bucket folder, or other object can't be * found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @example Modify Instance Profile * ```javascript * // Modifies the specified instance profile using the provided parameters. * const input = { * AvailabilityZone: "", * Description: "", * InstanceProfileIdentifier: "", * InstanceProfileName: "", * KmsKeyArn: "", * NetworkType: "", * PubliclyAccessible: true, * SubnetGroupIdentifier: "", * VpcSecurityGroups: [] * }; * const command = new ModifyInstanceProfileCommand(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 ModifyInstanceProfileCommand extends ModifyInstanceProfileCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyInstanceProfileMessage; output: ModifyInstanceProfileResponse; }; sdk: { input: ModifyInstanceProfileCommandInput; output: ModifyInstanceProfileCommandOutput; }; }; }