interface NetworkConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Batch.Mixins.CfnJobDefinitionPropsMixin.NetworkConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbatch/mixins#CfnJobDefinitionPropsMixin_NetworkConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.batch.mixins.CfnJobDefinitionPropsMixin.NetworkConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_batch.mixins.CfnJobDefinitionPropsMixin.NetworkConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_batch » mixins » CfnJobDefinitionPropsMixin » NetworkConfigurationProperty |
The network configuration for jobs that are running on Fargate resources.
Jobs that are running on Amazon 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 { mixins as batch_mixins } from '@aws-cdk/mixins-preview/aws-batch';
const networkConfigurationProperty: batch_mixins.CfnJobDefinitionPropsMixin.NetworkConfigurationProperty = {
assignPublicIp: 'assignPublicIp',
};
Properties
| Name | Type | Description |
|---|---|---|
| assign | string | Indicates 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 ".

.NET
Go
Java
Python
TypeScript