Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Gets the contents of the specified Systems Manager document.
- getDocument :: Text -> GetDocument
- data GetDocument
- gdDocumentFormat :: Lens' GetDocument (Maybe DocumentFormat)
- gdDocumentVersion :: Lens' GetDocument (Maybe Text)
- gdName :: Lens' GetDocument Text
- getDocumentResponse :: Int -> GetDocumentResponse
- data GetDocumentResponse
- gdrsDocumentType :: Lens' GetDocumentResponse (Maybe DocumentType)
- gdrsContent :: Lens' GetDocumentResponse (Maybe Text)
- gdrsDocumentFormat :: Lens' GetDocumentResponse (Maybe DocumentFormat)
- gdrsName :: Lens' GetDocumentResponse (Maybe Text)
- gdrsDocumentVersion :: Lens' GetDocumentResponse (Maybe Text)
- gdrsResponseStatus :: Lens' GetDocumentResponse Int
Creating a Request
:: Text | |
-> GetDocument |
Creates a value of GetDocument
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdDocumentFormat
- Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.gdDocumentVersion
- The document version for which you want information.gdName
- The name of the Systems Manager document.
data GetDocument Source #
See: getDocument
smart constructor.
Request Lenses
gdDocumentFormat :: Lens' GetDocument (Maybe DocumentFormat) Source #
Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.
gdDocumentVersion :: Lens' GetDocument (Maybe Text) Source #
The document version for which you want information.
Destructuring the Response
Creates a value of GetDocumentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdrsDocumentType
- The document type.gdrsContent
- The contents of the Systems Manager document.gdrsDocumentFormat
- The document format, either JSON or YAML.gdrsName
- The name of the Systems Manager document.gdrsDocumentVersion
- The document version.gdrsResponseStatus
- -- | The response status code.
data GetDocumentResponse Source #
See: getDocumentResponse
smart constructor.
Response Lenses
gdrsDocumentType :: Lens' GetDocumentResponse (Maybe DocumentType) Source #
The document type.
gdrsContent :: Lens' GetDocumentResponse (Maybe Text) Source #
The contents of the Systems Manager document.
gdrsDocumentFormat :: Lens' GetDocumentResponse (Maybe DocumentFormat) Source #
The document format, either JSON or YAML.
gdrsName :: Lens' GetDocumentResponse (Maybe Text) Source #
The name of the Systems Manager document.
gdrsDocumentVersion :: Lens' GetDocumentResponse (Maybe Text) Source #
The document version.
gdrsResponseStatus :: Lens' GetDocumentResponse Int Source #
- - | The response status code.