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 |
Gets an Api resource.
Synopsis
- data GetApi = GetApi' {}
- newGetApi :: Text -> GetApi
- getApi_apiId :: Lens' GetApi Text
- data GetApiResponse = GetApiResponse' {
- apiId :: Maybe Text
- disableExecuteApiEndpoint :: Maybe Bool
- apiEndpoint :: Maybe Text
- warnings :: Maybe [Text]
- createdDate :: Maybe POSIX
- name :: Maybe Text
- version :: Maybe Text
- apiGatewayManaged :: Maybe Bool
- apiKeySelectionExpression :: Maybe Text
- corsConfiguration :: Maybe Cors
- routeSelectionExpression :: Maybe Text
- importInfo :: Maybe [Text]
- disableSchemaValidation :: Maybe Bool
- description :: Maybe Text
- protocolType :: Maybe ProtocolType
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newGetApiResponse :: Int -> GetApiResponse
- getApiResponse_apiId :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_disableExecuteApiEndpoint :: Lens' GetApiResponse (Maybe Bool)
- getApiResponse_apiEndpoint :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_warnings :: Lens' GetApiResponse (Maybe [Text])
- getApiResponse_createdDate :: Lens' GetApiResponse (Maybe UTCTime)
- getApiResponse_name :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_version :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_apiGatewayManaged :: Lens' GetApiResponse (Maybe Bool)
- getApiResponse_apiKeySelectionExpression :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_corsConfiguration :: Lens' GetApiResponse (Maybe Cors)
- getApiResponse_routeSelectionExpression :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_importInfo :: Lens' GetApiResponse (Maybe [Text])
- getApiResponse_disableSchemaValidation :: Lens' GetApiResponse (Maybe Bool)
- getApiResponse_description :: Lens' GetApiResponse (Maybe Text)
- getApiResponse_protocolType :: Lens' GetApiResponse (Maybe ProtocolType)
- getApiResponse_tags :: Lens' GetApiResponse (Maybe (HashMap Text Text))
- getApiResponse_httpStatus :: Lens' GetApiResponse Int
Creating a Request
See: newGetApi
smart constructor.
Instances
Eq GetApi Source # | |
Read GetApi Source # | |
Show GetApi Source # | |
Generic GetApi Source # | |
NFData GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi | |
Hashable GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi | |
AWSRequest GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi type AWSResponse GetApi # request :: GetApi -> Request GetApi # response :: MonadResource m => Logger -> Service -> Proxy GetApi -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetApi))) # | |
ToHeaders GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi | |
ToPath GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi toPath :: GetApi -> ByteString # | |
ToQuery GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi toQuery :: GetApi -> QueryString # | |
type Rep GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi | |
type AWSResponse GetApi Source # | |
Defined in Amazonka.ApiGatewayV2.GetApi |
Create a value of GetApi
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:apiId:GetApi'
, getApi_apiId
- The API identifier.
Request Lenses
Destructuring the Response
data GetApiResponse Source #
See: newGetApiResponse
smart constructor.
GetApiResponse' | |
|
Instances
Create a value of GetApiResponse
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:apiId:GetApi'
, getApiResponse_apiId
- The API ID.
$sel:disableExecuteApiEndpoint:GetApiResponse'
, getApiResponse_disableExecuteApiEndpoint
- Specifies whether clients can invoke your API by using the default
execute-api endpoint. By default, clients can invoke your API with the
default https://{api_id}.execute-api.{region}.amazonaws.com endpoint.
To require that clients use a custom domain name to invoke your API,
disable the default endpoint.
$sel:apiEndpoint:GetApiResponse'
, getApiResponse_apiEndpoint
- The URI of the API, of the form
{api-id}.execute-api.{region}.amazonaws.com. The stage name is typically
appended to this URI to form a complete path to a deployed API stage.
$sel:warnings:GetApiResponse'
, getApiResponse_warnings
- The warning messages reported when failonwarnings is turned on during
API import.
$sel:createdDate:GetApiResponse'
, getApiResponse_createdDate
- The timestamp when the API was created.
$sel:name:GetApiResponse'
, getApiResponse_name
- The name of the API.
$sel:version:GetApiResponse'
, getApiResponse_version
- A version identifier for the API.
$sel:apiGatewayManaged:GetApiResponse'
, getApiResponse_apiGatewayManaged
- Specifies whether an API is managed by API Gateway. You can't update or
delete a managed API by using API Gateway. A managed API can be deleted
only through the tooling or service that created it.
$sel:apiKeySelectionExpression:GetApiResponse'
, getApiResponse_apiKeySelectionExpression
- An API key selection expression. Supported only for WebSocket APIs. See
API Key Selection Expressions.
$sel:corsConfiguration:GetApiResponse'
, getApiResponse_corsConfiguration
- A CORS configuration. Supported only for HTTP APIs.
$sel:routeSelectionExpression:GetApiResponse'
, getApiResponse_routeSelectionExpression
- The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression must be ${request.method} ${request.path}. If
not provided, this will be the default for HTTP APIs. This property is
required for WebSocket APIs.
$sel:importInfo:GetApiResponse'
, getApiResponse_importInfo
- The validation information during API import. This may include
particular properties of your OpenAPI definition which are ignored
during import. Supported only for HTTP APIs.
$sel:disableSchemaValidation:GetApiResponse'
, getApiResponse_disableSchemaValidation
- Avoid validating models when creating a deployment. Supported only for
WebSocket APIs.
$sel:description:GetApiResponse'
, getApiResponse_description
- The description of the API.
$sel:protocolType:GetApiResponse'
, getApiResponse_protocolType
- The API protocol.
$sel:tags:GetApiResponse'
, getApiResponse_tags
- A collection of tags associated with the API.
$sel:httpStatus:GetApiResponse'
, getApiResponse_httpStatus
- The response's http status code.
Response Lenses
getApiResponse_apiId :: Lens' GetApiResponse (Maybe Text) Source #
The API ID.
getApiResponse_disableExecuteApiEndpoint :: Lens' GetApiResponse (Maybe Bool) Source #
Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.
getApiResponse_apiEndpoint :: Lens' GetApiResponse (Maybe Text) Source #
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.
getApiResponse_warnings :: Lens' GetApiResponse (Maybe [Text]) Source #
The warning messages reported when failonwarnings is turned on during API import.
getApiResponse_createdDate :: Lens' GetApiResponse (Maybe UTCTime) Source #
The timestamp when the API was created.
getApiResponse_name :: Lens' GetApiResponse (Maybe Text) Source #
The name of the API.
getApiResponse_version :: Lens' GetApiResponse (Maybe Text) Source #
A version identifier for the API.
getApiResponse_apiGatewayManaged :: Lens' GetApiResponse (Maybe Bool) Source #
Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.
getApiResponse_apiKeySelectionExpression :: Lens' GetApiResponse (Maybe Text) Source #
An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
getApiResponse_corsConfiguration :: Lens' GetApiResponse (Maybe Cors) Source #
A CORS configuration. Supported only for HTTP APIs.
getApiResponse_routeSelectionExpression :: Lens' GetApiResponse (Maybe Text) Source #
The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.
getApiResponse_importInfo :: Lens' GetApiResponse (Maybe [Text]) Source #
The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.
getApiResponse_disableSchemaValidation :: Lens' GetApiResponse (Maybe Bool) Source #
Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
getApiResponse_description :: Lens' GetApiResponse (Maybe Text) Source #
The description of the API.
getApiResponse_protocolType :: Lens' GetApiResponse (Maybe ProtocolType) Source #
The API protocol.
getApiResponse_tags :: Lens' GetApiResponse (Maybe (HashMap Text Text)) Source #
A collection of tags associated with the API.
getApiResponse_httpStatus :: Lens' GetApiResponse Int Source #
The response's http status code.