Skip to content
v2.278.0

NetworkConfigurationProperty Struct ​

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

Consists of embedded objects for each configurable network feature.

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 networkConfigurationProperty: apprunner.CfnService.NetworkConfigurationProperty = {
  egressConfiguration: {
    egressType: 'egressType',

    // the properties below are optional
    vpcConnectorArn: 'vpcConnectorArn',
  },
  ingressConfiguration: {
    isPubliclyAccessible: false,
  },
  ipAddressType: 'ipAddressType',
};
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
// 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();
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"
};
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 ​

egressConfigurationoptionalIResolvable | CfnService.EgressConfigurationPropertyegress_configurationoptionaltyping.Union[IResolvable, EgressConfigurationProperty]egressConfigurationoptionalIResolvableEgressConfigurationoptionalIResolvableEgressConfigurationoptionalinterface{} #
Network configuration settings for outbound message traffic.
ingressConfigurationoptionalIResolvable | CfnService.IngressConfigurationPropertyingress_configurationoptionaltyping.Union[IResolvable, IngressConfigurationProperty]ingressConfigurationoptionalIResolvableIngressConfigurationoptionalIResolvableIngressConfigurationoptionalinterface{} #
Network configuration settings for inbound message traffic.
ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*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.