amazonka-cloudwatch-events-2.0: Amazon EventBridge 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.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

  • 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.

  • 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.

  • 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
FromJSON AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

ToJSON 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 #

Read AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Show AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

NFData AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Methods

rnf :: AwsVpcConfiguration -> () #

Eq AwsVpcConfiguration Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.AwsVpcConfiguration

Hashable 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" "amazonka-cloudwatch-events-2.0-GJzRBos1CnlE3BT39axMc5" '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 - 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: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: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_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_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_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.