Association
Associates an SSM Document to an instance or EC2 tag.
Create a Association Resource
new Association(name: string, args?: AssociationArgs, opts?: CustomResourceOptions);def Association(resource_name, opts=None, association_name=None, automation_target_parameter_name=None, compliance_severity=None, document_version=None, instance_id=None, max_concurrency=None, max_errors=None, name=None, output_location=None, parameters=None, schedule_expression=None, targets=None, __props__=None);func NewAssociation(ctx *Context, name string, args *AssociationArgs, opts ...ResourceOption) (*Association, error)public Association(string name, AssociationArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Association Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Association resource accepts the following input properties:
- Association
Name string The descriptive name for the association.
- Automation
Target stringParameter Name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- Compliance
Severity string The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- Document
Version string The document version you want to associate with the target(s). Can be a specific version or the default version.
- Instance
Id string The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- Max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Name string
The name of the SSM document to apply.
- Output
Location AssociationOutput Location Args An output location block. Output Location is documented below.
- Parameters Dictionary<string, string>
A block of arbitrary string parameters to pass to the SSM document.
- Schedule
Expression string A cron expression when the association will be applied to the target(s).
- Targets
List<Association
Target Args> A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
- Association
Name string The descriptive name for the association.
- Automation
Target stringParameter Name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- Compliance
Severity string The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- Document
Version string The document version you want to associate with the target(s). Can be a specific version or the default version.
- Instance
Id string The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- Max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Name string
The name of the SSM document to apply.
- Output
Location AssociationOutput Location An output location block. Output Location is documented below.
- Parameters map[string]string
A block of arbitrary string parameters to pass to the SSM document.
- Schedule
Expression string A cron expression when the association will be applied to the target(s).
- Targets
[]Association
Target A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
- association
Name string The descriptive name for the association.
- automation
Target stringParameter Name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- compliance
Severity string The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- document
Version string The document version you want to associate with the target(s). Can be a specific version or the default version.
- instance
Id string The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- name string
The name of the SSM document to apply.
- output
Location AssociationOutput Location An output location block. Output Location is documented below.
- parameters {[key: string]: string}
A block of arbitrary string parameters to pass to the SSM document.
- schedule
Expression string A cron expression when the association will be applied to the target(s).
- targets
Association
Target[] A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
- association_
name str The descriptive name for the association.
- automation_
target_ strparameter_ name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- compliance_
severity str The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- document_
version str The document version you want to associate with the target(s). Can be a specific version or the default version.
- instance_
id str The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- max_
concurrency str The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- max_
errors str The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- name str
The name of the SSM document to apply.
- output_
location Dict[AssociationOutput Location] An output location block. Output Location is documented below.
- parameters Dict[str, str]
A block of arbitrary string parameters to pass to the SSM document.
- schedule_
expression str A cron expression when the association will be applied to the target(s).
- targets
List[Association
Target] A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
Outputs
All input properties are implicitly available as output properties. Additionally, the Association resource produces the following output properties:
- Association
Id string The ID of the SSM association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Association
Id string The ID of the SSM association.
- Id string
- The provider-assigned unique ID for this managed resource.
- association
Id string The ID of the SSM association.
- id string
- The provider-assigned unique ID for this managed resource.
- association_
id str The ID of the SSM association.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing Association Resource
Get an existing Association resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AssociationState, opts?: CustomResourceOptions): Associationstatic get(resource_name, id, opts=None, association_id=None, association_name=None, automation_target_parameter_name=None, compliance_severity=None, document_version=None, instance_id=None, max_concurrency=None, max_errors=None, name=None, output_location=None, parameters=None, schedule_expression=None, targets=None, __props__=None);func GetAssociation(ctx *Context, name string, id IDInput, state *AssociationState, opts ...ResourceOption) (*Association, error)public static Association Get(string name, Input<string> id, AssociationState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Association
Id string The ID of the SSM association.
- Association
Name string The descriptive name for the association.
- Automation
Target stringParameter Name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- Compliance
Severity string The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- Document
Version string The document version you want to associate with the target(s). Can be a specific version or the default version.
- Instance
Id string The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- Max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Name string
The name of the SSM document to apply.
- Output
Location AssociationOutput Location Args An output location block. Output Location is documented below.
- Parameters Dictionary<string, string>
A block of arbitrary string parameters to pass to the SSM document.
- Schedule
Expression string A cron expression when the association will be applied to the target(s).
- Targets
List<Association
Target Args> A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
- Association
Id string The ID of the SSM association.
- Association
Name string The descriptive name for the association.
- Automation
Target stringParameter Name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- Compliance
Severity string The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- Document
Version string The document version you want to associate with the target(s). Can be a specific version or the default version.
- Instance
Id string The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- Max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- Name string
The name of the SSM document to apply.
- Output
Location AssociationOutput Location An output location block. Output Location is documented below.
- Parameters map[string]string
A block of arbitrary string parameters to pass to the SSM document.
- Schedule
Expression string A cron expression when the association will be applied to the target(s).
- Targets
[]Association
Target A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
- association
Id string The ID of the SSM association.
- association
Name string The descriptive name for the association.
- automation
Target stringParameter Name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- compliance
Severity string The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- document
Version string The document version you want to associate with the target(s). Can be a specific version or the default version.
- instance
Id string The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- name string
The name of the SSM document to apply.
- output
Location AssociationOutput Location An output location block. Output Location is documented below.
- parameters {[key: string]: string}
A block of arbitrary string parameters to pass to the SSM document.
- schedule
Expression string A cron expression when the association will be applied to the target(s).
- targets
Association
Target[] A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
- association_
id str The ID of the SSM association.
- association_
name str The descriptive name for the association.
- automation_
target_ strparameter_ name Specify the target for the association. This target is required for associations that use an
Automationdocument and target resources by using rate controls.- compliance_
severity str The compliance severity for the association. Can be one of the following:
UNSPECIFIED,LOW,MEDIUM,HIGHorCRITICAL- document_
version str The document version you want to associate with the target(s). Can be a specific version or the default version.
- instance_
id str The instance ID to apply an SSM document to. Use
targetswith keyInstanceIdsfor document schema versions 2.0 and above.- max_
concurrency str The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- max_
errors str The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify a number, for example 10, or a percentage of the target set, for example 10%.
- name str
The name of the SSM document to apply.
- output_
location Dict[AssociationOutput Location] An output location block. Output Location is documented below.
- parameters Dict[str, str]
A block of arbitrary string parameters to pass to the SSM document.
- schedule_
expression str A cron expression when the association will be applied to the target(s).
- targets
List[Association
Target] A block containing the targets of the SSM association. Targets are documented below. AWS currently supports a maximum of 5 targets.
Supporting Types
AssociationOutputLocation
- S3Bucket
Name string The S3 bucket name.
- S3Key
Prefix string The S3 bucket prefix. Results stored in the root if not configured.
- S3Bucket
Name string The S3 bucket name.
- S3Key
Prefix string The S3 bucket prefix. Results stored in the root if not configured.
- s3Bucket
Name string The S3 bucket name.
- s3Key
Prefix string The S3 bucket prefix. Results stored in the root if not configured.
- s3_
bucket_ strname The S3 bucket name.
- s3_
key_ strprefix The S3 bucket prefix. Results stored in the root if not configured.
AssociationTarget
- Key string
Either
InstanceIdsortag:Tag Nameto specify an EC2 tag.- Values List<string>
A list of instance IDs or tag values. AWS currently limits this list size to one value.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.