Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an SSM document.
After you create an SSM 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
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 SSM document.
data CreateDocument Source #
See: createDocument
smart constructor.
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 #
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 SSM document.cdrsResponseStatus
- -- | The response status code.
data CreateDocumentResponse Source #
See: createDocumentResponse
smart constructor.
Response Lenses
cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription) Source #
Information about the SSM document.
cdrsResponseStatus :: Lens' CreateDocumentResponse Int Source #
- - | The response status code.