Copyright | (c) 2013-2021 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 |
Updates one or more values for an SSM document.
Synopsis
- data UpdateDocument = UpdateDocument' {}
- newUpdateDocument :: Text -> Text -> UpdateDocument
- updateDocument_attachments :: Lens' UpdateDocument (Maybe [AttachmentsSource])
- updateDocument_versionName :: Lens' UpdateDocument (Maybe Text)
- updateDocument_targetType :: Lens' UpdateDocument (Maybe Text)
- updateDocument_documentFormat :: Lens' UpdateDocument (Maybe DocumentFormat)
- updateDocument_documentVersion :: Lens' UpdateDocument (Maybe Text)
- updateDocument_displayName :: Lens' UpdateDocument (Maybe Text)
- updateDocument_content :: Lens' UpdateDocument Text
- updateDocument_name :: Lens' UpdateDocument Text
- data UpdateDocumentResponse = UpdateDocumentResponse' {}
- newUpdateDocumentResponse :: Int -> UpdateDocumentResponse
- updateDocumentResponse_documentDescription :: Lens' UpdateDocumentResponse (Maybe DocumentDescription)
- updateDocumentResponse_httpStatus :: Lens' UpdateDocumentResponse Int
Creating a Request
data UpdateDocument Source #
See: newUpdateDocument
smart constructor.
UpdateDocument' | |
|
Instances
Create a value of UpdateDocument
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attachments:UpdateDocument'
, updateDocument_attachments
- A list of key-value pairs that describe attachments to a version of a
document.
$sel:versionName:UpdateDocument'
, updateDocument_versionName
- An optional field specifying the version of the artifact you are
updating with the document. For example, "Release 12, Update 6". This
value is unique across all versions of a document, and can't be
changed.
$sel:targetType:UpdateDocument'
, updateDocument_targetType
- Specify a new target type for the document.
$sel:documentFormat:UpdateDocument'
, updateDocument_documentFormat
- Specify the document format for the new document version. Systems
Manager supports JSON and YAML documents. JSON is the default format.
$sel:documentVersion:UpdateDocument'
, updateDocument_documentVersion
- The version of the document that you want to update. Currently, Systems
Manager supports updating only the latest version of the document. You
can specify the version number of the latest version or use the
$LATEST
variable.
$sel:displayName:UpdateDocument'
, updateDocument_displayName
- The friendly name of the SSM document that you want to update. This
value can differ for each version of the document. If you don't specify
a value for this parameter in your request, the existing value is
applied to the new document version.
$sel:content:UpdateDocument'
, updateDocument_content
- A valid JSON or YAML string.
$sel:name:UpdateDocument'
, updateDocument_name
- The name of the SSM document that you want to update.
Request Lenses
updateDocument_attachments :: Lens' UpdateDocument (Maybe [AttachmentsSource]) Source #
A list of key-value pairs that describe attachments to a version of a document.
updateDocument_versionName :: Lens' UpdateDocument (Maybe Text) Source #
An optional field specifying the version of the artifact you are updating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and can't be changed.
updateDocument_targetType :: Lens' UpdateDocument (Maybe Text) Source #
Specify a new target type for the document.
updateDocument_documentFormat :: Lens' UpdateDocument (Maybe DocumentFormat) Source #
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
updateDocument_documentVersion :: Lens' UpdateDocument (Maybe Text) Source #
The version of the document that you want to update. Currently, Systems
Manager supports updating only the latest version of the document. You
can specify the version number of the latest version or use the
$LATEST
variable.
updateDocument_displayName :: Lens' UpdateDocument (Maybe Text) Source #
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
updateDocument_content :: Lens' UpdateDocument Text Source #
A valid JSON or YAML string.
updateDocument_name :: Lens' UpdateDocument Text Source #
The name of the SSM document that you want to update.
Destructuring the Response
data UpdateDocumentResponse Source #
See: newUpdateDocumentResponse
smart constructor.
UpdateDocumentResponse' | |
|
Instances
newUpdateDocumentResponse Source #
Create a value of UpdateDocumentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:documentDescription:UpdateDocumentResponse'
, updateDocumentResponse_documentDescription
- A description of the document that was updated.
$sel:httpStatus:UpdateDocumentResponse'
, updateDocumentResponse_httpStatus
- The response's http status code.
Response Lenses
updateDocumentResponse_documentDescription :: Lens' UpdateDocumentResponse (Maybe DocumentDescription) Source #
A description of the document that was updated.
updateDocumentResponse_httpStatus :: Lens' UpdateDocumentResponse Int Source #
The response's http status code.