class CfnAssociationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SSM.Mixins.CfnAssociationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsssm/mixins#CfnAssociationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.ssm.mixins.CfnAssociationPropsMixin |
Python | aws_cdk.mixins_preview.aws_ssm.mixins.CfnAssociationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_ssm » mixins » CfnAssociationPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::SSM::Association resource creates a State Manager association for your managed instances.
A State Manager association defines the state that you want to maintain on your instances. For example, an association can specify that anti-virus software must be installed and running on your instances, or that certain ports must be closed. For static targets, the association specifies a schedule for when the configuration is reapplied. For dynamic targets, such as an Resource Groups or an AWS Auto Scaling Group, State Manager applies the configuration when new instances are added to the group. The association also specifies actions to take when applying the configuration. For example, an association for anti-virus software might run once a day. If the software is not installed, then State Manager installs it. If the software is installed, but the service is not running, then the association might instruct State Manager to start the service.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-association.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as ssm_mixins } from '@aws-cdk/mixins-preview/aws-ssm';
declare const parameters: any;
const cfnAssociationPropsMixin = new ssm_mixins.CfnAssociationPropsMixin({
applyOnlyAtCronInterval: false,
associationName: 'associationName',
automationTargetParameterName: 'automationTargetParameterName',
calendarNames: ['calendarNames'],
complianceSeverity: 'complianceSeverity',
documentVersion: 'documentVersion',
instanceId: 'instanceId',
maxConcurrency: 'maxConcurrency',
maxErrors: 'maxErrors',
name: 'name',
outputLocation: {
s3Location: {
outputS3BucketName: 'outputS3BucketName',
outputS3KeyPrefix: 'outputS3KeyPrefix',
outputS3Region: 'outputS3Region',
},
},
parameters: parameters,
scheduleExpression: 'scheduleExpression',
scheduleOffset: 123,
syncCompliance: 'syncCompliance',
targets: [{
key: 'key',
values: ['values'],
}],
waitForSuccessTimeoutSeconds: 123,
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnAssociationPropsMixin(props: CfnAssociationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Association Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::SSM::Association.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript