aws-sdk-cloudwatchevents 1.32.0 → 1.37.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01e6bef957bfde6779a4940999120738a761dd282ea1114b65449d8cc81bdce5
|
4
|
+
data.tar.gz: b8880ad923ae03e661233d6f8f76a2937702901ae21c1e399c52956e5a5cb0f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9600824ee5d5a424476fa003e56bd4be7cb639f9335721c8a728308132bb3a5e8be0266f4a2aa375f98132576419bf3b8f56ab7860915afffd0e0dceb37ee45
|
7
|
+
data.tar.gz: 48e68de03e9f217cd3ae59b8c7ba23163458e3aa0d2460720368e71057b258f6e6fa171fb867132d76c6f635d4fda53136db618898218474459323aa844b23a5
|
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-cloudwatchevents/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::CloudWatchEvents
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.37.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::CloudWatchEvents
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::CloudWatchEvents
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -1210,6 +1225,18 @@ module Aws::CloudWatchEvents
|
|
1210
1225
|
# resp.targets[0].batch_parameters.array_properties.size #=> Integer
|
1211
1226
|
# resp.targets[0].batch_parameters.retry_strategy.attempts #=> Integer
|
1212
1227
|
# resp.targets[0].sqs_parameters.message_group_id #=> String
|
1228
|
+
# resp.targets[0].http_parameters.path_parameter_values #=> Array
|
1229
|
+
# resp.targets[0].http_parameters.path_parameter_values[0] #=> String
|
1230
|
+
# resp.targets[0].http_parameters.header_parameters #=> Hash
|
1231
|
+
# resp.targets[0].http_parameters.header_parameters["HeaderKey"] #=> String
|
1232
|
+
# resp.targets[0].http_parameters.query_string_parameters #=> Hash
|
1233
|
+
# resp.targets[0].http_parameters.query_string_parameters["QueryStringKey"] #=> String
|
1234
|
+
# resp.targets[0].redshift_data_parameters.secret_manager_arn #=> String
|
1235
|
+
# resp.targets[0].redshift_data_parameters.database #=> String
|
1236
|
+
# resp.targets[0].redshift_data_parameters.db_user #=> String
|
1237
|
+
# resp.targets[0].redshift_data_parameters.sql #=> String
|
1238
|
+
# resp.targets[0].redshift_data_parameters.statement_name #=> String
|
1239
|
+
# resp.targets[0].redshift_data_parameters.with_event #=> Boolean
|
1213
1240
|
# resp.next_token #=> String
|
1214
1241
|
#
|
1215
1242
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule AWS API Documentation
|
@@ -1309,9 +1336,9 @@ module Aws::CloudWatchEvents
|
|
1309
1336
|
end
|
1310
1337
|
|
1311
1338
|
# Running `PutPermission` permits the specified AWS account or AWS
|
1312
|
-
# organization to put events to the specified *event bus*.
|
1313
|
-
# Events rules in your account are triggered by
|
1314
|
-
# an event bus in your account.
|
1339
|
+
# organization to put events to the specified *event bus*. Amazon
|
1340
|
+
# EventBridge (CloudWatch Events) rules in your account are triggered by
|
1341
|
+
# these events arriving to an event bus in your account.
|
1315
1342
|
#
|
1316
1343
|
# For another account to send events to your account, that external
|
1317
1344
|
# account must have an EventBridge rule with your account's event bus
|
@@ -1574,6 +1601,10 @@ module Aws::CloudWatchEvents
|
|
1574
1601
|
#
|
1575
1602
|
# * The default event bus of another AWS account
|
1576
1603
|
#
|
1604
|
+
# * Amazon API Gateway REST APIs
|
1605
|
+
#
|
1606
|
+
# * Redshift Clusters to invoke Data API ExecuteStatement on
|
1607
|
+
#
|
1577
1608
|
# Creating rules with built-in targets is supported only in the AWS
|
1578
1609
|
# Management Console. The built-in targets are `EC2 CreateSnapshot API
|
1579
1610
|
# call`, `EC2 RebootInstances API call`, `EC2 StopInstances API call`,
|
@@ -1586,13 +1617,13 @@ module Aws::CloudWatchEvents
|
|
1586
1617
|
# you can use the `RunCommandParameters` field.
|
1587
1618
|
#
|
1588
1619
|
# To be able to make API calls against the resources that you own,
|
1589
|
-
# Amazon CloudWatch Events needs the appropriate
|
1590
|
-
# Lambda and Amazon SNS resources, EventBridge
|
1591
|
-
# policies. For EC2 instances, Kinesis data
|
1592
|
-
# Functions state machines
|
1593
|
-
# specify in the `RoleARN`
|
1594
|
-
# information, see [Authentication
|
1595
|
-
# EventBridge User Guide*.
|
1620
|
+
# Amazon EventBridge (CloudWatch Events) needs the appropriate
|
1621
|
+
# permissions. For AWS Lambda and Amazon SNS resources, EventBridge
|
1622
|
+
# relies on resource-based policies. For EC2 instances, Kinesis data
|
1623
|
+
# streams, AWS Step Functions state machines and API Gateway REST APIs,
|
1624
|
+
# EventBridge relies on IAM roles that you specify in the `RoleARN`
|
1625
|
+
# argument in `PutTargets`. For more information, see [Authentication
|
1626
|
+
# and Access Control][1] in the *Amazon EventBridge User Guide*.
|
1596
1627
|
#
|
1597
1628
|
# If another AWS account is in the same region and has granted you
|
1598
1629
|
# permission (using `PutPermission`), you can send events to that
|
@@ -1602,8 +1633,8 @@ module Aws::CloudWatchEvents
|
|
1602
1633
|
# `PutTargets`. If your account sends events to another account, your
|
1603
1634
|
# account is charged for each sent event. Each event sent to another
|
1604
1635
|
# account is charged as a custom event. The account receiving the event
|
1605
|
-
# is not charged. For more information, see [Amazon
|
1606
|
-
# Pricing][2].
|
1636
|
+
# is not charged. For more information, see [Amazon EventBridge
|
1637
|
+
# (CloudWatch Events) Pricing][2].
|
1607
1638
|
#
|
1608
1639
|
# <note markdown="1"> `Input`, `InputPath`, and `InputTransformer` are not available with
|
1609
1640
|
# `PutTarget` if the target is an event bus of a different AWS account.
|
@@ -1656,7 +1687,7 @@ module Aws::CloudWatchEvents
|
|
1656
1687
|
#
|
1657
1688
|
#
|
1658
1689
|
# [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html
|
1659
|
-
# [2]: https://aws.amazon.com/
|
1690
|
+
# [2]: https://aws.amazon.com/eventbridge/pricing/
|
1660
1691
|
# [3]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html
|
1661
1692
|
#
|
1662
1693
|
# @option params [required, String] :rule
|
@@ -1730,6 +1761,23 @@ module Aws::CloudWatchEvents
|
|
1730
1761
|
# sqs_parameters: {
|
1731
1762
|
# message_group_id: "MessageGroupId",
|
1732
1763
|
# },
|
1764
|
+
# http_parameters: {
|
1765
|
+
# path_parameter_values: ["PathParameter"],
|
1766
|
+
# header_parameters: {
|
1767
|
+
# "HeaderKey" => "HeaderValue",
|
1768
|
+
# },
|
1769
|
+
# query_string_parameters: {
|
1770
|
+
# "QueryStringKey" => "QueryStringValue",
|
1771
|
+
# },
|
1772
|
+
# },
|
1773
|
+
# redshift_data_parameters: {
|
1774
|
+
# secret_manager_arn: "RedshiftSecretManagerArn",
|
1775
|
+
# database: "Database", # required
|
1776
|
+
# db_user: "DbUser",
|
1777
|
+
# sql: "Sql", # required
|
1778
|
+
# statement_name: "StatementName",
|
1779
|
+
# with_event: false,
|
1780
|
+
# },
|
1733
1781
|
# },
|
1734
1782
|
# ],
|
1735
1783
|
# })
|
@@ -1932,7 +1980,8 @@ module Aws::CloudWatchEvents
|
|
1932
1980
|
end
|
1933
1981
|
|
1934
1982
|
# Removes one or more tags from the specified EventBridge resource. In
|
1935
|
-
# CloudWatch Events, rules and event buses can be
|
1983
|
+
# Amazon EventBridge (CloudWatch Events, rules and event buses can be
|
1984
|
+
# tagged.
|
1936
1985
|
#
|
1937
1986
|
# @option params [required, String] :resource_arn
|
1938
1987
|
# The ARN of the EventBridge resource from which you are removing tags.
|
@@ -1971,7 +2020,7 @@ module Aws::CloudWatchEvents
|
|
1971
2020
|
params: params,
|
1972
2021
|
config: config)
|
1973
2022
|
context[:gem_name] = 'aws-sdk-cloudwatchevents'
|
1974
|
-
context[:gem_version] = '1.
|
2023
|
+
context[:gem_version] = '1.37.0'
|
1975
2024
|
Seahorse::Client::Request.new(handlers, context)
|
1976
2025
|
end
|
1977
2026
|
|
@@ -29,6 +29,8 @@ module Aws::CloudWatchEvents
|
|
29
29
|
CreateEventBusResponse = Shapes::StructureShape.new(name: 'CreateEventBusResponse')
|
30
30
|
CreatePartnerEventSourceRequest = Shapes::StructureShape.new(name: 'CreatePartnerEventSourceRequest')
|
31
31
|
CreatePartnerEventSourceResponse = Shapes::StructureShape.new(name: 'CreatePartnerEventSourceResponse')
|
32
|
+
Database = Shapes::StringShape.new(name: 'Database')
|
33
|
+
DbUser = Shapes::StringShape.new(name: 'DbUser')
|
32
34
|
DeactivateEventSourceRequest = Shapes::StructureShape.new(name: 'DeactivateEventSourceRequest')
|
33
35
|
DeleteEventBusRequest = Shapes::StructureShape.new(name: 'DeleteEventBusRequest')
|
34
36
|
DeletePartnerEventSourceRequest = Shapes::StructureShape.new(name: 'DeletePartnerEventSourceRequest')
|
@@ -59,6 +61,10 @@ module Aws::CloudWatchEvents
|
|
59
61
|
EventSourceNamePrefix = Shapes::StringShape.new(name: 'EventSourceNamePrefix')
|
60
62
|
EventSourceState = Shapes::StringShape.new(name: 'EventSourceState')
|
61
63
|
EventTime = Shapes::TimestampShape.new(name: 'EventTime')
|
64
|
+
HeaderKey = Shapes::StringShape.new(name: 'HeaderKey')
|
65
|
+
HeaderParametersMap = Shapes::MapShape.new(name: 'HeaderParametersMap')
|
66
|
+
HeaderValue = Shapes::StringShape.new(name: 'HeaderValue')
|
67
|
+
HttpParameters = Shapes::StructureShape.new(name: 'HttpParameters')
|
62
68
|
InputTransformer = Shapes::StructureShape.new(name: 'InputTransformer')
|
63
69
|
InputTransformerPathKey = Shapes::StringShape.new(name: 'InputTransformerPathKey')
|
64
70
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
@@ -92,11 +98,14 @@ module Aws::CloudWatchEvents
|
|
92
98
|
NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
|
93
99
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
94
100
|
NonPartnerEventBusName = Shapes::StringShape.new(name: 'NonPartnerEventBusName')
|
101
|
+
OperationDisabledException = Shapes::StructureShape.new(name: 'OperationDisabledException')
|
95
102
|
PartnerEventSource = Shapes::StructureShape.new(name: 'PartnerEventSource')
|
96
103
|
PartnerEventSourceAccount = Shapes::StructureShape.new(name: 'PartnerEventSourceAccount')
|
97
104
|
PartnerEventSourceAccountList = Shapes::ListShape.new(name: 'PartnerEventSourceAccountList')
|
98
105
|
PartnerEventSourceList = Shapes::ListShape.new(name: 'PartnerEventSourceList')
|
99
106
|
PartnerEventSourceNamePrefix = Shapes::StringShape.new(name: 'PartnerEventSourceNamePrefix')
|
107
|
+
PathParameter = Shapes::StringShape.new(name: 'PathParameter')
|
108
|
+
PathParameterList = Shapes::ListShape.new(name: 'PathParameterList')
|
100
109
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
101
110
|
Principal = Shapes::StringShape.new(name: 'Principal')
|
102
111
|
PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
|
@@ -118,6 +127,11 @@ module Aws::CloudWatchEvents
|
|
118
127
|
PutTargetsResponse = Shapes::StructureShape.new(name: 'PutTargetsResponse')
|
119
128
|
PutTargetsResultEntry = Shapes::StructureShape.new(name: 'PutTargetsResultEntry')
|
120
129
|
PutTargetsResultEntryList = Shapes::ListShape.new(name: 'PutTargetsResultEntryList')
|
130
|
+
QueryStringKey = Shapes::StringShape.new(name: 'QueryStringKey')
|
131
|
+
QueryStringParametersMap = Shapes::MapShape.new(name: 'QueryStringParametersMap')
|
132
|
+
QueryStringValue = Shapes::StringShape.new(name: 'QueryStringValue')
|
133
|
+
RedshiftDataParameters = Shapes::StructureShape.new(name: 'RedshiftDataParameters')
|
134
|
+
RedshiftSecretManagerArn = Shapes::StringShape.new(name: 'RedshiftSecretManagerArn')
|
121
135
|
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
122
136
|
RemoveTargetsRequest = Shapes::StructureShape.new(name: 'RemoveTargetsRequest')
|
123
137
|
RemoveTargetsResponse = Shapes::StructureShape.new(name: 'RemoveTargetsResponse')
|
@@ -140,8 +154,10 @@ module Aws::CloudWatchEvents
|
|
140
154
|
RunCommandTargetValues = Shapes::ListShape.new(name: 'RunCommandTargetValues')
|
141
155
|
RunCommandTargets = Shapes::ListShape.new(name: 'RunCommandTargets')
|
142
156
|
ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
|
157
|
+
Sql = Shapes::StringShape.new(name: 'Sql')
|
143
158
|
SqsParameters = Shapes::StructureShape.new(name: 'SqsParameters')
|
144
159
|
StatementId = Shapes::StringShape.new(name: 'StatementId')
|
160
|
+
StatementName = Shapes::StringShape.new(name: 'StatementName')
|
145
161
|
String = Shapes::StringShape.new(name: 'String')
|
146
162
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
147
163
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
@@ -300,6 +316,14 @@ module Aws::CloudWatchEvents
|
|
300
316
|
|
301
317
|
EventSourceList.member = Shapes::ShapeRef.new(shape: EventSource)
|
302
318
|
|
319
|
+
HeaderParametersMap.key = Shapes::ShapeRef.new(shape: HeaderKey)
|
320
|
+
HeaderParametersMap.value = Shapes::ShapeRef.new(shape: HeaderValue)
|
321
|
+
|
322
|
+
HttpParameters.add_member(:path_parameter_values, Shapes::ShapeRef.new(shape: PathParameterList, location_name: "PathParameterValues"))
|
323
|
+
HttpParameters.add_member(:header_parameters, Shapes::ShapeRef.new(shape: HeaderParametersMap, location_name: "HeaderParameters"))
|
324
|
+
HttpParameters.add_member(:query_string_parameters, Shapes::ShapeRef.new(shape: QueryStringParametersMap, location_name: "QueryStringParameters"))
|
325
|
+
HttpParameters.struct_class = Types::HttpParameters
|
326
|
+
|
303
327
|
InputTransformer.add_member(:input_paths_map, Shapes::ShapeRef.new(shape: TransformerPaths, location_name: "InputPathsMap"))
|
304
328
|
InputTransformer.add_member(:input_template, Shapes::ShapeRef.new(shape: TransformerInput, required: true, location_name: "InputTemplate"))
|
305
329
|
InputTransformer.struct_class = Types::InputTransformer
|
@@ -392,6 +416,8 @@ module Aws::CloudWatchEvents
|
|
392
416
|
NetworkConfiguration.add_member(:awsvpc_configuration, Shapes::ShapeRef.new(shape: AwsVpcConfiguration, location_name: "awsvpcConfiguration"))
|
393
417
|
NetworkConfiguration.struct_class = Types::NetworkConfiguration
|
394
418
|
|
419
|
+
OperationDisabledException.struct_class = Types::OperationDisabledException
|
420
|
+
|
395
421
|
PartnerEventSource.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
|
396
422
|
PartnerEventSource.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
397
423
|
PartnerEventSource.struct_class = Types::PartnerEventSource
|
@@ -406,6 +432,8 @@ module Aws::CloudWatchEvents
|
|
406
432
|
|
407
433
|
PartnerEventSourceList.member = Shapes::ShapeRef.new(shape: PartnerEventSource)
|
408
434
|
|
435
|
+
PathParameterList.member = Shapes::ShapeRef.new(shape: PathParameter)
|
436
|
+
|
409
437
|
PolicyLengthExceededException.struct_class = Types::PolicyLengthExceededException
|
410
438
|
|
411
439
|
PutEventsRequest.add_member(:entries, Shapes::ShapeRef.new(shape: PutEventsRequestEntryList, required: true, location_name: "Entries"))
|
@@ -491,6 +519,17 @@ module Aws::CloudWatchEvents
|
|
491
519
|
|
492
520
|
PutTargetsResultEntryList.member = Shapes::ShapeRef.new(shape: PutTargetsResultEntry)
|
493
521
|
|
522
|
+
QueryStringParametersMap.key = Shapes::ShapeRef.new(shape: QueryStringKey)
|
523
|
+
QueryStringParametersMap.value = Shapes::ShapeRef.new(shape: QueryStringValue)
|
524
|
+
|
525
|
+
RedshiftDataParameters.add_member(:secret_manager_arn, Shapes::ShapeRef.new(shape: RedshiftSecretManagerArn, location_name: "SecretManagerArn"))
|
526
|
+
RedshiftDataParameters.add_member(:database, Shapes::ShapeRef.new(shape: Database, required: true, location_name: "Database"))
|
527
|
+
RedshiftDataParameters.add_member(:db_user, Shapes::ShapeRef.new(shape: DbUser, location_name: "DbUser"))
|
528
|
+
RedshiftDataParameters.add_member(:sql, Shapes::ShapeRef.new(shape: Sql, required: true, location_name: "Sql"))
|
529
|
+
RedshiftDataParameters.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
|
530
|
+
RedshiftDataParameters.add_member(:with_event, Shapes::ShapeRef.new(shape: Boolean, location_name: "WithEvent"))
|
531
|
+
RedshiftDataParameters.struct_class = Types::RedshiftDataParameters
|
532
|
+
|
494
533
|
RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
|
495
534
|
RemovePermissionRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: NonPartnerEventBusName, location_name: "EventBusName"))
|
496
535
|
RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
|
@@ -572,6 +611,8 @@ module Aws::CloudWatchEvents
|
|
572
611
|
Target.add_member(:ecs_parameters, Shapes::ShapeRef.new(shape: EcsParameters, location_name: "EcsParameters"))
|
573
612
|
Target.add_member(:batch_parameters, Shapes::ShapeRef.new(shape: BatchParameters, location_name: "BatchParameters"))
|
574
613
|
Target.add_member(:sqs_parameters, Shapes::ShapeRef.new(shape: SqsParameters, location_name: "SqsParameters"))
|
614
|
+
Target.add_member(:http_parameters, Shapes::ShapeRef.new(shape: HttpParameters, location_name: "HttpParameters"))
|
615
|
+
Target.add_member(:redshift_data_parameters, Shapes::ShapeRef.new(shape: RedshiftDataParameters, location_name: "RedshiftDataParameters"))
|
575
616
|
Target.struct_class = Types::Target
|
576
617
|
|
577
618
|
TargetIdList.member = Shapes::ShapeRef.new(shape: TargetId)
|
@@ -622,6 +663,7 @@ module Aws::CloudWatchEvents
|
|
622
663
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
623
664
|
o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
|
624
665
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
666
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
625
667
|
end)
|
626
668
|
|
627
669
|
api.add_operation(:create_event_bus, Seahorse::Model::Operation.new.tap do |o|
|
@@ -636,6 +678,7 @@ module Aws::CloudWatchEvents
|
|
636
678
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
637
679
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
638
680
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
681
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
639
682
|
end)
|
640
683
|
|
641
684
|
api.add_operation(:create_partner_event_source, Seahorse::Model::Operation.new.tap do |o|
|
@@ -648,6 +691,7 @@ module Aws::CloudWatchEvents
|
|
648
691
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
649
692
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
650
693
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
694
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
651
695
|
end)
|
652
696
|
|
653
697
|
api.add_operation(:deactivate_event_source, Seahorse::Model::Operation.new.tap do |o|
|
@@ -660,6 +704,7 @@ module Aws::CloudWatchEvents
|
|
660
704
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
661
705
|
o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
|
662
706
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
707
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
663
708
|
end)
|
664
709
|
|
665
710
|
api.add_operation(:delete_event_bus, Seahorse::Model::Operation.new.tap do |o|
|
@@ -680,6 +725,7 @@ module Aws::CloudWatchEvents
|
|
680
725
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
681
726
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
682
727
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
728
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
683
729
|
end)
|
684
730
|
|
685
731
|
api.add_operation(:delete_rule, Seahorse::Model::Operation.new.tap do |o|
|
@@ -712,6 +758,7 @@ module Aws::CloudWatchEvents
|
|
712
758
|
o.output = Shapes::ShapeRef.new(shape: DescribeEventSourceResponse)
|
713
759
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
714
760
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
761
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
715
762
|
end)
|
716
763
|
|
717
764
|
api.add_operation(:describe_partner_event_source, Seahorse::Model::Operation.new.tap do |o|
|
@@ -722,6 +769,7 @@ module Aws::CloudWatchEvents
|
|
722
769
|
o.output = Shapes::ShapeRef.new(shape: DescribePartnerEventSourceResponse)
|
723
770
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
724
771
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
772
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
725
773
|
end)
|
726
774
|
|
727
775
|
api.add_operation(:describe_rule, Seahorse::Model::Operation.new.tap do |o|
|
@@ -774,6 +822,7 @@ module Aws::CloudWatchEvents
|
|
774
822
|
o.input = Shapes::ShapeRef.new(shape: ListEventSourcesRequest)
|
775
823
|
o.output = Shapes::ShapeRef.new(shape: ListEventSourcesResponse)
|
776
824
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
825
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
777
826
|
end)
|
778
827
|
|
779
828
|
api.add_operation(:list_partner_event_source_accounts, Seahorse::Model::Operation.new.tap do |o|
|
@@ -784,6 +833,7 @@ module Aws::CloudWatchEvents
|
|
784
833
|
o.output = Shapes::ShapeRef.new(shape: ListPartnerEventSourceAccountsResponse)
|
785
834
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
786
835
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
836
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
787
837
|
end)
|
788
838
|
|
789
839
|
api.add_operation(:list_partner_event_sources, Seahorse::Model::Operation.new.tap do |o|
|
@@ -793,6 +843,7 @@ module Aws::CloudWatchEvents
|
|
793
843
|
o.input = Shapes::ShapeRef.new(shape: ListPartnerEventSourcesRequest)
|
794
844
|
o.output = Shapes::ShapeRef.new(shape: ListPartnerEventSourcesResponse)
|
795
845
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
846
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
796
847
|
end)
|
797
848
|
|
798
849
|
api.add_operation(:list_rule_names_by_target, Seahorse::Model::Operation.new.tap do |o|
|
@@ -851,6 +902,7 @@ module Aws::CloudWatchEvents
|
|
851
902
|
o.input = Shapes::ShapeRef.new(shape: PutPartnerEventsRequest)
|
852
903
|
o.output = Shapes::ShapeRef.new(shape: PutPartnerEventsResponse)
|
853
904
|
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
905
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationDisabledException)
|
854
906
|
end)
|
855
907
|
|
856
908
|
api.add_operation(:put_permission, Seahorse::Model::Operation.new.tap do |o|
|
@@ -33,6 +33,7 @@ module Aws::CloudWatchEvents
|
|
33
33
|
# * {InvalidStateException}
|
34
34
|
# * {LimitExceededException}
|
35
35
|
# * {ManagedRuleException}
|
36
|
+
# * {OperationDisabledException}
|
36
37
|
# * {PolicyLengthExceededException}
|
37
38
|
# * {ResourceAlreadyExistsException}
|
38
39
|
# * {ResourceNotFoundException}
|
@@ -103,6 +104,16 @@ module Aws::CloudWatchEvents
|
|
103
104
|
end
|
104
105
|
end
|
105
106
|
|
107
|
+
class OperationDisabledException < ServiceError
|
108
|
+
|
109
|
+
# @param [Seahorse::Client::RequestContext] context
|
110
|
+
# @param [String] message
|
111
|
+
# @param [Aws::CloudWatchEvents::Types::OperationDisabledException] data
|
112
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
113
|
+
super(context, message, data)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
106
117
|
class PolicyLengthExceededException < ServiceError
|
107
118
|
|
108
119
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -866,6 +866,47 @@ module Aws::CloudWatchEvents
|
|
866
866
|
include Aws::Structure
|
867
867
|
end
|
868
868
|
|
869
|
+
# These are custom parameter to be used when the target is an API
|
870
|
+
# Gateway REST APIs.
|
871
|
+
#
|
872
|
+
# @note When making an API call, you may pass HttpParameters
|
873
|
+
# data as a hash:
|
874
|
+
#
|
875
|
+
# {
|
876
|
+
# path_parameter_values: ["PathParameter"],
|
877
|
+
# header_parameters: {
|
878
|
+
# "HeaderKey" => "HeaderValue",
|
879
|
+
# },
|
880
|
+
# query_string_parameters: {
|
881
|
+
# "QueryStringKey" => "QueryStringValue",
|
882
|
+
# },
|
883
|
+
# }
|
884
|
+
#
|
885
|
+
# @!attribute [rw] path_parameter_values
|
886
|
+
# The path parameter values to be used to populate API Gateway REST
|
887
|
+
# API path wildcards ("*").
|
888
|
+
# @return [Array<String>]
|
889
|
+
#
|
890
|
+
# @!attribute [rw] header_parameters
|
891
|
+
# The headers that need to be sent as part of request invoking the API
|
892
|
+
# Gateway REST API.
|
893
|
+
# @return [Hash<String,String>]
|
894
|
+
#
|
895
|
+
# @!attribute [rw] query_string_parameters
|
896
|
+
# The query string keys/values that need to be sent as part of request
|
897
|
+
# invoking the API Gateway REST API.
|
898
|
+
# @return [Hash<String,String>]
|
899
|
+
#
|
900
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/HttpParameters AWS API Documentation
|
901
|
+
#
|
902
|
+
class HttpParameters < Struct.new(
|
903
|
+
:path_parameter_values,
|
904
|
+
:header_parameters,
|
905
|
+
:query_string_parameters)
|
906
|
+
SENSITIVE = []
|
907
|
+
include Aws::Structure
|
908
|
+
end
|
909
|
+
|
869
910
|
# Contains the parameters needed for you to provide custom input to a
|
870
911
|
# target based on one or more pieces of data extracted from the event.
|
871
912
|
#
|
@@ -1454,6 +1495,12 @@ module Aws::CloudWatchEvents
|
|
1454
1495
|
include Aws::Structure
|
1455
1496
|
end
|
1456
1497
|
|
1498
|
+
# The operation you are attempting is not available in this region.
|
1499
|
+
#
|
1500
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/OperationDisabledException AWS API Documentation
|
1501
|
+
#
|
1502
|
+
class OperationDisabledException < Aws::EmptyStructure; end
|
1503
|
+
|
1457
1504
|
# A partner event source is created by an SaaS partner. If a customer
|
1458
1505
|
# creates a partner event bus that matches this event source, that AWS
|
1459
1506
|
# account can receive events from the partner's applications or
|
@@ -1991,6 +2038,23 @@ module Aws::CloudWatchEvents
|
|
1991
2038
|
# sqs_parameters: {
|
1992
2039
|
# message_group_id: "MessageGroupId",
|
1993
2040
|
# },
|
2041
|
+
# http_parameters: {
|
2042
|
+
# path_parameter_values: ["PathParameter"],
|
2043
|
+
# header_parameters: {
|
2044
|
+
# "HeaderKey" => "HeaderValue",
|
2045
|
+
# },
|
2046
|
+
# query_string_parameters: {
|
2047
|
+
# "QueryStringKey" => "QueryStringValue",
|
2048
|
+
# },
|
2049
|
+
# },
|
2050
|
+
# redshift_data_parameters: {
|
2051
|
+
# secret_manager_arn: "RedshiftSecretManagerArn",
|
2052
|
+
# database: "Database", # required
|
2053
|
+
# db_user: "DbUser",
|
2054
|
+
# sql: "Sql", # required
|
2055
|
+
# statement_name: "StatementName",
|
2056
|
+
# with_event: false,
|
2057
|
+
# },
|
1994
2058
|
# },
|
1995
2059
|
# ],
|
1996
2060
|
# }
|
@@ -2061,6 +2125,64 @@ module Aws::CloudWatchEvents
|
|
2061
2125
|
include Aws::Structure
|
2062
2126
|
end
|
2063
2127
|
|
2128
|
+
# These are custom parameters to be used when the target is a Redshift
|
2129
|
+
# cluster to invoke the Redshift Data API ExecuteStatement based on
|
2130
|
+
# EventBridge events.
|
2131
|
+
#
|
2132
|
+
# @note When making an API call, you may pass RedshiftDataParameters
|
2133
|
+
# data as a hash:
|
2134
|
+
#
|
2135
|
+
# {
|
2136
|
+
# secret_manager_arn: "RedshiftSecretManagerArn",
|
2137
|
+
# database: "Database", # required
|
2138
|
+
# db_user: "DbUser",
|
2139
|
+
# sql: "Sql", # required
|
2140
|
+
# statement_name: "StatementName",
|
2141
|
+
# with_event: false,
|
2142
|
+
# }
|
2143
|
+
#
|
2144
|
+
# @!attribute [rw] secret_manager_arn
|
2145
|
+
# The name or ARN of the secret that enables access to the database.
|
2146
|
+
# Required when authenticating using AWS Secrets Manager.
|
2147
|
+
# @return [String]
|
2148
|
+
#
|
2149
|
+
# @!attribute [rw] database
|
2150
|
+
# The name of the database. Required when authenticating using
|
2151
|
+
# temporary credentials.
|
2152
|
+
# @return [String]
|
2153
|
+
#
|
2154
|
+
# @!attribute [rw] db_user
|
2155
|
+
# The database user name. Required when authenticating using temporary
|
2156
|
+
# credentials.
|
2157
|
+
# @return [String]
|
2158
|
+
#
|
2159
|
+
# @!attribute [rw] sql
|
2160
|
+
# The SQL statement text to run.
|
2161
|
+
# @return [String]
|
2162
|
+
#
|
2163
|
+
# @!attribute [rw] statement_name
|
2164
|
+
# The name of the SQL statement. You can name the SQL statement when
|
2165
|
+
# you create it to identify the query.
|
2166
|
+
# @return [String]
|
2167
|
+
#
|
2168
|
+
# @!attribute [rw] with_event
|
2169
|
+
# Indicates whether to send an event back to EventBridge after the SQL
|
2170
|
+
# statement runs.
|
2171
|
+
# @return [Boolean]
|
2172
|
+
#
|
2173
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RedshiftDataParameters AWS API Documentation
|
2174
|
+
#
|
2175
|
+
class RedshiftDataParameters < Struct.new(
|
2176
|
+
:secret_manager_arn,
|
2177
|
+
:database,
|
2178
|
+
:db_user,
|
2179
|
+
:sql,
|
2180
|
+
:statement_name,
|
2181
|
+
:with_event)
|
2182
|
+
SENSITIVE = []
|
2183
|
+
include Aws::Structure
|
2184
|
+
end
|
2185
|
+
|
2064
2186
|
# @note When making an API call, you may pass RemovePermissionRequest
|
2065
2187
|
# data as a hash:
|
2066
2188
|
#
|
@@ -2459,6 +2581,23 @@ module Aws::CloudWatchEvents
|
|
2459
2581
|
# sqs_parameters: {
|
2460
2582
|
# message_group_id: "MessageGroupId",
|
2461
2583
|
# },
|
2584
|
+
# http_parameters: {
|
2585
|
+
# path_parameter_values: ["PathParameter"],
|
2586
|
+
# header_parameters: {
|
2587
|
+
# "HeaderKey" => "HeaderValue",
|
2588
|
+
# },
|
2589
|
+
# query_string_parameters: {
|
2590
|
+
# "QueryStringKey" => "QueryStringValue",
|
2591
|
+
# },
|
2592
|
+
# },
|
2593
|
+
# redshift_data_parameters: {
|
2594
|
+
# secret_manager_arn: "RedshiftSecretManagerArn",
|
2595
|
+
# database: "Database", # required
|
2596
|
+
# db_user: "DbUser",
|
2597
|
+
# sql: "Sql", # required
|
2598
|
+
# statement_name: "StatementName",
|
2599
|
+
# with_event: false,
|
2600
|
+
# },
|
2462
2601
|
# }
|
2463
2602
|
#
|
2464
2603
|
# @!attribute [rw] id
|
@@ -2543,6 +2682,24 @@ module Aws::CloudWatchEvents
|
|
2543
2682
|
# content-based deduplication enabled.
|
2544
2683
|
# @return [Types::SqsParameters]
|
2545
2684
|
#
|
2685
|
+
# @!attribute [rw] http_parameters
|
2686
|
+
# Contains the HTTP parameters to use when the target is a API Gateway
|
2687
|
+
# REST endpoint.
|
2688
|
+
#
|
2689
|
+
# If you specify an API Gateway REST API as a target, you can use this
|
2690
|
+
# parameter to specify headers, path parameter, query string
|
2691
|
+
# keys/values as part of your target invoking request.
|
2692
|
+
# @return [Types::HttpParameters]
|
2693
|
+
#
|
2694
|
+
# @!attribute [rw] redshift_data_parameters
|
2695
|
+
# Contains the Redshift Data API parameters to use when the target is
|
2696
|
+
# a Redshift cluster.
|
2697
|
+
#
|
2698
|
+
# If you specify a Redshift Cluster as a Target, you can use this to
|
2699
|
+
# specify parameters to invoke the Redshift Data API ExecuteStatement
|
2700
|
+
# based on EventBridge events.
|
2701
|
+
# @return [Types::RedshiftDataParameters]
|
2702
|
+
#
|
2546
2703
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target AWS API Documentation
|
2547
2704
|
#
|
2548
2705
|
class Target < Struct.new(
|
@@ -2556,7 +2713,9 @@ module Aws::CloudWatchEvents
|
|
2556
2713
|
:run_command_parameters,
|
2557
2714
|
:ecs_parameters,
|
2558
2715
|
:batch_parameters,
|
2559
|
-
:sqs_parameters
|
2716
|
+
:sqs_parameters,
|
2717
|
+
:http_parameters,
|
2718
|
+
:redshift_data_parameters)
|
2560
2719
|
SENSITIVE = []
|
2561
2720
|
include Aws::Structure
|
2562
2721
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatchevents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.37.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.109.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|