@Stability(value=Stable)
public static interface CfnJobDefinition.NetworkConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.batch.*;
NetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()
.assignPublicIp("assignPublicIp")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnJobDefinition.NetworkConfigurationProperty.Builder
A builder for
CfnJobDefinition.NetworkConfigurationProperty |
static class |
CfnJobDefinition.NetworkConfigurationProperty.Jsii$Proxy
An implementation for
CfnJobDefinition.NetworkConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnJobDefinition.NetworkConfigurationProperty.Builder |
builder() |
default String |
getAssignPublicIp()
Indicates whether the job should have a public IP address.
|
@Stability(value=Stable) @Nullable default String getAssignPublicIp()
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".
@Stability(value=Stable) static CfnJobDefinition.NetworkConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.