Class CfnMaintenanceWindowTarget.TargetsProperty
The Targets
property type specifies adding a target to a maintenance window target in AWS Systems Manager .
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SSM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TargetsProperty : Object, CfnMaintenanceWindowTarget.ITargetsProperty
Syntax (vb)
Public Class TargetsProperty
Inherits Object
Implements CfnMaintenanceWindowTarget.ITargetsProperty
Remarks
Targets
is a property of the AWS::SSM::MaintenanceWindowTarget resource.
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.AWS.SSM;
var targetsProperty = new TargetsProperty {
Key = "key",
Values = new [] { "values" }
};
Synopsis
Constructors
TargetsProperty() |
Properties
Key | User-defined criteria for sending commands that target managed nodes that meet the criteria. |
Values | User-defined criteria that maps to |
Constructors
TargetsProperty()
public TargetsProperty()
Properties
Key
User-defined criteria for sending commands that target managed nodes that meet the criteria.
public string Key { get; set; }
Property Value
System.String
Remarks
Values
User-defined criteria that maps to Key
.
public string[] Values { get; set; }
Property Value
System.String[]
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.