amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECS.Types.AwsVpcConfiguration

Description

 
Synopsis

Documentation

data AwsVpcConfiguration Source #

An object representing the networking details for a task or service.

See: newAwsVpcConfiguration smart constructor.

Constructors

AwsVpcConfiguration' 

Fields

  • assignPublicIp :: Maybe AssignPublicIp

    Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

  • securityGroups :: Maybe [Text]

    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 per AwsVpcConfiguration.

    All specified security groups must be from the same VPC.

  • subnets :: [Text]

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

    All specified subnets must be from the same VPC.

Instances

Instances details
FromJSON AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

ToJSON AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

Generic AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

Associated Types

type Rep AwsVpcConfiguration :: Type -> Type #

Read AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

Show AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

NFData AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

Methods

rnf :: AwsVpcConfiguration -> () #

Eq AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

Hashable AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

type Rep AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.AwsVpcConfiguration

type Rep AwsVpcConfiguration = D1 ('MetaData "AwsVpcConfiguration" "Amazonka.ECS.Types.AwsVpcConfiguration" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "AwsVpcConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "assignPublicIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssignPublicIp)) :*: (S1 ('MetaSel ('Just "securityGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "subnets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))

newAwsVpcConfiguration :: AwsVpcConfiguration Source #

Create a value of AwsVpcConfiguration with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:assignPublicIp:AwsVpcConfiguration', awsVpcConfiguration_assignPublicIp - Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

$sel:securityGroups:AwsVpcConfiguration', awsVpcConfiguration_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 per AwsVpcConfiguration.

All specified security groups must be from the same VPC.

$sel:subnets:AwsVpcConfiguration', awsVpcConfiguration_subnets - The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per AwsVpcConfiguration.

All specified subnets must be from the same VPC.

awsVpcConfiguration_assignPublicIp :: Lens' AwsVpcConfiguration (Maybe AssignPublicIp) Source #

Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.

awsVpcConfiguration_securityGroups :: Lens' AwsVpcConfiguration (Maybe [Text]) Source #

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 per AwsVpcConfiguration.

All specified security groups must be from the same VPC.

awsVpcConfiguration_subnets :: Lens' AwsVpcConfiguration [Text] Source #

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

All specified subnets must be from the same VPC.