| Copyright | (c) 2013-2017 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 |
Network.AWS.SSM.CreateDocument
Description
Creates a Systems Manager document.
After you create a document, you can use CreateAssociation to associate it with one or more running instances.
- createDocument :: Text -> Text -> CreateDocument
- data CreateDocument
- cdDocumentType :: Lens' CreateDocument (Maybe DocumentType)
- cdContent :: Lens' CreateDocument Text
- cdName :: Lens' CreateDocument Text
- createDocumentResponse :: Int -> CreateDocumentResponse
- data CreateDocumentResponse
- cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription)
- cdrsResponseStatus :: Lens' CreateDocumentResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> CreateDocument |
Creates a value of CreateDocument with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdDocumentType- The type of document to create. Valid document types include: Policy, Automation, and Command.cdContent- A valid JSON string.cdName- A name for the Systems Manager document.
data CreateDocument Source #
See: createDocument smart constructor.
Instances
Request Lenses
cdDocumentType :: Lens' CreateDocument (Maybe DocumentType) Source #
The type of document to create. Valid document types include: Policy, Automation, and Command.
Destructuring the Response
createDocumentResponse Source #
Arguments
| :: Int | |
| -> CreateDocumentResponse |
Creates a value of CreateDocumentResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdrsDocumentDescription- Information about the Systems Manager document.cdrsResponseStatus- -- | The response status code.
data CreateDocumentResponse Source #
See: createDocumentResponse smart constructor.
Response Lenses
cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription) Source #
Information about the Systems Manager document.
cdrsResponseStatus :: Lens' CreateDocumentResponse Int Source #
- - | The response status code.