aws-cdk-lib.aws_events.CfnRule.RunCommandTargetProperty

interface RunCommandTargetProperty

LanguageType name
.NETAmazon.CDK.AWS.Events.CfnRule.RunCommandTargetProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnRule_RunCommandTargetProperty
Javasoftware.amazon.awscdk.services.events.CfnRule.RunCommandTargetProperty
Pythonaws_cdk.aws_events.CfnRule.RunCommandTargetProperty
TypeScript aws-cdk-lib » aws_events » CfnRule » RunCommandTargetProperty

Information about the EC2 instances that are to be sent the command, specified as key-value pairs.

Each RunCommandTarget block can include only one key, but this key may specify multiple values.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const runCommandTargetProperty: events.CfnRule.RunCommandTargetProperty = {
  key: 'key',
  values: ['values'],
};

Properties

NameTypeDescription
keystringCan be either tag: tag-key or InstanceIds .
valuesstring[]If Key is tag: tag-key , Values is a list of tag values.

key

Type: string

Can be either tag: tag-key or InstanceIds .


values

Type: string[]

If Key is tag: tag-key , Values is a list of tag values.

If Key is InstanceIds , Values is a list of Amazon EC2 instance IDs.