| 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 |
Amazonka.ApiGatewayV2.GetApiMapping
Description
Gets an API mapping.
Synopsis
- data GetApiMapping = GetApiMapping' {
- apiMappingId :: Text
- domainName :: Text
- newGetApiMapping :: Text -> Text -> GetApiMapping
- getApiMapping_apiMappingId :: Lens' GetApiMapping Text
- getApiMapping_domainName :: Lens' GetApiMapping Text
- data GetApiMappingResponse = GetApiMappingResponse' {
- stage :: Maybe Text
- apiId :: Maybe Text
- apiMappingKey :: Maybe Text
- apiMappingId :: Maybe Text
- httpStatus :: Int
- newGetApiMappingResponse :: Int -> GetApiMappingResponse
- getApiMappingResponse_stage :: Lens' GetApiMappingResponse (Maybe Text)
- getApiMappingResponse_apiId :: Lens' GetApiMappingResponse (Maybe Text)
- getApiMappingResponse_apiMappingKey :: Lens' GetApiMappingResponse (Maybe Text)
- getApiMappingResponse_apiMappingId :: Lens' GetApiMappingResponse (Maybe Text)
- getApiMappingResponse_httpStatus :: Lens' GetApiMappingResponse Int
Creating a Request
data GetApiMapping Source #
See: newGetApiMapping smart constructor.
Constructors
| GetApiMapping' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetApiMapping |
Create a value of GetApiMapping 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:apiMappingId:GetApiMapping', getApiMapping_apiMappingId - The API mapping identifier.
$sel:domainName:GetApiMapping', getApiMapping_domainName - The domain name.
Request Lenses
getApiMapping_apiMappingId :: Lens' GetApiMapping Text Source #
The API mapping identifier.
getApiMapping_domainName :: Lens' GetApiMapping Text Source #
The domain name.
Destructuring the Response
data GetApiMappingResponse Source #
See: newGetApiMappingResponse smart constructor.
Constructors
| GetApiMappingResponse' | |
Fields
| |
Instances
newGetApiMappingResponse Source #
Create a value of GetApiMappingResponse 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:GetApiMappingResponse', getApiMappingResponse_stage - The API stage.
$sel:apiId:GetApiMappingResponse', getApiMappingResponse_apiId - The API identifier.
$sel:apiMappingKey:GetApiMappingResponse', getApiMappingResponse_apiMappingKey - The API mapping key.
$sel:apiMappingId:GetApiMapping', getApiMappingResponse_apiMappingId - The API mapping identifier.
$sel:httpStatus:GetApiMappingResponse', getApiMappingResponse_httpStatus - The response's http status code.
Response Lenses
getApiMappingResponse_stage :: Lens' GetApiMappingResponse (Maybe Text) Source #
The API stage.
getApiMappingResponse_apiId :: Lens' GetApiMappingResponse (Maybe Text) Source #
The API identifier.
getApiMappingResponse_apiMappingKey :: Lens' GetApiMappingResponse (Maybe Text) Source #
The API mapping key.
getApiMappingResponse_apiMappingId :: Lens' GetApiMappingResponse (Maybe Text) Source #
The API mapping identifier.
getApiMappingResponse_httpStatus :: Lens' GetApiMappingResponse Int Source #
The response's http status code.