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()securityGroupIds(List<String> securityGroupIds) The IDs of the security groups.serviceNetworkIdentifier(String serviceNetworkIdentifier) The ID or Amazon Resource Name (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(Construct scope, String id) - Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnServiceNetworkVpcAssociation.Builder.
-
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
-
serviceNetworkIdentifier
@Stability(Stable) public CfnServiceNetworkVpcAssociation.Builder serviceNetworkIdentifier(String serviceNetworkIdentifier) The ID or Amazon Resource Name (ARN) of the service network.You must use the ARN when the resources specified in the operation are in different accounts.
- Parameters:
serviceNetworkIdentifier- The ID or Amazon Resource Name (ARN) of the service network. This parameter is required.- Returns:
this
-
tags
The tags for the association.- Parameters:
tags- The tags for the association. This parameter is required.- Returns:
this
-
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
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceNetworkVpcAssociation>- Returns:
- a newly built instance of
CfnServiceNetworkVpcAssociation.
-