Interface CfnRule.NetworkConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.NetworkConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.NetworkConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
This structure specifies the network configuration for an ECS task.
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.*;
NetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()
.awsVpcConfiguration(AwsVpcConfigurationProperty.builder()
.subnets(List.of("subnets"))
// the properties below are optional
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRule.NetworkConfigurationPropertystatic final classAn implementation forCfnRule.NetworkConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAwsVpcConfiguration
Use this structure to specify 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
awsvpcnetwork mode.Returns union: either
IResolvableorCfnRule.AwsVpcConfigurationProperty- See Also:
-
builder
-