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 |
Creates an API mapping.
Synopsis
- data CreateApiMapping = CreateApiMapping' {
- apiMappingKey :: Maybe Text
- domainName :: Text
- stage :: Text
- apiId :: Text
- newCreateApiMapping :: Text -> Text -> Text -> CreateApiMapping
- createApiMapping_apiMappingKey :: Lens' CreateApiMapping (Maybe Text)
- createApiMapping_domainName :: Lens' CreateApiMapping Text
- createApiMapping_stage :: Lens' CreateApiMapping Text
- createApiMapping_apiId :: Lens' CreateApiMapping Text
- data CreateApiMappingResponse = CreateApiMappingResponse' {
- stage :: Maybe Text
- apiId :: Maybe Text
- apiMappingKey :: Maybe Text
- apiMappingId :: Maybe Text
- httpStatus :: Int
- newCreateApiMappingResponse :: Int -> CreateApiMappingResponse
- createApiMappingResponse_stage :: Lens' CreateApiMappingResponse (Maybe Text)
- createApiMappingResponse_apiId :: Lens' CreateApiMappingResponse (Maybe Text)
- createApiMappingResponse_apiMappingKey :: Lens' CreateApiMappingResponse (Maybe Text)
- createApiMappingResponse_apiMappingId :: Lens' CreateApiMappingResponse (Maybe Text)
- createApiMappingResponse_httpStatus :: Lens' CreateApiMappingResponse Int
Creating a Request
data CreateApiMapping Source #
Creates a new ApiMapping resource to represent an API mapping.
See: newCreateApiMapping
smart constructor.
CreateApiMapping' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateApiMapping |
Create a value of CreateApiMapping
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:apiMappingKey:CreateApiMapping'
, createApiMapping_apiMappingKey
- The API mapping key.
$sel:domainName:CreateApiMapping'
, createApiMapping_domainName
- The domain name.
$sel:stage:CreateApiMapping'
, createApiMapping_stage
- The API stage.
$sel:apiId:CreateApiMapping'
, createApiMapping_apiId
- The API identifier.
Request Lenses
createApiMapping_apiMappingKey :: Lens' CreateApiMapping (Maybe Text) Source #
The API mapping key.
createApiMapping_domainName :: Lens' CreateApiMapping Text Source #
The domain name.
createApiMapping_stage :: Lens' CreateApiMapping Text Source #
The API stage.
createApiMapping_apiId :: Lens' CreateApiMapping Text Source #
The API identifier.
Destructuring the Response
data CreateApiMappingResponse Source #
See: newCreateApiMappingResponse
smart constructor.
CreateApiMappingResponse' | |
|
Instances
newCreateApiMappingResponse Source #
Create a value of CreateApiMappingResponse
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:stage:CreateApiMapping'
, createApiMappingResponse_stage
- The API stage.
$sel:apiId:CreateApiMapping'
, createApiMappingResponse_apiId
- The API identifier.
$sel:apiMappingKey:CreateApiMapping'
, createApiMappingResponse_apiMappingKey
- The API mapping key.
$sel:apiMappingId:CreateApiMappingResponse'
, createApiMappingResponse_apiMappingId
- The API mapping identifier.
$sel:httpStatus:CreateApiMappingResponse'
, createApiMappingResponse_httpStatus
- The response's http status code.
Response Lenses
createApiMappingResponse_stage :: Lens' CreateApiMappingResponse (Maybe Text) Source #
The API stage.
createApiMappingResponse_apiId :: Lens' CreateApiMappingResponse (Maybe Text) Source #
The API identifier.
createApiMappingResponse_apiMappingKey :: Lens' CreateApiMappingResponse (Maybe Text) Source #
The API mapping key.
createApiMappingResponse_apiMappingId :: Lens' CreateApiMappingResponse (Maybe Text) Source #
The API mapping identifier.
createApiMappingResponse_httpStatus :: Lens' CreateApiMappingResponse Int Source #
The response's http status code.