Copyright | (c) 2013-2015 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 a configuration document.
After you create a configuration document, you can use CreateAssociation to associate it with one or more running instances.
See: AWS API Reference for CreateDocument.
- createDocument :: Text -> Text -> CreateDocument
- data CreateDocument
- cdContent :: Lens' CreateDocument Text
- cdName :: Lens' CreateDocument Text
- createDocumentResponse :: Int -> CreateDocumentResponse
- data CreateDocumentResponse
- cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription)
- cdrsStatus :: 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:
data CreateDocument Source
See: createDocument
smart constructor.
Request Lenses
cdContent :: Lens' CreateDocument Text Source
A valid JSON file. For more information about the contents of this file, see Configuration Document.
cdName :: Lens' CreateDocument Text Source
A name for the configuration document.
Destructuring the Response
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:
data CreateDocumentResponse Source
See: createDocumentResponse
smart constructor.
Response Lenses
cdrsDocumentDescription :: Lens' CreateDocumentResponse (Maybe DocumentDescription) Source
Information about the configuration document.
cdrsStatus :: Lens' CreateDocumentResponse Int Source
The response status code.