aws-sdk-oam 1.13.0 → 1.15.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: dddbcdd56630109021c8c7c332d0920fd94d40729cc68c2661dc8dbcb719febb
4
- data.tar.gz: 995a80ce02e128da50ec2d3e43f78cb937ac1db3d104c44daf57baf31efcc742
3
+ metadata.gz: 4a2dc3eccc9a8031f9d7dac53506169522b04f2f6f33d0144b5f86a4f8f4159b
4
+ data.tar.gz: 29f7533eb6c7a5bf343ba05afa990a7f388c686583369fa554ba782643011af7
5
5
  SHA512:
6
- metadata.gz: 650b8fd9fb43ea1c88208e90b218884c9bf599315e51d69ea99f39ff5c0b7135895a28a96c4ae2f9f0185458a4c13c069be35f4ce6f464fd567a82ce326e752f
7
- data.tar.gz: 5dacdb7f56f2d5efe68f33da7f214b1f20f4418d94e944e255b4bf3ccf75d9d8931585b75044f2375f883d65aa78d116bd352f10d887b3fc8a0bd9cfabe0dae6
6
+ metadata.gz: 1a1e95107861d9fd1860ff014b0f3217e80298c686c70aa1b8c4ec07ac252d31536a311cf238f2c999036db15d92d0a3468ac78c4289843ed7d0fba979ce57a3
7
+ data.tar.gz: '098f59b7a9a790696b72a753e671dcc517f3340fe2ba5a476f0a3b6539a42d6b3175a92920b9240967c27f6ff9c2f0df82dd42a669b187f4a1a85215694c3853'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.15.0 (2024-04-26)
5
+ ------------------
6
+
7
+ * Feature - This release introduces support for Source Accounts to define which Metrics and Logs to share with the Monitoring Account
8
+
9
+ 1.14.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.13.0 (2024-03-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.15.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::OAM
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::OAM
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -337,50 +346,65 @@ module Aws::OAM
337
346
  # @option options [Aws::OAM::EndpointProvider] :endpoint_provider
338
347
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::OAM::EndpointParameters`
339
348
  #
340
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
341
- # requests through. Formatted like 'http://proxy.com:123'.
342
- #
343
- # @option options [Float] :http_open_timeout (15) The number of
344
- # seconds to wait when opening a HTTP session before raising a
345
- # `Timeout::Error`.
346
- #
347
- # @option options [Float] :http_read_timeout (60) The default
348
- # number of seconds to wait for response data. This value can
349
- # safely be set per-request on the session.
350
- #
351
- # @option options [Float] :http_idle_timeout (5) The number of
352
- # seconds a connection is allowed to sit idle before it is
353
- # considered stale. Stale connections are closed and removed
354
- # from the pool before making a request.
355
- #
356
- # @option options [Float] :http_continue_timeout (1) The number of
357
- # seconds to wait for a 100-continue response before sending the
358
- # request body. This option has no effect unless the request has
359
- # "Expect" header set to "100-continue". Defaults to `nil` which
360
- # disables this behaviour. This value can safely be set per
361
- # request on the session.
362
- #
363
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
364
- # in seconds.
365
- #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
349
+ # @option options [Float] :http_continue_timeout (1)
350
+ # The number of seconds to wait for a 100-continue response before sending the
351
+ # request body. This option has no effect unless the request has "Expect"
352
+ # header set to "100-continue". Defaults to `nil` which disables this
353
+ # behaviour. This value can safely be set per request on the session.
354
+ #
355
+ # @option options [Float] :http_idle_timeout (5)
356
+ # The number of seconds a connection is allowed to sit idle before it
357
+ # is considered stale. Stale connections are closed and removed from the
358
+ # pool before making a request.
359
+ #
360
+ # @option options [Float] :http_open_timeout (15)
361
+ # The default number of seconds to wait for response data.
362
+ # This value can safely be set per-request on the session.
363
+ #
364
+ # @option options [URI::HTTP,String] :http_proxy
365
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
366
+ #
367
+ # @option options [Float] :http_read_timeout (60)
368
+ # The default number of seconds to wait for response data.
369
+ # This value can safely be set per-request on the session.
370
+ #
371
+ # @option options [Boolean] :http_wire_trace (false)
372
+ # When `true`, HTTP debug output will be sent to the `:logger`.
373
+ #
374
+ # @option options [Proc] :on_chunk_received
375
+ # When a Proc object is provided, it will be used as callback when each chunk
376
+ # of the response body is received. It provides three arguments: the chunk,
377
+ # the number of bytes received, and the total number of
378
+ # bytes in the response (or nil if the server did not send a `content-length`).
379
+ #
380
+ # @option options [Proc] :on_chunk_sent
381
+ # When a Proc object is provided, it will be used as callback when each chunk
382
+ # of the request body is sent. It provides three arguments: the chunk,
383
+ # the number of bytes read from the body, and the total number of
384
+ # bytes in the body.
385
+ #
386
+ # @option options [Boolean] :raise_response_errors (true)
387
+ # When `true`, response errors are raised.
388
+ #
389
+ # @option options [String] :ssl_ca_bundle
390
+ # Full path to the SSL certificate authority bundle file that should be used when
391
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
392
+ # `:ssl_ca_directory` the the system default will be used if available.
393
+ #
394
+ # @option options [String] :ssl_ca_directory
395
+ # Full path of the directory that contains the unbundled SSL certificate
396
+ # authority files for verifying peer certificates. If you do
397
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
398
+ # default will be used if available.
368
399
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
400
+ # @option options [String] :ssl_ca_store
401
+ # Sets the X509::Store to verify peer certificate.
372
402
  #
373
- # @option options [String] :ssl_ca_bundle Full path to the SSL
374
- # certificate authority bundle file that should be used when
375
- # verifying peer certificates. If you do not pass
376
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
377
- # will be used if available.
403
+ # @option options [Float] :ssl_timeout
404
+ # Sets the SSL timeout in seconds
378
405
  #
379
- # @option options [String] :ssl_ca_directory Full path of the
380
- # directory that contains the unbundled SSL certificate
381
- # authority files for verifying peer certificates. If you do
382
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
383
- # system default will be used if available.
406
+ # @option options [Boolean] :ssl_verify_peer (true)
407
+ # When `true`, SSL peer certificates are verified when establishing a connection.
384
408
  #
385
409
  def initialize(*args)
386
410
  super
@@ -389,7 +413,11 @@ module Aws::OAM
389
413
  # @!group API Operations
390
414
 
391
415
  # Creates a link between a source account and a sink that you have
392
- # created in a monitoring account.
416
+ # created in a monitoring account. After the link is created, data is
417
+ # sent from the source account to the monitoring account. When you
418
+ # create a link, you can optionally specify filters that specify which
419
+ # metric namespaces and which log groups are shared from the source
420
+ # account to the monitoring account.
393
421
  #
394
422
  # Before you create a link, you must create a sink in the monitoring
395
423
  # account and create a sink policy in that account. The sink policy must
@@ -423,6 +451,11 @@ module Aws::OAM
423
451
  # * `$AccountEmailNoDomain` is the email address of the account without
424
452
  # the domain name
425
453
  #
454
+ # @option params [Types::LinkConfiguration] :link_configuration
455
+ # Use this structure to optionally create filters that specify that only
456
+ # some metric namespaces or log groups are to be shared from the source
457
+ # account to the monitoring account.
458
+ #
426
459
  # @option params [required, Array<String>] :resource_types
427
460
  # An array of strings that define which types of data that the source
428
461
  # account shares with the monitoring account.
@@ -458,6 +491,7 @@ module Aws::OAM
458
491
  # * {Types::CreateLinkOutput#id #id} => String
459
492
  # * {Types::CreateLinkOutput#label #label} => String
460
493
  # * {Types::CreateLinkOutput#label_template #label_template} => String
494
+ # * {Types::CreateLinkOutput#link_configuration #link_configuration} => Types::LinkConfiguration
461
495
  # * {Types::CreateLinkOutput#resource_types #resource_types} => Array&lt;String&gt;
462
496
  # * {Types::CreateLinkOutput#sink_arn #sink_arn} => String
463
497
  # * {Types::CreateLinkOutput#tags #tags} => Hash&lt;String,String&gt;
@@ -466,6 +500,14 @@ module Aws::OAM
466
500
  #
467
501
  # resp = client.create_link({
468
502
  # label_template: "LabelTemplate", # required
503
+ # link_configuration: {
504
+ # log_group_configuration: {
505
+ # filter: "LogsFilter", # required
506
+ # },
507
+ # metric_configuration: {
508
+ # filter: "MetricsFilter", # required
509
+ # },
510
+ # },
469
511
  # resource_types: ["AWS::CloudWatch::Metric"], # required, accepts AWS::CloudWatch::Metric, AWS::Logs::LogGroup, AWS::XRay::Trace, AWS::ApplicationInsights::Application, AWS::InternetMonitor::Monitor
470
512
  # sink_identifier: "ResourceIdentifier", # required
471
513
  # tags: {
@@ -479,6 +521,8 @@ module Aws::OAM
479
521
  # resp.id #=> String
480
522
  # resp.label #=> String
481
523
  # resp.label_template #=> String
524
+ # resp.link_configuration.log_group_configuration.filter #=> String
525
+ # resp.link_configuration.metric_configuration.filter #=> String
482
526
  # resp.resource_types #=> Array
483
527
  # resp.resource_types[0] #=> String
484
528
  # resp.sink_arn #=> String
@@ -504,8 +548,8 @@ module Aws::OAM
504
548
  # source accounts to attach to it. For more information, see
505
549
  # [PutSinkPolicy][1].
506
550
  #
507
- # Each account can contain one sink. If you delete a sink, you can then
508
- # create a new one in that account.
551
+ # Each account can contain one sink per Region. If you delete a sink,
552
+ # you can then create a new one in that Region.
509
553
  #
510
554
  #
511
555
  #
@@ -625,6 +669,7 @@ module Aws::OAM
625
669
  # * {Types::GetLinkOutput#id #id} => String
626
670
  # * {Types::GetLinkOutput#label #label} => String
627
671
  # * {Types::GetLinkOutput#label_template #label_template} => String
672
+ # * {Types::GetLinkOutput#link_configuration #link_configuration} => Types::LinkConfiguration
628
673
  # * {Types::GetLinkOutput#resource_types #resource_types} => Array&lt;String&gt;
629
674
  # * {Types::GetLinkOutput#sink_arn #sink_arn} => String
630
675
  # * {Types::GetLinkOutput#tags #tags} => Hash&lt;String,String&gt;
@@ -641,6 +686,8 @@ module Aws::OAM
641
686
  # resp.id #=> String
642
687
  # resp.label #=> String
643
688
  # resp.label_template #=> String
689
+ # resp.link_configuration.log_group_configuration.filter #=> String
690
+ # resp.link_configuration.metric_configuration.filter #=> String
644
691
  # resp.resource_types #=> Array
645
692
  # resp.resource_types[0] #=> String
646
693
  # resp.sink_arn #=> String
@@ -707,9 +754,9 @@ module Aws::OAM
707
754
  #
708
755
  # @return [Types::GetSinkPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
709
756
  #
757
+ # * {Types::GetSinkPolicyOutput#policy #policy} => String
710
758
  # * {Types::GetSinkPolicyOutput#sink_arn #sink_arn} => String
711
759
  # * {Types::GetSinkPolicyOutput#sink_id #sink_id} => String
712
- # * {Types::GetSinkPolicyOutput#policy #policy} => String
713
760
  #
714
761
  # @example Request syntax with placeholder values
715
762
  #
@@ -719,9 +766,9 @@ module Aws::OAM
719
766
  #
720
767
  # @example Response structure
721
768
  #
769
+ # resp.policy #=> String
722
770
  # resp.sink_arn #=> String
723
771
  # resp.sink_id #=> String
724
- # resp.policy #=> String
725
772
  #
726
773
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/GetSinkPolicy AWS API Documentation
727
774
  #
@@ -948,9 +995,6 @@ module Aws::OAM
948
995
  # See the examples in this section to see how to specify permitted
949
996
  # source accounts and data types.
950
997
  #
951
- # @option params [required, String] :sink_identifier
952
- # The ARN of the sink to attach this policy to.
953
- #
954
998
  # @option params [required, String] :policy
955
999
  # The JSON policy to use. If you are updating an existing policy, the
956
1000
  # entire existing policy is replaced by what you specify here.
@@ -961,24 +1005,27 @@ module Aws::OAM
961
1005
  # For examples of different types of policies, see the **Examples**
962
1006
  # section on this page.
963
1007
  #
1008
+ # @option params [required, String] :sink_identifier
1009
+ # The ARN of the sink to attach this policy to.
1010
+ #
964
1011
  # @return [Types::PutSinkPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
965
1012
  #
1013
+ # * {Types::PutSinkPolicyOutput#policy #policy} => String
966
1014
  # * {Types::PutSinkPolicyOutput#sink_arn #sink_arn} => String
967
1015
  # * {Types::PutSinkPolicyOutput#sink_id #sink_id} => String
968
- # * {Types::PutSinkPolicyOutput#policy #policy} => String
969
1016
  #
970
1017
  # @example Request syntax with placeholder values
971
1018
  #
972
1019
  # resp = client.put_sink_policy({
973
- # sink_identifier: "ResourceIdentifier", # required
974
1020
  # policy: "SinkPolicy", # required
1021
+ # sink_identifier: "ResourceIdentifier", # required
975
1022
  # })
976
1023
  #
977
1024
  # @example Response structure
978
1025
  #
1026
+ # resp.policy #=> String
979
1027
  # resp.sink_arn #=> String
980
1028
  # resp.sink_id #=> String
981
- # resp.policy #=> String
982
1029
  #
983
1030
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/PutSinkPolicy AWS API Documentation
984
1031
  #
@@ -1099,6 +1146,10 @@ module Aws::OAM
1099
1146
  # source account to its linked monitoring account sink. You can't
1100
1147
  # change the sink or change the monitoring account with this operation.
1101
1148
  #
1149
+ # When you update a link, you can optionally specify filters that
1150
+ # specify which metric namespaces and which log groups are shared from
1151
+ # the source account to the monitoring account.
1152
+ #
1102
1153
  # To update the list of tags associated with the sink, use
1103
1154
  # [TagResource][1].
1104
1155
  #
@@ -1109,6 +1160,11 @@ module Aws::OAM
1109
1160
  # @option params [required, String] :identifier
1110
1161
  # The ARN of the link that you want to update.
1111
1162
  #
1163
+ # @option params [Types::LinkConfiguration] :link_configuration
1164
+ # Use this structure to filter which metric namespaces and which log
1165
+ # groups are to be shared from the source account to the monitoring
1166
+ # account.
1167
+ #
1112
1168
  # @option params [required, Array<String>] :resource_types
1113
1169
  # An array of strings that define which types of data that the source
1114
1170
  # account will send to the monitoring account.
@@ -1122,6 +1178,7 @@ module Aws::OAM
1122
1178
  # * {Types::UpdateLinkOutput#id #id} => String
1123
1179
  # * {Types::UpdateLinkOutput#label #label} => String
1124
1180
  # * {Types::UpdateLinkOutput#label_template #label_template} => String
1181
+ # * {Types::UpdateLinkOutput#link_configuration #link_configuration} => Types::LinkConfiguration
1125
1182
  # * {Types::UpdateLinkOutput#resource_types #resource_types} => Array&lt;String&gt;
1126
1183
  # * {Types::UpdateLinkOutput#sink_arn #sink_arn} => String
1127
1184
  # * {Types::UpdateLinkOutput#tags #tags} => Hash&lt;String,String&gt;
@@ -1130,6 +1187,14 @@ module Aws::OAM
1130
1187
  #
1131
1188
  # resp = client.update_link({
1132
1189
  # identifier: "ResourceIdentifier", # required
1190
+ # link_configuration: {
1191
+ # log_group_configuration: {
1192
+ # filter: "LogsFilter", # required
1193
+ # },
1194
+ # metric_configuration: {
1195
+ # filter: "MetricsFilter", # required
1196
+ # },
1197
+ # },
1133
1198
  # resource_types: ["AWS::CloudWatch::Metric"], # required, accepts AWS::CloudWatch::Metric, AWS::Logs::LogGroup, AWS::XRay::Trace, AWS::ApplicationInsights::Application, AWS::InternetMonitor::Monitor
1134
1199
  # })
1135
1200
  #
@@ -1139,6 +1204,8 @@ module Aws::OAM
1139
1204
  # resp.id #=> String
1140
1205
  # resp.label #=> String
1141
1206
  # resp.label_template #=> String
1207
+ # resp.link_configuration.log_group_configuration.filter #=> String
1208
+ # resp.link_configuration.metric_configuration.filter #=> String
1142
1209
  # resp.resource_types #=> Array
1143
1210
  # resp.resource_types[0] #=> String
1144
1211
  # resp.sink_arn #=> String
@@ -1167,7 +1234,7 @@ module Aws::OAM
1167
1234
  params: params,
1168
1235
  config: config)
1169
1236
  context[:gem_name] = 'aws-sdk-oam'
1170
- context[:gem_version] = '1.13.0'
1237
+ context[:gem_version] = '1.15.0'
1171
1238
  Seahorse::Client::Request.new(handlers, context)
1172
1239
  end
1173
1240
 
@@ -32,6 +32,7 @@ module Aws::OAM
32
32
  InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
33
33
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
34
34
  LabelTemplate = Shapes::StringShape.new(name: 'LabelTemplate')
35
+ LinkConfiguration = Shapes::StructureShape.new(name: 'LinkConfiguration')
35
36
  ListAttachedLinksInput = Shapes::StructureShape.new(name: 'ListAttachedLinksInput')
36
37
  ListAttachedLinksItem = Shapes::StructureShape.new(name: 'ListAttachedLinksItem')
37
38
  ListAttachedLinksItems = Shapes::ListShape.new(name: 'ListAttachedLinksItems')
@@ -49,6 +50,10 @@ module Aws::OAM
49
50
  ListSinksOutput = Shapes::StructureShape.new(name: 'ListSinksOutput')
50
51
  ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
51
52
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
53
+ LogGroupConfiguration = Shapes::StructureShape.new(name: 'LogGroupConfiguration')
54
+ LogsFilter = Shapes::StringShape.new(name: 'LogsFilter')
55
+ MetricConfiguration = Shapes::StructureShape.new(name: 'MetricConfiguration')
56
+ MetricsFilter = Shapes::StringShape.new(name: 'MetricsFilter')
52
57
  MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
53
58
  NextToken = Shapes::StringShape.new(name: 'NextToken')
54
59
  PutSinkPolicyInput = Shapes::StructureShape.new(name: 'PutSinkPolicyInput')
@@ -81,6 +86,7 @@ module Aws::OAM
81
86
  ConflictException.struct_class = Types::ConflictException
82
87
 
83
88
  CreateLinkInput.add_member(:label_template, Shapes::ShapeRef.new(shape: LabelTemplate, required: true, location_name: "LabelTemplate"))
89
+ CreateLinkInput.add_member(:link_configuration, Shapes::ShapeRef.new(shape: LinkConfiguration, location_name: "LinkConfiguration"))
84
90
  CreateLinkInput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesInput, required: true, location_name: "ResourceTypes"))
85
91
  CreateLinkInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
86
92
  CreateLinkInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapInput, location_name: "Tags"))
@@ -90,6 +96,7 @@ module Aws::OAM
90
96
  CreateLinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
91
97
  CreateLinkOutput.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
92
98
  CreateLinkOutput.add_member(:label_template, Shapes::ShapeRef.new(shape: String, location_name: "LabelTemplate"))
99
+ CreateLinkOutput.add_member(:link_configuration, Shapes::ShapeRef.new(shape: LinkConfiguration, location_name: "LinkConfiguration"))
93
100
  CreateLinkOutput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
94
101
  CreateLinkOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
95
102
  CreateLinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
@@ -122,6 +129,7 @@ module Aws::OAM
122
129
  GetLinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
123
130
  GetLinkOutput.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
124
131
  GetLinkOutput.add_member(:label_template, Shapes::ShapeRef.new(shape: String, location_name: "LabelTemplate"))
132
+ GetLinkOutput.add_member(:link_configuration, Shapes::ShapeRef.new(shape: LinkConfiguration, location_name: "LinkConfiguration"))
125
133
  GetLinkOutput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
126
134
  GetLinkOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
127
135
  GetLinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
@@ -139,19 +147,23 @@ module Aws::OAM
139
147
  GetSinkPolicyInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
140
148
  GetSinkPolicyInput.struct_class = Types::GetSinkPolicyInput
141
149
 
150
+ GetSinkPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
142
151
  GetSinkPolicyOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
143
152
  GetSinkPolicyOutput.add_member(:sink_id, Shapes::ShapeRef.new(shape: String, location_name: "SinkId"))
144
- GetSinkPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
145
153
  GetSinkPolicyOutput.struct_class = Types::GetSinkPolicyOutput
146
154
 
147
155
  InternalServiceFault.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
148
156
  InternalServiceFault.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
149
157
  InternalServiceFault.struct_class = Types::InternalServiceFault
150
158
 
151
- InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
152
159
  InvalidParameterException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
160
+ InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
153
161
  InvalidParameterException.struct_class = Types::InvalidParameterException
154
162
 
163
+ LinkConfiguration.add_member(:log_group_configuration, Shapes::ShapeRef.new(shape: LogGroupConfiguration, location_name: "LogGroupConfiguration"))
164
+ LinkConfiguration.add_member(:metric_configuration, Shapes::ShapeRef.new(shape: MetricConfiguration, location_name: "MetricConfiguration"))
165
+ LinkConfiguration.struct_class = Types::LinkConfiguration
166
+
155
167
  ListAttachedLinksInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAttachedLinksMaxResults, location_name: "MaxResults"))
156
168
  ListAttachedLinksInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
157
169
  ListAttachedLinksInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
@@ -206,17 +218,23 @@ module Aws::OAM
206
218
  ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
207
219
  ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
208
220
 
209
- MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
221
+ LogGroupConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: LogsFilter, required: true, location_name: "Filter"))
222
+ LogGroupConfiguration.struct_class = Types::LogGroupConfiguration
223
+
224
+ MetricConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: MetricsFilter, required: true, location_name: "Filter"))
225
+ MetricConfiguration.struct_class = Types::MetricConfiguration
226
+
210
227
  MissingRequiredParameterException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
228
+ MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
211
229
  MissingRequiredParameterException.struct_class = Types::MissingRequiredParameterException
212
230
 
213
- PutSinkPolicyInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
214
231
  PutSinkPolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: SinkPolicy, required: true, location_name: "Policy"))
232
+ PutSinkPolicyInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
215
233
  PutSinkPolicyInput.struct_class = Types::PutSinkPolicyInput
216
234
 
235
+ PutSinkPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
217
236
  PutSinkPolicyOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
218
237
  PutSinkPolicyOutput.add_member(:sink_id, Shapes::ShapeRef.new(shape: String, location_name: "SinkId"))
219
- PutSinkPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
220
238
  PutSinkPolicyOutput.struct_class = Types::PutSinkPolicyOutput
221
239
 
222
240
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
@@ -255,6 +273,7 @@ module Aws::OAM
255
273
  UntagResourceOutput.struct_class = Types::UntagResourceOutput
256
274
 
257
275
  UpdateLinkInput.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Identifier"))
276
+ UpdateLinkInput.add_member(:link_configuration, Shapes::ShapeRef.new(shape: LinkConfiguration, location_name: "LinkConfiguration"))
258
277
  UpdateLinkInput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesInput, required: true, location_name: "ResourceTypes"))
259
278
  UpdateLinkInput.struct_class = Types::UpdateLinkInput
260
279
 
@@ -262,6 +281,7 @@ module Aws::OAM
262
281
  UpdateLinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
263
282
  UpdateLinkOutput.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
264
283
  UpdateLinkOutput.add_member(:label_template, Shapes::ShapeRef.new(shape: LabelTemplate, location_name: "LabelTemplate"))
284
+ UpdateLinkOutput.add_member(:link_configuration, Shapes::ShapeRef.new(shape: LinkConfiguration, location_name: "LinkConfiguration"))
265
285
  UpdateLinkOutput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
266
286
  UpdateLinkOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
267
287
  UpdateLinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
@@ -281,6 +301,7 @@ module Aws::OAM
281
301
  "endpointPrefix" => "oam",
282
302
  "jsonVersion" => "1.1",
283
303
  "protocol" => "rest-json",
304
+ "protocols" => ["rest-json"],
284
305
  "serviceFullName" => "CloudWatch Observability Access Manager",
285
306
  "serviceId" => "OAM",
286
307
  "signatureVersion" => "v4",
@@ -92,13 +92,13 @@ module Aws::OAM
92
92
  end
93
93
 
94
94
  # @return [String]
95
- def message
96
- @message || @data[:message]
95
+ def amzn_error_type
96
+ @data[:amzn_error_type]
97
97
  end
98
98
 
99
99
  # @return [String]
100
- def amzn_error_type
101
- @data[:amzn_error_type]
100
+ def message
101
+ @message || @data[:message]
102
102
  end
103
103
  end
104
104
 
@@ -112,13 +112,13 @@ module Aws::OAM
112
112
  end
113
113
 
114
114
  # @return [String]
115
- def message
116
- @message || @data[:message]
115
+ def amzn_error_type
116
+ @data[:amzn_error_type]
117
117
  end
118
118
 
119
119
  # @return [String]
120
- def amzn_error_type
121
- @data[:amzn_error_type]
120
+ def message
121
+ @message || @data[:message]
122
122
  end
123
123
  end
124
124
 
@@ -45,6 +45,12 @@ module Aws::OAM
45
45
  # without the domain name
46
46
  # @return [String]
47
47
  #
48
+ # @!attribute [rw] link_configuration
49
+ # Use this structure to optionally create filters that specify that
50
+ # only some metric namespaces or log groups are to be shared from the
51
+ # source account to the monitoring account.
52
+ # @return [Types::LinkConfiguration]
53
+ #
48
54
  # @!attribute [rw] resource_types
49
55
  # An array of strings that define which types of data that the source
50
56
  # account shares with the monitoring account.
@@ -82,6 +88,7 @@ module Aws::OAM
82
88
  #
83
89
  class CreateLinkInput < Struct.new(
84
90
  :label_template,
91
+ :link_configuration,
85
92
  :resource_types,
86
93
  :sink_identifier,
87
94
  :tags)
@@ -109,6 +116,12 @@ module Aws::OAM
109
116
  # resolved.
110
117
  # @return [String]
111
118
  #
119
+ # @!attribute [rw] link_configuration
120
+ # This structure includes filters that specify which metric namespaces
121
+ # and which log groups are shared from the source account to the
122
+ # monitoring account.
123
+ # @return [Types::LinkConfiguration]
124
+ #
112
125
  # @!attribute [rw] resource_types
113
126
  # The resource types supported by this link.
114
127
  # @return [Array<String>]
@@ -128,6 +141,7 @@ module Aws::OAM
128
141
  :id,
129
142
  :label,
130
143
  :label_template,
144
+ :link_configuration,
131
145
  :resource_types,
132
146
  :sink_arn,
133
147
  :tags)
@@ -255,6 +269,12 @@ module Aws::OAM
255
269
  # created, with the template variables not resolved.
256
270
  # @return [String]
257
271
  #
272
+ # @!attribute [rw] link_configuration
273
+ # This structure includes filters that specify which metric namespaces
274
+ # and which log groups are shared from the source account to the
275
+ # monitoring account.
276
+ # @return [Types::LinkConfiguration]
277
+ #
258
278
  # @!attribute [rw] resource_types
259
279
  # The resource types supported by this link.
260
280
  # @return [Array<String>]
@@ -274,6 +294,7 @@ module Aws::OAM
274
294
  :id,
275
295
  :label,
276
296
  :label_template,
297
+ :link_configuration,
277
298
  :resource_types,
278
299
  :sink_arn,
279
300
  :tags)
@@ -333,6 +354,10 @@ module Aws::OAM
333
354
  include Aws::Structure
334
355
  end
335
356
 
357
+ # @!attribute [rw] policy
358
+ # The policy that you specified, in JSON format.
359
+ # @return [String]
360
+ #
336
361
  # @!attribute [rw] sink_arn
337
362
  # The ARN of the sink.
338
363
  # @return [String]
@@ -342,16 +367,12 @@ module Aws::OAM
342
367
  # the sink ARN.
343
368
  # @return [String]
344
369
  #
345
- # @!attribute [rw] policy
346
- # The policy that you specified, in JSON format.
347
- # @return [String]
348
- #
349
370
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/GetSinkPolicyOutput AWS API Documentation
350
371
  #
351
372
  class GetSinkPolicyOutput < Struct.new(
373
+ :policy,
352
374
  :sink_arn,
353
- :sink_id,
354
- :policy)
375
+ :sink_id)
355
376
  SENSITIVE = []
356
377
  include Aws::Structure
357
378
  end
@@ -376,18 +397,41 @@ module Aws::OAM
376
397
 
377
398
  # A parameter is specified incorrectly.
378
399
  #
379
- # @!attribute [rw] message
380
- # @return [String]
381
- #
382
400
  # @!attribute [rw] amzn_error_type
383
401
  # The name of the exception.
384
402
  # @return [String]
385
403
  #
404
+ # @!attribute [rw] message
405
+ # @return [String]
406
+ #
386
407
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/InvalidParameterException AWS API Documentation
387
408
  #
388
409
  class InvalidParameterException < Struct.new(
389
- :message,
390
- :amzn_error_type)
410
+ :amzn_error_type,
411
+ :message)
412
+ SENSITIVE = []
413
+ include Aws::Structure
414
+ end
415
+
416
+ # Use this structure to optionally create filters that specify that only
417
+ # some metric namespaces or log groups are to be shared from the source
418
+ # account to the monitoring account.
419
+ #
420
+ # @!attribute [rw] log_group_configuration
421
+ # Use this structure to filter which log groups are to send log events
422
+ # from the source account to the monitoring account.
423
+ # @return [Types::LogGroupConfiguration]
424
+ #
425
+ # @!attribute [rw] metric_configuration
426
+ # Use this structure to filter which metric namespaces are to be
427
+ # shared from the source account to the monitoring account.
428
+ # @return [Types::MetricConfiguration]
429
+ #
430
+ # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/LinkConfiguration AWS API Documentation
431
+ #
432
+ class LinkConfiguration < Struct.new(
433
+ :log_group_configuration,
434
+ :metric_configuration)
391
435
  SENSITIVE = []
392
436
  include Aws::Structure
393
437
  end
@@ -636,28 +680,128 @@ module Aws::OAM
636
680
  include Aws::Structure
637
681
  end
638
682
 
639
- # A required parameter is missing from the request.
683
+ # This structure contains the `Filter` parameter which you can use to
684
+ # specify which log groups are to share log events from this source
685
+ # account to the monitoring account.
640
686
  #
641
- # @!attribute [rw] message
687
+ # @!attribute [rw] filter
688
+ # Use this field to specify which log groups are to share their log
689
+ # events with the monitoring account. Use the term `LogGroupName` and
690
+ # one or more of the following operands. Use single quotation marks
691
+ # (') around log group names. The matching of log group names is case
692
+ # sensitive. Each filter has a limit of five conditional operands.
693
+ # Conditional operands are `AND` and `OR`.
694
+ #
695
+ # * `=` and `!=`
696
+ #
697
+ # * `AND`
698
+ #
699
+ # * `OR`
700
+ #
701
+ # * `LIKE` and `NOT LIKE`. These can be used only as prefix searches.
702
+ # Include a `%` at the end of the string that you want to search for
703
+ # and include.
704
+ #
705
+ # * `IN` and `NOT IN`, using parentheses `( )`
706
+ #
707
+ # Examples:
708
+ #
709
+ # * `LogGroupName IN ('This-Log-Group', 'Other-Log-Group')` includes
710
+ # only the log groups with names `This-Log-Group` and
711
+ # `Other-Log-Group`.
712
+ #
713
+ # * `LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')`
714
+ # includes all log groups except the log groups with names
715
+ # `Private-Log-Group` and `Private-Log-Group-2`.
716
+ #
717
+ # * `LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'`
718
+ # includes all log groups that have names that start with
719
+ # `aws/lambda/` or `AWSLogs`.
720
+ #
721
+ # <note markdown="1"> If you are updating a link that uses filters, you can specify `*` as
722
+ # the only value for the `filter` parameter to delete the filter and
723
+ # share all log groups with the monitoring account.
724
+ #
725
+ # </note>
726
+ # @return [String]
727
+ #
728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/LogGroupConfiguration AWS API Documentation
729
+ #
730
+ class LogGroupConfiguration < Struct.new(
731
+ :filter)
732
+ SENSITIVE = []
733
+ include Aws::Structure
734
+ end
735
+
736
+ # This structure contains the `Filter` parameter which you can use to
737
+ # specify which metric namespaces are to be shared from this source
738
+ # account to the monitoring account.
739
+ #
740
+ # @!attribute [rw] filter
741
+ # Use this field to specify which metrics are to be shared with the
742
+ # monitoring account. Use the term `Namespace` and one or more of the
743
+ # following operands. Use single quotation marks (') around namespace
744
+ # names. The matching of namespace names is case sensitive. Each
745
+ # filter has a limit of five conditional operands. Conditional
746
+ # operands are `AND` and `OR`.
747
+ #
748
+ # * `=` and `!=`
749
+ #
750
+ # * `AND`
751
+ #
752
+ # * `OR`
753
+ #
754
+ # * `LIKE` and `NOT LIKE`. These can be used only as prefix searches.
755
+ # Include a `%` at the end of the string that you want to search for
756
+ # and include.
757
+ #
758
+ # * `IN` and `NOT IN`, using parentheses `( )`
759
+ #
760
+ # Examples:
761
+ #
762
+ # * `Namespace NOT LIKE 'AWS/%'` includes only namespaces that don't
763
+ # start with `AWS/`, such as custom namespaces.
764
+ #
765
+ # * `Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')` includes only the
766
+ # metrics in the EC2, Elastic Load Balancing, and Amazon S3
767
+ # namespaces.
768
+ #
769
+ # * `Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'` includes
770
+ # only the EC2 namespace and your custom namespaces.
771
+ #
772
+ # <note markdown="1"> If you are updating a link that uses filters, you can specify `*` as
773
+ # the only value for the `filter` parameter to delete the filter and
774
+ # share all metric namespaces with the monitoring account.
775
+ #
776
+ # </note>
642
777
  # @return [String]
643
778
  #
779
+ # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/MetricConfiguration AWS API Documentation
780
+ #
781
+ class MetricConfiguration < Struct.new(
782
+ :filter)
783
+ SENSITIVE = []
784
+ include Aws::Structure
785
+ end
786
+
787
+ # A required parameter is missing from the request.
788
+ #
644
789
  # @!attribute [rw] amzn_error_type
645
790
  # The name of the exception.
646
791
  # @return [String]
647
792
  #
793
+ # @!attribute [rw] message
794
+ # @return [String]
795
+ #
648
796
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/MissingRequiredParameterException AWS API Documentation
649
797
  #
650
798
  class MissingRequiredParameterException < Struct.new(
651
- :message,
652
- :amzn_error_type)
799
+ :amzn_error_type,
800
+ :message)
653
801
  SENSITIVE = []
