Class CfnService.EgressConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.EgressConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.EgressConfigurationProperty>
- Enclosing interface:
CfnService.EgressConfigurationProperty
@Stability(Stable)
public static final class CfnService.EgressConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.EgressConfigurationProperty>
A builder for
CfnService.EgressConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.egressType
(String egressType) Sets the value ofCfnService.EgressConfigurationProperty.getEgressType()
vpcConnectorArn
(String vpcConnectorArn) Sets the value ofCfnService.EgressConfigurationProperty.getVpcConnectorArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
egressType
@Stability(Stable) public CfnService.EgressConfigurationProperty.Builder egressType(String egressType) Sets the value ofCfnService.EgressConfigurationProperty.getEgressType()
- Parameters:
egressType
- The type of egress configuration. This parameter is required. Set toDEFAULT
for access to resources hosted on public networks.Set to
VPC
to associate your service to a custom VPC specified byVpcConnectorArn
.- Returns:
this
-
vpcConnectorArn
@Stability(Stable) public CfnService.EgressConfigurationProperty.Builder vpcConnectorArn(String vpcConnectorArn) Sets the value ofCfnService.EgressConfigurationProperty.getVpcConnectorArn()
- Parameters:
vpcConnectorArn
- The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid whenEgressType = VPC
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.EgressConfigurationProperty>
- Returns:
- a new instance of
CfnService.EgressConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-