1. Packages
  2. AWS Native
  3. API Docs
  4. ssm
  5. Association

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.ssm.Association

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    The AWS::SSM::Association resource associates an SSM document in AWS Systems Manager with EC2 instances that contain a configuration agent to process the document.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var specificInstanceIdAssociation = new AwsNative.Ssm.Association("specificInstanceIdAssociation", new()
        {
            Name = "AWS-RunShellScript",
            Targets = new[]
            {
                new AwsNative.Ssm.Inputs.AssociationTargetArgs
                {
                    Key = "InstanceIds",
                    Values = new[]
                    {
                        "i-1234567890abcdef0",
                    },
                },
            },
            Parameters = 
            {
                { "commands", new[]
                {
                    "ls",
                } },
                { "workingDirectory", new[]
                {
                    "/",
                } },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewAssociation(ctx, "specificInstanceIdAssociation", &ssm.AssociationArgs{
    			Name: pulumi.String("AWS-RunShellScript"),
    			Targets: ssm.AssociationTargetArray{
    				&ssm.AssociationTargetArgs{
    					Key: pulumi.String("InstanceIds"),
    					Values: pulumi.StringArray{
    						pulumi.String("i-1234567890abcdef0"),
    					},
    				},
    			},
    			Parameters: pulumi.StringArrayMap{
    				"commands": pulumi.StringArray{
    					pulumi.String("ls"),
    				},
    				"workingDirectory": pulumi.StringArray{
    					pulumi.String("/"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    specific_instance_id_association = aws_native.ssm.Association("specificInstanceIdAssociation",
        name="AWS-RunShellScript",
        targets=[aws_native.ssm.AssociationTargetArgs(
            key="InstanceIds",
            values=["i-1234567890abcdef0"],
        )],
        parameters={
            "commands": ["ls"],
            "workingDirectory": ["/"],
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const specificInstanceIdAssociation = new aws_native.ssm.Association("specificInstanceIdAssociation", {
        name: "AWS-RunShellScript",
        targets: [{
            key: "InstanceIds",
            values: ["i-1234567890abcdef0"],
        }],
        parameters: {
            commands: ["ls"],
            workingDirectory: ["/"],
        },
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var specificInstanceIdAssociation = new AwsNative.Ssm.Association("specificInstanceIdAssociation", new()
        {
            Name = "AWS-RunShellScript",
            Targets = new[]
            {
                new AwsNative.Ssm.Inputs.AssociationTargetArgs
                {
                    Key = "InstanceIds",
                    Values = new[]
                    {
                        "i-1234567890abcdef0",
                    },
                },
            },
            Parameters = 
            {
                { "commands", new[]
                {
                    "ls",
                } },
                { "workingDirectory", new[]
                {
                    "/",
                } },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewAssociation(ctx, "specificInstanceIdAssociation", &ssm.AssociationArgs{
    			Name: pulumi.String("AWS-RunShellScript"),
    			Targets: ssm.AssociationTargetArray{
    				&ssm.AssociationTargetArgs{
    					Key: pulumi.String("InstanceIds"),
    					Values: pulumi.StringArray{
    						pulumi.String("i-1234567890abcdef0"),
    					},
    				},
    			},
    			Parameters: pulumi.StringArrayMap{
    				"commands": pulumi.StringArray{
    					pulumi.String("ls"),
    				},
    				"workingDirectory": pulumi.StringArray{
    					pulumi.String("/"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    specific_instance_id_association = aws_native.ssm.Association("specificInstanceIdAssociation",
        name="AWS-RunShellScript",
        targets=[aws_native.ssm.AssociationTargetArgs(
            key="InstanceIds",
            values=["i-1234567890abcdef0"],
        )],
        parameters={
            "commands": ["ls"],
            "workingDirectory": ["/"],
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const specificInstanceIdAssociation = new aws_native.ssm.Association("specificInstanceIdAssociation", {
        name: "AWS-RunShellScript",
        targets: [{
            key: "InstanceIds",
            values: ["i-1234567890abcdef0"],
        }],
        parameters: {
            commands: ["ls"],
            workingDirectory: ["/"],
        },
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var allInstanceIdsAssociation = new AwsNative.Ssm.Association("allInstanceIdsAssociation", new()
        {
            AssociationName = "UpdateSSMAgent",
            Name = "AWS-UpdateSSMAgent",
            ScheduleExpression = "cron(0 2 ? * SUN *)",
            Targets = new[]
            {
                new AwsNative.Ssm.Inputs.AssociationTargetArgs
                {
                    Key = "InstanceIds",
                    Values = new[]
                    {
                        "*",
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewAssociation(ctx, "allInstanceIdsAssociation", &ssm.AssociationArgs{
    			AssociationName:    pulumi.String("UpdateSSMAgent"),
    			Name:               pulumi.String("AWS-UpdateSSMAgent"),
    			ScheduleExpression: pulumi.String("cron(0 2 ? * SUN *)"),
    			Targets: ssm.AssociationTargetArray{
    				&ssm.AssociationTargetArgs{
    					Key: pulumi.String("InstanceIds"),
    					Values: pulumi.StringArray{
    						pulumi.String("*"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    all_instance_ids_association = aws_native.ssm.Association("allInstanceIdsAssociation",
        association_name="UpdateSSMAgent",
        name="AWS-UpdateSSMAgent",
        schedule_expression="cron(0 2 ? * SUN *)",
        targets=[aws_native.ssm.AssociationTargetArgs(
            key="InstanceIds",
            values=["*"],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const allInstanceIdsAssociation = new aws_native.ssm.Association("allInstanceIdsAssociation", {
        associationName: "UpdateSSMAgent",
        name: "AWS-UpdateSSMAgent",
        scheduleExpression: "cron(0 2 ? * SUN *)",
        targets: [{
            key: "InstanceIds",
            values: ["*"],
        }],
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var allInstanceIdsAssociation = new AwsNative.Ssm.Association("allInstanceIdsAssociation", new()
        {
            AssociationName = "UpdateSSMAgent",
            Name = "AWS-UpdateSSMAgent",
            ScheduleExpression = "cron(0 2 ? * SUN *)",
            Targets = new[]
            {
                new AwsNative.Ssm.Inputs.AssociationTargetArgs
                {
                    Key = "InstanceIds",
                    Values = new[]
                    {
                        "*",
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewAssociation(ctx, "allInstanceIdsAssociation", &ssm.AssociationArgs{
    			AssociationName:    pulumi.String("UpdateSSMAgent"),
    			Name:               pulumi.String("AWS-UpdateSSMAgent"),
    			ScheduleExpression: pulumi.String("cron(0 2 ? * SUN *)"),
    			Targets: ssm.AssociationTargetArray{
    				&ssm.AssociationTargetArgs{
    					Key: pulumi.String("InstanceIds"),
    					Values: pulumi.StringArray{
    						pulumi.String("*"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    all_instance_ids_association = aws_native.ssm.Association("allInstanceIdsAssociation",
        association_name="UpdateSSMAgent",
        name="AWS-UpdateSSMAgent",
        schedule_expression="cron(0 2 ? * SUN *)",
        targets=[aws_native.ssm.AssociationTargetArgs(
            key="InstanceIds",
            values=["*"],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const allInstanceIdsAssociation = new aws_native.ssm.Association("allInstanceIdsAssociation", {
        associationName: "UpdateSSMAgent",
        name: "AWS-UpdateSSMAgent",
        scheduleExpression: "cron(0 2 ? * SUN *)",
        targets: [{
            key: "InstanceIds",
            values: ["*"],
        }],
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstancesAssociation = new AwsNative.Ssm.Association("taggedInstancesAssociation", new()
        {
            AssociationName = "UpdateSSMAgent",
            Name = "AWS-UpdateSSMAgent",
            ScheduleExpression = "rate(7 days)",
            Targets = new[]
            {
                new AwsNative.Ssm.Inputs.AssociationTargetArgs
                {
                    Key = "tag:Environment",
                    Values = new[]
                    {
                        "Production",
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewAssociation(ctx, "taggedInstancesAssociation", &ssm.AssociationArgs{
    			AssociationName:    pulumi.String("UpdateSSMAgent"),
    			Name:               pulumi.String("AWS-UpdateSSMAgent"),
    			ScheduleExpression: pulumi.String("rate(7 days)"),
    			Targets: ssm.AssociationTargetArray{
    				&ssm.AssociationTargetArgs{
    					Key: pulumi.String("tag:Environment"),
    					Values: pulumi.StringArray{
    						pulumi.String("Production"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    tagged_instances_association = aws_native.ssm.Association("taggedInstancesAssociation",
        association_name="UpdateSSMAgent",
        name="AWS-UpdateSSMAgent",
        schedule_expression="rate(7 days)",
        targets=[aws_native.ssm.AssociationTargetArgs(
            key="tag:Environment",
            values=["Production"],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const taggedInstancesAssociation = new aws_native.ssm.Association("taggedInstancesAssociation", {
        associationName: "UpdateSSMAgent",
        name: "AWS-UpdateSSMAgent",
        scheduleExpression: "rate(7 days)",
        targets: [{
            key: "tag:Environment",
            values: ["Production"],
        }],
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var taggedInstancesAssociation = new AwsNative.Ssm.Association("taggedInstancesAssociation", new()
        {
            AssociationName = "UpdateSSMAgent",
            Name = "AWS-UpdateSSMAgent",
            ScheduleExpression = "rate(7 days)",
            Targets = new[]
            {
                new AwsNative.Ssm.Inputs.AssociationTargetArgs
                {
                    Key = "tag:Environment",
                    Values = new[]
                    {
                        "Production",
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssm.NewAssociation(ctx, "taggedInstancesAssociation", &ssm.AssociationArgs{
    			AssociationName:    pulumi.String("UpdateSSMAgent"),
    			Name:               pulumi.String("AWS-UpdateSSMAgent"),
    			ScheduleExpression: pulumi.String("rate(7 days)"),
    			Targets: ssm.AssociationTargetArray{
    				&ssm.AssociationTargetArgs{
    					Key: pulumi.String("tag:Environment"),
    					Values: pulumi.StringArray{
    						pulumi.String("Production"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    tagged_instances_association = aws_native.ssm.Association("taggedInstancesAssociation",
        association_name="UpdateSSMAgent",
        name="AWS-UpdateSSMAgent",
        schedule_expression="rate(7 days)",
        targets=[aws_native.ssm.AssociationTargetArgs(
            key="tag:Environment",
            values=["Production"],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const taggedInstancesAssociation = new aws_native.ssm.Association("taggedInstancesAssociation", {
        associationName: "UpdateSSMAgent",
        name: "AWS-UpdateSSMAgent",
        scheduleExpression: "rate(7 days)",
        targets: [{
            key: "tag:Environment",
            values: ["Production"],
        }],
    });
    

    Coming soon!

    Create Association Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Association(name: string, args?: AssociationArgs, opts?: CustomResourceOptions);
    @overload
    def Association(resource_name: str,
                    args: Optional[AssociationArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Association(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    apply_only_at_cron_interval: Optional[bool] = None,
                    association_name: Optional[str] = None,
                    automation_target_parameter_name: Optional[str] = None,
                    calendar_names: Optional[Sequence[str]] = None,
                    compliance_severity: Optional[AssociationComplianceSeverity] = None,
                    document_version: Optional[str] = None,
                    instance_id: Optional[str] = None,
                    max_concurrency: Optional[str] = None,
                    max_errors: Optional[str] = None,
                    name: Optional[str] = None,
                    output_location: Optional[AssociationInstanceAssociationOutputLocationArgs] = None,
                    parameters: Optional[Mapping[str, Sequence[str]]] = None,
                    schedule_expression: Optional[str] = None,
                    schedule_offset: Optional[int] = None,
                    sync_compliance: Optional[AssociationSyncCompliance] = None,
                    targets: Optional[Sequence[AssociationTargetArgs]] = None,
                    wait_for_success_timeout_seconds: Optional[int] = None)
    func NewAssociation(ctx *Context, name string, args *AssociationArgs, opts ...ResourceOption) (*Association, error)
    public Association(string name, AssociationArgs? args = null, CustomResourceOptions? opts = null)
    public Association(String name, AssociationArgs args)
    public Association(String name, AssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:ssm:Association
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    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.
    args AssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control 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.
    name String
    The unique name of the resource.
    args AssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const associationResource = new aws_native.ssm.Association("associationResource", {
        applyOnlyAtCronInterval: false,
        associationName: "string",
        automationTargetParameterName: "string",
        calendarNames: ["string"],
        complianceSeverity: aws_native.ssm.AssociationComplianceSeverity.Critical,
        documentVersion: "string",
        instanceId: "string",
        maxConcurrency: "string",
        maxErrors: "string",
        name: "string",
        outputLocation: {
            s3Location: {
                outputS3BucketName: "string",
                outputS3KeyPrefix: "string",
                outputS3Region: "string",
            },
        },
        parameters: {
            string: ["string"],
        },
        scheduleExpression: "string",
        scheduleOffset: 0,
        syncCompliance: aws_native.ssm.AssociationSyncCompliance.Auto,
        targets: [{
            key: "string",
            values: ["string"],
        }],
        waitForSuccessTimeoutSeconds: 0,
    });
    
    Coming soon!
    

    Association Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Association resource accepts the following input properties:

    ApplyOnlyAtCronInterval bool
    AssociationName string
    The name of the association.
    AutomationTargetParameterName string
    CalendarNames List<string>
    ComplianceSeverity Pulumi.AwsNative.Ssm.AssociationComplianceSeverity
    DocumentVersion string
    The version of the SSM document to associate with the target.
    InstanceId string
    The ID of the instance that the SSM document is associated with.
    MaxConcurrency string
    MaxErrors string
    Name string
    The name of the SSM document.
    OutputLocation Pulumi.AwsNative.Ssm.Inputs.AssociationInstanceAssociationOutputLocation
    Parameters Dictionary<string, ImmutableArray<string>>
    Parameter values that the SSM document uses at runtime.
    ScheduleExpression string
    A Cron or Rate expression that specifies when the association is applied to the target.
    ScheduleOffset int
    SyncCompliance Pulumi.AwsNative.Ssm.AssociationSyncCompliance
    Targets List<Pulumi.AwsNative.Ssm.Inputs.AssociationTarget>
    The targets that the SSM document sends commands to.
    WaitForSuccessTimeoutSeconds int
    ApplyOnlyAtCronInterval bool
    AssociationName string
    The name of the association.
    AutomationTargetParameterName string
    CalendarNames []string
    ComplianceSeverity AssociationComplianceSeverity
    DocumentVersion string
    The version of the SSM document to associate with the target.
    InstanceId string
    The ID of the instance that the SSM document is associated with.
    MaxConcurrency string
    MaxErrors string
    Name string
    The name of the SSM document.
    OutputLocation AssociationInstanceAssociationOutputLocationArgs
    Parameters map[string][]string
    Parameter values that the SSM document uses at runtime.
    ScheduleExpression string
    A Cron or Rate expression that specifies when the association is applied to the target.
    ScheduleOffset int
    SyncCompliance AssociationSyncCompliance
    Targets []AssociationTargetArgs
    The targets that the SSM document sends commands to.
    WaitForSuccessTimeoutSeconds int
    applyOnlyAtCronInterval Boolean
    associationName String
    The name of the association.
    automationTargetParameterName String
    calendarNames List<String>
    complianceSeverity AssociationComplianceSeverity
    documentVersion String
    The version of the SSM document to associate with the target.
    instanceId String
    The ID of the instance that the SSM document is associated with.
    maxConcurrency String
    maxErrors String
    name String
    The name of the SSM document.
    outputLocation AssociationInstanceAssociationOutputLocation
    parameters Map<String,List<String>>
    Parameter values that the SSM document uses at runtime.
    scheduleExpression String
    A Cron or Rate expression that specifies when the association is applied to the target.
    scheduleOffset Integer
    syncCompliance AssociationSyncCompliance
    targets List<AssociationTarget>
    The targets that the SSM document sends commands to.
    waitForSuccessTimeoutSeconds Integer
    applyOnlyAtCronInterval boolean
    associationName string
    The name of the association.
    automationTargetParameterName string
    calendarNames string[]
    complianceSeverity AssociationComplianceSeverity
    documentVersion string
    The version of the SSM document to associate with the target.
    instanceId string
    The ID of the instance that the SSM document is associated with.
    maxConcurrency string
    maxErrors string
    name string
    The name of the SSM document.
    outputLocation AssociationInstanceAssociationOutputLocation
    parameters {[key: string]: string[]}
    Parameter values that the SSM document uses at runtime.
    scheduleExpression string
    A Cron or Rate expression that specifies when the association is applied to the target.
    scheduleOffset number
    syncCompliance AssociationSyncCompliance
    targets AssociationTarget[]
    The targets that the SSM document sends commands to.
    waitForSuccessTimeoutSeconds number
    apply_only_at_cron_interval bool
    association_name str
    The name of the association.
    automation_target_parameter_name str
    calendar_names Sequence[str]
    compliance_severity AssociationComplianceSeverity
    document_version str
    The version of the SSM document to associate with the target.
    instance_id str
    The ID of the instance that the SSM document is associated with.
    max_concurrency str
    max_errors str
    name str
    The name of the SSM document.
    output_location AssociationInstanceAssociationOutputLocationArgs
    parameters Mapping[str, Sequence[str]]
    Parameter values that the SSM document uses at runtime.
    schedule_expression str
    A Cron or Rate expression that specifies when the association is applied to the target.
    schedule_offset int
    sync_compliance AssociationSyncCompliance
    targets Sequence[AssociationTargetArgs]
    The targets that the SSM document sends commands to.
    wait_for_success_timeout_seconds int
    applyOnlyAtCronInterval Boolean
    associationName String
    The name of the association.
    automationTargetParameterName String
    calendarNames List<String>
    complianceSeverity "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "UNSPECIFIED"
    documentVersion String
    The version of the SSM document to associate with the target.
    instanceId String
    The ID of the instance that the SSM document is associated with.
    maxConcurrency String
    maxErrors String
    name String
    The name of the SSM document.
    outputLocation Property Map
    parameters Map<List<String>>
    Parameter values that the SSM document uses at runtime.
    scheduleExpression String
    A Cron or Rate expression that specifies when the association is applied to the target.
    scheduleOffset Number
    syncCompliance "AUTO" | "MANUAL"
    targets List<Property Map>
    The targets that the SSM document sends commands to.
    waitForSuccessTimeoutSeconds Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Association resource produces the following output properties:

    AssociationId string
    Unique identifier of the association.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociationId string
    Unique identifier of the association.
    Id string
    The provider-assigned unique ID for this managed resource.
    associationId String
    Unique identifier of the association.
    id String
    The provider-assigned unique ID for this managed resource.
    associationId string
    Unique identifier of the association.
    id string
    The provider-assigned unique ID for this managed resource.
    association_id str
    Unique identifier of the association.
    id str
    The provider-assigned unique ID for this managed resource.
    associationId String
    Unique identifier of the association.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    AssociationComplianceSeverity, AssociationComplianceSeverityArgs

    Critical
    CRITICAL
    High
    HIGH
    Medium
    MEDIUM
    Low
    LOW
    Unspecified
    UNSPECIFIED
    AssociationComplianceSeverityCritical
    CRITICAL
    AssociationComplianceSeverityHigh
    HIGH
    AssociationComplianceSeverityMedium
    MEDIUM
    AssociationComplianceSeverityLow
    LOW
    AssociationComplianceSeverityUnspecified
    UNSPECIFIED
    Critical
    CRITICAL
    High
    HIGH
    Medium
    MEDIUM
    Low
    LOW
    Unspecified
    UNSPECIFIED
    Critical
    CRITICAL
    High
    HIGH
    Medium
    MEDIUM
    Low
    LOW
    Unspecified
    UNSPECIFIED
    CRITICAL
    CRITICAL
    HIGH
    HIGH
    MEDIUM
    MEDIUM
    LOW
    LOW
    UNSPECIFIED
    UNSPECIFIED
    "CRITICAL"
    CRITICAL
    "HIGH"
    HIGH
    "MEDIUM"
    MEDIUM
    "LOW"
    LOW
    "UNSPECIFIED"
    UNSPECIFIED

    AssociationInstanceAssociationOutputLocation, AssociationInstanceAssociationOutputLocationArgs

    AssociationS3OutputLocation, AssociationS3OutputLocationArgs

    AssociationSyncCompliance, AssociationSyncComplianceArgs

    Auto
    AUTO
    Manual
    MANUAL
    AssociationSyncComplianceAuto
    AUTO
    AssociationSyncComplianceManual
    MANUAL
    Auto
    AUTO
    Manual
    MANUAL
    Auto
    AUTO
    Manual
    MANUAL
    AUTO
    AUTO
    MANUAL
    MANUAL
    "AUTO"
    AUTO
    "MANUAL"
    MANUAL

    AssociationTarget, AssociationTargetArgs

    Key string
    Values List<string>
    Key string
    Values []string
    key String
    values List<String>
    key string
    values string[]
    key str
    values Sequence[str]
    key String
    values List<String>

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi