Show / Hide Table of Contents

Class CfnAssociationPropsMixin.TargetProperty

Target is a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in Systems Manager . You can target all instances in an AWS account by specifying the InstanceIds key with a value of * . To view a JSON and a YAML example that targets all instances, see the example "Create an association for all managed instances in an AWS account " later in this page.

Inheritance
object
CfnAssociationPropsMixin.TargetProperty
Implements
CfnAssociationPropsMixin.ITargetProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.SSM
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnAssociationPropsMixin.TargetProperty : CfnAssociationPropsMixin.ITargetProperty
Syntax (vb)
Public Class CfnAssociationPropsMixin.TargetProperty Implements CfnAssociationPropsMixin.ITargetProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.SSM;

             var targetProperty = new TargetProperty {
                 Key = "key",
                 Values = new [] { "values" }
             };

Synopsis

Constructors

TargetProperty()

Target is a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in Systems Manager . You can target all instances in an AWS account by specifying the InstanceIds key with a value of * . To view a JSON and a YAML example that targets all instances, see the example "Create an association for all managed instances in an AWS account " later in this page.

Properties

Key

User-defined criteria for sending commands that target managed nodes that meet the criteria.

Values

User-defined criteria that maps to Key .

Constructors

TargetProperty()

Target is a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in Systems Manager . You can target all instances in an AWS account by specifying the InstanceIds key with a value of * . To view a JSON and a YAML example that targets all instances, see the example "Create an association for all managed instances in an AWS account " later in this page.

public TargetProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.SSM;

             var targetProperty = new TargetProperty {
                 Key = "key",
                 Values = new [] { "values" }
             };

Properties

Key

User-defined criteria for sending commands that target managed nodes that meet the criteria.

public string? Key { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-key

Values

User-defined criteria that maps to Key .

public object[]? Values { get; set; }
Property Value

object[]

Remarks

For example, if you specified tag:ServerRole , you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer .

Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-values

Type union: (either string or IAutoScalingGroupRef or IInstanceRef)[]

Implements

CfnAssociationPropsMixin.ITargetProperty
Back to top Generated by DocFX