| 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.APIGateway.CreateDocumentationVersion
Description
Creates a documentation version
Synopsis
- data CreateDocumentationVersion = CreateDocumentationVersion' {}
- newCreateDocumentationVersion :: Text -> Text -> CreateDocumentationVersion
- createDocumentationVersion_description :: Lens' CreateDocumentationVersion (Maybe Text)
- createDocumentationVersion_stageName :: Lens' CreateDocumentationVersion (Maybe Text)
- createDocumentationVersion_restApiId :: Lens' CreateDocumentationVersion Text
- createDocumentationVersion_documentationVersion :: Lens' CreateDocumentationVersion Text
- data DocumentationVersion = DocumentationVersion' {
- createdDate :: Maybe POSIX
- description :: Maybe Text
- version :: Maybe Text
- newDocumentationVersion :: DocumentationVersion
- documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime)
- documentationVersion_description :: Lens' DocumentationVersion (Maybe Text)
- documentationVersion_version :: Lens' DocumentationVersion (Maybe Text)
Creating a Request
data CreateDocumentationVersion Source #
Creates a new documentation version of a given API.
See: newCreateDocumentationVersion smart constructor.
Constructors
| CreateDocumentationVersion' | |
Fields
| |
Instances
newCreateDocumentationVersion Source #
Arguments
| :: 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:
CreateDocumentationVersion, createDocumentationVersion_description - A description about the new documentation snapshot.
CreateDocumentationVersion, createDocumentationVersion_stageName - The stage name to be associated with the new documentation snapshot.
CreateDocumentationVersion, createDocumentationVersion_restApiId - The string identifier of the associated RestApi.
CreateDocumentationVersion, createDocumentationVersion_documentationVersion - The version identifier of the new snapshot.
Request Lenses
createDocumentationVersion_description :: Lens' CreateDocumentationVersion (Maybe Text) Source #
A description about the new documentation snapshot.
createDocumentationVersion_stageName :: Lens' CreateDocumentationVersion (Maybe Text) Source #
The stage name to be associated with the new documentation snapshot.
createDocumentationVersion_restApiId :: Lens' CreateDocumentationVersion Text Source #
The string identifier of the associated RestApi.
createDocumentationVersion_documentationVersion :: Lens' CreateDocumentationVersion Text Source #
The version identifier of the new snapshot.
Destructuring the Response
data DocumentationVersion Source #
A snapshot of the documentation of an API.
See: newDocumentationVersion smart constructor.
Constructors
| DocumentationVersion' | |
Fields
| |
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:description:DocumentationVersion', documentationVersion_description - The description of the API documentation snapshot.
$sel:version:DocumentationVersion', documentationVersion_version - The version identifier of the API documentation snapshot.
Response Lenses
documentationVersion_createdDate :: Lens' DocumentationVersion (Maybe UTCTime) Source #
The date when the API documentation snapshot is created.
documentationVersion_description :: Lens' DocumentationVersion (Maybe Text) Source #
The description of the API documentation snapshot.
documentationVersion_version :: Lens' DocumentationVersion (Maybe Text) Source #
The version identifier of the API documentation snapshot.