| 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 |
Amazonka.ApiGatewayV2.ExportApi
Description
- - | Undocumented operation.
Synopsis
- data ExportApi = ExportApi' {
- exportVersion :: Maybe Text
- includeExtensions :: Maybe Bool
- stageName :: Maybe Text
- specification :: Text
- outputType :: Text
- apiId :: Text
- newExportApi :: Text -> Text -> Text -> ExportApi
- exportApi_exportVersion :: Lens' ExportApi (Maybe Text)
- exportApi_includeExtensions :: Lens' ExportApi (Maybe Bool)
- exportApi_stageName :: Lens' ExportApi (Maybe Text)
- exportApi_specification :: Lens' ExportApi Text
- exportApi_outputType :: Lens' ExportApi Text
- exportApi_apiId :: Lens' ExportApi Text
- data ExportApiResponse = ExportApiResponse' {
- body :: Maybe ByteString
- httpStatus :: Int
- newExportApiResponse :: Int -> ExportApiResponse
- exportApiResponse_body :: Lens' ExportApiResponse (Maybe ByteString)
- exportApiResponse_httpStatus :: Lens' ExportApiResponse Int
Creating a Request
See: newExportApi smart constructor.
Constructors
| ExportApi' | |
Fields
| |
Instances
Create a value of ExportApi 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:exportVersion:ExportApi', exportApi_exportVersion - The version of the API Gateway export algorithm. API Gateway uses the
latest version by default. Currently, the only supported version is 1.0.
$sel:includeExtensions:ExportApi', exportApi_includeExtensions - Specifies whether to include
API Gateway extensions
in the exported API definition. API Gateway extensions are included by
default.
ExportApi, exportApi_stageName - The name of the API stage to export. If you don't specify this
property, a representation of the latest API configuration is exported.
$sel:specification:ExportApi', exportApi_specification - The version of the API specification to use. OAS30, for OpenAPI 3.0, is
the only supported value.
$sel:outputType:ExportApi', exportApi_outputType - The output type of the exported definition file. Valid values are JSON
and YAML.
ExportApi, exportApi_apiId - The API identifier.
Request Lenses
exportApi_exportVersion :: Lens' ExportApi (Maybe Text) Source #
The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.
exportApi_includeExtensions :: Lens' ExportApi (Maybe Bool) Source #
Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.
exportApi_stageName :: Lens' ExportApi (Maybe Text) Source #
The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.
exportApi_specification :: Lens' ExportApi Text Source #
The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
exportApi_outputType :: Lens' ExportApi Text Source #
The output type of the exported definition file. Valid values are JSON and YAML.
Destructuring the Response
data ExportApiResponse Source #
See: newExportApiResponse smart constructor.
Constructors
| ExportApiResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> ExportApiResponse |
Create a value of ExportApiResponse 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:body:ExportApiResponse', exportApiResponse_body - Undocumented member.
$sel:httpStatus:ExportApiResponse', exportApiResponse_httpStatus - The response's http status code.
Response Lenses
exportApiResponse_body :: Lens' ExportApiResponse (Maybe ByteString) Source #
Undocumented member.
exportApiResponse_httpStatus :: Lens' ExportApiResponse Int Source #
The response's http status code.