Interface CfnSchedule.AwsVpcConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSchedule.AwsVpcConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnSchedule
@Stability(Stable)
public static interface CfnSchedule.AwsVpcConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used.
This structure is relevant only for ECS tasks that use the awsvpc network mode.
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.scheduler.*; AwsVpcConfigurationProperty awsVpcConfigurationProperty = AwsVpcConfigurationProperty.builder() .subnets(List.of("subnets")) // the properties below are optional .assignPublicIp("assignPublicIp") .securityGroups(List.of("securityGroups")) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnSchedule.AwsVpcConfigurationProperty
static final class
An implementation forCfnSchedule.AwsVpcConfigurationProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnets
Specifies the subnets associated with the task.These subnets must all be in the same VPC. You can specify as many as 16 subnets.
- See Also:
-
getAssignPublicIp
Specifies whether the task's elastic network interface receives a public IP address.You can specify
ENABLED
only whenLaunchType
inEcsParameters
is set toFARGATE
.- See Also:
-
getSecurityGroups
Specifies the security groups associated with the task.These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
- See Also:
-
builder
-