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 ImportDocumentationParts = ImportDocumentationParts' {
- mode :: Maybe PutMode
- failOnWarnings :: Maybe Bool
- restApiId :: Text
- body :: ByteString
- newImportDocumentationParts :: Text -> ByteString -> ImportDocumentationParts
- importDocumentationParts_mode :: Lens' ImportDocumentationParts (Maybe PutMode)
- importDocumentationParts_failOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool)
- importDocumentationParts_restApiId :: Lens' ImportDocumentationParts Text
- importDocumentationParts_body :: Lens' ImportDocumentationParts ByteString
- data ImportDocumentationPartsResponse = ImportDocumentationPartsResponse' {}
- newImportDocumentationPartsResponse :: Int -> ImportDocumentationPartsResponse
- importDocumentationPartsResponse_ids :: Lens' ImportDocumentationPartsResponse (Maybe [Text])
- importDocumentationPartsResponse_warnings :: Lens' ImportDocumentationPartsResponse (Maybe [Text])
- importDocumentationPartsResponse_httpStatus :: Lens' ImportDocumentationPartsResponse Int
Creating a Request
data ImportDocumentationParts Source #
Import documentation parts from an external (e.g., OpenAPI) definition file.
See: newImportDocumentationParts
smart constructor.
ImportDocumentationParts' | |
|
Instances
newImportDocumentationParts Source #
Create a value of ImportDocumentationParts
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:mode:ImportDocumentationParts'
, importDocumentationParts_mode
- A query parameter to indicate whether to overwrite (OVERWRITE
) any
existing DocumentationParts definition or to merge (MERGE
) the new
definition into the existing one. The default value is MERGE
.
$sel:failOnWarnings:ImportDocumentationParts'
, importDocumentationParts_failOnWarnings
- A query parameter to specify whether to rollback the documentation
importation (true
) or not (false
) when a warning is encountered. The
default value is false
.
$sel:restApiId:ImportDocumentationParts'
, importDocumentationParts_restApiId
- [Required] The string identifier of the associated RestApi.
$sel:body:ImportDocumentationParts'
, importDocumentationParts_body
- [Required] Raw byte array representing the to-be-imported documentation
parts. To import from an OpenAPI file, this is a JSON object.
Request Lenses
importDocumentationParts_mode :: Lens' ImportDocumentationParts (Maybe PutMode) Source #
A query parameter to indicate whether to overwrite (OVERWRITE
) any
existing DocumentationParts definition or to merge (MERGE
) the new
definition into the existing one. The default value is MERGE
.
importDocumentationParts_failOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool) Source #
A query parameter to specify whether to rollback the documentation
importation (true
) or not (false
) when a warning is encountered. The
default value is false
.
importDocumentationParts_restApiId :: Lens' ImportDocumentationParts Text Source #
- Required
- The string identifier of the associated RestApi.
importDocumentationParts_body :: Lens' ImportDocumentationParts ByteString Source #
- Required
- Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.
Destructuring the Response
data ImportDocumentationPartsResponse Source #
A collection of the imported DocumentationPart identifiers.
This is used to return the result when documentation parts in an external (e.g., OpenAPI) file are imported into API Gateway
Documenting an API, documentationpart:import, DocumentationPart
See: newImportDocumentationPartsResponse
smart constructor.
Instances
newImportDocumentationPartsResponse Source #
Create a value of ImportDocumentationPartsResponse
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:ids:ImportDocumentationPartsResponse'
, importDocumentationPartsResponse_ids
- A list of the returned documentation part identifiers.
$sel:warnings:ImportDocumentationPartsResponse'
, importDocumentationPartsResponse_warnings
- A list of warning messages reported during import of documentation
parts.
$sel:httpStatus:ImportDocumentationPartsResponse'
, importDocumentationPartsResponse_httpStatus
- The response's http status code.
Response Lenses
importDocumentationPartsResponse_ids :: Lens' ImportDocumentationPartsResponse (Maybe [Text]) Source #
A list of the returned documentation part identifiers.
importDocumentationPartsResponse_warnings :: Lens' ImportDocumentationPartsResponse (Maybe [Text]) Source #
A list of warning messages reported during import of documentation parts.
importDocumentationPartsResponse_httpStatus :: Lens' ImportDocumentationPartsResponse Int Source #
The response's http status code.