Class CfnInstanceProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.dms.CfnInstanceProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceProfileProps>
- Enclosing interface:
CfnInstanceProfileProps
@Stability(Stable)
public static final class CfnInstanceProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceProfileProps>
A builder for
CfnInstanceProfileProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofCfnInstanceProfileProps.getAvailabilityZone()build()Builds the configured instance.description(String description) Sets the value ofCfnInstanceProfileProps.getDescription()instanceProfileIdentifier(String instanceProfileIdentifier) Sets the value ofCfnInstanceProfileProps.getInstanceProfileIdentifier()instanceProfileName(String instanceProfileName) Sets the value ofCfnInstanceProfileProps.getInstanceProfileName()Sets the value ofCfnInstanceProfileProps.getKmsKeyArn()networkType(String networkType) Sets the value ofCfnInstanceProfileProps.getNetworkType()publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnInstanceProfileProps.getPubliclyAccessible()publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnInstanceProfileProps.getPubliclyAccessible()subnetGroupIdentifier(String subnetGroupIdentifier) Sets the value ofCfnInstanceProfileProps.getSubnetGroupIdentifier()Sets the value ofCfnInstanceProfileProps.getTags()vpcSecurityGroups(List<String> vpcSecurityGroups) Sets the value ofCfnInstanceProfileProps.getVpcSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
Sets the value ofCfnInstanceProfileProps.getAvailabilityZone()- Parameters:
availabilityZone- The Availability Zone where the instance profile runs.- Returns:
this
-
description
Sets the value ofCfnInstanceProfileProps.getDescription()- Parameters:
description- 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.- Returns:
this
-
instanceProfileIdentifier
@Stability(Stable) public CfnInstanceProfileProps.Builder instanceProfileIdentifier(String instanceProfileIdentifier) Sets the value ofCfnInstanceProfileProps.getInstanceProfileIdentifier()- Parameters:
instanceProfileIdentifier- The identifier of the instance profile. 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.- Returns:
this
-
instanceProfileName
@Stability(Stable) public CfnInstanceProfileProps.Builder instanceProfileName(String instanceProfileName) Sets the value ofCfnInstanceProfileProps.getInstanceProfileName()- Parameters:
instanceProfileName- The user-friendly name for the instance profile.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnInstanceProfileProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the AWS KMS key that is used to encrypt the connection parameters for the instance profile. If you don't specify a value for theKmsKeyArnparameter, then AWS DMS uses an AWS owned encryption key to encrypt your resources.- Returns:
this
-
networkType
Sets the value ofCfnInstanceProfileProps.getNetworkType()- Parameters:
networkType- Specifies the network type for the instance profile. A value ofIPV4represents an instance profile with IPv4 network type and only supports IPv4 addressing. A value ofIPV6represents an instance profile with IPv6 network type and only supports IPv6 addressing. A value ofDUALrepresents an instance profile with dual network type that supports IPv4 and IPv6 addressing.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnInstanceProfileProps.Builder publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnInstanceProfileProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Specifies the accessibility options for the instance profile. A value oftruerepresents an instance profile with a public IP address. A value offalserepresents an instance profile with a private IP address. The default value istrue.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnInstanceProfileProps.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnInstanceProfileProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Specifies the accessibility options for the instance profile. A value oftruerepresents an instance profile with a public IP address. A value offalserepresents an instance profile with a private IP address. The default value istrue.- Returns:
this
-
subnetGroupIdentifier
@Stability(Stable) public CfnInstanceProfileProps.Builder subnetGroupIdentifier(String subnetGroupIdentifier) Sets the value ofCfnInstanceProfileProps.getSubnetGroupIdentifier()- Parameters:
subnetGroupIdentifier- The identifier of the subnet group that is associated with the instance profile.- Returns:
this
-
tags
Sets the value ofCfnInstanceProfileProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
vpcSecurityGroups
@Stability(Stable) public CfnInstanceProfileProps.Builder vpcSecurityGroups(List<String> vpcSecurityGroups) Sets the value ofCfnInstanceProfileProps.getVpcSecurityGroups()- Parameters:
vpcSecurityGroups- The VPC security groups that are used with the instance profile. The VPC security group must work with the VPC containing the instance profile.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceProfileProps>- Returns:
- a new instance of
CfnInstanceProfileProps - Throws:
NullPointerException- if any required attribute was not provided
-