createInstanceProfile

Creates the instance profile using the specified parameters.

Samples

import aws.sdk.kotlin.services.databasemigrationservice.model.Tag

fun main() { 
   //sampleStart 
   // Creates the instance profile using the specified parameters.
val resp = databaseMigrationClient.createInstanceProfile {
    subnetGroupIdentifier = "my-subnet-group"
    publiclyAccessible = true
    kmsKeyArn = "arn:aws:kms:us-east-1:012345678901:key/01234567-89ab-cdef-0123-456789abcdef"
    instanceProfileName = "my-instance-profile"
    description = "Description"
    networkType = "DUAL"
    tags = listOf<Tag>(
        Tag {
            key = "access"
            value = "authorizedusers"
        }            
    )
} 
   //sampleEnd
}