AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

An object representing the networking details for a task or service. For example awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}.

Inheritance Hierarchy

System.Object
  Amazon.ECS.Model.AwsVpcConfiguration

Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z

Syntax

C#
public class AwsVpcConfiguration

The AwsVpcConfiguration type exposes the following members

Constructors

NameDescription
Public Method AwsVpcConfiguration()

Properties

NameTypeDescription
Public Property AssignPublicIp Amazon.ECS.AssignPublicIp

Gets and sets the property AssignPublicIp.

Whether the task's elastic network interface receives a public IP address.

Consider the following when you set this value:

  • When you use create-service or update-service, the default is DISABLED.

  • When the service deploymentController is ECS, the value must be DISABLED.

Public Property SecurityGroups System.Collections.Generic.List<System.String>

Gets and sets the property SecurityGroups.

The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified.

All specified security groups must be from the same VPC.

Public Property Subnets System.Collections.Generic.List<System.String>

Gets and sets the property Subnets.

The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.

All specified subnets must be from the same VPC.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5