aws-sdk-eventbridge 1.42.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45b0975c8e25a947ab7e9bf75ed24a1b109feae359e582499e55321d0b83292c
4
- data.tar.gz: 5efce2887ff6d9f0f28c8c6cd562e96001110489d165d7c513c8c79cde71482a
3
+ metadata.gz: 247ecc34978753ea867bcdd2eca8169984a0c8606a273ceb964307b77b94a7f1
4
+ data.tar.gz: 2ac58b7d9f13df2b15ff6b2a93fe9dc9a356e18a6427e3fcf1e589ea221b9512
5
5
  SHA512:
6
- metadata.gz: 758711c1643775c3618b20893c94b1037fe2b6625e0ebd4604efb99d9f68979c5b1a868e4d8f1c192c21d9f6328190311c217c22c698a5cb6d28c3bf115e151d
7
- data.tar.gz: 95eb7d36668e709367a5e91cdb5f8d812eec572fa436e31b7a44c710b4fb635da6f10f5cbd45753e6a5989c8979c785414c25f2a58c7f47da75f980123fdd333
6
+ metadata.gz: b4e7fd6373c0c5f8ce9f0ed1596948b93588cae35c592bfe489f47a786cbac20bcbd51dc5b0c523659f533fa3229885ac321699ff036348612971ffbd3f1806b
7
+ data.tar.gz: 5c734543ef6c57e232667f29073417bf3d59d0ffad248790b4359041c852ec3ccae2f1c8908edb5a33b0f7101fd543cd727a3315a71bf6a87e28d22e9f15282c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2023-04-11)
5
+ ------------------
6
+
7
+ * Feature - EventBridge PutTarget support for multiple SQL arguments on RedshiftDataParameters
8
+
4
9
  1.42.0 (2023-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.43.0
@@ -2431,6 +2431,8 @@ module Aws::EventBridge
2431
2431
  # resp.targets[0].redshift_data_parameters.sql #=> String
2432
2432
  # resp.targets[0].redshift_data_parameters.statement_name #=> String
2433
2433
  # resp.targets[0].redshift_data_parameters.with_event #=> Boolean
2434
+ # resp.targets[0].redshift_data_parameters.sqls #=> Array
2435
+ # resp.targets[0].redshift_data_parameters.sqls[0] #=> String
2434
2436
  # resp.targets[0].sage_maker_pipeline_parameters.pipeline_parameter_list #=> Array
2435
2437
  # resp.targets[0].sage_maker_pipeline_parameters.pipeline_parameter_list[0].name #=> String
2436
2438
  # resp.targets[0].sage_maker_pipeline_parameters.pipeline_parameter_list[0].value #=> String
@@ -3078,9 +3080,10 @@ module Aws::EventBridge
3078
3080
  # secret_manager_arn: "RedshiftSecretManagerArn",
3079
3081
  # database: "Database", # required
3080
3082
  # db_user: "DbUser",
3081
- # sql: "Sql", # required
3083
+ # sql: "Sql",
3082
3084
  # statement_name: "StatementName",
3083
3085
  # with_event: false,
3086
+ # sqls: ["Sql"],
3084
3087
  # },
3085
3088
  # sage_maker_pipeline_parameters: {
3086
3089
  # pipeline_parameter_list: [
@@ -3744,7 +3747,7 @@ module Aws::EventBridge
3744
3747
  params: params,
3745
3748
  config: config)
3746
3749
  context[:gem_name] = 'aws-sdk-eventbridge'
3747
- context[:gem_version] = '1.42.0'
3750
+ context[:gem_version] = '1.43.0'
3748
3751
  Seahorse::Client::Request.new(handlers, context)
3749
3752
  end
3750
3753
 
@@ -301,6 +301,7 @@ module Aws::EventBridge
301
301
  Secondary = Shapes::StructureShape.new(name: 'Secondary')
302
302
  SecretsManagerSecretArn = Shapes::StringShape.new(name: 'SecretsManagerSecretArn')
303
303
  Sql = Shapes::StringShape.new(name: 'Sql')
304
+ Sqls = Shapes::ListShape.new(name: 'Sqls')
304
305
  SqsParameters = Shapes::StructureShape.new(name: 'SqsParameters')
305
306
  StartReplayRequest = Shapes::StructureShape.new(name: 'StartReplayRequest')
306
307
  StartReplayResponse = Shapes::StructureShape.new(name: 'StartReplayResponse')
@@ -1094,9 +1095,10 @@ module Aws::EventBridge
1094
1095
  RedshiftDataParameters.add_member(:secret_manager_arn, Shapes::ShapeRef.new(shape: RedshiftSecretManagerArn, location_name: "SecretManagerArn"))
1095
1096
  RedshiftDataParameters.add_member(:database, Shapes::ShapeRef.new(shape: Database, required: true, location_name: "Database"))
1096
1097
  RedshiftDataParameters.add_member(:db_user, Shapes::ShapeRef.new(shape: DbUser, location_name: "DbUser"))
1097
- RedshiftDataParameters.add_member(:sql, Shapes::ShapeRef.new(shape: Sql, required: true, location_name: "Sql"))
1098
+ RedshiftDataParameters.add_member(:sql, Shapes::ShapeRef.new(shape: Sql, location_name: "Sql"))
1098
1099
  RedshiftDataParameters.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
1099
1100
  RedshiftDataParameters.add_member(:with_event, Shapes::ShapeRef.new(shape: Boolean, location_name: "WithEvent"))
1101
+ RedshiftDataParameters.add_member(:sqls, Shapes::ShapeRef.new(shape: Sqls, location_name: "Sqls"))
1100
1102
  RedshiftDataParameters.struct_class = Types::RedshiftDataParameters
1101
1103
 
1102
1104
  RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, location_name: "StatementId"))
@@ -1192,6 +1194,8 @@ module Aws::EventBridge
1192
1194
  Secondary.add_member(:route, Shapes::ShapeRef.new(shape: Route, required: true, location_name: "Route"))
1193
1195
  Secondary.struct_class = Types::Secondary
1194
1196
 
1197
+ Sqls.member = Shapes::ShapeRef.new(shape: Sql)
1198
+
1195
1199
  SqsParameters.add_member(:message_group_id, Shapes::ShapeRef.new(shape: MessageGroupId, location_name: "MessageGroupId"))
1196
1200
  SqsParameters.struct_class = Types::SqsParameters
1197
1201
 
@@ -57,9 +57,6 @@ module Aws::EventBridge
57
57
 
58
58
  def initialize(options = {})
59
59
  self[:region] = options[:region]
60
- if self[:region].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :region"
62
- end
63
60
  self[:use_dual_stack] = options[:use_dual_stack]
64
61
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
65
62
  if self[:use_dual_stack].nil?
@@ -15,60 +15,63 @@ module Aws::EventBridge
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
17
  endpoint_id = parameters.endpoint_id
18
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
19
- if Aws::Endpoints::Matchers.set?(endpoint_id)
20
- if Aws::Endpoints::Matchers.valid_host_label?(endpoint_id, true)
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false)
22
- if Aws::Endpoints::Matchers.set?(endpoint)
23
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingName"=>"events", "signingRegionSet"=>["*"]}]})
24
- end
25
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
26
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
27
- return Aws::Endpoints::Endpoint.new(url: "https://#{endpoint_id}.endpoint.events.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingName"=>"events", "signingRegionSet"=>["*"]}]})
28
- end
29
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
18
+ if Aws::Endpoints::Matchers.set?(endpoint_id) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
19
+ if Aws::Endpoints::Matchers.valid_host_label?(endpoint_id, true)
20
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false)
21
+ if Aws::Endpoints::Matchers.set?(endpoint)
22
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingName"=>"events", "signingRegionSet"=>["*"]}]})
23
+ end
24
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
25
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
26
+ return Aws::Endpoints::Endpoint.new(url: "https://#{endpoint_id}.endpoint.events.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingName"=>"events", "signingRegionSet"=>["*"]}]})
30
27
  end
