aws-sdk-oam 1.14.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-oam/client.rb +58 -14
- data/lib/aws-sdk-oam/client_api.rb +26 -5
- data/lib/aws-sdk-oam/errors.rb +8 -8
- data/lib/aws-sdk-oam/types.rb +189 -27
- data/lib/aws-sdk-oam.rb +1 -1
- data/sig/client.rbs +23 -4
- data/sig/errors.rbs +2 -2
- data/sig/types.rbs +26 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b8dcbc297d812fe3aa3d03b5764f22ca44eda65d65ba69c5e87fcb124d7be54
|
4
|
+
data.tar.gz: c06b3ecfe0d94883470d43e97e7dc723d4494980c2791a7b14ffa4e1cf417358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e4023ea648e964f8b123cd55cfb92db8fed01a98fef50582e48fff4e7c7679ff029ad7fe536f6bf752539a103e5754301c1bf54ba56bd2cefae84528bbe2969
|
7
|
+
data.tar.gz: 3495e5c41951dd15e8ed27e613343112d383514a65e13ce7ca40d58daba4983158276f38abcf3e35f15ef4cf2a487d46ac369e5f9d8dc31e49b0c6d3128a75ed
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2024-05-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.15.0 (2024-04-26)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release introduces support for Source Accounts to define which Metrics and Logs to share with the Monitoring Account
|
13
|
+
|
4
14
|
1.14.0 (2024-04-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
data/lib/aws-sdk-oam/client.rb
CHANGED
@@ -301,8 +301,9 @@ module Aws::OAM
|
|
301
301
|
#
|
302
302
|
# @option options [String] :sdk_ua_app_id
|
303
303
|
# A unique and opaque application ID that is appended to the
|
304
|
-
# User-Agent header as app
|
305
|
-
# maximum length of 50.
|
304
|
+
# User-Agent header as app/sdk_ua_app_id. It should have a
|
305
|
+
# maximum length of 50. This variable is sourced from environment
|
306
|
+
# variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
306
307
|
#
|
307
308
|
# @option options [String] :secret_access_key
|
308
309
|
#
|
@@ -413,7 +414,11 @@ module Aws::OAM
|
|
413
414
|
# @!group API Operations
|
414
415
|
|
415
416
|
# Creates a link between a source account and a sink that you have
|
416
|
-
# created in a monitoring account.
|
417
|
+
# created in a monitoring account. After the link is created, data is
|
418
|
+
# sent from the source account to the monitoring account. When you
|
419
|
+
# create a link, you can optionally specify filters that specify which
|
420
|
+
# metric namespaces and which log groups are shared from the source
|
421
|
+
# account to the monitoring account.
|
417
422
|
#
|
418
423
|
# Before you create a link, you must create a sink in the monitoring
|
419
424
|
# account and create a sink policy in that account. The sink policy must
|
@@ -447,6 +452,11 @@ module Aws::OAM
|
|
447
452
|
# * `$AccountEmailNoDomain` is the email address of the account without
|
448
453
|
# the domain name
|
449
454
|
#
|
455
|
+
# @option params [Types::LinkConfiguration] :link_configuration
|
456
|
+
# Use this structure to optionally create filters that specify that only
|
457
|
+
# some metric namespaces or log groups are to be shared from the source
|
458
|
+
# account to the monitoring account.
|
459
|
+
#
|
450
460
|
# @option params [required, Array<String>] :resource_types
|
451
461
|
# An array of strings that define which types of data that the source
|
452
462
|
# account shares with the monitoring account.
|
@@ -482,6 +492,7 @@ module Aws::OAM
|
|
482
492
|
# * {Types::CreateLinkOutput#id #id} => String
|
483
493
|
# * {Types::CreateLinkOutput#label #label} => String
|
484
494
|
# * {Types::CreateLinkOutput#label_template #label_template} => String
|
495
|
+
# * {Types::CreateLinkOutput#link_configuration #link_configuration} => Types::LinkConfiguration
|
485
496
|
# * {Types::CreateLinkOutput#resource_types #resource_types} => Array<String>
|
486
497
|
# * {Types::CreateLinkOutput#sink_arn #sink_arn} => String
|
487
498
|
# * {Types::CreateLinkOutput#tags #tags} => Hash<String,String>
|
@@ -490,6 +501,14 @@ module Aws::OAM
|
|
490
501
|
#
|
491
502
|
# resp = client.create_link({
|
492
503
|
# label_template: "LabelTemplate", # required
|
504
|
+
# link_configuration: {
|
505
|
+
# log_group_configuration: {
|
506
|
+
# filter: "LogsFilter", # required
|
507
|
+
# },
|
508
|
+
# metric_configuration: {
|
509
|
+
# filter: "MetricsFilter", # required
|
510
|
+
# },
|
511
|
+
# },
|
493
512
|
# resource_types: ["AWS::CloudWatch::Metric"], # required, accepts AWS::CloudWatch::Metric, AWS::Logs::LogGroup, AWS::XRay::Trace, AWS::ApplicationInsights::Application, AWS::InternetMonitor::Monitor
|
494
513
|
# sink_identifier: "ResourceIdentifier", # required
|
495
514
|
# tags: {
|
@@ -503,6 +522,8 @@ module Aws::OAM
|
|
503
522
|
# resp.id #=> String
|
504
523
|
# resp.label #=> String
|
505
524
|
# resp.label_template #=> String
|
525
|
+
# resp.link_configuration.log_group_configuration.filter #=> String
|
526
|
+
# resp.link_configuration.metric_configuration.filter #=> String
|
506
527
|
# resp.resource_types #=> Array
|
507
528
|
# resp.resource_types[0] #=> String
|
508
529
|
# resp.sink_arn #=> String
|
@@ -528,8 +549,8 @@ module Aws::OAM
|
|
528
549
|
# source accounts to attach to it. For more information, see
|
529
550
|
# [PutSinkPolicy][1].
|
530
551
|
#
|
531
|
-
# Each account can contain one sink. If you delete a sink,
|
532
|
-
# create a new one in that
|
552
|
+
# Each account can contain one sink per Region. If you delete a sink,
|
553
|
+
# you can then create a new one in that Region.
|
533
554
|
#
|
534
555
|
#
|
535
556
|
#
|
@@ -649,6 +670,7 @@ module Aws::OAM
|
|
649
670
|
# * {Types::GetLinkOutput#id #id} => String
|
650
671
|
# * {Types::GetLinkOutput#label #label} => String
|
651
672
|
# * {Types::GetLinkOutput#label_template #label_template} => String
|
673
|
+
# * {Types::GetLinkOutput#link_configuration #link_configuration} => Types::LinkConfiguration
|
652
674
|
# * {Types::GetLinkOutput#resource_types #resource_types} => Array<String>
|
653
675
|
# * {Types::GetLinkOutput#sink_arn #sink_arn} => String
|
654
676
|
# * {Types::GetLinkOutput#tags #tags} => Hash<String,String>
|
@@ -665,6 +687,8 @@ module Aws::OAM
|
|
665
687
|
# resp.id #=> String
|
666
688
|
# resp.label #=> String
|
667
689
|
# resp.label_template #=> String
|
690
|
+
# resp.link_configuration.log_group_configuration.filter #=> String
|
691
|
+
# resp.link_configuration.metric_configuration.filter #=> String
|
668
692
|
# resp.resource_types #=> Array
|
669
693
|
# resp.resource_types[0] #=> String
|
670
694
|
# resp.sink_arn #=> String
|
@@ -731,9 +755,9 @@ module Aws::OAM
|
|
731
755
|
#
|
732
756
|
# @return [Types::GetSinkPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
733
757
|
#
|
758
|
+
# * {Types::GetSinkPolicyOutput#policy #policy} => String
|
734
759
|
# * {Types::GetSinkPolicyOutput#sink_arn #sink_arn} => String
|
735
760
|
# * {Types::GetSinkPolicyOutput#sink_id #sink_id} => String
|
736
|
-
# * {Types::GetSinkPolicyOutput#policy #policy} => String
|
737
761
|
#
|
738
762
|
# @example Request syntax with placeholder values
|
739
763
|
#
|
@@ -743,9 +767,9 @@ module Aws::OAM
|
|
743
767
|
#
|
744
768
|
# @example Response structure
|
745
769
|
#
|
770
|
+
# resp.policy #=> String
|
746
771
|
# resp.sink_arn #=> String
|
747
772
|
# resp.sink_id #=> String
|
748
|
-
# resp.policy #=> String
|
749
773
|
#
|
750
774
|
# @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/GetSinkPolicy AWS API Documentation
|
751
775
|
#
|
@@ -972,9 +996,6 @@ module Aws::OAM
|
|
972
996
|
# See the examples in this section to see how to specify permitted
|
973
997
|
# source accounts and data types.
|
974
998
|
#
|
975
|
-
# @option params [required, String] :sink_identifier
|
976
|
-
# The ARN of the sink to attach this policy to.
|
977
|
-
#
|
978
999
|
# @option params [required, String] :policy
|
979
1000
|
# The JSON policy to use. If you are updating an existing policy, the
|
980
1001
|
# entire existing policy is replaced by what you specify here.
|
@@ -985,24 +1006,27 @@ module Aws::OAM
|
|
985
1006
|
# For examples of different types of policies, see the **Examples**
|
986
1007
|
# section on this page.
|
987
1008
|
#
|
1009
|
+
# @option params [required, String] :sink_identifier
|
1010
|
+
# The ARN of the sink to attach this policy to.
|
1011
|
+
#
|
988
1012
|
# @return [Types::PutSinkPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
989
1013
|
#
|
1014
|
+
# * {Types::PutSinkPolicyOutput#policy #policy} => String
|
990
1015
|
# * {Types::PutSinkPolicyOutput#sink_arn #sink_arn} => String
|
991
1016
|
# * {Types::PutSinkPolicyOutput#sink_id #sink_id} => String
|
992
|
-
# * {Types::PutSinkPolicyOutput#policy #policy} => String
|
993
1017
|
#
|
994
1018
|
# @example Request syntax with placeholder values
|
995
1019
|
#
|
996
1020
|
# resp = client.put_sink_policy({
|
997
|
-
# sink_identifier: "ResourceIdentifier", # required
|
998
1021
|
# policy: "SinkPolicy", # required
|
1022
|
+
# sink_identifier: "ResourceIdentifier", # required
|
999
1023
|
# })
|
1000
1024
|
#
|
1001
1025
|
# @example Response structure
|
1002
1026
|
#
|
1027
|
+
# resp.policy #=> String
|
1003
1028
|
# resp.sink_arn #=> String
|
1004
1029
|
# resp.sink_id #=> String
|
1005
|
-
# resp.policy #=> String
|
1006
1030
|
#
|
1007
1031
|
# @see http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/PutSinkPolicy AWS API Documentation
|
1008
1032
|
#
|
@@ -1123,6 +1147,10 @@ module Aws::OAM
|
|
1123
1147
|
# source account to its linked monitoring account sink. You can't
|
1124
1148
|
# change the sink or change the monitoring account with this operation.
|
1125
1149
|
#
|
1150
|
+
# When you update a link, you can optionally specify filters that
|
1151
|
+
# specify which metric namespaces and which log groups are shared from
|
1152
|
+
# the source account to the monitoring account.
|
1153
|
+
#
|
1126
1154
|
# To update the list of tags associated with the sink, use
|
1127
1155
|
# [TagResource][1].
|
1128
1156
|
#
|
@@ -1133,6 +1161,11 @@ module Aws::OAM
|
|
1133
1161
|
# @option params [required, String] :identifier
|
1134
1162
|
# The ARN of the link that you want to update.
|
1135
1163
|
#
|
1164
|
+
# @option params [Types::LinkConfiguration] :link_configuration
|
1165
|
+
# Use this structure to filter which metric namespaces and which log
|
1166
|
+
# groups are to be shared from the source account to the monitoring
|
1167
|
+
# account.
|
1168
|
+
#
|
1136
1169
|
# @option params [required, Array<String>] :resource_types
|
1137
1170
|
# An array of strings that define which types of data that the source
|
1138
1171
|
# account will send to the monitoring account.
|
@@ -1146,6 +1179,7 @@ module Aws::OAM
|
|
1146
1179
|
# * {Types::UpdateLinkOutput#id #id} => String
|
1147
1180
|
# * {Types::UpdateLinkOutput#label #label} => String
|
1148
1181
|
# * {Types::UpdateLinkOutput#label_template #label_template} => String
|
1182
|
+
# * {Types::UpdateLinkOutput#link_configuration #link_configuration} => Types::LinkConfiguration
|
1149
1183
|
# * {Types::UpdateLinkOutput#resource_types #resource_types} => Array<String>
|
1150
1184
|
# * {Types::UpdateLinkOutput#sink_arn #sink_arn} => String
|
1151
1185
|
# * {Types::UpdateLinkOutput#tags #tags} => Hash<String,String>
|
@@ -1154,6 +1188,14 @@ module Aws::OAM
|
|
1154
1188
|
#
|
1155
1189
|
# resp = client.update_link({
|
1156
1190
|
# identifier: "ResourceIdentifier", # required
|
1191
|
+
# link_configuration: {
|
1192
|
+
# log_group_configuration: {
|
1193
|
+
# filter: "LogsFilter", # required
|
1194
|
+
# },
|
1195
|
+
# metric_configuration: {
|
1196
|
+
# filter: "MetricsFilter", # required
|
1197
|
+
# },
|
1198
|
+
# },
|
1157
1199
|
# resource_types: ["AWS::CloudWatch::Metric"], # required, accepts AWS::CloudWatch::Metric, AWS::Logs::LogGroup, AWS::XRay::Trace, AWS::ApplicationInsights::Application, AWS::InternetMonitor::Monitor
|
1158
1200
|
# })
|
1159
1201
|
#
|
@@ -1163,6 +1205,8 @@ module Aws::OAM
|
|
1163
1205
|
# resp.id #=> String
|
1164
1206
|
# resp.label #=> String
|
1165
1207
|
# resp.label_template #=> String
|
1208
|
+
# resp.link_configuration.log_group_configuration.filter #=> String
|
1209
|
+
# resp.link_configuration.metric_configuration.filter #=> String
|
1166
1210
|
# resp.resource_types #=> Array
|
1167
1211
|
# resp.resource_types[0] #=> String
|
1168
1212
|
# resp.sink_arn #=> String
|
@@ -1191,7 +1235,7 @@ module Aws::OAM
|
|
1191
1235
|
params: params,
|
1192
1236
|
config: config)
|
1193
1237
|
context[:gem_name] = 'aws-sdk-oam'
|
1194
|
-
context[:gem_version] = '1.
|
1238
|
+
context[:gem_version] = '1.16.0'
|
1195
1239
|
Seahorse::Client::Request.new(handlers, context)
|
1196
1240
|
end
|
1197
1241
|
|
@@ -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
|
-
|
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",
|
data/lib/aws-sdk-oam/errors.rb
CHANGED
@@ -92,13 +92,13 @@ module Aws::OAM
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# @return [String]
|
95
|
-
def
|
96
|
-
@
|
95
|
+
def amzn_error_type
|
96
|
+
@data[:amzn_error_type]
|
97
97
|
end
|
98
98
|
|
99
99
|
# @return [String]
|
100
|
-
def
|
101
|
-
@data[:
|
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
|
116
|
-
@
|
115
|
+
def amzn_error_type
|
116
|
+
@data[:amzn_error_type]
|
117
117
|
end
|
118
118
|
|
119
119
|
# @return [String]
|
120
|
-
def
|
121
|
-
@data[:
|
120
|
+
def message
|
121
|
+
@message || @data[:message]
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
data/lib/aws-sdk-oam/types.rb
CHANGED
@@ -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
|
-
:
|
390
|
-
:
|
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
|
-
#
|
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]
|
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
|
-
:
|
652
|
-
:
|
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
|
-
:
|
676
|
-
:
|
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
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
|
-
|
223
|
-
|
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.
|
4
|
+
version: 1.16.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-
|
11
|
+
date: 2024-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|