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 CreateDocumentationVersion = CreateDocumentationVersion' {}
- newCreateDocumentationVersion :: Text -> Text -> CreateDocumentationVersion
- createDocumentationVersion_stageName :: Lens' CreateDocumentationVersion (Maybe Text)
- createDocumentationVersion_description :: Lens' CreateDocumentationVersion (Maybe Text)
- createDocumentationVersion_restApiId :: Lens' CreateDocumentationVersion Text
- createDocumentationVersion_documentationVersion :: Lens' CreateDocumentationVersion Text
- data DocumentationVersion = DocumentationVersion' {
- createdDate :: Maybe POSIX
- version :: Maybe Text
- description :: Maybe Text
- newDocumentationVersion :: DocumentationVersion
- documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime)
- documentationVersion_version :: Lens' DocumentationVersion (Maybe Text)
- documentationVersion_description :: Lens' DocumentationVersion (Maybe Text)
Creating a Request
data CreateDocumentationVersion Source #
Creates a new documentation version of a given API.
See: newCreateDocumentationVersion
smart constructor.
CreateDocumentationVersion' | |
|
Instances
newCreateDocumentationVersion Source #
:: Text | |
-> Text | |
-> CreateDocumentationVersion |
Create a value of CreateDocumentationVersion
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:stageName:CreateDocumentationVersion'
, createDocumentationVersion_stageName
- The stage name to be associated with the new documentation snapshot.
$sel:description:CreateDocumentationVersion'
, createDocumentationVersion_description
- A description about the new documentation snapshot.
$sel:restApiId:CreateDocumentationVersion'
, createDocumentationVersion_restApiId
- [Required] The string identifier of the associated RestApi.
$sel:documentationVersion:CreateDocumentationVersion'
, createDocumentationVersion_documentationVersion
- [Required] The version identifier of the new snapshot.
Request Lenses
createDocumentationVersion_stageName :: Lens' CreateDocumentationVersion (Maybe Text) Source #
The stage name to be associated with the new documentation snapshot.
createDocumentationVersion_description :: Lens' CreateDocumentationVersion (Maybe Text) Source #
A description about the new documentation snapshot.
createDocumentationVersion_restApiId :: Lens' CreateDocumentationVersion Text Source #
- Required
- The string identifier of the associated RestApi.
createDocumentationVersion_documentationVersion :: Lens' CreateDocumentationVersion Text Source #
- Required
- The version identifier of the new snapshot.
Destructuring the Response
data DocumentationVersion Source #
A snapshot of the documentation of an API.
Publishing API documentation involves creating a documentation version associated with an API stage and exporting the versioned documentation to an external (e.g., OpenAPI) file.
Documenting an API, DocumentationPart, DocumentationVersions
See: newDocumentationVersion
smart constructor.
DocumentationVersion' | |
|
Instances
newDocumentationVersion :: DocumentationVersion Source #
Create a value of DocumentationVersion
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:createdDate:DocumentationVersion'
, documentationVersion_createdDate
- The date when the API documentation snapshot is created.
$sel:version:DocumentationVersion'
, documentationVersion_version
- The version identifier of the API documentation snapshot.
$sel:description:DocumentationVersion'
, documentationVersion_description
- The description of the API documentation snapshot.
Response Lenses
documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime) Source #
The date when the API documentation snapshot is created.
documentationVersion_version :: Lens' DocumentationVersion (Maybe Text) Source #
The version identifier of the API documentation snapshot.
documentationVersion_description :: Lens' DocumentationVersion (Maybe Text) Source #
The description of the API documentation snapshot.