# NetworkConfigurationProperty

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

Consists of embedded objects for each configurable network feature.

- Source: Generated at build time
- Type last changed: v2.106.0 · 10 Nov 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 networkConfigurationProperty: apprunner.CfnService.NetworkConfigurationProperty = {
  egressConfiguration: {
    egressType: 'egressType',

    // the properties below are optional
    vpcConnectorArn: 'vpcConnectorArn',
  },
  ingressConfiguration: {
    isPubliclyAccessible: false,
  },
  ipAddressType: 'ipAddressType',
};
```

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

network_configuration_property = apprunner.CfnService.NetworkConfigurationProperty(
    egress_configuration=apprunner.CfnService.EgressConfigurationProperty(
        egress_type="egressType",

        # the properties below are optional
        vpc_connector_arn="vpcConnectorArn"
    ),
    ingress_configuration=apprunner.CfnService.IngressConfigurationProperty(
        is_publicly_accessible=False
    ),
    ip_address_type="ipAddressType"
)
```

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.*;

NetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()
        .egressConfiguration(EgressConfigurationProperty.builder()
                .egressType("egressType")

                // the properties below are optional
                .vpcConnectorArn("vpcConnectorArn")
                .build())
        .ingressConfiguration(IngressConfigurationProperty.builder()
                .isPubliclyAccessible(false)
                .build())
        .ipAddressType("ipAddressType")
        .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 networkConfigurationProperty = new NetworkConfigurationProperty {
    EgressConfiguration = new EgressConfigurationProperty {
        EgressType = "egressType",

        // the properties below are optional
        VpcConnectorArn = "vpcConnectorArn"
    },
    IngressConfiguration = new IngressConfigurationProperty {
        IsPubliclyAccessible = false
    },
    IpAddressType = "ipAddressType"
};
```

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"

networkConfigurationProperty := &NetworkConfigurationProperty{
	EgressConfiguration: &EgressConfigurationProperty{
		EgressType: jsii.String("egressType"),

		// the properties below are optional
		VpcConnectorArn: jsii.String("vpcConnectorArn"),
	},
	IngressConfiguration: &IngressConfigurationProperty{
		IsPubliclyAccessible: jsii.Boolean(false),
	},
	IpAddressType: jsii.String("ipAddressType"),
}
```

## Properties

- `egressConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.EgressConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apprunner.CfnService.EgressConfigurationProperty.html) — Network configuration settings for outbound message traffic.

- `ingressConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.IngressConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apprunner.CfnService.IngressConfigurationProperty.html) — Network configuration settings for inbound message traffic.

- `ipAddressType`: string — App Runner provides you with the option to choose between *IPv4* and *dual stack* (IPv4 and IPv6) for your incoming public network configuration.

  This is an optional parameter. If you do not specify an `IpAddressType` , it defaults to select IPv4.