654
802
  include Aws::Structure
655
803
  end
656
804
 
657
- # @!attribute [rw] sink_identifier
658
- # The ARN of the sink to attach this policy to.
659
- # @return [String]
660
- #
661
805
  # @!attribute [rw] policy
662
806
  # The JSON policy to use. If you are updating an existing policy, the
663
807
  # entire existing policy is replaced by what you specify here.
@@ -669,15 +813,23 @@ module Aws::OAM
669
813
  # section on this page.
670
814
  # @return [String]
671
815
  #
816
+ # @!attribute [rw] sink_identifier
817
+ # The ARN of the sink to attach this policy to.
818
+ # @return [String]
819
+ #
672
820
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/PutSinkPolicyInput AWS API Documentation
673
821
  #
674
822
  class PutSinkPolicyInput < Struct.new(
675
- :sink_identifier,
676
- :policy)
823
+ :policy,
824
+ :sink_identifier)
677
825
  SENSITIVE = []
678
826
  include Aws::Structure
679
827
  end
680
828
 
829
+ # @!attribute [rw] policy
830
+ # The policy that you specified.
831
+ # @return [String]
832
+ #
681
833
  # @!attribute [rw] sink_arn
682
834
  # The ARN of the sink.
683
835
  # @return [String]
@@ -687,16 +839,12 @@ module Aws::OAM
687
839
  # the sink ARN.
