aws-sdk-cloudwatchevents 1.54.0 → 1.67.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: 73633d562f233a50d07bbbf1686c89ffd4afcb2633b4bc264885091fd7efc43b
4
- data.tar.gz: 81c0af148ab954de73a0811dd32711c330a19c93a7ab0e73ac4a58ff1f815a9a
3
+ metadata.gz: 50f6fa826214c44c1651d3809a68d15014d2a6e69539eb63b55c67412d97f932
4
+ data.tar.gz: 14e2fc36d9e97878228d3c5f3884e289d0e885e6a0531d42ae5f6506f0f71233
5
5
  SHA512:
6
- metadata.gz: b41b100be1d79624deda62ae369da99ab3135ae01fae2422a2aa386b9f022ea13fa13f09c46ae83d3d01f810ed58aba68c837023f6e703c11dedef272198fb50
7
- data.tar.gz: 551e19d74a4ee2a80f5fdee5ecfaff7a62ab7672c7957fe7a1b6917f48a7d9086f9f63dfeb90c6ef021ad8437fd40ab201723041005ab72d41d820ccc1389f4e
6
+ metadata.gz: 445028efc1644b7881210303dd271925be74fb0efcfdf63d820b0ecaaf27fc92e668c2e1825c22178b9cbe154466eed120c7248488aea2b728a572c0048db72d
7
+ data.tar.gz: 9267ff509e6efa7efd8907956911f3676d331f233d2e3859ada765a02b955146e24626cff3a53a7df3ba52fcb615779ee1ccbb17bf9ee7bb67d376b5dd7cb4a0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,73 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.67.0 (2023-09-27)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.66.0 (2023-09-22)
10
+ ------------------
11
+
12
+ * Feature - Adds sensitive trait to various shapes in Jetstream Connections API model.
13
+
14
+ 1.65.0 (2023-08-31)
15
+ ------------------
16
+
17
+ * Feature - Documentation updates for CloudWatch Events.
18
+
19
+ 1.64.0 (2023-07-11)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.63.0 (2023-07-06)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.62.0 (2023-06-28)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.61.0 (2023-06-15)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.60.0 (2023-05-31)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.59.0 (2023-01-18)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
50
+
51
+ 1.58.0 (2022-10-25)
52
+ ------------------
53
+
54
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
55
+
56
+ 1.57.0 (2022-02-24)
57
+ ------------------
58
+
59
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
60
+
61
+ 1.56.0 (2022-02-03)
62
+ ------------------
63
+
64
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
65
+
66
+ 1.55.0 (2021-12-21)
67
+ ------------------
68
+
69
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
70
+
4
71
  1.54.0 (2021-11-30)
5
72
  ------------------
6
73
 
@@ -340,4 +407,4 @@ Unreleased Changes
340
407
  1.0.0.rc1 (2016-12-05)
341
408
  ------------------
342
409
 
343
- * Feature - Initial preview release of the `aws-sdk-cloudwatchevents` gem.
410
+ * Feature - Initial preview release of the `aws-sdk-cloudwatchevents` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.54.0
1
+ 1.67.0
@@ -27,7 +27,11 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
- require 'aws-sdk-core/plugins/signature_v4.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
+ require 'aws-sdk-core/plugins/request_compression.rb'
32
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
33
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
34
+ require 'aws-sdk-core/plugins/sign.rb'
31
35
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
36
 
33
37
  Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatchevents)
@@ -73,8 +77,13 @@ module Aws::CloudWatchEvents
73
77
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
78
  add_plugin(Aws::Plugins::TransferEncoding)
75
79
  add_plugin(Aws::Plugins::HttpChecksum)
76
- add_plugin(Aws::Plugins::SignatureV4)
80
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
+ add_plugin(Aws::Plugins::RequestCompression)
82
+ add_plugin(Aws::Plugins::DefaultsMode)
83
+ add_plugin(Aws::Plugins::RecursionDetection)
84
+ add_plugin(Aws::Plugins::Sign)
77
85
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
86
+ add_plugin(Aws::CloudWatchEvents::Plugins::Endpoints)
78
87
 
