aws-cdk-lib.aws_batch.CfnJobDefinition.NetworkConfigurationProperty

interface NetworkConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.Batch.CfnJobDefinition.NetworkConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_NetworkConfigurationProperty
Javasoftware.amazon.awscdk.services.batch.CfnJobDefinition.NetworkConfigurationProperty
Pythonaws_cdk.aws_batch.CfnJobDefinition.NetworkConfigurationProperty
TypeScript aws-cdk-lib » aws_batch » CfnJobDefinition » NetworkConfigurationProperty

The network configuration for jobs that are running on Fargate resources.

Jobs that are running on EC2 resources must not specify this parameter.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const networkConfigurationProperty: batch.CfnJobDefinition.NetworkConfigurationProperty = {
  assignPublicIp: 'assignPublicIp',
};

Properties

NameTypeDescription
assignPublicIp?stringIndicates whether the job has a public IP address.

assignPublicIp?

Type: string (optional)

Indicates whether the job has a public IP address.

For a job that's running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking in the Amazon Elastic Container Service Developer Guide . The default value is " DISABLED ".