CfnInstanceProfileProps Struct
Properties for defining a CfnInstanceProfile.
| Source | |
|---|---|
| Type last changed |
Example
// 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'],
};
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"]
)
// 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();
// 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" }
};
// 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 #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #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 #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 #kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string #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 #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 #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 #tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #vpcSecurityGroupsoptionalstring[]vpc_security_groupsoptionaltyping.List[str]vpcSecurityGroupsoptionalList<String>VpcSecurityGroupsoptionalstring[]VpcSecurityGroupsoptional*[]*string #The VPC security group must work with the VPC containing the instance profile.