Skip to content
v2.278.0

CfnInstanceProfileProps Struct ​

Properties for defining a CfnInstanceProfile.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const cfnInstanceProfileProps: dms.CfnInstanceProfileProps = {
  availabilityZone: 'availabilityZone',
  description: 'description',
  instanceProfileIdentifier: 'instanceProfileIdentifier',
  instanceProfileName: 'instanceProfileName',
  kmsKeyArn: 'kmsKeyArn',
  networkType: 'networkType',
  publiclyAccessible: false,
  subnetGroupIdentifier: 'subnetGroupIdentifier',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcSecurityGroups: ['vpcSecurityGroups'],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dms as dms

cfn_instance_profile_props = dms.CfnInstanceProfileProps(
    availability_zone="availabilityZone",
    description="description",
    instance_profile_identifier="instanceProfileIdentifier",
    instance_profile_name="instanceProfileName",
    kms_key_arn="kmsKeyArn",
    network_type="networkType",
    publicly_accessible=False,
    subnet_group_identifier="subnetGroupIdentifier",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_security_groups=["vpcSecurityGroups"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dms.*;

CfnInstanceProfileProps cfnInstanceProfileProps = CfnInstanceProfileProps.builder()
        .availabilityZone("availabilityZone")
        .description("description")
        .instanceProfileIdentifier("instanceProfileIdentifier")
        .instanceProfileName("instanceProfileName")
        .kmsKeyArn("kmsKeyArn")
        .networkType("networkType")
        .publiclyAccessible(false)
        .subnetGroupIdentifier("subnetGroupIdentifier")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcSecurityGroups(List.of("vpcSecurityGroups"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DMS;

var cfnInstanceProfileProps = new CfnInstanceProfileProps {
    AvailabilityZone = "availabilityZone",
    Description = "description",
    InstanceProfileIdentifier = "instanceProfileIdentifier",
    InstanceProfileName = "instanceProfileName",
    KmsKeyArn = "kmsKeyArn",
    NetworkType = "networkType",
    PubliclyAccessible = false,
    SubnetGroupIdentifier = "subnetGroupIdentifier",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcSecurityGroups = new [] { "vpcSecurityGroups" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnInstanceProfileProps := &CfnInstanceProfileProps{
	AvailabilityZone: jsii.String("availabilityZone"),
	Description: jsii.String("description"),
	InstanceProfileIdentifier: jsii.String("instanceProfileIdentifier"),
	InstanceProfileName: jsii.String("instanceProfileName"),
	KmsKeyArn: jsii.String("kmsKeyArn"),
	NetworkType: jsii.String("networkType"),
	PubliclyAccessible: jsii.Boolean(false),
	SubnetGroupIdentifier: jsii.String("subnetGroupIdentifier"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcSecurityGroups: []*string{
		jsii.String("vpcSecurityGroups"),
	},
}

Properties ​

availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #
The Availability Zone where the instance profile runs.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the instance profile.

Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.

instanceProfileIdentifieroptionalstringinstance_profile_identifieroptionalstrinstanceProfileIdentifieroptionalStringInstanceProfileIdentifieroptionalstringInstanceProfileIdentifieroptional*string deprecated #
this property has been deprecated

Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens.

instanceProfileNameoptionalstringinstance_profile_nameoptionalstrinstanceProfileNameoptionalStringInstanceProfileNameoptionalstringInstanceProfileNameoptional*string #
The user-friendly name for the instance profile.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string #
The Amazon Resource Name (ARN) of the AWS key that is used to encrypt the connection parameters for the instance profile.

If you don't specify a value for the KmsKeyArn parameter, then AWS DMS uses an AWS owned encryption key to encrypt your resources.

networkTypeoptionalstringnetwork_typeoptionalstrnetworkTypeoptionalStringNetworkTypeoptionalstringNetworkTypeoptional*string #
Specifies the network type for the instance profile.
notes

A value of IPV4 represents an instance profile with IPv4 network type and only supports IPv4 addressing. A value of IPV6 represents an instance profile with IPv6 network type and only supports IPv6 addressing. A value of DUAL represents an instance profile with dual network type that supports IPv4 and IPv6 addressing.

publiclyAccessibleoptionalboolean | IResolvablepublicly_accessibleoptionaltyping.Union[bool, IResolvable]publiclyAccessibleoptionalBooleanPubliclyAccessibleoptionalboolPubliclyAccessibleoptionalinterface{} = false #
Specifies the accessibility options for the instance profile.

A value of true represents an instance profile with a public IP address. A value of false represents an instance profile with a private IP address. The default value is true .

subnetGroupIdentifieroptionalstringsubnet_group_identifieroptionalstrsubnetGroupIdentifieroptionalStringSubnetGroupIdentifieroptionalstringSubnetGroupIdentifieroptional*string #
The identifier of the subnet group that is associated with the instance profile.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.
vpcSecurityGroupsoptionalstring[]vpc_security_groupsoptionaltyping.List[str]vpcSecurityGroupsoptionalList<String>VpcSecurityGroupsoptionalstring[]VpcSecurityGroupsoptional*[]*string #
The VPC security groups that are used with the instance profile.

The VPC security group must work with the VPC containing the instance profile.