Skip to content
v2.278.0

EgressConfigurationProperty Struct ​

Describes configuration settings related to outbound network traffic of an AWS App Runner service.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const egressConfigurationProperty: apprunner.CfnService.EgressConfigurationProperty = {
  egressType: 'egressType',

  // the properties below are optional
  vpcConnectorArn: 'vpcConnectorArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apprunner as apprunner

egress_configuration_property = apprunner.CfnService.EgressConfigurationProperty(
    egress_type="egressType",

    # the properties below are optional
    vpc_connector_arn="vpcConnectorArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.*;

EgressConfigurationProperty egressConfigurationProperty = EgressConfigurationProperty.builder()
        .egressType("egressType")

        // the properties below are optional
        .vpcConnectorArn("vpcConnectorArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;

var egressConfigurationProperty = new EgressConfigurationProperty {
    EgressType = "egressType",

    // the properties below are optional
    VpcConnectorArn = "vpcConnectorArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

egressConfigurationProperty := &EgressConfigurationProperty{
	EgressType: jsii.String("egressType"),

	// the properties below are optional
	VpcConnectorArn: jsii.String("vpcConnectorArn"),
}

Properties ​

egressTypestringegress_typestregressTypeStringEgressTypestringEgressType*string required #
The type of egress configuration.

Set to DEFAULT for access to resources hosted on public networks.

Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn .

vpcConnectorArnoptionalstringvpc_connector_arnoptionalstrvpcConnectorArnoptionalStringVpcConnectorArnoptionalstringVpcConnectorArnoptional*string #
The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service.

Only valid when EgressType = VPC .