aws-sdk-cloudwatchrum 1.5.0 → 1.7.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: 7495a0ed7240fdca5af47dafdfb159a3cc6a5078878e5da39bb873ab7a649b05
4
- data.tar.gz: 8e3a05c8e0f6ef0b5dfa94d52adbe4f4c70e75fdd1c494ae342722ef0c6786b4
3
+ metadata.gz: 5c4ffa715c6ef074119e4f51f2289ad49a93231de51a2359e0ea1ed13f338de7
4
+ data.tar.gz: bc1c8f95291a15fc19905917cba8cd8bb81c37d3d94d45fa2bceac3c467f254e
5
5
  SHA512:
6
- metadata.gz: 0ff3badaf6c99585de3781e85c9c50434c0423e12fd8f1ad89c7489fbffa68feda8d24fc9468bb9e1c8e2127f21cf89793c8bff268227ab0be19405490df5751
7
- data.tar.gz: 98ac3ef89503a5fef970790cdd700f3f5a1c9de6acd948089007316af91d742ba18ca089d0495d8abec0656d764bca1a8b6b802eb10f2a7d3b4e9074288adf35
6
+ metadata.gz: 63cf009014891534d489afd7196187759d92f1bf08bf7c47bb5edf110f0b749527f219725263fc84409a348c25d1d9cebe379553b5a9215d730cca1b1d57bf4c
7
+ data.tar.gz: 2ed9bfe8e31b06f402416befa77988a07e50a3f6c8972f5a28d8d975870683faccaa8b5c7d777a20a2bb2946545347955450c5b6045805880619a07cca038795
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.7.0 (2022-11-17)
5
+ ------------------
6
+
7
+ * Feature - CloudWatch RUM now supports custom events. To use custom events, create an app monitor or update an app monitor with CustomEvent Status as ENABLED.
8
+
9
+ 1.6.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.5.0 (2022-10-20)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.7.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatchrum)
@@ -79,8 +79,9 @@ module Aws::CloudWatchRUM
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::CloudWatchRUM::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::CloudWatchRUM
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::CloudWatchRUM
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::CloudWatchRUM::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudWatchRUM::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -370,12 +387,28 @@ module Aws::CloudWatchRUM
370
387
  # The maximum number of metric definitions that you can specify in one
371
388
  # `BatchCreateRumMetricDefinitions` operation is 200.
372
389
  #
373
- # <p>The maximum number of metric definitions that one destination can contain is 2000.</p> <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>.</p> <p>You must have already created a destination for the metrics before you send them. For more information, see <a href="https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html">PutRumMetricsDestination</a>.</p> <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p>
390
+ # The maximum number of metric definitions that one destination can
391
+ # contain is 2000.
392
+ #
393
+ # Extended metrics sent are charged as CloudWatch custom metrics. Each
394
+ # combination of additional dimension name and dimension value counts as
395
+ # a custom metric. For more information, see [Amazon CloudWatch
396
+ # Pricing][3].
397
+ #
398
+ # You must have already created a destination for the metrics before you
399
+ # send them. For more information, see [PutRumMetricsDestination][4].
400
+ #
401
+ # If some metric definitions specified in a
402
+ # `BatchCreateRumMetricDefinitions` operations are not valid, those
403
+ # metric definitions fail and return errors, but all valid metric
404
+ # definitions in the same operation still succeed.
374
405
  #
375
406
  #
376
407
  #
377
408
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-metrics.html
378
409
  # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html
410
+ # [3]: https://aws.amazon.com/cloudwatch/pricing/
411
+ # [4]: https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html
379
412
  #
380
413
  # @option params [required, String] :app_monitor_name
381
414
  # The name of the CloudWatch RUM app monitor that is to send the
@@ -623,6 +656,17 @@ module Aws::CloudWatchRUM
623
656
  #
624
657
  # [1]: https://docs.aws.amazon.com/monitoring/CloudWatch-RUM-get-started-authorization.html
625
658
  #
659
+ # @option params [Types::CustomEvents] :custom_events
660
+ # Specifies whether this app monitor allows the web client to define and
661
+ # send custom events. If you omit this parameter, custom events are
662
+ # `DISABLED`.
663
+ #
664
+ # For more information about custom events, see [Send custom events][1].
665
+ #
666
+ #
667
+ #
668
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html
669
+ #
626
670
  # @option params [Boolean] :cw_log_enabled
