Class CfnServiceNetworkVpcAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnServiceNetworkVpcAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociation>
- Enclosing class:
CfnServiceNetworkVpcAssociation
@Stability(Stable)
public static final class CfnServiceNetworkVpcAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceNetworkVpcAssociation>
A fluent builder for
CfnServiceNetworkVpcAssociation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()dnsOptions(IResolvable dnsOptions) The DNS options for the service network VPC association.The DNS options for the service network VPC association.privateDnsEnabled(Boolean privateDnsEnabled) Indicates if private DNS is enabled for the service network VPC association.privateDnsEnabled(IResolvable privateDnsEnabled) Indicates if private DNS is enabled for the service network VPC association.securityGroupIds(List<String> securityGroupIds) The IDs of the security groups.serviceNetworkIdentifier(String serviceNetworkIdentifier) The ID or ARN of the service network.The tags for the association.vpcIdentifier(String vpcIdentifier) The ID of the VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnServiceNetworkVpcAssociation.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnServiceNetworkVpcAssociation.Builder.
-
dnsOptions
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder dnsOptions(IResolvable dnsOptions) The DNS options for the service network VPC association.- Parameters:
dnsOptions- The DNS options for the service network VPC association. This parameter is required.- Returns:
this- See Also:
-
dnsOptions
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder dnsOptions(CfnServiceNetworkVpcAssociation.DnsOptionsProperty dnsOptions) The DNS options for the service network VPC association.- Parameters:
dnsOptions- The DNS options for the service network VPC association. This parameter is required.- Returns:
this- See Also:
-
privateDnsEnabled
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder privateDnsEnabled(Boolean privateDnsEnabled) Indicates if private DNS is enabled for the service network VPC association.- Parameters:
privateDnsEnabled- Indicates if private DNS is enabled for the service network VPC association. This parameter is required.- Returns:
this- See Also:
-
privateDnsEnabled
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder privateDnsEnabled(IResolvable privateDnsEnabled) Indicates if private DNS is enabled for the service network VPC association.- Parameters:
privateDnsEnabled- Indicates if private DNS is enabled for the service network VPC association. This parameter is required.- Returns:
this- See Also:
-
securityGroupIds
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder securityGroupIds(List<String> securityGroupIds) The IDs of the security groups.Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide .
- Parameters:
securityGroupIds- The IDs of the security groups. This parameter is required.- Returns:
this- See Also:
-
serviceNetworkIdentifier
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder serviceNetworkIdentifier(String serviceNetworkIdentifier) The ID or ARN of the service network.You must use an ARN if the resources are in different accounts.
- Parameters:
serviceNetworkIdentifier- The ID or ARN of the service network. This parameter is required.- Returns:
this- See Also:
-
tags
The tags for the association.- Parameters:
tags- The tags for the association. This parameter is required.- Returns:
this- See Also:
-
vpcIdentifier
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder vpcIdentifier(String vpcIdentifier) The ID of the VPC.- Parameters:
vpcIdentifier- The ID of the VPC. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceNetworkVpcAssociation>- Returns:
- a newly built instance of
CfnServiceNetworkVpcAssociation.
-