31
- return Aws::Endpoints::Endpoint.new(url: "https://#{endpoint_id}.endpoint.events.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingName"=>"events", "signingRegionSet"=>["*"]}]})
28
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
32
29
  end
33
- raise ArgumentError, "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints."
30
+ return Aws::Endpoints::Endpoint.new(url: "https://#{endpoint_id}.endpoint.events.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4a", "signingName"=>"events", "signingRegionSet"=>["*"]}]})
34
31
  end
35
- raise ArgumentError, "EndpointId must be a valid host label."
32
+ raise ArgumentError, "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints."
36
33
  end
37
- if Aws::Endpoints::Matchers.set?(endpoint)
38
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
39
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
40
- end
41
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
42
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
43
- end
44
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
34
+ raise ArgumentError, "EndpointId must be a valid host label."
35
+ end
36
+ if Aws::Endpoints::Matchers.set?(endpoint)
37
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
38
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
45
39
  end
46
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
47
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
48
- return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
49
- end
50
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
51
42
  end
52
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
53
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
54
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
55
- return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
43
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
44
+ end
45
+ if Aws::Endpoints::Matchers.set?(region)
46
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
47
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
48
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
49
+ return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
56
50
  end
57
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
58
- return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
51
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
52
+ end
53
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
54
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
55
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
56
+ return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
57
+ end
58
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
59
+ return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
60
+ end
61
+ return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
59
62
  end
60
- return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
63
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
61
64
  end
62
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
63
- end
64
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
65
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
66
- return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
65
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
66
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
67
+ return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
68
+ end
69
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
67
70
  end
68
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
71
+ return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
69
72
  end
70
- return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
71
73
  end
74
+ raise ArgumentError, "Invalid Configuration: Missing Region"
72
75
  raise ArgumentError, 'No endpoint could be resolved'
73
76
 
74
77
  end
@@ -316,7 +316,7 @@ module Aws::EventBridge
316
316
  # the only supported condition is membership in a certain Amazon Web
317
317
  # Services organization. The string must contain `Type`, `Key`, and
318
318
  # `Value` fields. The `Value` field specifies the ID of the Amazon Web
319
- # Services organization. Following is an example value for `Condition`\:
319
+ # Services organization. Following is an example value for `Condition`:
320
320
  #
321
321
  # `'\{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value":
322
322
  # "o-1234567890"\}'`
@@ -3751,6 +3751,10 @@ module Aws::EventBridge
3751
3751
  # statement runs.
3752
3752
  # @return [Boolean]
3753
3753
  #
3754
+ # @!attribute [rw] sqls
3755
+ # A list of SQLs.
3756
+ # @return [Array<String>]
3757
+ #
3754
3758
  # @see http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RedshiftDataParameters AWS API Documentation
3755
3759
  #
3756
3760
  class RedshiftDataParameters < Struct.new(
@@ -3759,8 +3763,9 @@ module Aws::EventBridge
3759
3763
  :db_user,
3760
3764
  :sql,
3761
3765
  :statement_name,
3762
- :with_event)
3763
- SENSITIVE = []
3766
+ :with_event,
3767
+ :sqls)
3768
+ SENSITIVE = [:sql, :sqls]
3764
3769
  include Aws::Structure
3765
3770
  end
3766
3771
 
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-eventbridge/customizations'
52
52
  # @!group service
53
53
  module Aws::EventBridge
54
54
 
55
- GEM_VERSION = '1.42.0'
55
+ GEM_VERSION = '1.43.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-eventbridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.43.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: 2023-01-26 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core