amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.CreateNetworkAcl

Description

Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.

For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data CreateNetworkAcl Source #

See: newCreateNetworkAcl smart constructor.

Constructors

CreateNetworkAcl' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to assign to the network ACL.

  • vpcId :: Text

    The ID of the VPC.

Instances

Instances details
ToHeaders CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

ToPath CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

ToQuery CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

AWSRequest CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Associated Types

type AWSResponse CreateNetworkAcl #

Generic CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Associated Types

type Rep CreateNetworkAcl :: Type -> Type #

Read CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Show CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

NFData CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Methods

rnf :: CreateNetworkAcl -> () #

Eq CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Hashable CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

type AWSResponse CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

type Rep CreateNetworkAcl Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

type Rep CreateNetworkAcl = D1 ('MetaData "CreateNetworkAcl" "Amazonka.EC2.CreateNetworkAcl" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateNetworkAcl'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "tagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification])) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateNetworkAcl Source #

Create a value of CreateNetworkAcl 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:dryRun:CreateNetworkAcl', createNetworkAcl_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

CreateNetworkAcl, createNetworkAcl_tagSpecifications - The tags to assign to the network ACL.

CreateNetworkAcl, createNetworkAcl_vpcId - The ID of the VPC.

Request Lenses

createNetworkAcl_dryRun :: Lens' CreateNetworkAcl (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

data CreateNetworkAclResponse Source #

See: newCreateNetworkAclResponse smart constructor.

Constructors

CreateNetworkAclResponse' 

Fields

Instances

Instances details
Generic CreateNetworkAclResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Associated Types

type Rep CreateNetworkAclResponse :: Type -> Type #

Read CreateNetworkAclResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Show CreateNetworkAclResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

NFData CreateNetworkAclResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

Eq CreateNetworkAclResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

type Rep CreateNetworkAclResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkAcl

type Rep CreateNetworkAclResponse = D1 ('MetaData "CreateNetworkAclResponse" "Amazonka.EC2.CreateNetworkAcl" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateNetworkAclResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "networkAcl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NetworkAcl)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateNetworkAclResponse Source #

Create a value of CreateNetworkAclResponse 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:networkAcl:CreateNetworkAclResponse', createNetworkAclResponse_networkAcl - Information about the network ACL.

$sel:httpStatus:CreateNetworkAclResponse', createNetworkAclResponse_httpStatus - The response's http status code.

Response Lenses