aws-sdk-cloudwatchevents 1.35.0 → 1.36.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: 79f56c9ff34090b27b08d2d607409102e8e3b02b56531dad4224d9e2a2a147e0
4
- data.tar.gz: dce2d6521431ccd64ff22569e0fa2046fcd3e251c124ad6b437cb874ec2ac9da
3
+ metadata.gz: 69bbf267aab4889d1ad7d5ede0360a5c403edfe4f948d2f21efd2c8f9e62e512
4
+ data.tar.gz: '0084036485379612e10fa8428181a2d53aff62e96ac247bbe0e900efdf292b9c'
5
5
  SHA512:
6
- metadata.gz: ecc917a365ce88b78698e79016128bdbcd2c60da58431b83b605859ba01b9b1a2ac328a468902ef103a6f54d6e4396fe3010d3832d88d852b7742ed8c1b15a6a
7
- data.tar.gz: 8e1c7684627491514806c35cd931aa2f567b07434b66b6b18cb6f991d9f6a8f050bfccef45f47c8779e819c0f11dab0b66a222db2805d4fb12ada85ae52b0e71
6
+ metadata.gz: 8f85b7263a81e5cd548f06316b8a476c2c2d03e07a8967039123bdfab6cc6acc0d8774c63f27c0c0cb74b1c67162dd25ea9244929c3b88ad63fec00b16435f65
7
+ data.tar.gz: '04844b15c054af22da8e2ab17d158bcc3f0ed19af9e8064911b80ebc04645c4ea09be59fb7846c1d84619a63ed1326673c32f775f964289957be6e636114baf8'
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudwatchevents/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudWatchEvents
50
50
 
51
- GEM_VERSION = '1.35.0'
51
+ GEM_VERSION = '1.36.0'
52
52
 
53
53
  end
@@ -1231,6 +1231,12 @@ module Aws::CloudWatchEvents
1231
1231
  # resp.targets[0].http_parameters.header_parameters["HeaderKey"] #=> String
1232
1232
  # resp.targets[0].http_parameters.query_string_parameters #=> Hash
1233
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
1234
1240
  # resp.next_token #=> String
1235
1241
  #
1236
1242
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule AWS API Documentation
@@ -1597,6 +1603,8 @@ module Aws::CloudWatchEvents
1597
1603
  #
1598
1604
  # * Amazon API Gateway REST APIs
1599
1605
  #
1606
+ # * Redshift Clusters to invoke Data API ExecuteStatement on
1607
+ #
1600
1608
  # Creating rules with built-in targets is supported only in the AWS
1601
1609
  # Management Console. The built-in targets are `EC2 CreateSnapshot API
1602
1610
  # call`, `EC2 RebootInstances API call`, `EC2 StopInstances API call`,
@@ -1762,6 +1770,14 @@ module Aws::CloudWatchEvents
1762
1770
  # "QueryStringKey" => "QueryStringValue",
1763
1771
  # },
1764
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
+ # },
1765
1781
  # },
1766
1782
  # ],
1767
1783
  # })
@@ -2004,7 +2020,7 @@ module Aws::CloudWatchEvents
2004
2020
  params: params,
2005
2021
  config: config)
2006
2022
  context[:gem_name] = 'aws-sdk-cloudwatchevents'
2007
- context[:gem_version] = '1.35.0'
2023
+ context[:gem_version] = '1.36.0'
2008
2024
  Seahorse::Client::Request.new(handlers, context)
2009
2025
  end
2010
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')
@@ -128,6 +130,8 @@ module Aws::CloudWatchEvents
128
130
  QueryStringKey = Shapes::StringShape.new(name: 'QueryStringKey')
129
131
  QueryStringParametersMap = Shapes::MapShape.new(name: 'QueryStringParametersMap')
130
132
  QueryStringValue = Shapes::StringShape.new(name: 'QueryStringValue')
133
+ RedshiftDataParameters = Shapes::StructureShape.new(name: 'RedshiftDataParameters')
134
+ RedshiftSecretManagerArn = Shapes::StringShape.new(name: 'RedshiftSecretManagerArn')
131
135
  RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
132
136
  RemoveTargetsRequest = Shapes::StructureShape.new(name: 'RemoveTargetsRequest')
133
137
  RemoveTargetsResponse = Shapes::StructureShape.new(name: 'RemoveTargetsResponse')
@@ -150,8 +154,10 @@ module Aws::CloudWatchEvents
150
154
  RunCommandTargetValues = Shapes::ListShape.new(name: 'RunCommandTargetValues')
151
155
  RunCommandTargets = Shapes::ListShape.new(name: 'RunCommandTargets')
152
156
  ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
157
+ Sql = Shapes::StringShape.new(name: 'Sql')
153
158
  SqsParameters = Shapes::StructureShape.new(name: 'SqsParameters')
154
159
  StatementId = Shapes::StringShape.new(name: 'StatementId')
160
+ StatementName = Shapes::StringShape.new(name: 'StatementName')
155
161
  String = Shapes::StringShape.new(name: 'String')
156
162
  StringList = Shapes::ListShape.new(name: 'StringList')
157
163
  Tag = Shapes::StructureShape.new(name: 'Tag')
@@ -516,6 +522,14 @@ module Aws::CloudWatchEvents
516
522
  QueryStringParametersMap.key = Shapes::ShapeRef.new(shape: QueryStringKey)
517
523
  QueryStringParametersMap.value = Shapes::ShapeRef.new(shape: QueryStringValue)
518
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
+
519
533
  RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
520
534
  RemovePermissionRequest.add_member(:event_bus_name, Shapes::ShapeRef.new(shape: NonPartnerEventBusName, location_name: "EventBusName"))
521
535
  RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
@@ -598,6 +612,7 @@ module Aws::CloudWatchEvents
598
612
  Target.add_member(:batch_parameters, Shapes::ShapeRef.new(shape: BatchParameters, location_name: "BatchParameters"))
599
613
  Target.add_member(:sqs_parameters, Shapes::ShapeRef.new(shape: SqsParameters, location_name: "SqsParameters"))
600
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"))
601
616
  Target.struct_class = Types::Target
602
617
 
603
618
  TargetIdList.member = Shapes::ShapeRef.new(shape: TargetId)
@@ -2047,6 +2047,14 @@ module Aws::CloudWatchEvents
2047
2047
  # "QueryStringKey" => "QueryStringValue",
2048
2048
  # },
2049
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
+ # },
2050
2058
  # },
2051
2059
  # ],
2052
2060
  # }
@@ -2117,6 +2125,64 @@ module Aws::CloudWatchEvents
2117
2125
  include Aws::Structure
2118
2126
  end
2119
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
+
2120
2186
  # @note When making an API call, you may pass RemovePermissionRequest
2121
2187
  # data as a hash:
2122
2188
  #
@@ -2524,6 +2590,14 @@ module Aws::CloudWatchEvents
2524
2590
  # "QueryStringKey" => "QueryStringValue",
2525
2591
  # },
2526
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
+ # },
2527
2601
  # }
2528
2602
  #
2529
2603
  # @!attribute [rw] id
@@ -2617,6 +2691,15 @@ module Aws::CloudWatchEvents
2617
2691
  # keys/values as part of your target invoking request.
2618
2692
  # @return [Types::HttpParameters]
2619
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
+ #
2620
2703
  # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target AWS API Documentation
2621
2704
  #
2622
2705
  class Target < Struct.new(
@@ -2631,7 +2714,8 @@ module Aws::CloudWatchEvents
2631
2714
  :ecs_parameters,
2632
2715
  :batch_parameters,
2633
2716
  :sqs_parameters,
2634
- :http_parameters)
2717
+ :http_parameters,
2718
+ :redshift_data_parameters)
2635
2719
  SENSITIVE = []
2636
2720
  include Aws::Structure
2637
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.35.0
4
+ version: 1.36.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-09-15 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core