688
840
  # @return [String]
689
841
  #
690
- # @!attribute [rw] policy
691
- # The policy that you specified.
692
- # @return [String]
693
- #
694
842
  # @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/PutSinkPolicyOutput AWS API Documentation
695
843
  #
696
844
  class PutSinkPolicyOutput < Struct.new(
845
+ :policy,
697
846
  :sink_arn,
698
- :sink_id,
699
- :policy)
847
+ :sink_id)
700
848
  SENSITIVE = []
701
849
  include Aws::Structure
702
850
  end
@@ -822,6 +970,12 @@ module Aws::OAM
822
970
  # The ARN of the link that you want to update.
823
971
  # @return [String]
824
972
  #
973
+ # @!attribute [rw] link_configuration
974
+ # Use this structure to filter which metric namespaces and which log
975
+ # groups are to be shared from the source account to the monitoring
976
+ # account.
977
+ # @return [Types::LinkConfiguration]
978
+ #
825
979
  # @!attribute [rw] resource_types
826
980
  # An array of strings that define which types of data that the source
827
981
  # account will send to the monitoring account.
@@ -834,6 +988,7 @@ module Aws::OAM
834
988
  #
835
989
  class UpdateLinkInput < Struct.new(
836
990
  :identifier,
991
+ :link_configuration,
837
992
  :resource_types)