627
671
  # Data collected by RUM is kept by RUM for 30 days and then deleted.
628
672
  # This parameter specifies whether RUM sends a copy of this telemetry
@@ -649,7 +693,13 @@ module Aws::CloudWatchRUM
649
693
  # Tags don't have any semantic meaning to Amazon Web Services and are
650
694
  # interpreted strictly as strings of characters.
651
695
  #
652
- # <p>You can associate as many as 50 tags with an app monitor.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
696
+ # You can associate as many as 50 tags with an app monitor.
697
+ #
698
+ # For more information, see [Tagging Amazon Web Services resources][1].
699
+ #
700
+ #
701
+ #
702
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
653
703
  #
654
704
  # @return [Types::CreateAppMonitorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
655
705
  #
@@ -669,6 +719,9 @@ module Aws::CloudWatchRUM
669
719
  # session_sample_rate: 1.0,
670
720
  # telemetries: ["errors"], # accepts errors, performance, http
671
721
  # },
722
+ # custom_events: {
723
+ # status: "ENABLED", # accepts ENABLED, DISABLED
724
+ # },
672
725
  # cw_log_enabled: false,
673
726
  # domain: "AppMonitorDomain", # required
674
727
  # name: "AppMonitorName", # required
@@ -781,6 +834,7 @@ module Aws::CloudWatchRUM
781
834
  # resp.app_monitor.app_monitor_configuration.telemetries #=> Array
782
835
  # resp.app_monitor.app_monitor_configuration.telemetries[0] #=> String, one of "errors", "performance", "http"
783
836
  # resp.app_monitor.created #=> String
837
+ # resp.app_monitor.custom_events.status #=> String, one of "ENABLED", "DISABLED"
784
838
  # resp.app_monitor.data_storage.cw_log.cw_log_enabled #=> Boolean
785
839
  # resp.app_monitor.data_storage.cw_log.cw_log_group #=> String
786
840
  # resp.app_monitor.domain #=> String
@@ -1221,6 +1275,16 @@ module Aws::CloudWatchRUM
1221
1275
  #
1222
1276
  # [1]: https://docs.aws.amazon.com/monitoring/CloudWatch-RUM-get-started-authorization.html
1223
1277
  #
1278
+ # @option params [Types::CustomEvents] :custom_events
1279
+ # Specifies whether this app monitor allows the web client to define and
1280
+ # send custom events. The default is for custom events to be `DISABLED`.
1281
+ #
1282
+ # For more information about custom events, see [Send custom events][1].
1283
+ #
1284
+ #
1285
+ #
1286
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html
1287
+ #
1224
1288
  # @option params [Boolean] :cw_log_enabled
1225
1289
  # Data collected by RUM is kept by RUM for 30 days and then deleted.
1226
1290
  # This parameter specifies whether RUM sends a copy of this telemetry
@@ -1251,6 +1315,9 @@ module Aws::CloudWatchRUM
1251
1315
  # session_sample_rate: 1.0,
1252
1316
  # telemetries: ["errors"], # accepts errors, performance, http
1253
1317
  # },
1318
+ # custom_events: {
1319
+ # status: "ENABLED", # accepts ENABLED, DISABLED
1320
+ # },
1254
1321
  # cw_log_enabled: false,
1255
1322
  # domain: "AppMonitorDomain",
1256
1323
  # name: "AppMonitorName", # required
@@ -1345,7 +1412,7 @@ module Aws::CloudWatchRUM
1345
1412
  params: params,
1346
1413
  config: config)
1347
1414
  context[:gem_name] = 'aws-sdk-cloudwatchrum'
1348
- context[:gem_version] = '1.5.0'
1415
+ context[:gem_version] = '1.7.0'
1349
1416
  Seahorse::Client::Request.new(handlers, context)
1350
1417
  end
1351
1418
 
@@ -37,6 +37,8 @@ module Aws::CloudWatchRUM
37
37
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
38
38
  CreateAppMonitorRequest = Shapes::StructureShape.new(name: 'CreateAppMonitorRequest')
39
39
  CreateAppMonitorResponse = Shapes::StructureShape.new(name: 'CreateAppMonitorResponse')
40
+ CustomEvents = Shapes::StructureShape.new(name: 'CustomEvents')
41
+ CustomEventsStatus = Shapes::StringShape.new(name: 'CustomEventsStatus')
40
42
  CwLog = Shapes::StructureShape.new(name: 'CwLog')
41
43
  DataStorage = Shapes::StructureShape.new(name: 'DataStorage')
42
44
  DeleteAppMonitorRequest = Shapes::StructureShape.new(name: 'DeleteAppMonitorRequest')
@@ -126,6 +128,7 @@ module Aws::CloudWatchRUM
126
128
 
127
129
  AppMonitor.add_member(:app_monitor_configuration, Shapes::ShapeRef.new(shape: AppMonitorConfiguration, location_name: "AppMonitorConfiguration"))
128
130
  AppMonitor.add_member(:created, Shapes::ShapeRef.new(shape: ISOTimestampString, location_name: "Created"))
131
+ AppMonitor.add_member(:custom_events, Shapes::ShapeRef.new(shape: CustomEvents, location_name: "CustomEvents"))
129
132
  AppMonitor.add_member(:data_storage, Shapes::ShapeRef.new(shape: DataStorage, location_name: "DataStorage"))
130
133
  AppMonitor.add_member(:domain, Shapes::ShapeRef.new(shape: AppMonitorDomain, location_name: "Domain"))
131
134
  AppMonitor.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, location_name: "Id"))
@@ -211,6 +214,7 @@ module Aws::CloudWatchRUM
211
214
  ConflictException.struct_class = Types::ConflictException
212
215
 
213
216
  CreateAppMonitorRequest.add_member(:app_monitor_configuration, Shapes::ShapeRef.new(shape: AppMonitorConfiguration, location_name: "AppMonitorConfiguration"))
217
+ CreateAppMonitorRequest.add_member(:custom_events, Shapes::ShapeRef.new(shape: CustomEvents, location_name: "CustomEvents"))
214
218
  CreateAppMonitorRequest.add_member(:cw_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "CwLogEnabled"))
215
219
  CreateAppMonitorRequest.add_member(:domain, Shapes::ShapeRef.new(shape: AppMonitorDomain, required: true, location_name: "Domain"))
216
220
  CreateAppMonitorRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location_name: "Name"))
@@ -220,6 +224,9 @@ module Aws::CloudWatchRUM
220
224
  CreateAppMonitorResponse.add_member(:id, Shapes::ShapeRef.new(shape: AppMonitorId, location_name: "Id"))
221
225
  CreateAppMonitorResponse.struct_class = Types::CreateAppMonitorResponse
222
226
 
227
+ CustomEvents.add_member(:status, Shapes::ShapeRef.new(shape: CustomEventsStatus, location_name: "Status"))
228
+ CustomEvents.struct_class = Types::CustomEvents
229
+
223
230
  CwLog.add_member(:cw_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "CwLogEnabled"))
224
231
  CwLog.add_member(:cw_log_group, Shapes::ShapeRef.new(shape: String, location_name: "CwLogGroup"))
225
232
  CwLog.struct_class = Types::CwLog
@@ -393,6 +400,7 @@ module Aws::CloudWatchRUM
393
400
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
394
401
 
395
402
  UpdateAppMonitorRequest.add_member(:app_monitor_configuration, Shapes::ShapeRef.new(shape: AppMonitorConfiguration, location_name: "AppMonitorConfiguration"))
403
+ UpdateAppMonitorRequest.add_member(:custom_events, Shapes::ShapeRef.new(shape: CustomEvents, location_name: "CustomEvents"))
396
404
  UpdateAppMonitorRequest.add_member(:cw_log_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "CwLogEnabled"))
397
405
  UpdateAppMonitorRequest.add_member(:domain, Shapes::ShapeRef.new(shape: AppMonitorDomain, location_name: "Domain"))
398
406
  UpdateAppMonitorRequest.add_member(:name, Shapes::ShapeRef.new(shape: AppMonitorName, required: true, location: "uri", location_name: "Name"))
@@ -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::CloudWatchRUM
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,111 @@
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::CloudWatchRUM
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+ ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJX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X0seyJj
102
+ b25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBi
103
+ dXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2si
104
+ LCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50
105
+ Ijp7InVybCI6Imh0dHBzOi8vcnVtLntSZWdpb259LntQYXJ0aXRpb25SZXN1
106
+ bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
107
+ InR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
108
+
109
+ JSON
110
+ end
111
+ end
@@ -0,0 +1,253 @@
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
+
11
+ module Aws::CloudWatchRUM
12
+ module Endpoints
13
+
14
+ class BatchCreateRumMetricDefinitions
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::CloudWatchRUM::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class BatchDeleteRumMetricDefinitions
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::CloudWatchRUM::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class BatchGetRumMetricDefinitions
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::CloudWatchRUM::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class CreateAppMonitor
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::CloudWatchRUM::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteAppMonitor
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::CloudWatchRUM::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DeleteRumMetricsDestination
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::CloudWatchRUM::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class GetAppMonitor
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::CloudWatchRUM::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class GetAppMonitorData
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::CloudWatchRUM::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListAppMonitors
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::CloudWatchRUM::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class ListRumMetricsDestinations
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::CloudWatchRUM::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class ListTagsForResource
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::CloudWatchRUM::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class PutRumEvents
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::CloudWatchRUM::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class PutRumMetricsDestination
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::CloudWatchRUM::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class TagResource
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::CloudWatchRUM::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class UntagResource
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::CloudWatchRUM::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class UpdateAppMonitor
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::CloudWatchRUM::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class UpdateRumMetricDefinition
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::CloudWatchRUM::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ end
253
+ end
@@ -0,0 +1,102 @@
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
+
11
+ module Aws::CloudWatchRUM
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::CloudWatchRUM::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::CloudWatchRUM::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::CloudWatchRUM::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :batch_create_rum_metric_definitions
60
+ Aws::CloudWatchRUM::Endpoints::BatchCreateRumMetricDefinitions.build(context)
61
+ when :batch_delete_rum_metric_definitions
62
+ Aws::CloudWatchRUM::Endpoints::BatchDeleteRumMetricDefinitions.build(context)
63
+ when :batch_get_rum_metric_definitions
64
+ Aws::CloudWatchRUM::Endpoints::BatchGetRumMetricDefinitions.build(context)
65
+ when :create_app_monitor
66
+ Aws::CloudWatchRUM::Endpoints::CreateAppMonitor.build(context)
67
+ when :delete_app_monitor
68
+ Aws::CloudWatchRUM::Endpoints::DeleteAppMonitor.build(context)
69
+ when :delete_rum_metrics_destination
70
+ Aws::CloudWatchRUM::Endpoints::DeleteRumMetricsDestination.build(context)
71
+ when :get_app_monitor
72
+ Aws::CloudWatchRUM::Endpoints::GetAppMonitor.build(context)
73
+ when :get_app_monitor_data
74
+ Aws::CloudWatchRUM::Endpoints::GetAppMonitorData.build(context)
75
+ when :list_app_monitors
76
+ Aws::CloudWatchRUM::Endpoints::ListAppMonitors.build(context)
77
+ when :list_rum_metrics_destinations
78
+ Aws::CloudWatchRUM::Endpoints::ListRumMetricsDestinations.build(context)
79
+ when :list_tags_for_resource
80
+ Aws::CloudWatchRUM::Endpoints::ListTagsForResource.build(context)
81
+ when :put_rum_events
82
+ Aws::CloudWatchRUM::Endpoints::PutRumEvents.build(context)
83
+ when :put_rum_metrics_destination
84
+ Aws::CloudWatchRUM::Endpoints::PutRumMetricsDestination.build(context)
85
+ when :tag_resource
86
+ Aws::CloudWatchRUM::Endpoints::TagResource.build(context)
87
+ when :untag_resource
88
+ Aws::CloudWatchRUM::Endpoints::UntagResource.build(context)
89
+ when :update_app_monitor
90
+ Aws::CloudWatchRUM::Endpoints::UpdateAppMonitor.build(context)
91
+ when :update_rum_metric_definition
92
+ Aws::CloudWatchRUM::Endpoints::UpdateRumMetricDefinition.build(context)
93
+ end
94
+ end
95
+ end
96
+
97
+ def add_handlers(handlers, _config)
98
+ handlers.add(Handler, step: :build, priority: 75)
99
+ end
100
+ end
101
+ end
102
+ end
@@ -37,6 +37,18 @@ module Aws::CloudWatchRUM
37
37
  # The date and time that this app monitor was created.
38
38
  # @return [String]
39
39
  #
40
+ # @!attribute [rw] custom_events
41
+ # Specifies whether this app monitor allows the web client to define
42
+ # and send custom events.
43
+ #
44
+ # For more information about custom events, see [Send custom
45
+ # events][1].
46
+ #
47
+ #
48
+ #
49
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html
50
+ # @return [Types::CustomEvents]
51
+ #
40
52
  # @!attribute [rw] data_storage
