Interface CfnSchedule.IAwsVpcConfigurationProperty
This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used.
Namespace: Amazon.CDK.AWS.Scheduler
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAwsVpcConfigurationProperty
Syntax (vb)
Public Interface IAwsVpcConfigurationProperty
Remarks
This structure is relevant only for ECS tasks that use the awsvpc network mode.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Scheduler;
var awsVpcConfigurationProperty = new AwsVpcConfigurationProperty {
Subnets = new [] { "subnets" },
// the properties below are optional
AssignPublicIp = "assignPublicIp",
SecurityGroups = new [] { "securityGroups" }
};
Synopsis
Properties
Assign |
Specifies whether the task's elastic network interface receives a public IP address. |
Security |
Specifies the security groups associated with the task. |
Subnets | Specifies the subnets associated with the task. |
Properties
AssignPublicIp
Specifies whether the task's elastic network interface receives a public IP address.
virtual string AssignPublicIp { get; }
Property Value
System.
Remarks
You can specify ENABLED
only when LaunchType
in EcsParameters
is set to FARGATE
.
SecurityGroups
Specifies the security groups associated with the task.
virtual string[] SecurityGroups { get; }
Property Value
System.
Remarks
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.
Subnets
Specifies the subnets associated with the task.
string[] Subnets { get; }
Property Value
System.
Remarks
These subnets must all be in the same VPC. You can specify as many as 16 subnets.