@Stability(value=Stable)
public static interface CfnRule.AwsVpcConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.events.*;
AwsVpcConfigurationProperty awsVpcConfigurationProperty = AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRule.AwsVpcConfigurationProperty.Builder
A builder for
CfnRule.AwsVpcConfigurationProperty |
static class |
CfnRule.AwsVpcConfigurationProperty.Jsii$Proxy
An implementation for
CfnRule.AwsVpcConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRule.AwsVpcConfigurationProperty.Builder |
builder() |
default String |
getAssignPublicIp()
Specifies whether the task's elastic network interface receives a public IP address.
|
default List<String> |
getSecurityGroups()
Specifies the security groups associated with the task.
|
List<String> |
getSubnets()
Specifies the subnets associated with the task.
|
@Stability(value=Stable) @NotNull List<String> getSubnets()
These subnets must all be in the same VPC. You can specify as many as 16 subnets.
@Stability(value=Stable) @Nullable default String getAssignPublicIp()
You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE .
@Stability(value=Stable) @Nullable default List<String> getSecurityGroups()
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.
@Stability(value=Stable) static CfnRule.AwsVpcConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.