Class CfnAssociationPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ssm.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
Object parameters;
CfnAssociationPropsMixin cfnAssociationPropsMixin = CfnAssociationPropsMixin.Builder.create(CfnAssociationMixinProps.builder()
.applyOnlyAtCronInterval(false)
.associationName("associationName")
.automationTargetParameterName("automationTargetParameterName")
.calendarNames(List.of("calendarNames"))
.complianceSeverity("complianceSeverity")
.documentVersion("documentVersion")
.instanceId("instanceId")
.maxConcurrency("maxConcurrency")
.maxErrors("maxErrors")
.name("name")
.outputLocation(InstanceAssociationOutputLocationProperty.builder()
.s3Location(S3OutputLocationProperty.builder()
.outputS3BucketName("outputS3BucketName")
.outputS3KeyPrefix("outputS3KeyPrefix")
.outputS3Region("outputS3Region")
.build())
.build())
.parameters(parameters)
.scheduleExpression("scheduleExpression")
.scheduleOffset(123)
.syncCompliance("syncCompliance")
.targets(List.of(TargetProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.waitForSuccessTimeoutSeconds(123)
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAssociationPropsMixin.static interfaceInstanceAssociationOutputLocationis a property of the AWS::SSM::Association resource that specifies an Amazon S3 bucket where you want to store the results of this association request.static interfaceS3OutputLocationis a property of the AWS::SSM::Association resource that specifies an Amazon S3 bucket where you want to store the results of this association request.static interfaceTargetis a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in Systems Manager .Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::SSM::Association.CfnAssociationPropsMixin(CfnAssociationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::SSM::Association.protectedCfnAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAssociationMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAssociationPropsMixin
protected CfnAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAssociationPropsMixin
protected CfnAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAssociationPropsMixin
@Stability(Stable) public CfnAssociationPropsMixin(@NotNull CfnAssociationMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::SSM::Association.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAssociationPropsMixin
Create a mixin to apply properties toAWS::SSM::Association.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-