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 |
Associates the specified Amazon Web Services Systems Manager document (SSM document) with the specified instances or targets.
When you associate a document with one or more instances using instance IDs or tags, Amazon Web Services Systems Manager Agent (SSM Agent) running on the instance processes the document and configures the instance as specified.
If you associate a document with an instance that already has an associated document, the system returns the AssociationAlreadyExists exception.
Synopsis
- data CreateAssociationBatch = CreateAssociationBatch' {}
- newCreateAssociationBatch :: NonEmpty CreateAssociationBatchRequestEntry -> CreateAssociationBatch
- createAssociationBatch_entries :: Lens' CreateAssociationBatch (NonEmpty CreateAssociationBatchRequestEntry)
- data CreateAssociationBatchResponse = CreateAssociationBatchResponse' {}
- newCreateAssociationBatchResponse :: Int -> CreateAssociationBatchResponse
- createAssociationBatchResponse_successful :: Lens' CreateAssociationBatchResponse (Maybe [AssociationDescription])
- createAssociationBatchResponse_failed :: Lens' CreateAssociationBatchResponse (Maybe [FailedCreateAssociation])
- createAssociationBatchResponse_httpStatus :: Lens' CreateAssociationBatchResponse Int
Creating a Request
data CreateAssociationBatch Source #
See: newCreateAssociationBatch
smart constructor.
CreateAssociationBatch' | |
|
Instances
newCreateAssociationBatch Source #
Create a value of CreateAssociationBatch
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:entries:CreateAssociationBatch'
, createAssociationBatch_entries
- One or more associations.
Request Lenses
createAssociationBatch_entries :: Lens' CreateAssociationBatch (NonEmpty CreateAssociationBatchRequestEntry) Source #
One or more associations.
Destructuring the Response
data CreateAssociationBatchResponse Source #
See: newCreateAssociationBatchResponse
smart constructor.
CreateAssociationBatchResponse' | |
|
Instances
newCreateAssociationBatchResponse Source #
Create a value of CreateAssociationBatchResponse
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:successful:CreateAssociationBatchResponse'
, createAssociationBatchResponse_successful
- Information about the associations that succeeded.
$sel:failed:CreateAssociationBatchResponse'
, createAssociationBatchResponse_failed
- Information about the associations that failed.
$sel:httpStatus:CreateAssociationBatchResponse'
, createAssociationBatchResponse_httpStatus
- The response's http status code.
Response Lenses
createAssociationBatchResponse_successful :: Lens' CreateAssociationBatchResponse (Maybe [AssociationDescription]) Source #
Information about the associations that succeeded.
createAssociationBatchResponse_failed :: Lens' CreateAssociationBatchResponse (Maybe [FailedCreateAssociation]) Source #
Information about the associations that failed.
createAssociationBatchResponse_httpStatus :: Lens' CreateAssociationBatchResponse Int Source #
The response's http status code.