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 carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.
Synopsis
- data CreateCarrierGateway = CreateCarrierGateway' {
- clientToken :: Maybe Text
- dryRun :: Maybe Bool
- tagSpecifications :: Maybe [TagSpecification]
- vpcId :: Text
- newCreateCarrierGateway :: Text -> CreateCarrierGateway
- createCarrierGateway_clientToken :: Lens' CreateCarrierGateway (Maybe Text)
- createCarrierGateway_dryRun :: Lens' CreateCarrierGateway (Maybe Bool)
- createCarrierGateway_tagSpecifications :: Lens' CreateCarrierGateway (Maybe [TagSpecification])
- createCarrierGateway_vpcId :: Lens' CreateCarrierGateway Text
- data CreateCarrierGatewayResponse = CreateCarrierGatewayResponse' {}
- newCreateCarrierGatewayResponse :: Int -> CreateCarrierGatewayResponse
- createCarrierGatewayResponse_carrierGateway :: Lens' CreateCarrierGatewayResponse (Maybe CarrierGateway)
- createCarrierGatewayResponse_httpStatus :: Lens' CreateCarrierGatewayResponse Int
Creating a Request
data CreateCarrierGateway Source #
See: newCreateCarrierGateway
smart constructor.
CreateCarrierGateway' | |
|
Instances
newCreateCarrierGateway Source #
Create a value of CreateCarrierGateway
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:
CreateCarrierGateway
, createCarrierGateway_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
How to ensure idempotency.
$sel:dryRun:CreateCarrierGateway'
, createCarrierGateway_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
.
CreateCarrierGateway
, createCarrierGateway_tagSpecifications
- The tags to associate with the carrier gateway.
CreateCarrierGateway
, createCarrierGateway_vpcId
- The ID of the VPC to associate with the carrier gateway.
Request Lenses
createCarrierGateway_clientToken :: Lens' CreateCarrierGateway (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
createCarrierGateway_dryRun :: Lens' CreateCarrierGateway (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
.
createCarrierGateway_tagSpecifications :: Lens' CreateCarrierGateway (Maybe [TagSpecification]) Source #
The tags to associate with the carrier gateway.
createCarrierGateway_vpcId :: Lens' CreateCarrierGateway Text Source #
The ID of the VPC to associate with the carrier gateway.
Destructuring the Response
data CreateCarrierGatewayResponse Source #
See: newCreateCarrierGatewayResponse
smart constructor.
CreateCarrierGatewayResponse' | |
|
Instances
newCreateCarrierGatewayResponse Source #
Create a value of CreateCarrierGatewayResponse
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:carrierGateway:CreateCarrierGatewayResponse'
, createCarrierGatewayResponse_carrierGateway
- Information about the carrier gateway.
$sel:httpStatus:CreateCarrierGatewayResponse'
, createCarrierGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createCarrierGatewayResponse_carrierGateway :: Lens' CreateCarrierGatewayResponse (Maybe CarrierGateway) Source #
Information about the carrier gateway.
createCarrierGatewayResponse_httpStatus :: Lens' CreateCarrierGatewayResponse Int Source #
The response's http status code.