Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates one or more values for an SSM document.
Synopsis
- data UpdateDocument = UpdateDocument' {}
- newUpdateDocument :: Text -> Text -> UpdateDocument
- updateDocument_attachments :: Lens' UpdateDocument (Maybe [AttachmentsSource])
- updateDocument_displayName :: Lens' UpdateDocument (Maybe Text)
- updateDocument_documentFormat :: Lens' UpdateDocument (Maybe DocumentFormat)
- updateDocument_documentVersion :: Lens' UpdateDocument (Maybe Text)
- updateDocument_targetType :: Lens' UpdateDocument (Maybe Text)
- updateDocument_versionName :: 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.
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.
UpdateDocument
, updateDocument_documentFormat
- Specify the document format for the new document version. Systems
Manager supports JSON and YAML documents. JSON is the default format.
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.
If you change a document version for a State Manager association,
Systems Manager immediately runs the association unless you previously
specifed the apply-only-at-cron-interval
parameter.
UpdateDocument
, updateDocument_targetType
- Specify a new target type for the document.
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.
UpdateDocument
, updateDocument_content
- A valid JSON or YAML string.
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_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_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.
If you change a document version for a State Manager association,
Systems Manager immediately runs the association unless you previously
specifed the apply-only-at-cron-interval
parameter.
updateDocument_targetType :: Lens' UpdateDocument (Maybe Text) Source #
Specify a new target type for the 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_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.