838
993
  SENSITIVE = []
839
994
  include Aws::Structure
@@ -858,6 +1013,12 @@ module Aws::OAM
858
1013
  # created, with the template variables not resolved.
859
1014
  # @return [String]
860
1015
  #
1016
+ # @!attribute [rw] link_configuration
1017
+ # This structure includes filters that specify which metric namespaces
1018
+ # and which log groups are shared from the source account to the
1019
+ # monitoring account.
1020
+ # @return [Types::LinkConfiguration]
1021
+ #
861
1022
  # @!attribute [rw] resource_types
862
1023
  # The resource types now supported by this link.
863
1024
  # @return [Array<String>]
@@ -877,6 +1038,7 @@ module Aws::OAM
877
1038
  :id,
878
1039
  :label,
879
1040
  :label_template,
1041
+ :link_configuration,
880
1042
  :resource_types,
881
1043
  :sink_arn,
882
1044
  :tags)
data/lib/aws-sdk-oam.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-oam/customizations'
52
52
  # @!group service
53
53
  module Aws::OAM
54
54
 
55
- GEM_VERSION = '1.13.0'
55
+ GEM_VERSION = '1.15.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -78,6 +78,7 @@ module Aws
78
78
  def id: () -> ::String
79
79
  def label: () -> ::String