79
88
  # @overload initialize(options)
80
89
  # @param [Hash] options
@@ -175,10 +184,18 @@ module Aws::CloudWatchEvents
175
184
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
176
185
  # a clock skew correction and retry requests with skewed client clocks.
177
186
  #
187
+ # @option options [String] :defaults_mode ("legacy")
188
+ # See {Aws::DefaultsModeConfiguration} for a list of the
189
+ # accepted modes and the configuration defaults that are included.
190
+ #
178
191
  # @option options [Boolean] :disable_host_prefix_injection (false)
179
192
  # Set to true to disable SDK automatically adding host prefix
180
193
  # to default service endpoint when available.
181
194
  #
195
+ # @option options [Boolean] :disable_request_compression (false)
196
+ # When set to 'true' the request body will not be compressed
197
+ # for supported operations.
198
+ #
182
199
  # @option options [String] :endpoint
183
200
  # The client endpoint is normally constructed from the `:region`
184
201
  # option. You should only configure an `:endpoint` when connecting
@@ -199,6 +216,10 @@ module Aws::CloudWatchEvents
199
216
  # @option options [Boolean] :endpoint_discovery (false)
200
217
  # When set to `true`, endpoint discovery will be enabled for operations when available.
201
218
  #
219
+ # @option options [Boolean] :ignore_configured_endpoint_urls
220
+ # Setting to true disables use of endpoint URLs provided via environment
221
+ # variables and the shared configuration file.
222
+ #
202
223
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
203
224
  # The log formatter.
204
225
  #
@@ -219,6 +240,11 @@ module Aws::CloudWatchEvents
219
240
  # Used when loading credentials from the shared credentials file
220
241
  # at HOME/.aws/credentials. When not specified, 'default' is used.
221
242
  #
243
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
244
+ # The minimum size in bytes that triggers compression for request
245
+ # bodies. The value must be non-negative integer value between 0
246
+ # and 10485780 bytes inclusive.
247
+ #
222
248
  # @option options [Proc] :retry_backoff
223
249
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
224
250
  # This option is only used in the `legacy` retry mode.
@@ -264,6 +290,11 @@ module Aws::CloudWatchEvents
264
290
  # in the future.
265
291
  #
266
292
  #
293
+ # @option options [String] :sdk_ua_app_id
294
+ # A unique and opaque application ID that is appended to the
295
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
296
+ # maximum length of 50.
297
+ #
267
298
  # @option options [String] :secret_access_key
268
299
  #
269
300
  # @option options [String] :session_token
@@ -287,6 +318,19 @@ module Aws::CloudWatchEvents
287
318
  # ** Please note ** When response stubbing is enabled, no HTTP
288
319
  # requests are made, and retries are disabled.
289
320
  #
321
+ # @option options [Aws::TokenProvider] :token_provider
322
+ # A Bearer Token Provider. This can be an instance of any one of the
323
+ # following classes:
324
+ #
325
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
326
+ # tokens.
327
+ #
328
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
329
+ # access token generated from `aws login`.
330
+ #
331
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
332
+ # will be used to search for tokens configured for your profile in shared configuration files.
333
+ #
290
334
  # @option options [Boolean] :use_dualstack_endpoint
291
335
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
336
  # will be used if available.
@@ -300,6 +344,9 @@ module Aws::CloudWatchEvents
300
344
  # When `true`, request parameters are validated before
301
345
  # sending the request.
302
346
  #
347
+ # @option options [Aws::CloudWatchEvents::EndpointProvider] :endpoint_provider
348
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudWatchEvents::EndpointParameters`
349
+ #
303
350
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
351
  # requests through. Formatted like 'http://proxy.com:123'.
305
352
  #
@@ -307,7 +354,7 @@ module Aws::CloudWatchEvents
307
354
  # seconds to wait when opening a HTTP session before raising a
308
355
  # `Timeout::Error`.
309
356
  #
310
- # @option options [Integer] :http_read_timeout (60) The default
357
+ # @option options [Float] :http_read_timeout (60) The default
311
358
  # number of seconds to wait for response data. This value can
312
359
  # safely be set per-request on the session.
313
360
  #
@@ -323,6 +370,9 @@ module Aws::CloudWatchEvents
323
370
  # disables this behaviour. This value can safely be set per
324
371
  # request on the session.
325
372
  #
373
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
+ # in seconds.
375
+ #
326
376
  # @option options [Boolean] :http_wire_trace (false) When `true`,
327
377
  # HTTP debug output will be sent to the `:logger`.
328
378
  #
@@ -551,12 +601,12 @@ module Aws::CloudWatchEvents
551
601
  # auth_parameters: { # required
552
602
  # basic_auth_parameters: {
553
603
  # username: "AuthHeaderParameters", # required
554
- # password: "AuthHeaderParameters", # required
604
+ # password: "AuthHeaderParametersSensitive", # required
555
605
  # },
556
606
  # o_auth_parameters: {
557
607
  # client_parameters: { # required
558
608
  # client_id: "AuthHeaderParameters", # required
559
- # client_secret: "AuthHeaderParameters", # required
609
+ # client_secret: "AuthHeaderParametersSensitive", # required
560
610
  # },
561
611
  # authorization_endpoint: "HttpsEndpoint", # required
562
612
  # http_method: "GET", # required, accepts GET, POST, PUT
@@ -564,21 +614,21 @@ module Aws::CloudWatchEvents
564
614
  # header_parameters: [
565
615
  # {
566
616
  # key: "HeaderKey",
567
- # value: "HeaderValue",
617
+ # value: "HeaderValueSensitive",
568
618
  # is_value_secret: false,
569
619
  # },
570
620
  # ],
571
621
  # query_string_parameters: [
572
622
  # {
573
623
  # key: "QueryStringKey",
574
- # value: "QueryStringValue",
624
+ # value: "QueryStringValueSensitive",
575
625
  # is_value_secret: false,
576
626
  # },
577
627
  # ],
578
628
  # body_parameters: [
579
629
  # {
580
630
  # key: "String",
581
- # value: "String",
631
+ # value: "SensitiveString",
582
632
  # is_value_secret: false,
583
633
  # },
584
634
  # ],
@@ -586,27 +636,27 @@ module Aws::CloudWatchEvents
586
636
  # },
587
637
  # api_key_auth_parameters: {
588
638
  # api_key_name: "AuthHeaderParameters", # required
589
- # api_key_value: "AuthHeaderParameters", # required
639
+ # api_key_value: "AuthHeaderParametersSensitive", # required
590
640
  # },
591
641
  # invocation_http_parameters: {
592
642
  # header_parameters: [
593
643
  # {
594
644
  # key: "HeaderKey",
595
- # value: "HeaderValue",
645
+ # value: "HeaderValueSensitive",
596
646
  # is_value_secret: false,
597
647
  # },
598
648
  # ],
599
649
  # query_string_parameters: [
600
650
  # {
601
651
  # key: "QueryStringKey",
602
- # value: "QueryStringValue",
652
+ # value: "QueryStringValueSensitive",
603
653
  # is_value_secret: false,
604
654
  # },
605
655
  # ],
606
656
  # body_parameters: [
607
657
  # {
608
658
  # key: "String",
609
- # value: "String",
659
+ # value: "SensitiveString",
610
660
  # is_value_secret: false,
611
661
  # },
612
662
  # ],
@@ -2552,10 +2602,10 @@ module Aws::CloudWatchEvents
2552
2602
  #
2553
2603
  # * Step Functions state machines
2554
2604
  #
2555
- # Creating rules with built-in targets is supported only in the
2556
- # Management Console. The built-in targets are `EC2 CreateSnapshot API
2557
- # call`, `EC2 RebootInstances API call`, `EC2 StopInstances API call`,
2558
- # and `EC2 TerminateInstances API call`.
2605
+ # Creating rules with built-in targets is supported only in the Amazon
2606
+ # Web Services Management Console. The built-in targets are `EC2
2607
+ # CreateSnapshot API call`, `EC2 RebootInstances API call`, `EC2
2608
+ # StopInstances API call`, and `EC2 TerminateInstances API call`.
2559
2609
  #
2560
2610
  # For some target types, `PutTargets` provides target-specific
2561
2611
  # parameters. If the target is a Kinesis data stream, you can optionally
@@ -3231,12 +3281,12 @@ module Aws::CloudWatchEvents
3231
3281
  # auth_parameters: {
3232
3282
  # basic_auth_parameters: {
3233
3283
  # username: "AuthHeaderParameters",
3234
- # password: "AuthHeaderParameters",
3284
+ # password: "AuthHeaderParametersSensitive",
3235
3285
  # },
3236
3286
  # o_auth_parameters: {
3237
3287
  # client_parameters: {
3238
3288
  # client_id: "AuthHeaderParameters",
3239
- # client_secret: "AuthHeaderParameters",
3289
+ # client_secret: "AuthHeaderParametersSensitive",
3240
3290
  # },
3241
3291
  # authorization_endpoint: "HttpsEndpoint",
3242
3292
  # http_method: "GET", # accepts GET, POST, PUT
@@ -3244,21 +3294,21 @@ module Aws::CloudWatchEvents
3244
3294
  # header_parameters: [
3245
3295
  # {
3246
3296
  # key: "HeaderKey",
3247
- # value: "HeaderValue",
3297
+ # value: "HeaderValueSensitive",
3248
3298
  # is_value_secret: false,
3249
3299
  # },
3250
3300
  # ],
3251
3301
  # query_string_parameters: [
3252
3302
  # {
3253
3303
  # key: "QueryStringKey",
3254
- # value: "QueryStringValue",
3304
+ # value: "QueryStringValueSensitive",
3255
3305
  # is_value_secret: false,
3256
3306
  # },
3257
3307
  # ],
3258
3308
  # body_parameters: [
3259
3309
  # {
3260
3310
  # key: "String",
3261
- # value: "String",
3311
+ # value: "SensitiveString",
3262
3312
  # is_value_secret: false,
3263
3313
  # },
3264
3314
  # ],
@@ -3266,27 +3316,27 @@ module Aws::CloudWatchEvents
3266
3316
  # },
3267
3317
  # api_key_auth_parameters: {
3268
3318
  # api_key_name: "AuthHeaderParameters",
3269
- # api_key_value: "AuthHeaderParameters",
3319
+ # api_key_value: "AuthHeaderParametersSensitive",
3270
3320
  # },
3271
3321
  # invocation_http_parameters: {
3272
3322
  # header_parameters: [
3273
3323
  # {
3274
3324
  # key: "HeaderKey",
3275
- # value: "HeaderValue",
3325
+ # value: "HeaderValueSensitive",
3276
3326
  # is_value_secret: false,
3277
3327
  # },
3278
3328
  # ],
3279
3329
  # query_string_parameters: [
3280
3330
  # {
3281
3331
  # key: "QueryStringKey",
3282
- # value: "QueryStringValue",
3332
+ # value: "QueryStringValueSensitive",
3283
3333
  # is_value_secret: false,
3284
3334
  # },
3285
3335
  # ],
3286
3336
  # body_parameters: [
3287
3337
  # {
3288
3338
  # key: "String",
3289
- # value: "String",
3339
+ # value: "SensitiveString",
3290
3340
  # is_value_secret: false,
3291
3341
  # },
3292
3342
  # ],
@@ -3324,7 +3374,7 @@ module Aws::CloudWatchEvents
3324
3374
  params: params,
3325
3375
  config: config)
3326
3376
  context[:gem_name] = 'aws-sdk-cloudwatchevents'
3327
- context[:gem_version] = '1.54.0'
3377
+ context[:gem_version] = '1.67.0'
3328
3378
  Seahorse::Client::Request.new(handlers, context)
3329
3379
  end
3330
3380
 
@@ -34,6 +34,7 @@ module Aws::CloudWatchEvents
34
34
  Arn = Shapes::StringShape.new(name: 'Arn')
