openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 50.3 kB
JSON
{"openapi":"3.0.0","info":{"version":"2015-10-07","x-release":"v4","title":"Amazon CloudWatch Events","description":"<p>Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:</p> <ul> <li> <p>Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state.</p> </li> <li> <p>Direct specific API records from AWS CloudTrail to an Amazon Kinesis data stream for detailed analysis of potential security or availability risks.</p> </li> <li> <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.</p> </li> </ul> <p>For more information about the features of Amazon CloudWatch Events, see the <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/events\">Amazon CloudWatch Events User Guide</a>.</p>","x-logo":{"url":"https://twitter.com/awscloud/profile_image?size=original","backgroundColor":"#FFFFFF"},"termsOfService":"https://aws.amazon.com/service-terms/","contact":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com","url":"https://github.com/mermade/aws2openapi","x-twitter":"PermittedSoc"},"license":{"name":"Apache 2.0 License","url":"http://www.apache.org/licenses/"},"x-providerName":"amazonaws.com","x-serviceName":"events","x-origin":[{"contentType":"application/json","url":"https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/events-2015-10-07.normal.json","converter":{"url":"https://github.com/mermade/aws2openapi","version":"1.0.0"},"x-apisguru-direct":true}],"x-apiClientRegistration":{"url":"https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct"},"x-apisguru-categories":["cloud"],"x-preferred":true},"externalDocs":{"description":"Amazon Web Services documentation","url":"https://aws.amazon.com/events/"},"x-hasEquivalentPaths":true,"security":[{"hmac":[]}],"paths":{"/":{"post":{"operationId":"DeleteRule","description":"<p>Deletes the specified rule.</p> <p>Before you can delete the rule, you must remove all targets, using <a>RemoveTargets</a>.</p> <p>When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.</p> <p>Managed rules are rules created and managed by another AWS service on your behalf. These rules are created by those other AWS services to support functionality in those services. You can delete these rules using the <code>Force</code> option, but you should do so only if you are sure the other service is not still using that rule.</p>","responses":{"200":{"description":"Success"},"480":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}},"481":{"description":"ManagedRuleException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedRuleException"}}}},"482":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRuleRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#DescribeEventBus":{"post":{"operationId":"DescribeEventBus","description":"Displays the external AWS accounts that are permitted to write events to your account using your account's event bus, and the associated policy. To enable your account to receive events from other accounts, use <a>PutPermission</a>.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeEventBusResponse"}}}},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeEventBusRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#DescribeRule":{"post":{"operationId":"DescribeRule","description":"<p>Describes the specified rule.</p> <p>DescribeRule does not list the targets of a rule. To see the targets associated with a rule, use <a>ListTargetsByRule</a>.</p>","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeRuleResponse"}}}},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeRuleRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#DisableRule":{"post":{"operationId":"DisableRule","description":"<p>Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.</p> <p>When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.</p>","responses":{"200":{"description":"Success"},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}},"482":{"description":"ManagedRuleException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedRuleException"}}}},"483":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisableRuleRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#EnableRule":{"post":{"operationId":"EnableRule","description":"<p>Enables the specified rule. If the rule does not exist, the operation fails.</p> <p>When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take effect.</p>","responses":{"200":{"description":"Success"},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}},"482":{"description":"ManagedRuleException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedRuleException"}}}},"483":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableRuleRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#ListRuleNamesByTarget":{"post":{"operationId":"ListRuleNamesByTarget","description":"Lists the rules for the specified target. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRuleNamesByTargetResponse"}}}},"480":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRuleNamesByTargetRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#ListRules":{"post":{"operationId":"ListRules","description":"<p>Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match to the rule names.</p> <p>ListRules does not list the targets of a rule. To see the targets associated with a rule, use <a>ListTargetsByRule</a>.</p>","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRulesResponse"}}}},"480":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRulesRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#ListTargetsByRule":{"post":{"operationId":"ListTargetsByRule","description":"Lists the targets assigned to the specified rule.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTargetsByRuleResponse"}}}},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTargetsByRuleRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#PutEvents":{"post":{"operationId":"PutEvents","description":"Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutEventsResponse"}}}},"480":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutEventsRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#PutPermission":{"post":{"operationId":"PutPermission","description":"<p>Running <code>PutPermission</code> permits the specified AWS account or AWS organization to put events to your account's default <i>event bus</i>. CloudWatch Events rules in your account are triggered by these events arriving to your default event bus. </p> <p>For another account to send events to your account, that external account must have a CloudWatch Events rule with your account's default event bus as a target.</p> <p>To enable multiple AWS accounts to put events to your default event bus, run <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are members of the same AWS organization, you can run <code>PutPermission</code> once specifying <code>Principal</code> as \"*\" and specifying the AWS organization ID in <code>Condition</code>, to grant permissions to all accounts in that organization.</p> <p>If you grant permissions using an organization, then accounts in that organization must specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to add your account's event bus as a target. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html\">Sending and Receiving Events Between AWS Accounts</a> in the <i>Amazon CloudWatch Events User Guide</i>.</p> <p>The permission policy on the default event bus cannot exceed 10 KB in size.</p>","responses":{"200":{"description":"Success"},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"PolicyLengthExceededException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyLengthExceededException"}}}},"482":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}},"483":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutPermissionRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#PutRule":{"post":{"operationId":"PutRule","description":"<p>Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You can disable a rule using <a>DisableRule</a>.</p> <p>If you are updating an existing rule, the rule is replaced with what you specify in this <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>, the old values for those arguments are not kept. Instead, they are replaced with null values.</p> <p>When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Allow a short period of time for changes to take effect.</p> <p>A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule triggers on matching events as well as on a schedule.</p> <p>Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.</p> <p>In CloudWatch Events, it is possible to create rules that lead to infinite loops, where a rule is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket, and trigger software to change them to the desired state. If the rule is not written carefully, the subsequent change to the ACLs fires the rule again, creating an infinite loop.</p> <p>To prevent this, write the rules so that the triggered actions do not re-fire the same rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead of after any change. </p> <p>An infinite loop can quickly cause higher than expected charges. We recommend that you use budgeting, which alerts you when charges exceed your specified limit. For more information, see <a href=\"http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html\">Managing Your Costs with Budgets</a>.</p>","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutRuleResponse"}}}},"480":{"description":"InvalidEventPatternException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEventPatternException"}}}},"481":{"description":"LimitExceededException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitExceededException"}}}},"482":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}},"483":{"description":"ManagedRuleException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedRuleException"}}}},"484":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutRuleRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#PutTargets":{"post":{"operationId":"PutTargets","description":"<p>Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.</p> <p>Targets are the resources that are invoked when a rule is triggered.</p> <p>You can configure the following as targets for CloudWatch Events:</p> <ul> <li> <p>EC2 instances</p> </li> <li> <p>SSM Run Command</p> </li> <li> <p>SSM Automation</p> </li> <li> <p>AWS Lambda functions</p> </li> <li> <p>Data streams in Amazon Kinesis Data Streams</p> </li> <li> <p>Data delivery streams in Amazon Kinesis Data Firehose</p> </li> <li> <p>Amazon ECS tasks</p> </li> <li> <p>AWS Step Functions state machines</p> </li> <li> <p>AWS Batch jobs</p> </li> <li> <p>AWS CodeBuild projects</p> </li> <li> <p>Pipelines in AWS CodePipeline</p> </li> <li> <p>Amazon Inspector assessment templates</p> </li> <li> <p>Amazon SNS topics</p> </li> <li> <p>Amazon SQS queues, including FIFO queues</p> </li> <li> <p>The default event bus of another AWS account</p> </li> </ul> <p>Creating rules with built-in targets is supported only in the AWS Management Console. The built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances API call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances API call</code>. </p> <p>For some target types, <code>PutTargets</code> provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the <code>KinesisParameters</code> argument. To invoke a command on multiple EC2 instances with one rule, you can use the <code>RunCommandParameters</code> field.</p> <p>To be able to make API calls against the resources that you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For EC2 instances, Kinesis data streams, and AWS Step Functions state machines, CloudWatch Events relies on IAM roles that you specify in the <code>RoleARN</code> argument in <code>PutTargets</code>. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/auth-and-access-control-cwe.html\">Authentication and Access Control</a> in the <i>Amazon CloudWatch Events User Guide</i>.</p> <p>If another AWS account is in the same region and has granted you permission (using <code>PutPermission</code>), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the <code>Arn</code> value when you run <code>PutTargets</code>. If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event is not charged. For more information, see <a href=\"https://aws.amazon.com/cloudwatch/pricing/\">Amazon CloudWatch Pricing</a>.</p> <p>If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a <code>RoleArn</code> with proper permissions in the <code>Target</code> structure. For more information, see <a href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html\">Sending and Receiving Events Between AWS Accounts</a> in the <i>Amazon CloudWatch Events User Guide</i>.</p> <p>For more information about enabling cross-account events, see <a>PutPermission</a>.</p> <p> <b>Input</b>, <b>InputPath</b>, and <b>InputTransformer</b> are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event:</p> <ul> <li> <p>If none of the following arguments are specified for a target, then the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target).</p> </li> <li> <p>If <b>Input</b> is specified in the form of valid JSON, then the matched event is overridden with this constant.</p> </li> <li> <p>If <b>InputPath</b> is specified in the form of JSONPath (for example, <code>$.detail</code>), then only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed).</p> </li> <li> <p>If <b>InputTransformer</b> is specified, then one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target.</p> </li> </ul> <p>When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must use JSON dot notation, not bracket notation.</p> <p>When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect.</p> <p>This action can partially fail if too many requests are made at the same time. If that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutTargetsResponse"}}}},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}},"482":{"description":"LimitExceededException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitExceededException"}}}},"483":{"description":"ManagedRuleException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedRuleException"}}}},"484":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutTargetsRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#RemovePermission":{"post":{"operationId":"RemovePermission","description":"Revokes the permission of another AWS account to be able to put events to your default event bus. Specify the account to revoke by the <code>StatementId</code> value that you associated with the account when you granted it permission with <code>PutPermission</code>. You can find the <code>StatementId</code> by using <a>DescribeEventBus</a>.","responses":{"200":{"description":"Success"},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}},"482":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovePermissionRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#RemoveTargets":{"post":{"operationId":"RemoveTargets","description":"<p>Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked.</p> <p>When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Allow a short period of time for changes to take effect.</p> <p>This action can partially fail if too many requests are made at the same time. If that happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTargetsResponse"}}}},"480":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}},"481":{"description":"ConcurrentModificationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrentModificationException"}}}},"482":{"description":"ManagedRuleException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedRuleException"}}}},"483":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTargetsRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#TestEventPattern":{"post":{"operationId":"TestEventPattern","description":"<p>Tests whether the specified event pattern matches the provided event.</p> <p>Most services in AWS treat : or / as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match.</p>","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEventPatternResponse"}}}},"480":{"description":"InvalidEventPatternException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEventPatternException"}}}},"481":{"description":"InternalException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalException"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEventPatternRequest"}}},"required":true}},"parameters":[{"$ref":"#/components/parameters/Action"},{"$ref":"#/components/parameters/Version"},{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]}},"servers":[{"url":"https://events.amazonaws.com/"},{"url":"http://events.amazonaws.com/"}],"components":{"parameters":{"Action":{"name":"Action","in":"query","required":true,"schema":{"type":"string"}},"Version":{"name":"Version","in":"query","required":true,"schema":{"type":"string"}},"X-Amz-Content-Sha256":{"name":"X-Amz-Content-Sha256","in":"header","required":false,"schema":{"type":"string"}},"X-Amz-Date":{"name":"X-Amz-Date","in":"header","required":false,"schema":{"type":"string"}},"X-Amz-Algorithm":{"name":"X-Amz-Algorithm","in":"header","required":false,"schema":{"type":"string"}},"X-Amz-Credential":{"name":"X-Amz-Credential","in":"header","required":false,"schema":{"type":"string"}},"X-Amz-Security-Token":{"name":"X-Amz-Security-Token","in":"header","required":false,"schema":{"type":"string"}},"X-Amz-Signature":{"name":"X-Amz-Signature","in":"header","required":false,"schema":{"type":"string"}},"X-Amz-SignedHeaders":{"name":"X-Amz-SignedHeaders","in":"header","required":false,"schema":{"type":"string"}}},"securitySchemes":{"hmac":{"type":"apiKey","name":"Authorization","in":"header","description":"Amazon Signature authorization v4","x-amazon-apigateway-authtype":"awsSigv4"}},"schemas":{"DeleteRuleRequest":{"type":"object","required":["Name"],"properties":{"Name":{"$ref":"#/components/schemas/RuleName"},"Force":{"$ref":"#/components/schemas/Boolean"}}},"ConcurrentModificationException":{},"ManagedRuleException":{},"InternalException":{},"DescribeEventBusResponse":{"type":"object","properties":{"Name":{"$ref":"#/components/schemas/String"},"Arn":{"$ref":"#/components/schemas/String"},"Policy":{"$ref":"#/components/schemas/String"}}},"DescribeEventBusRequest":{"type":"object","properties":{}},"ResourceNotFoundException":{},"DescribeRuleResponse":{"type":"object","properties":{"Name":{"$ref":"#/components/schemas/RuleName"},"Arn":{"$ref":"#/components/schemas/RuleArn"},"EventPattern":{"$ref":"#/components/schemas/EventPattern"},"ScheduleExpression":{"$ref":"#/components/schemas/ScheduleExpression"},"State":{"$ref":"#/components/schemas/RuleState"},"Description":{"$ref":"#/components/schemas/RuleDescription"},"RoleArn":{"$ref":"#/components/schemas/RoleArn"},"ManagedBy":{"$ref":"#/components/schemas/ManagedBy"}}},"DescribeRuleRequest":{"type":"object","required":["Name"],"properties":{"Name":{"$ref":"#/components/schemas/RuleName"}}},"DisableRuleRequest":{"type":"object","required":["Name"],"properties":{"Name":{"$ref":"#/components/schemas/RuleName"}}},"EnableRuleRequest":{"type":"object","required":["Name"],"properties":{"Name":{"$ref":"#/components/schemas/RuleName"}}},"ListRuleNamesByTargetResponse":{"type":"object","properties":{"RuleNames":{"$ref":"#/components/schemas/RuleNameList"},"NextToken":{"$ref":"#/components/schemas/NextToken"}}},"ListRuleNamesByTargetRequest":{"type":"object","required":["TargetArn"],"properties":{"TargetArn":{"$ref":"#/components/schemas/TargetArn"},"NextToken":{"$ref":"#/components/schemas/NextToken"},"Limit":{"$ref":"#/components/schemas/LimitMax100"}}},"ListRulesResponse":{"type":"object","properties":{"Rules":{"$ref":"#/components/schemas/RuleResponseList"},"NextToken":{"$ref":"#/components/schemas/NextToken"}}},"ListRulesRequest":{"type":"object","properties":{"NamePrefix":{"$ref":"#/components/schemas/RuleName"},"NextToken":{"$ref":"#/components/schemas/NextToken"},"Limit":{"$ref":"#/components/schemas/LimitMax100"}}},"ListTargetsByRuleResponse":{"type":"object","properties":{"Targets":{"$ref":"#/components/schemas/TargetList"},"NextToken":{"$ref":"#/components/schemas/NextToken"}}},"ListTargetsByRuleRequest":{"type":"object","required":["Rule"],"properties":{"Rule":{"$ref":"#/components/schemas/RuleName"},"NextToken":{"$ref":"#/components/schemas/NextToken"},"Limit":{"$ref":"#/components/schemas/LimitMax100"}}},"PutEventsResponse":{"type":"object","properties":{"FailedEntryCount":{"$ref":"#/components/schemas/Integer"},"Entries":{"$ref":"#/components/schemas/PutEventsResultEntryList"}}},"PutEventsRequest":{"type":"object","required":["Entries"],"properties":{"Entries":{"$ref":"#/components/schemas/PutEventsRequestEntryList"}}},"PutPermissionRequest":{"type":"object","required":["Action","Principal","StatementId"],"properties":{"Action":{"$ref":"#/components/schemas/Action"},"Principal":{"$ref":"#/components/schemas/Principal"},"StatementId":{"$ref":"#/components/schemas/StatementId"},"Condition":{"$ref":"#/components/schemas/Condition"}}},"PolicyLengthExceededException":{},"PutRuleResponse":{"type":"object","properties":{"RuleArn":{"$ref":"#/components/schemas/RuleArn"}}},"PutRuleRequest":{"type":"object","required":["Name"],"properties":{"Name":{"$ref":"#/components/schemas/RuleName"},"ScheduleExpression":{"$ref":"#/components/schemas/ScheduleExpression"},"EventPattern":{"$ref":"#/components/schemas/EventPattern"},"State":{"$ref":"#/components/schemas/RuleState"},"Description":{"$ref":"#/components/schemas/RuleDescription"},"RoleArn":{"$ref":"#/components/schemas/RoleArn"}}},"InvalidEventPatternException":{},"LimitExceededException":{},"PutTargetsResponse":{"type":"object","properties":{"FailedEntryCount":{"$ref":"#/components/schemas/Integer"},"FailedEntries":{"$ref":"#/components/schemas/PutTargetsResultEntryList"}}},"PutTargetsRequest":{"type":"object","required":["Rule","Targets"],"properties":{"Rule":{"$ref":"#/components/schemas/RuleName"},"Targets":{"$ref":"#/components/schemas/TargetList"}}},"RemovePermissionRequest":{"type":"object","required":["StatementId"],"properties":{"StatementId":{"$ref":"#/components/schemas/StatementId"}}},"RemoveTargetsResponse":{"type":"object","properties":{"FailedEntryCount":{"$ref":"#/components/schemas/Integer"},"FailedEntries":{"$ref":"#/components/schemas/RemoveTargetsResultEntryList"}}},"RemoveTargetsRequest":{"type":"object","required":["Rule","Ids"],"properties":{"Rule":{"$ref":"#/components/schemas/RuleName"},"Ids":{"$ref":"#/components/schemas/TargetIdList"},"Force":{"$ref":"#/components/schemas/Boolean"}}},"TestEventPatternResponse":{"type":"object","properties":{"Result":{"$ref":"#/components/schemas/Boolean"}}},"TestEventPatternRequest":{"type":"object","required":["EventPattern","Event"],"properties":{"EventPattern":{"$ref":"#/components/schemas/EventPattern"},"Event":{"$ref":"#/components/schemas/String"}}},"Action":{"type":"string","pattern":"events:[a-zA-Z]+","minLength":1,"maxLength":64},"Arn":{"type":"string","minLength":1,"maxLength":1600},"AssignPublicIp":{"type":"string","enum":["ENABLED","DISABLED"]},"StringList":{"type":"array","items":{"$ref":"#/components/schemas/String"}},"AwsVpcConfiguration":{"type":"object","required":["Subnets"],"properties":{"Subnets":{"$ref":"#/components/schemas/StringList"},"SecurityGroups":{"$ref":"#/components/schemas/StringList"},"AssignPublicIp":{"$ref":"#/components/schemas/AssignPublicIp"}},"description":"This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the <code>awsvpc</code> network mode."},"Integer":{"type":"integer"},"BatchArrayProperties":{"type":"object","properties":{"Size":{"$ref":"#/components/schemas/Integer"}},"description":"The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an AWS Batch job."},"String":{"type":"string"},"BatchRetryStrategy":{"type":"object","properties":{"Attempts":{"$ref":"#/components/schemas/Integer"}},"description":"The retry strategy to use for failed jobs, if the target is an AWS Batch job. If you specify a retry strategy here, it overrides the retry strategy defined in the job definition."},"BatchParameters":{"type":"object","required":["JobDefinition","JobName"],"properties":{"JobDefinition":{"$ref":"#/components/schemas/String"},"JobName":{"$ref":"#/components/schemas/String"},"ArrayProperties":{"$ref":"#/components/schemas/BatchArrayProperties"},"RetryStrategy":{"$ref":"#/components/schemas/BatchRetryStrategy"}},"description":"The custom parameters to be used when the target is an AWS Batch job."},"Boolean":{"type":"boolean"},"Condition":{"type":"object","required":["Type","Key","Value"],"properties":{"Type":{"$ref":"#/components/schemas/String"},"Key":{"$ref":"#/components/schemas/String"},"Value":{"$ref":"#/components/schemas/String"}},"description":"<p>A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition. Currently, the only supported condition is membership in a certain AWS organization. The string must contain <code>Type</code>, <code>Key</code>, and <code>Value</code> fields. The <code>Value</code> field specifies the ID of the AWS organization. Following is an example value for <code>Condition</code>:</p> <p> <code>'{\"Type\" : \"StringEquals\", \"Key\": \"aws:PrincipalOrgID\", \"Value\": \"o-1234567890\"}'</code> </p>"},"RuleName":{"type":"string","pattern":"[\\.\\-_A-Za-z0-9]+","minLength":1,"maxLength":64},"RuleArn":{"type":"string","minLength":1,"maxLength":1600},"EventPattern":{"type":"string"},"ScheduleExpression":{"type":"string","maxLength":256},"RuleState":{"type":"string","enum":["ENABLED","DISABLED"]},"RuleDescription":{"type":"string","maxLength":512},"RoleArn":{"type":"string","minLength":1,"maxLength":1600},"ManagedBy":{"type":"string","minLength":1,"maxLength":128},"LimitMin1":{"type":"integer","minimum":1},"LaunchType":{"type":"string","enum":["EC2","FARGATE"]},"NetworkConfiguration":{"type":"object","properties":{"awsvpcConfiguration":{"$ref":"#/components/schemas/AwsVpcConfiguration"}},"description":"This structure specifies the network configuration for an ECS task."},"EcsParameters":{"type":"object","required":["TaskDefinitionArn"],"properties":{"TaskDefinitionArn":{"$ref":"#/components/schemas/Arn"},"TaskCount":{"$ref":"#/components/schemas/LimitMin1"},"LaunchType":{"$ref":"#/components/schemas/LaunchType"},"NetworkConfiguration":{"$ref":"#/components/schemas/NetworkConfiguration"},"PlatformVersion":{"$ref":"#/components/schemas/String"},"Group":{"$ref":"#/components/schemas/String"}},"description":"The custom parameters to be used when the target is an Amazon ECS task."},"ErrorCode":{"type":"string"},"ErrorMessage":{"type":"string"},"EventId":{"type":"string"},"EventResource":{"type":"string"},"EventResourceList":{"type":"array","items":{"$ref":"#/components/schemas/EventResource"}},"EventTime":{"type":"string","format":"date-time"},"TransformerPaths":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/InputTransformerPathKey"},"value":{"$ref":"#/components/schemas/TargetInputPath"}}}},"TransformerInput":{"type":"string","minLength":1,"maxLength":8192},"InputTransformer":{"type":"object","required":["InputTemplate"],"properties":{"InputPathsMap":{"$ref":"#/components/schemas/TransformerPaths"},"InputTemplate":{"$ref":"#/components/schemas/TransformerInput"}},"description":"Contains the parameters needed for you to provide custom input to a target based on one or more pieces of data extracted from the event."},"InputTransformerPathKey":{"type":"string","pattern":"[A-Za-z0-9\\_\\-]+","minLength":1,"maxLength":256},"TargetPartitionKeyPath":{"type":"string","maxLength":256},"KinesisParameters":{"type":"object","required":["PartitionKeyPath"],"properties":{"PartitionKeyPath":{"$ref":"#/components/schemas/TargetPartitionKeyPath"}},"description":"This object enables you to specify a JSON path to extract from the event and use as the partition key for the Amazon Kinesis data stream, so that you can control the shard to which the event goes. If you do not include this parameter, the default is to use the <code>eventId</code> as the partition key."},"LimitMax100":{"type":"integer","minimum":1,"maximum":100},"TargetArn":{"type":"string","minLength":1,"maxLength":1600},"NextToken":{"type":"string","minLength":1,"maxLength":2048},"RuleNameList":{"type":"array","items":{"$ref":"#/components/schemas/RuleName"}},"RuleResponseList":{"type":"array","items":{"$ref":"#/components/schemas/Rule"}},"TargetList":{"type":"array","items":{"$ref":"#/components/schemas/Target"},"minItems":1,"maxItems":100},"MessageGroupId":{"type":"string"},"Principal":{"type":"string","pattern":"(\\d{12}|\\*)","minLength":1,"maxLength":12},"PutEventsRequestEntryList":{"type":"array","items":{"$ref":"#/components/schemas/PutEventsRequestEntry"},"minItems":1,"maxItems":10},"PutEventsRequestEntry":{"type":"object","properties":{"Time":{"$ref":"#/components/schemas/EventTime"},"Source":{"$ref":"#/components/schemas/String"},"Resources":{"$ref":"#/components/schemas/EventResourceList"},"DetailType":{"$ref":"#/components/schemas/String"},"Detail":{"$ref":"#/components/schemas/String"}},"description":"Represents an event to be submitted."},"PutEventsResultEntryList":{"type":"array","items":{"$ref":"#/components/schemas/PutEventsResultEntry"}},"PutEventsResultEntry":{"type":"object","properties":{"EventId":{"$ref":"#/components/schemas/EventId"},"ErrorCode":{"$ref":"#/components/schemas/ErrorCode"},"ErrorMessage":{"$ref":"#/components/schemas/ErrorMessage"}},"description":"Represents an event that failed to be submitted."},"StatementId":{"type":"string","pattern":"[a-zA-Z0-9-_]+","minLength":1,"maxLength":64},"PutTargetsResultEntryList":{"type":"array","items":{"$ref":"#/components/schemas/PutTargetsResultEntry"}},"TargetId":{"type":"string","pattern":"[\\.\\-_A-Za-z0-9]+","minLength":1,"maxLength":64},"PutTargetsResultEntry":{"type":"object","properties":{"TargetId":{"$ref":"#/components/schemas/TargetId"},"ErrorCode":{"$ref":"#/components/schemas/ErrorCode"},"ErrorMessage":{"$ref":"#/components/schemas/ErrorMessage"}},"description":"Represents a target that failed to be added to a rule."},"TargetIdList":{"type":"array","items":{"$ref":"#/components/schemas/TargetId"},"minItems":1,"maxItems":100},"RemoveTargetsResultEntryList":{"type":"array","items":{"$ref":"#/components/schemas/RemoveTargetsResultEntry"}},"RemoveTargetsResultEntry":{"type":"object","properties":{"TargetId":{"$ref":"#/components/schemas/TargetId"},"ErrorCode":{"$ref":"#/components/schemas/ErrorCode"},"ErrorMessage":{"$ref":"#/components/schemas/ErrorMessage"}},"description":"Represents a target that failed to be removed from a rule."},"Rule":{"type":"object","properties":{"Name":{"$ref":"#/components/schemas/RuleName"},"Arn":{"$ref":"#/components/schemas/RuleArn"},"EventPattern":{"$ref":"#/components/schemas/EventPattern"},"State":{"$ref":"#/components/schemas/RuleState"},"Description":{"$ref":"#/components/schemas/RuleDescription"},"ScheduleExpression":{"$ref":"#/components/schemas/ScheduleExpression"},"RoleArn":{"$ref":"#/components/schemas/RoleArn"},"ManagedBy":{"$ref":"#/components/schemas/ManagedBy"}},"description":"Contains information about a rule in Amazon CloudWatch Events."},"RunCommandTargets":{"type":"array","items":{"$ref":"#/components/schemas/RunCommandTarget"},"minItems":1,"maxItems":5},"RunCommandParameters":{"type":"object","required":["RunCommandTargets"],"properties":{"RunCommandTargets":{"$ref":"#/components/schemas/RunCommandTargets"}},"description":"This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command. "},"RunCommandTargetKey":{"type":"string","pattern":"^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*$","minLength":1,"maxLength":128},"RunCommandTargetValues":{"type":"array","items":{"$ref":"#/components/schemas/RunCommandTargetValue"},"minItems":1,"maxItems":50},"RunCommandTarget":{"type":"object","required":["Key","Values"],"properties":{"Key":{"$ref":"#/components/schemas/RunCommandTargetKey"},"Values":{"$ref":"#/components/schemas/RunCommandTargetValues"}},"description":"Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each <code>RunCommandTarget</code> block can include only one key, but this key may specify multiple values."},"RunCommandTargetValue":{"type":"string","minLength":1,"maxLength":256},"SqsParameters":{"type":"object","properties":{"MessageGroupId":{"$ref":"#/components/schemas/MessageGroupId"}},"description":"This structure includes the custom parameter to be used when the target is an SQS FIFO queue."},"TargetInput":{"type":"string","maxLength":8192},"TargetInputPath":{"type":"string","maxLength":256},"Target":{"type":"object","required":["Id","Arn"],"properties":{"Id":{"$ref":"#/components/schemas/TargetId"},"Arn":{"$ref":"#/components/schemas/TargetArn"},"RoleArn":{"$ref":"#/components/schemas/RoleArn"},"Input":{"$ref":"#/components/schemas/TargetInput"},"InputPath":{"$ref":"#/components/schemas/TargetInputPath"},"InputTransformer":{"$ref":"#/components/schemas/InputTransformer"},"KinesisParameters":{"$ref":"#/components/schemas/KinesisParameters"},"RunCommandParameters":{"$ref":"#/components/schemas/RunCommandParameters"},"EcsParameters":{"$ref":"#/components/schemas/EcsParameters"},"BatchParameters":{"$ref":"#/components/schemas/BatchParameters"},"SqsParameters":{"$ref":"#/components/schemas/SqsParameters"}},"description":"<p>Targets are the resources to be invoked when a rule is triggered. For a complete list of services and resources that can be set as a target, see <a>PutTargets</a>.</p> <p>If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a <code>RoleArn</code