libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Description

 
Synopsis

Documentation

data AwsVpcConfiguration Source #

This structure specifies 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.

See: newAwsVpcConfiguration smart constructor.

Constructors

AwsVpcConfiguration' 

Fields

  • securityGroups :: Maybe [Text]

    Specifies the security groups associated with the task. 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.

  • assignPublicIp :: Maybe AssignPublicIp

    Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.

  • subnets :: [Text]

    Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.

Instances

Instances details
Eq AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Read AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Show AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Generic AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Associated Types

type Rep AwsVpcConfiguration :: Type -> Type #

NFData AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Methods

rnf :: AwsVpcConfiguration -> () #

Hashable AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

ToJSON AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

FromJSON AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

type Rep AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

type Rep AwsVpcConfiguration = D1 ('MetaData "AwsVpcConfiguration" "Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "AwsVpcConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "securityGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "assignPublicIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssignPublicIp)) :*: 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:securityGroups:AwsVpcConfiguration', awsVpcConfiguration_securityGroups - Specifies the security groups associated with the task. 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.

$sel:assignPublicIp:AwsVpcConfiguration', awsVpcConfiguration_assignPublicIp - Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.

$sel:subnets:AwsVpcConfiguration', awsVpcConfiguration_subnets - Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.

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

Specifies the security groups associated with the task. 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.

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

Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE.

awsVpcConfiguration_subnets :: Lens' AwsVpcConfiguration [Text] Source #

Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.