Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateNetworkAcl = CreateNetworkAcl' {
- dryRun :: Maybe Bool
- tagSpecifications :: Maybe [TagSpecification]
- vpcId :: Text
- newCreateNetworkAcl :: Text -> CreateNetworkAcl
- createNetworkAcl_dryRun :: Lens' CreateNetworkAcl (Maybe Bool)
- createNetworkAcl_tagSpecifications :: Lens' CreateNetworkAcl (Maybe [TagSpecification])
- createNetworkAcl_vpcId :: Lens' CreateNetworkAcl Text
- data CreateNetworkAclResponse = CreateNetworkAclResponse' {}
- newCreateNetworkAclResponse :: Int -> CreateNetworkAclResponse
- createNetworkAclResponse_networkAcl :: Lens' CreateNetworkAclResponse (Maybe NetworkAcl)
- createNetworkAclResponse_httpStatus :: Lens' CreateNetworkAclResponse Int
Creating a Request
data CreateNetworkAcl Source #
See: newCreateNetworkAcl
smart constructor.
CreateNetworkAcl' | |
|
Instances
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
.
createNetworkAcl_tagSpecifications :: Lens' CreateNetworkAcl (Maybe [TagSpecification]) Source #
The tags to assign to the network ACL.
createNetworkAcl_vpcId :: Lens' CreateNetworkAcl Text Source #
The ID of the VPC.
Destructuring the Response
data CreateNetworkAclResponse Source #
See: newCreateNetworkAclResponse
smart constructor.
CreateNetworkAclResponse' | |
|
Instances
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
createNetworkAclResponse_networkAcl :: Lens' CreateNetworkAclResponse (Maybe NetworkAcl) Source #
Information about the network ACL.
createNetworkAclResponse_httpStatus :: Lens' CreateNetworkAclResponse Int Source #
The response's http status code.