interface NetworkConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Events.CfnRule.NetworkConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnRule_NetworkConfigurationProperty |
![]() | software.amazon.awscdk.services.events.CfnRule.NetworkConfigurationProperty |
![]() | aws_cdk.aws_events.CfnRule.NetworkConfigurationProperty |
![]() | aws-cdk-lib » aws_events » CfnRule » NetworkConfigurationProperty |
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 { aws_events as events } from 'aws-cdk-lib';
const networkConfigurationProperty: events.CfnRule.NetworkConfigurationProperty = {
awsVpcConfiguration: {
subnets: ['subnets'],
// the properties below are optional
assignPublicIp: 'assignPublicIp',
securityGroups: ['securityGroups'],
},
};
Properties
Name | Type | Description |
---|---|---|
aws | IResolvable | Aws | Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. |
awsVpcConfiguration?
Type:
IResolvable
|
Aws
(optional)
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 awsvpc
network mode.