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 |
Associates the specified SSM document with the specified instances or targets.
When you associate an SSM document with one or more instances using instance IDs or tags, the 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 throws the AssociationAlreadyExists exception.
- createAssociation :: Text -> CreateAssociation
- data CreateAssociation
- caInstanceId :: Lens' CreateAssociation (Maybe Text)
- caScheduleExpression :: Lens' CreateAssociation (Maybe Text)
- caOutputLocation :: Lens' CreateAssociation (Maybe InstanceAssociationOutputLocation)
- caTargets :: Lens' CreateAssociation [Target]
- caParameters :: Lens' CreateAssociation (HashMap Text [Text])
- caDocumentVersion :: Lens' CreateAssociation (Maybe Text)
- caName :: Lens' CreateAssociation Text
- createAssociationResponse :: Int -> CreateAssociationResponse
- data CreateAssociationResponse
- crsAssociationDescription :: Lens' CreateAssociationResponse (Maybe AssociationDescription)
- crsResponseStatus :: Lens' CreateAssociationResponse Int
Creating a Request
Creates a value of CreateAssociation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
caInstanceId
- The instance ID.caScheduleExpression
- A cron expression when the association will be applied to the target(s). Supported expressions are every half, 1, 2, 4, 8 or 12 hour(s); every specified day and time of the week. For example: cron(0 030 * 11 * ? *) to run every thirty minutes; cron(0 0 04 11 * ? *) to run every four hours; and cron(0 0 10 ? * SUN *) to run every Sunday at 10 a.m.caOutputLocation
- An Amazon S3 bucket where you want to store the output details of the request. For example:"{ "S3Location": { "OutputS3Region": "region", "OutputS3BucketName": "bucket name", "OutputS3KeyPrefix": "folder name" } }"
caTargets
- The targets (either instances or tags) for the association. Instances are specified using Key=instanceids,Values=instanceid1,instanceid2. Tags are specified using Key=name,Values=value.caParameters
- The parameters for the documents runtime configuration.caDocumentVersion
- The document version you want to associate with the target(s). Can be a specific version or the default version.caName
- The name of the SSM document.
data CreateAssociation Source #
See: createAssociation
smart constructor.
Request Lenses
caInstanceId :: Lens' CreateAssociation (Maybe Text) Source #
The instance ID.
caScheduleExpression :: Lens' CreateAssociation (Maybe Text) Source #
A cron expression when the association will be applied to the target(s). Supported expressions are every half, 1, 2, 4, 8 or 12 hour(s); every specified day and time of the week. For example: cron(0 030 * 11 * ? *) to run every thirty minutes; cron(0 0 04 11 * ? *) to run every four hours; and cron(0 0 10 ? * SUN *) to run every Sunday at 10 a.m.
caOutputLocation :: Lens' CreateAssociation (Maybe InstanceAssociationOutputLocation) Source #
An Amazon S3 bucket where you want to store the output details of the request. For example: "{ "S3Location": { "OutputS3Region": "region", "OutputS3BucketName": "bucket name", "OutputS3KeyPrefix": "folder name" } }"
caTargets :: Lens' CreateAssociation [Target] Source #
The targets (either instances or tags) for the association. Instances are specified using Key=instanceids,Values=instanceid1,instanceid2. Tags are specified using Key=name,Values=value.
caParameters :: Lens' CreateAssociation (HashMap Text [Text]) Source #
The parameters for the documents runtime configuration.
caDocumentVersion :: Lens' CreateAssociation (Maybe Text) Source #
The document version you want to associate with the target(s). Can be a specific version or the default version.
Destructuring the Response
createAssociationResponse Source #
Creates a value of CreateAssociationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsAssociationDescription
- Information about the association.crsResponseStatus
- -- | The response status code.
data CreateAssociationResponse Source #
See: createAssociationResponse
smart constructor.
Response Lenses
crsAssociationDescription :: Lens' CreateAssociationResponse (Maybe AssociationDescription) Source #
Information about the association.
crsResponseStatus :: Lens' CreateAssociationResponse Int Source #
- - | The response status code.