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 |
- - | Undocumented operation.
Synopsis
- data ExportApi = ExportApi' {
- exportVersion :: Maybe Text
- stageName :: Maybe Text
- includeExtensions :: Maybe Bool
- specification :: Text
- outputType :: Text
- apiId :: Text
- newExportApi :: Text -> Text -> Text -> ExportApi
- exportApi_exportVersion :: Lens' ExportApi (Maybe Text)
- exportApi_stageName :: Lens' ExportApi (Maybe Text)
- exportApi_includeExtensions :: Lens' ExportApi (Maybe Bool)
- 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.
ExportApi' | |
|
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:stageName: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:includeExtensions:ExportApi'
, exportApi_includeExtensions
- Specifies whether to include
API Gateway extensions
in the exported API definition. API Gateway extensions are included by
default.
$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.
$sel:apiId: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_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_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_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.
ExportApiResponse' | |
|
Instances
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.