80
80
  def label_template: () -> ::String
81
+ def link_configuration: () -> Types::LinkConfiguration
81
82
  def resource_types: () -> ::Array[::String]
82
83
  def sink_arn: () -> ::String
83
84
  def tags: () -> ::Hash[::String, ::String]
@@ -85,6 +86,14 @@ module Aws
85
86
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OAM/Client.html#create_link-instance_method
86
87
  def create_link: (
87
88
  label_template: ::String,
89
+ ?link_configuration: {
90
+ log_group_configuration: {
91
+ filter: ::String
92
+ }?,
93
+ metric_configuration: {
94
+ filter: ::String
95
+ }?
96
+ },
88
97
  resource_types: Array[("AWS::CloudWatch::Metric" | "AWS::Logs::LogGroup" | "AWS::XRay::Trace" | "AWS::ApplicationInsights::Application" | "AWS::InternetMonitor::Monitor")],
89
98
  sink_identifier: ::String,
90
99
  ?tags: Hash[::String, ::String]
@@ -129,6 +138,7 @@ module Aws
129
138
  def id: () -> ::String
130
139
  def label: () -> ::String
131
140
  def label_template: () -> ::String
141
+ def link_configuration: () -> Types::LinkConfiguration
132
142
  def resource_types: () -> ::Array[::String]
133
143
  def sink_arn: () -> ::String
134
144
  def tags: () -> ::Hash[::String, ::String]
@@ -154,9 +164,9 @@ module Aws
154
164
 
155
165
  interface _GetSinkPolicyResponseSuccess
156
166
  include ::Seahorse::Client::_ResponseSuccess[Types::GetSinkPolicyOutput]
167
+ def policy: () -> ::String
157
168
  def sink_arn: () -> ::String
158
169
  def sink_id: () -> ::String
159
- def policy: () -> ::String
160
170
  end
161
171
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OAM/Client.html#get_sink_policy-instance_method
162
172
  def get_sink_policy: (
@@ -213,14 +223,14 @@ module Aws
213
223
 
214
224
  interface _PutSinkPolicyResponseSuccess
215
225
  include ::Seahorse::Client::_ResponseSuccess[Types::PutSinkPolicyOutput]
226
+ def policy: () -> ::String
216
227
  def sink_arn: () -> ::String
217
228
  def sink_id: () -> ::String
218
- def policy: () -> ::String
219
229
  end
220
230
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OAM/Client.html#put_sink_policy-instance_method
221
231
  def put_sink_policy: (
222
- sink_identifier: ::String,
223
- policy: ::String
232
+ policy: ::String,
233
+ sink_identifier: ::String
224
234
  ) -> _PutSinkPolicyResponseSuccess
225
235
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutSinkPolicyResponseSuccess
226
236
 
@@ -250,6 +260,7 @@ module Aws
250
260
  def id: () -> ::String
251
261
  def label: () -> ::String
252
262
  def label_template: () -> ::String
263
+ def link_configuration: () -> Types::LinkConfiguration
253
264
  def resource_types: () -> ::Array[::String]
254
265
  def sink_arn: () -> ::String
255
266
  def tags: () -> ::Hash[::String, ::String]
@@ -257,6 +268,14 @@ module Aws
257
268
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OAM/Client.html#update_link-instance_method
258
269
  def update_link: (
259
270
  identifier: ::String,
271
+ ?link_configuration: {
272
+ log_group_configuration: {
273
+ filter: ::String
274
+ }?,
275
+ metric_configuration: {
276
+ filter: ::String
277
+ }?
278
+ },
260
279
  resource_types: Array[("AWS::CloudWatch::Metric" | "AWS::Logs::LogGroup" | "AWS::XRay::Trace" | "AWS::ApplicationInsights::Application" | "AWS::InternetMonitor::Monitor")]
261
280
  ) -> _UpdateLinkResponseSuccess
262
281
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateLinkResponseSuccess
data/sig/errors.rbs CHANGED
@@ -20,12 +20,12 @@ module Aws
20
20
  def amzn_error_type: () -> ::String
21
21
  end
22
22
  class InvalidParameterException < ::Aws::Errors::ServiceError
23
- def message: () -> ::String
24
23
  def amzn_error_type: () -> ::String
24
+ def message: () -> ::String
25
25
  end
26
26
  class MissingRequiredParameterException < ::Aws::Errors::ServiceError
27
- def message: () -> ::String
28
27
  def amzn_error_type: () -> ::String
28
+ def message: () -> ::String
29
29
  end
30
30
  class ResourceNotFoundException < ::Aws::Errors::ServiceError
31
31
  def message: () -> ::String
data/sig/types.rbs CHANGED
@@ -16,6 +16,7 @@ module Aws::OAM
16
16
 
17
17
  class CreateLinkInput
18
18
  attr_accessor label_template: ::String
19
+ attr_accessor link_configuration: Types::LinkConfiguration
19
20
  attr_accessor resource_types: ::Array[("AWS::CloudWatch::Metric" | "AWS::Logs::LogGroup" | "AWS::XRay::Trace" | "AWS::ApplicationInsights::Application" | "AWS::InternetMonitor::Monitor")]
20
21
  attr_accessor sink_identifier: ::String
21
22
  attr_accessor tags: ::Hash[::String, ::String]
@@ -27,6 +28,7 @@ module Aws::OAM
27
28
  attr_accessor id: ::String
28
29
  attr_accessor label: ::String
29
30
  attr_accessor label_template: ::String
31
+ attr_accessor link_configuration: Types::LinkConfiguration
30
32
  attr_accessor resource_types: ::Array[::String]
31
33
  attr_accessor sink_arn: ::String
32
34
  attr_accessor tags: ::Hash[::String, ::String]
@@ -73,6 +75,7 @@ module Aws::OAM
73
75
  attr_accessor id: ::String
74
76
  attr_accessor label: ::String
75
77
  attr_accessor label_template: ::String
78
+ attr_accessor link_configuration: Types::LinkConfiguration
76
79
  attr_accessor resource_types: ::Array[::String]
77
80
  attr_accessor sink_arn: ::String
78
81
  attr_accessor tags: ::Hash[::String, ::String]
@@ -98,9 +101,9 @@ module Aws::OAM
98
101
  end
99
102
 
100
103
  class GetSinkPolicyOutput
104
+ attr_accessor policy: ::String
101
105
  attr_accessor sink_arn: ::String
102
106
  attr_accessor sink_id: ::String
103
- attr_accessor policy: ::String
104
107
  SENSITIVE: []
105
108
  end
106
109
 
@@ -111,8 +114,14 @@ module Aws::OAM
111
114
  end
112
115
 
113
116
  class InvalidParameterException
114
- attr_accessor message: ::String
115
117
  attr_accessor amzn_error_type: ::String
118
+ attr_accessor message: ::String
119
+ SENSITIVE: []
120
+ end
121
+
122
+ class LinkConfiguration
123
+ attr_accessor log_group_configuration: Types::LogGroupConfiguration
124
+ attr_accessor metric_configuration: Types::MetricConfiguration
116
125
  SENSITIVE: []
117
126
  end
118
127
 
@@ -186,22 +195,32 @@ module Aws::OAM
186
195
  SENSITIVE: []
187
196
  end
188
197
 
198
+ class LogGroupConfiguration
199
+ attr_accessor filter: ::String
200
+ SENSITIVE: []
201
+ end
202
+
203
+ class MetricConfiguration
204
+ attr_accessor filter: ::String
205
+ SENSITIVE: []
206
+ end
207
+
189
208
  class MissingRequiredParameterException
190
- attr_accessor message: ::String
191
209
  attr_accessor amzn_error_type: ::String
210
+ attr_accessor message: ::String
192
211
  SENSITIVE: []
193
212
  end
194
213
 
195
214
  class PutSinkPolicyInput
196
- attr_accessor sink_identifier: ::String
197
215
  attr_accessor policy: ::String
216
+ attr_accessor sink_identifier: ::String
198
217
  SENSITIVE: []
199
218
  end
200
219
 
201
220
  class PutSinkPolicyOutput
221
+ attr_accessor policy: ::String
202
222
  attr_accessor sink_arn: ::String
203
223
  attr_accessor sink_id: ::String
204
- attr_accessor policy: ::String
205
224
  SENSITIVE: []
206
225
  end
207
226
 
@@ -242,6 +261,7 @@ module Aws::OAM
242
261
 
243
262
  class UpdateLinkInput
244
263
  attr_accessor identifier: ::String
264
+ attr_accessor link_configuration: Types::LinkConfiguration
245
265
  attr_accessor resource_types: ::Array[("AWS::CloudWatch::Metric" | "AWS::Logs::LogGroup" | "AWS::XRay::Trace" | "AWS::ApplicationInsights::Application" | "AWS::InternetMonitor::Monitor")]
246
266
  SENSITIVE: []
247
267
  end
@@ -251,6 +271,7 @@ module Aws::OAM
251
271
  attr_accessor id: ::String
252
272
  attr_accessor label: ::String
253
273
  attr_accessor label_template: ::String
274
+ attr_accessor link_configuration: Types::LinkConfiguration
254
275
  attr_accessor resource_types: ::Array[::String]
255
276
  attr_accessor sink_arn: ::String
256
277
  attr_accessor tags: ::Hash[::String, ::String]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-oam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.15.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: 2024-03-28 00:00:00.000000000 Z
11
+ date: 2024-04-26 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.191.0
22
+ version: 3.193.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.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement