Skip to content
v2.273.0

RunCommandParametersProperty Struct ​

This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.

Example ​

ts
// 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 runCommandParametersProperty: events.CfnRule.RunCommandParametersProperty = {
  runCommandTargets: [{
    key: 'key',
    values: ['values'],
  }],
};

Properties ​

runCommandTargetsIResolvable | IResolvable | CfnRule.RunCommandTargetProperty[]run_command_targetstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RunCommandTargetProperty]]]runCommandTargetsIResolvableRunCommandTargetsIResolvableRunCommandTargetsinterface{}required#
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.