AWS::Batch::JobDefinition NetworkConfiguration - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AWS::Batch::JobDefinition NetworkConfiguration

The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "AssignPublicIp" : String }

YAML

AssignPublicIp: String

Properties

AssignPublicIp

Indicates whether the job should have a public IP address. For a job that is 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. The default value is "DISABLED".

Required: No

Type: String

Allowed values: DISABLED | ENABLED

Update requires: No interruption