35
35
  AssignPublicIp = Shapes::StringShape.new(name: 'AssignPublicIp')
36
36
  AuthHeaderParameters = Shapes::StringShape.new(name: 'AuthHeaderParameters')
37
+ AuthHeaderParametersSensitive = Shapes::StringShape.new(name: 'AuthHeaderParametersSensitive')
37
38
  AwsVpcConfiguration = Shapes::StructureShape.new(name: 'AwsVpcConfiguration')
38
39
  BatchArrayProperties = Shapes::StructureShape.new(name: 'BatchArrayProperties')
39
40
  BatchParameters = Shapes::StructureShape.new(name: 'BatchParameters')
@@ -138,6 +139,7 @@ module Aws::CloudWatchEvents
138
139
  HeaderKey = Shapes::StringShape.new(name: 'HeaderKey')
139
140
  HeaderParametersMap = Shapes::MapShape.new(name: 'HeaderParametersMap')
140
141
  HeaderValue = Shapes::StringShape.new(name: 'HeaderValue')
142
+ HeaderValueSensitive = Shapes::StringShape.new(name: 'HeaderValueSensitive')
141
143
  HttpParameters = Shapes::StructureShape.new(name: 'HttpParameters')
142
144
  HttpsEndpoint = Shapes::StringShape.new(name: 'HttpsEndpoint')
143
145
  IllegalStatusException = Shapes::StructureShape.new(name: 'IllegalStatusException')
@@ -227,6 +229,7 @@ module Aws::CloudWatchEvents
227
229
  QueryStringKey = Shapes::StringShape.new(name: 'QueryStringKey')
228
230
  QueryStringParametersMap = Shapes::MapShape.new(name: 'QueryStringParametersMap')
229
231
  QueryStringValue = Shapes::StringShape.new(name: 'QueryStringValue')
232
+ QueryStringValueSensitive = Shapes::StringShape.new(name: 'QueryStringValueSensitive')
230
233
  RedshiftDataParameters = Shapes::StructureShape.new(name: 'RedshiftDataParameters')
231
234
  RedshiftSecretManagerArn = Shapes::StringShape.new(name: 'RedshiftSecretManagerArn')
232
235
  ReferenceId = Shapes::StringShape.new(name: 'ReferenceId')
@@ -270,6 +273,7 @@ module Aws::CloudWatchEvents
270
273
  SageMakerPipelineParameters = Shapes::StructureShape.new(name: 'SageMakerPipelineParameters')
271
274
  ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
272
275
  SecretsManagerSecretArn = Shapes::StringShape.new(name: 'SecretsManagerSecretArn')
276
+ SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
273
277
  Sql = Shapes::StringShape.new(name: 'Sql')
274
278
  SqsParameters = Shapes::StructureShape.new(name: 'SqsParameters')
275
279
  StartReplayRequest = Shapes::StructureShape.new(name: 'StartReplayRequest')
@@ -403,14 +407,14 @@ module Aws::CloudWatchEvents
403
407
  ConnectionBasicAuthResponseParameters.struct_class = Types::ConnectionBasicAuthResponseParameters
404
408
 
405
409
  ConnectionBodyParameter.add_member(:key, Shapes::ShapeRef.new(shape: String, location_name: "Key"))
