Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data AwsVpcConfiguration = AwsVpcConfiguration' {
- securityGroups :: Maybe [Text]
- assignPublicIp :: Maybe AssignPublicIp
- subnets :: [Text]
- newAwsVpcConfiguration :: AwsVpcConfiguration
- awsVpcConfiguration_securityGroups :: Lens' AwsVpcConfiguration (Maybe [Text])
- awsVpcConfiguration_assignPublicIp :: Lens' AwsVpcConfiguration (Maybe AssignPublicIp)
- awsVpcConfiguration_subnets :: Lens' AwsVpcConfiguration [Text]
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.
AwsVpcConfiguration' | |
|
Instances
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.