createInstanceProfile

abstract suspend fun createInstanceProfile(input: CreateInstanceProfileRequest = CreateInstanceProfileRequest { }): CreateInstanceProfileResponse

Creates the instance profile using the specified parameters.

Required permissions:dms:CreateInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service.

Samples

// The following example creates an instance profile.
val resp = databaseMigrationClient.createInstanceProfile {
    instanceProfileName = "example-instance-profile"
    description = "Example instance profile for documentation"
    subnetGroupIdentifier = "example-replication-subnet-group"
    vpcSecurityGroups = listOf<String>(
        "sg-0123456789abcdef0"
    )
    kmsKeyArn = "arn:aws:kms:us-east-1:111122223333:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    networkType = "IPV4"
    publiclyAccessible = false
}