41
53
  # A structure that contains information about whether this app monitor
42
54
  # stores a copy of the telemetry data that RUM collects using
@@ -74,6 +86,7 @@ module Aws::CloudWatchRUM
74
86
  class AppMonitor < Struct.new(
75
87
  :app_monitor_configuration,
76
88
  :created,
89
+ :custom_events,
77
90
  :data_storage,
78
91
  :domain,
79
92
  :id,
@@ -152,7 +165,8 @@ module Aws::CloudWatchRUM
152
165
  # If this app monitor is to collect data from only certain pages in
153
166
  # your application, this structure lists those pages.
154
167
  #
155
- # <p>You can't include both <code>ExcludedPages</code> and <code>IncludedPages</code> in the same operation.</p>
168
+ # You can't include both `ExcludedPages` and `IncludedPages` in the
169
+ # same operation.
156
170
  # @return [Array<String>]
157
171
  #
158
172
  # @!attribute [rw] session_sample_rate
@@ -582,6 +596,9 @@ module Aws::CloudWatchRUM
582
596
  # session_sample_rate: 1.0,
583
597
  # telemetries: ["errors"], # accepts errors, performance, http
584
598
  # },
599
+ # custom_events: {
600
+ # status: "ENABLED", # accepts ENABLED, DISABLED
601
+ # },
585
602
  # cw_log_enabled: false,
586
603
  # domain: "AppMonitorDomain", # required
587
604
  # name: "AppMonitorName", # required
@@ -607,6 +624,19 @@ module Aws::CloudWatchRUM
607
624
  # [1]: https://docs.aws.amazon.com/monitoring/CloudWatch-RUM-get-started-authorization.html
608
625
  # @return [Types::AppMonitorConfiguration]
609
626
  #
627
+ # @!attribute [rw] custom_events
628
+ # Specifies whether this app monitor allows the web client to define
629
+ # and send custom events. If you omit this parameter, custom events
630
+ # are `DISABLED`.
631
+ #
632
+ # For more information about custom events, see [Send custom
633
+ # events][1].
634
+ #
635
+ #
636
+ #
637
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html
638
+ # @return [Types::CustomEvents]
639
+ #
610
640
  # @!attribute [rw] cw_log_enabled
611
641
  # Data collected by RUM is kept by RUM for 30 days and then deleted.
612
642
  # This parameter specifies whether RUM sends a copy of this telemetry
@@ -637,13 +667,21 @@ module Aws::CloudWatchRUM
637
667
  # Tags don't have any semantic meaning to Amazon Web Services and are
638
668
  # interpreted strictly as strings of characters.
639
669
  #
640
- # <p>You can associate as many as 50 tags with an app monitor.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
670
+ # You can associate as many as 50 tags with an app monitor.
671
+ #
672
+ # For more information, see [Tagging Amazon Web Services
673
+ # resources][1].
674
+ #
675
+ #
676
+ #
677
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
641
678
  # @return [Hash<String,String>]
642
679
  #
643
680
  # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/CreateAppMonitorRequest AWS API Documentation
644
681
  #
645
682
  class CreateAppMonitorRequest < Struct.new(
646
683
  :app_monitor_configuration,
684
+ :custom_events,
647
685
  :cw_log_enabled,
648
686
  :domain,
649
687
  :name,
@@ -664,6 +702,30 @@ module Aws::CloudWatchRUM
664
702
  include Aws::Structure
665
703
  end
666
704
 
705
+ # A structure that contains information about custom events for this app
706
+ # monitor.
707
+ #
708
+ # @note When making an API call, you may pass CustomEvents
709
+ # data as a hash:
710
+ #
711
+ # {
712
+ # status: "ENABLED", # accepts ENABLED, DISABLED
713
+ # }
714
+ #
715
+ # @!attribute [rw] status
716
+ # Specifies whether this app monitor allows the web client to define
717
+ # and send custom events. The default is for custom events to be
718
+ # `DISABLED`.
719
+ # @return [String]
720
+ #
721
+ # @see http://docs.aws.amazon.com/goto/WebAPI/rum-2018-05-10/CustomEvents AWS API Documentation
722
+ #
723
+ class CustomEvents < Struct.new(
724
+ :status)
725
+ SENSITIVE = []
726
+ include Aws::Structure
727
+ end
728
+
667
729
  # A structure that contains the information about whether the app
668
730
  # monitor stores copies of the data that RUM collects in CloudWatch
669
731
  # Logs. If it does, this structure also contains the name of the log
@@ -1182,9 +1244,9 @@ module Aws::CloudWatchRUM
1182
1244
  # * `"metadata.countryCode": "CountryCode"`
1183
1245
  #
1184
1246
  # * `"event_details.fileType": "FileType"`
1185
- # ^
1186
1247
  #
1187
- # <p> All dimensions listed in this field must also be included in <code>EventPattern</code>.</p>
1248
+ # All dimensions listed in this field must also be included in
1249
+ # `EventPattern`.
1188
1250
  # @return [Hash<String,String>]
1189
1251
  #
1190
1252
  # @!attribute [rw] event_pattern
@@ -1683,6 +1745,9 @@ module Aws::CloudWatchRUM
1683
1745
  # session_sample_rate: 1.0,
1684
1746
  # telemetries: ["errors"], # accepts errors, performance, http
1685
1747
  # },
1748
+ # custom_events: {
1749
+ # status: "ENABLED", # accepts ENABLED, DISABLED
1750
+ # },
1686
1751
  # cw_log_enabled: false,
1687
1752
  # domain: "AppMonitorDomain",
1688
1753
  # name: "AppMonitorName", # required
@@ -1702,6 +1767,19 @@ module Aws::CloudWatchRUM
1702
1767
  # [1]: https://docs.aws.amazon.com/monitoring/CloudWatch-RUM-get-started-authorization.html
1703
1768
  # @return [Types::AppMonitorConfiguration]
1704
1769
  #
1770
+ # @!attribute [rw] custom_events
1771
+ # Specifies whether this app monitor allows the web client to define
1772
+ # and send custom events. The default is for custom events to be
1773
+ # `DISABLED`.
1774
+ #
1775
+ # For more information about custom events, see [Send custom
1776
+ # events][1].
1777
+ #
1778
+ #
1779
+ #
1780
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html
1781
+ # @return [Types::CustomEvents]
1782
+ #
1705
1783
  # @!attribute [rw] cw_log_enabled
1706
1784
  # Data collected by RUM is kept by RUM for 30 days and then deleted.
1707
1785
  # This parameter specifies whether RUM sends a copy of this telemetry
@@ -1723,6 +1801,7 @@ module Aws::CloudWatchRUM
1723
1801
  #
1724
1802
  class UpdateAppMonitorRequest < Struct.new(
1725
1803
  :app_monitor_configuration,
1804
+ :custom_events,
1726
1805
  :cw_log_enabled,
1727
1806
  :domain,
1728
1807
  :name)
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-cloudwatchrum/types'
15
15
  require_relative 'aws-sdk-cloudwatchrum/client_api'
16
+ require_relative 'aws-sdk-cloudwatchrum/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-cloudwatchrum/client'
17
18
  require_relative 'aws-sdk-cloudwatchrum/errors'
18
19
  require_relative 'aws-sdk-cloudwatchrum/resource'
20
+ require_relative 'aws-sdk-cloudwatchrum/endpoint_parameters'
21
+ require_relative 'aws-sdk-cloudwatchrum/endpoint_provider'
22
+ require_relative 'aws-sdk-cloudwatchrum/endpoints'
19
23
  require_relative 'aws-sdk-cloudwatchrum/customizations'
20
24
 
21
25
  # This module provides support for CloudWatch RUM. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-cloudwatchrum/customizations'
48
52
  # @!group service
49
53
  module Aws::CloudWatchRUM
50
54
 
51
- GEM_VERSION = '1.5.0'
55
+ GEM_VERSION = '1.7.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.7.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: 2022-10-20 00:00:00.000000000 Z
11
+ date: 2022-11-17 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-cloudwatchrum/client.rb
60
60
  - lib/aws-sdk-cloudwatchrum/client_api.rb
61
61
  - lib/aws-sdk-cloudwatchrum/customizations.rb
62
+ - lib/aws-sdk-cloudwatchrum/endpoint_parameters.rb
63
+ - lib/aws-sdk-cloudwatchrum/endpoint_provider.rb
64
+ - lib/aws-sdk-cloudwatchrum/endpoints.rb
62
65
  - lib/aws-sdk-cloudwatchrum/errors.rb
66
+ - lib/aws-sdk-cloudwatchrum/plugins/endpoints.rb
63
67
  - lib/aws-sdk-cloudwatchrum/resource.rb
64
68
  - lib/aws-sdk-cloudwatchrum/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby