# CfnInstanceProfileProps

Properties for defining a `CfnInstanceProfile`.

Used as props by: [CfnInstanceProfile](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dms.CfnInstanceProfile.html)

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `availabilityZone`: string — The Availability Zone where the instance profile runs.

- `description`: 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.

- `instanceProfileIdentifier`: string — 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.

- `instanceProfileName`: string — The user-friendly name for the instance profile.

- `kmsKeyArn`: 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.

- `networkType`: string — Specifies the network type for the instance profile.

  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.

- `publiclyAccessible`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = 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` .

- `subnetGroupIdentifier`: string — The identifier of the subnet group that is associated with the instance profile.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

- `vpcSecurityGroups`: 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.
