runCommand package:amazonka-cloudwatch-events

Creates a value of RunCommandParameters with the minimum fields required to make a request. Use one of the following lenses to modify other fields as desired:
  • rcpRunCommandTargets - Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
Creates a value of RunCommandTarget with the minimum fields required to make a request. Use one of the following lenses to modify other fields as desired:
  • rctKey - Can be either tag: tag-key or InstanceIds .
  • rctValues - 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.
This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command. See: runCommandParameters smart constructor.
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. See: runCommandTarget smart constructor.
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
Parameters used when you are using the rule to invoke Amazon EC2 Run Command.