# EgressConfigurationProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `egressType`: 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` .

- `vpcConnectorArn`: 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` .