406
- ConnectionBodyParameter.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
410
+ ConnectionBodyParameter.add_member(:value, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "Value"))
407
411
  ConnectionBodyParameter.add_member(:is_value_secret, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsValueSecret"))
408
412
  ConnectionBodyParameter.struct_class = Types::ConnectionBodyParameter
409
413
 
410
414
  ConnectionBodyParametersList.member = Shapes::ShapeRef.new(shape: ConnectionBodyParameter)
411
415
 
412
416
  ConnectionHeaderParameter.add_member(:key, Shapes::ShapeRef.new(shape: HeaderKey, location_name: "Key"))
413
- ConnectionHeaderParameter.add_member(:value, Shapes::ShapeRef.new(shape: HeaderValue, location_name: "Value"))
417
+ ConnectionHeaderParameter.add_member(:value, Shapes::ShapeRef.new(shape: HeaderValueSensitive, location_name: "Value"))
414
418
  ConnectionHeaderParameter.add_member(:is_value_secret, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsValueSecret"))
415
419
  ConnectionHeaderParameter.struct_class = Types::ConnectionHeaderParameter
416
420
 
@@ -431,7 +435,7 @@ module Aws::CloudWatchEvents
431
435
  ConnectionOAuthResponseParameters.struct_class = Types::ConnectionOAuthResponseParameters
432
436
 
433
437
  ConnectionQueryStringParameter.add_member(:key, Shapes::ShapeRef.new(shape: QueryStringKey, location_name: "Key"))
434
- ConnectionQueryStringParameter.add_member(:value, Shapes::ShapeRef.new(shape: QueryStringValue, location_name: "Value"))
438
+ ConnectionQueryStringParameter.add_member(:value, Shapes::ShapeRef.new(shape: QueryStringValueSensitive, location_name: "Value"))
435
439
  ConnectionQueryStringParameter.add_member(:is_value_secret, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsValueSecret"))
436
440
  ConnectionQueryStringParameter.struct_class = Types::ConnectionQueryStringParameter
437
441
 
@@ -467,7 +471,7 @@ module Aws::CloudWatchEvents
467
471
  CreateArchiveResponse.struct_class = Types::CreateArchiveResponse
468
472
 
469
473
  CreateConnectionApiKeyAuthRequestParameters.add_member(:api_key_name, Shapes::ShapeRef.new(shape: AuthHeaderParameters, required: true, location_name: "ApiKeyName"))
470
- CreateConnectionApiKeyAuthRequestParameters.add_member(:api_key_value, Shapes::ShapeRef.new(shape: AuthHeaderParameters, required: true, location_name: "ApiKeyValue"))
474
+ CreateConnectionApiKeyAuthRequestParameters.add_member(:api_key_value, Shapes::ShapeRef.new(shape: AuthHeaderParametersSensitive, required: true, location_name: "ApiKeyValue"))
471
475
  CreateConnectionApiKeyAuthRequestParameters.struct_class = Types::CreateConnectionApiKeyAuthRequestParameters
472
476
 
473
477
  CreateConnectionAuthRequestParameters.add_member(:basic_auth_parameters, Shapes::ShapeRef.new(shape: CreateConnectionBasicAuthRequestParameters, location_name: "BasicAuthParameters"))
@@ -477,11 +481,11 @@ module Aws::CloudWatchEvents
477
481
  CreateConnectionAuthRequestParameters.struct_class = Types::CreateConnectionAuthRequestParameters
478
482
 
479
483
  CreateConnectionBasicAuthRequestParameters.add_member(:username, Shapes::ShapeRef.new(shape: AuthHeaderParameters, required: true, location_name: "Username"))
480
- CreateConnectionBasicAuthRequestParameters.add_member(:password, Shapes::ShapeRef.new(shape: AuthHeaderParameters, required: true, location_name: "Password"))
484
+ CreateConnectionBasicAuthRequestParameters.add_member(:password, Shapes::ShapeRef.new(shape: AuthHeaderParametersSensitive, required: true, location_name: "Password"))
481
485
  CreateConnectionBasicAuthRequestParameters.struct_class = Types::CreateConnectionBasicAuthRequestParameters
482
486
 
483
487
  CreateConnectionOAuthClientRequestParameters.add_member(:client_id, Shapes::ShapeRef.new(shape: AuthHeaderParameters, required: true, location_name: "ClientID"))
484
- CreateConnectionOAuthClientRequestParameters.add_member(:client_secret, Shapes::ShapeRef.new(shape: AuthHeaderParameters, required: true, location_name: "ClientSecret"))
488
+ CreateConnectionOAuthClientRequestParameters.add_member(:client_secret, Shapes::ShapeRef.new(shape: AuthHeaderParametersSensitive, required: true, location_name: "ClientSecret"))
485
489
  CreateConnectionOAuthClientRequestParameters.struct_class = Types::CreateConnectionOAuthClientRequestParameters
486
490
 
487
491
  CreateConnectionOAuthRequestParameters.add_member(:client_parameters, Shapes::ShapeRef.new(shape: CreateConnectionOAuthClientRequestParameters, required: true, location_name: "ClientParameters"))
@@ -1168,7 +1172,7 @@ module Aws::CloudWatchEvents
1168
1172
  UpdateArchiveResponse.struct_class = Types::UpdateArchiveResponse
1169
1173
 
1170
1174
  UpdateConnectionApiKeyAuthRequestParameters.add_member(:api_key_name, Shapes::ShapeRef.new(shape: AuthHeaderParameters, location_name: "ApiKeyName"))
1171
- UpdateConnectionApiKeyAuthRequestParameters.add_member(:api_key_value, Shapes::ShapeRef.new(shape: AuthHeaderParameters, location_name: "ApiKeyValue"))
1175
+ UpdateConnectionApiKeyAuthRequestParameters.add_member(:api_key_value, Shapes::ShapeRef.new(shape: AuthHeaderParametersSensitive, location_name: "ApiKeyValue"))
1172
1176
  UpdateConnectionApiKeyAuthRequestParameters.struct_class = Types::UpdateConnectionApiKeyAuthRequestParameters
1173
1177
 
1174
1178
  UpdateConnectionAuthRequestParameters.add_member(:basic_auth_parameters, Shapes::ShapeRef.new(shape: UpdateConnectionBasicAuthRequestParameters, location_name: "BasicAuthParameters"))
@@ -1178,11 +1182,11 @@ module Aws::CloudWatchEvents
1178
1182
  UpdateConnectionAuthRequestParameters.struct_class = Types::UpdateConnectionAuthRequestParameters
1179
1183
 
1180
1184
  UpdateConnectionBasicAuthRequestParameters.add_member(:username, Shapes::ShapeRef.new(shape: AuthHeaderParameters, location_name: "Username"))
1181
- UpdateConnectionBasicAuthRequestParameters.add_member(:password, Shapes::ShapeRef.new(shape: AuthHeaderParameters, location_name: "Password"))
1185
+ UpdateConnectionBasicAuthRequestParameters.add_member(:password, Shapes::ShapeRef.new(shape: AuthHeaderParametersSensitive, location_name: "Password"))
1182
1186
  UpdateConnectionBasicAuthRequestParameters.struct_class = Types::UpdateConnectionBasicAuthRequestParameters
1183
1187
 
1184
1188
  UpdateConnectionOAuthClientRequestParameters.add_member(:client_id, Shapes::ShapeRef.new(shape: AuthHeaderParameters, location_name: "ClientID"))
1185
- UpdateConnectionOAuthClientRequestParameters.add_member(:client_secret, Shapes::ShapeRef.new(shape: AuthHeaderParameters, location_name: "ClientSecret"))
1189
+ UpdateConnectionOAuthClientRequestParameters.add_member(:client_secret, Shapes::ShapeRef.new(shape: AuthHeaderParametersSensitive, location_name: "ClientSecret"))
1186
1190
  UpdateConnectionOAuthClientRequestParameters.struct_class = Types::UpdateConnectionOAuthClientRequestParameters
1187
1191
 
1188
1192
  UpdateConnectionOAuthRequestParameters.add_member(:client_parameters, Shapes::ShapeRef.new(shape: UpdateConnectionOAuthClientRequestParameters, location_name: "ClientParameters"))
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::CloudWatchEvents
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::CloudWatchEvents
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ 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"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
37
+ return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
40
+ return Aws::Endpoints::Endpoint.new(url: "https://events.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://events-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
45
+ end
46
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
47
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
48
+ return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
49
+ end
50
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
51
+ end
52
+ return Aws::Endpoints::Endpoint.new(url: "https://events.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
53
+ end
54
+ end
55
+ raise ArgumentError, "Invalid Configuration: Missing Region"
56
+ raise ArgumentError, 'No endpoint could be resolved'
57
+
58
+ end
59
+ end
60
+ end