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 |
Network.AWS.SSM.CreateDocument
Description
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
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 SSM document.
data CreateDocument #
See: createDocument
smart constructor.
Instances
Request Lenses
cdDocumentType :: Lens' CreateDocument (Maybe DocumentType) #
The type of document to create. Valid document types include: Policy, Automation, and Command.
cdContent :: Lens' CreateDocument Text #
A valid JSON string.
cdName :: Lens' CreateDocument Text #
A name for the SSM document.
Destructuring the Response
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 SSM document.cdrsResponseStatus
- -- | The response status code.
data CreateDocumentResponse #
See: createDocumentResponse
smart constructor.
Response Lenses
cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription) #
Information about the SSM document.
cdrsResponseStatus :: Lens' CreateDocumentResponse Int #
- - | The response status code.