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 |
Imports an API.
Synopsis
- data ImportApi = ImportApi' {}
- newImportApi :: Text -> ImportApi
- importApi_basepath :: Lens' ImportApi (Maybe Text)
- importApi_failOnWarnings :: Lens' ImportApi (Maybe Bool)
- importApi_body :: Lens' ImportApi Text
- data ImportApiResponse = ImportApiResponse' {
- 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
- newImportApiResponse :: Int -> ImportApiResponse
- importApiResponse_apiId :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_disableExecuteApiEndpoint :: Lens' ImportApiResponse (Maybe Bool)
- importApiResponse_apiEndpoint :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_warnings :: Lens' ImportApiResponse (Maybe [Text])
- importApiResponse_createdDate :: Lens' ImportApiResponse (Maybe UTCTime)
- importApiResponse_name :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_version :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_apiGatewayManaged :: Lens' ImportApiResponse (Maybe Bool)
- importApiResponse_apiKeySelectionExpression :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_corsConfiguration :: Lens' ImportApiResponse (Maybe Cors)
- importApiResponse_routeSelectionExpression :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_importInfo :: Lens' ImportApiResponse (Maybe [Text])
- importApiResponse_disableSchemaValidation :: Lens' ImportApiResponse (Maybe Bool)
- importApiResponse_description :: Lens' ImportApiResponse (Maybe Text)
- importApiResponse_protocolType :: Lens' ImportApiResponse (Maybe ProtocolType)
- importApiResponse_tags :: Lens' ImportApiResponse (Maybe (HashMap Text Text))
- importApiResponse_httpStatus :: Lens' ImportApiResponse Int
Creating a Request
See: newImportApi
smart constructor.
ImportApi' | |
|
Instances
Create a value of ImportApi
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:basepath:ImportApi'
, importApi_basepath
- Specifies how to interpret the base path of the API during import. Valid
values are ignore, prepend, and split. The default value is ignore. To
learn more, see
Set the OpenAPI basePath Property.
Supported only for HTTP APIs.
$sel:failOnWarnings:ImportApi'
, importApi_failOnWarnings
- Specifies whether to rollback the API creation when a warning is
encountered. By default, API creation continues if a warning is
encountered.
$sel:body:ImportApi'
, importApi_body
- The OpenAPI definition. Supported only for HTTP APIs.
Request Lenses
importApi_basepath :: Lens' ImportApi (Maybe Text) Source #
Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.
importApi_failOnWarnings :: Lens' ImportApi (Maybe Bool) Source #
Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
importApi_body :: Lens' ImportApi Text Source #
The OpenAPI definition. Supported only for HTTP APIs.
Destructuring the Response
data ImportApiResponse Source #
See: newImportApiResponse
smart constructor.
ImportApiResponse' | |
|
Instances
Create a value of ImportApiResponse
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:ImportApiResponse'
, importApiResponse_apiId
- The API ID.
$sel:disableExecuteApiEndpoint:ImportApiResponse'
, importApiResponse_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:ImportApiResponse'
, importApiResponse_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:ImportApiResponse'
, importApiResponse_warnings
- The warning messages reported when failonwarnings is turned on during
API import.
$sel:createdDate:ImportApiResponse'
, importApiResponse_createdDate
- The timestamp when the API was created.
$sel:name:ImportApiResponse'
, importApiResponse_name
- The name of the API.
$sel:version:ImportApiResponse'
, importApiResponse_version
- A version identifier for the API.
$sel:apiGatewayManaged:ImportApiResponse'
, importApiResponse_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:ImportApiResponse'
, importApiResponse_apiKeySelectionExpression
- An API key selection expression. Supported only for WebSocket APIs. See
API Key Selection Expressions.
$sel:corsConfiguration:ImportApiResponse'
, importApiResponse_corsConfiguration
- A CORS configuration. Supported only for HTTP APIs.
$sel:routeSelectionExpression:ImportApiResponse'
, importApiResponse_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:ImportApiResponse'
, importApiResponse_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:ImportApiResponse'
, importApiResponse_disableSchemaValidation
- Avoid validating models when creating a deployment. Supported only for
WebSocket APIs.
$sel:description:ImportApiResponse'
, importApiResponse_description
- The description of the API.
$sel:protocolType:ImportApiResponse'
, importApiResponse_protocolType
- The API protocol.
$sel:tags:ImportApiResponse'
, importApiResponse_tags
- A collection of tags associated with the API.
$sel:httpStatus:ImportApiResponse'
, importApiResponse_httpStatus
- The response's http status code.
Response Lenses
importApiResponse_apiId :: Lens' ImportApiResponse (Maybe Text) Source #
The API ID.
importApiResponse_disableExecuteApiEndpoint :: Lens' ImportApiResponse (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.
importApiResponse_apiEndpoint :: Lens' ImportApiResponse (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.
importApiResponse_warnings :: Lens' ImportApiResponse (Maybe [Text]) Source #
The warning messages reported when failonwarnings is turned on during API import.
importApiResponse_createdDate :: Lens' ImportApiResponse (Maybe UTCTime) Source #
The timestamp when the API was created.
importApiResponse_name :: Lens' ImportApiResponse (Maybe Text) Source #
The name of the API.
importApiResponse_version :: Lens' ImportApiResponse (Maybe Text) Source #
A version identifier for the API.
importApiResponse_apiGatewayManaged :: Lens' ImportApiResponse (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.
importApiResponse_apiKeySelectionExpression :: Lens' ImportApiResponse (Maybe Text) Source #
An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
importApiResponse_corsConfiguration :: Lens' ImportApiResponse (Maybe Cors) Source #
A CORS configuration. Supported only for HTTP APIs.
importApiResponse_routeSelectionExpression :: Lens' ImportApiResponse (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.
importApiResponse_importInfo :: Lens' ImportApiResponse (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.
importApiResponse_disableSchemaValidation :: Lens' ImportApiResponse (Maybe Bool) Source #
Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
importApiResponse_description :: Lens' ImportApiResponse (Maybe Text) Source #
The description of the API.
importApiResponse_protocolType :: Lens' ImportApiResponse (Maybe ProtocolType) Source #
The API protocol.
importApiResponse_tags :: Lens' ImportApiResponse (Maybe (HashMap Text Text)) Source #
A collection of tags associated with the API.
importApiResponse_httpStatus :: Lens' ImportApiResponse Int Source #
The response's http status code.