Class CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEncryptionControl.ResourceExclusionsProperty>
- Enclosing interface:
CfnVPCEncryptionControl.ResourceExclusionsProperty
@Stability(Stable)
public static final class CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCEncryptionControl.ResourceExclusionsProperty>
A builder for
CfnVPCEncryptionControl.ResourceExclusionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.egressOnlyInternetGateway(IResolvable egressOnlyInternetGateway) egressOnlyInternetGateway(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty egressOnlyInternetGateway) elasticFileSystem(IResolvable elasticFileSystem) elasticFileSystem(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty elasticFileSystem) internetGateway(IResolvable internetGateway) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getInternetGateway()Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getInternetGateway()lambda(IResolvable lambda) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getLambda()Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getLambda()natGateway(IResolvable natGateway) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getNatGateway()Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getNatGateway()virtualPrivateGateway(IResolvable virtualPrivateGateway) virtualPrivateGateway(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty virtualPrivateGateway) vpcLattice(IResolvable vpcLattice) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcLattice()Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcLattice()vpcPeering(IResolvable vpcPeering) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcPeering()Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcPeering()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
egressOnlyInternetGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder egressOnlyInternetGateway(IResolvable egressOnlyInternetGateway) - Parameters:
egressOnlyInternetGateway- Specifies whether to exclude egress-only internet gateway traffic from encryption enforcement.- Returns:
this
-
egressOnlyInternetGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder egressOnlyInternetGateway(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty egressOnlyInternetGateway) - Parameters:
egressOnlyInternetGateway- Specifies whether to exclude egress-only internet gateway traffic from encryption enforcement.- Returns:
this
-
elasticFileSystem
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder elasticFileSystem(IResolvable elasticFileSystem) - Parameters:
elasticFileSystem- Specifies whether to exclude Elastic File System traffic from encryption enforcement.- Returns:
this
-
elasticFileSystem
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder elasticFileSystem(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty elasticFileSystem) - Parameters:
elasticFileSystem- Specifies whether to exclude Elastic File System traffic from encryption enforcement.- Returns:
this
-
internetGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder internetGateway(IResolvable internetGateway) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getInternetGateway()- Parameters:
internetGateway- Specifies whether to exclude internet gateway traffic from encryption enforcement.- Returns:
this
-
internetGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder internetGateway(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty internetGateway) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getInternetGateway()- Parameters:
internetGateway- Specifies whether to exclude internet gateway traffic from encryption enforcement.- Returns:
this
-
lambda
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder lambda(IResolvable lambda) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getLambda()- Parameters:
lambda- Specifies whether to exclude Lambda function traffic from encryption enforcement.- Returns:
this
-
lambda
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder lambda(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty lambda) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getLambda()- Parameters:
lambda- Specifies whether to exclude Lambda function traffic from encryption enforcement.- Returns:
this
-
natGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder natGateway(IResolvable natGateway) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getNatGateway()- Parameters:
natGateway- Specifies whether to exclude NAT gateway traffic from encryption enforcement.- Returns:
this
-
natGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder natGateway(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty natGateway) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getNatGateway()- Parameters:
natGateway- Specifies whether to exclude NAT gateway traffic from encryption enforcement.- Returns:
this
-
virtualPrivateGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder virtualPrivateGateway(IResolvable virtualPrivateGateway) - Parameters:
virtualPrivateGateway- Specifies whether to exclude virtual private gateway traffic from encryption enforcement.- Returns:
this
-
virtualPrivateGateway
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder virtualPrivateGateway(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty virtualPrivateGateway) - Parameters:
virtualPrivateGateway- Specifies whether to exclude virtual private gateway traffic from encryption enforcement.- Returns:
this
-
vpcLattice
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder vpcLattice(IResolvable vpcLattice) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcLattice()- Parameters:
vpcLattice- Specifies whether to exclude VPC Lattice traffic from encryption enforcement.- Returns:
this
-
vpcLattice
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder vpcLattice(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty vpcLattice) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcLattice()- Parameters:
vpcLattice- Specifies whether to exclude VPC Lattice traffic from encryption enforcement.- Returns:
this
-
vpcPeering
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder vpcPeering(IResolvable vpcPeering) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcPeering()- Parameters:
vpcPeering- Specifies whether to exclude VPC peering connection traffic from encryption enforcement.- Returns:
this
-
vpcPeering
@Stability(Stable) public CfnVPCEncryptionControl.ResourceExclusionsProperty.Builder vpcPeering(CfnVPCEncryptionControl.VpcEncryptionControlExclusionProperty vpcPeering) Sets the value ofCfnVPCEncryptionControl.ResourceExclusionsProperty.getVpcPeering()- Parameters:
vpcPeering- Specifies whether to exclude VPC peering connection traffic from encryption enforcement.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCEncryptionControl.ResourceExclusionsProperty>- Returns:
- a new instance of
CfnVPCEncryptionControl.ResourceExclusionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-