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 { CreateInstanceProfileMessage, CreateInstanceProfileResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateInstanceProfileCommand}. */ export interface CreateInstanceProfileCommandInput extends CreateInstanceProfileMessage { } /** * @public * * The output of {@link CreateInstanceProfileCommand}. */ export interface CreateInstanceProfileCommandOutput extends CreateInstanceProfileResponse, __MetadataBearer { } declare const CreateInstanceProfileCommand_base: { new (input: CreateInstanceProfileCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [CreateInstanceProfileCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates the instance profile using the specified parameters.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, CreateInstanceProfileCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, CreateInstanceProfileCommand } = 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 = { // CreateInstanceProfileMessage * AvailabilityZone: "STRING_VALUE", * KmsKeyArn: "STRING_VALUE", * PubliclyAccessible: true || false, * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * ResourceArn: "STRING_VALUE", * }, * ], * NetworkType: "STRING_VALUE", * InstanceProfileName: "STRING_VALUE", * Description: "STRING_VALUE", * SubnetGroupIdentifier: "STRING_VALUE", * VpcSecurityGroups: [ // StringList * "STRING_VALUE", * ], * }; * const command = new CreateInstanceProfileCommand(input); * const response = await client.send(command); * // { // CreateInstanceProfileResponse * // 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 CreateInstanceProfileCommandInput - {@link CreateInstanceProfileCommandInput} * @returns {@link CreateInstanceProfileCommandOutput} * @see {@link CreateInstanceProfileCommandInput} for command's `input` shape. * @see {@link CreateInstanceProfileCommandOutput} 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 ResourceAlreadyExistsFault} (client fault) *

The resource you are attempting to create already exists.

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

The resource could not be found.

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

The quota for this resource quota has been exceeded.

* * @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 Create Instance Profile * ```javascript * // Creates the instance profile using the specified parameters. * const input = { * Description: "Description", * InstanceProfileName: "my-instance-profile", * KmsKeyArn: "arn:aws:kms:us-east-1:012345678901:key/01234567-89ab-cdef-0123-456789abcdef", * NetworkType: "DUAL", * PubliclyAccessible: true, * SubnetGroupIdentifier: "my-subnet-group", * Tags: [ * { * Key: "access", * Value: "authorizedusers" * } * ] * }; * const command = new CreateInstanceProfileCommand(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 CreateInstanceProfileCommand extends CreateInstanceProfileCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateInstanceProfileMessage; output: CreateInstanceProfileResponse; }; sdk: { input: CreateInstanceProfileCommandInput; output: CreateInstanceProfileCommandOutput; }; }; }