aws-sdk-pi 1.48.0 → 1.49.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-pi/client.rb +386 -6
- data/lib/aws-sdk-pi/client_api.rb +250 -5
- data/lib/aws-sdk-pi/endpoints.rb +98 -0
- data/lib/aws-sdk-pi/plugins/endpoints.rb +14 -0
- data/lib/aws-sdk-pi/types.rb +585 -0
- data/lib/aws-sdk-pi.rb +2 -2
- 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: cd3541328f22e4cce22fc0a1f2cf134a1e42edcaef1e72cdc5c802461d7b4838
|
4
|
+
data.tar.gz: bca25e08a8a3e063bdb121bdab63a161585827149341cebe8b5a72263433baa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eecfcabb6c0b6cdc2bdd044f645d5e2e56a7fee0df89af67de86bc6f78964f013974cd24afb0c0882c23642d26cb9c54d22dce3030baf6537e1689ff09ec6db
|
7
|
+
data.tar.gz: 234e8d50eb9c17d8421455e5acbf40326380cae74b8d8d7559efc1a8807f83b559f73987257080b8889f7795fb75e227daf6265933a47057e486c62c1024ba13
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2023-08-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - AWS Performance Insights for Amazon RDS is launching Performance Analysis On Demand, a new feature that allows you to analyze database performance metrics and find out the performance issues. You can now use SDK to create, list, get, delete, and manage tags of performance analysis reports.
|
8
|
+
|
4
9
|
1.48.0 (2023-07-11)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
data/lib/aws-sdk-pi/client.rb
CHANGED
@@ -398,6 +398,101 @@ module Aws::PI
|
|
398
398
|
|
399
399
|
# @!group API Operations
|
400
400
|
|
401
|
+
# Creates a new performance analysis report for a specific time period
|
402
|
+
# for the DB instance.
|
403
|
+
#
|
404
|
+
# @option params [required, String] :service_type
|
405
|
+
# The Amazon Web Services service for which Performance Insights will
|
406
|
+
# return metrics. Valid value is `RDS`.
|
407
|
+
#
|
408
|
+
# @option params [required, String] :identifier
|
409
|
+
# An immutable, Amazon Web Services Region-unique identifier for a data
|
410
|
+
# source. Performance Insights gathers metrics from this data source.
|
411
|
+
#
|
412
|
+
# To use an Amazon RDS instance as a data source, you specify its
|
413
|
+
# `DbiResourceId` value. For example, specify
|
414
|
+
# `db-ADECBTYHKTSAUMUZQYPDS2GW4A`.
|
415
|
+
#
|
416
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
417
|
+
# The start time defined for the analysis report.
|
418
|
+
#
|
419
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
420
|
+
# The end time defined for the analysis report.
|
421
|
+
#
|
422
|
+
# @option params [Array<Types::Tag>] :tags
|
423
|
+
# The metadata assigned to the analysis report consisting of a key-value
|
424
|
+
# pair.
|
425
|
+
#
|
426
|
+
# @return [Types::CreatePerformanceAnalysisReportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
427
|
+
#
|
428
|
+
# * {Types::CreatePerformanceAnalysisReportResponse#analysis_report_id #analysis_report_id} => String
|
429
|
+
#
|
430
|
+
# @example Request syntax with placeholder values
|
431
|
+
#
|
432
|
+
# resp = client.create_performance_analysis_report({
|
433
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
434
|
+
# identifier: "IdentifierString", # required
|
435
|
+
# start_time: Time.now, # required
|
436
|
+
# end_time: Time.now, # required
|
437
|
+
# tags: [
|
438
|
+
# {
|
439
|
+
# key: "TagKey", # required
|
440
|
+
# value: "TagValue", # required
|
441
|
+
# },
|
442
|
+
# ],
|
443
|
+
# })
|
444
|
+
#
|
445
|
+
# @example Response structure
|
446
|
+
#
|
447
|
+
# resp.analysis_report_id #=> String
|
448
|
+
#
|
449
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/CreatePerformanceAnalysisReport AWS API Documentation
|
450
|
+
#
|
451
|
+
# @overload create_performance_analysis_report(params = {})
|
452
|
+
# @param [Hash] params ({})
|
453
|
+
def create_performance_analysis_report(params = {}, options = {})
|
454
|
+
req = build_request(:create_performance_analysis_report, params)
|
455
|
+
req.send_request(options)
|
456
|
+
end
|
457
|
+
|
458
|
+
# Deletes a performance analysis report.
|
459
|
+
#
|
460
|
+
# @option params [required, String] :service_type
|
461
|
+
# The Amazon Web Services service for which Performance Insights will
|
462
|
+
# return metrics. Valid value is `RDS`.
|
463
|
+
#
|
464
|
+
# @option params [required, String] :identifier
|
465
|
+
# An immutable identifier for a data source that is unique for an Amazon
|
466
|
+
# Web Services Region. Performance Insights gathers metrics from this
|
467
|
+
# data source. In the console, the identifier is shown as *ResourceID*.
|
468
|
+
# When you call `DescribeDBInstances`, the identifier is returned as
|
469
|
+
# `DbiResourceId`.
|
470
|
+
#
|
471
|
+
# To use a DB instance as a data source, specify its `DbiResourceId`
|
472
|
+
# value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
473
|
+
#
|
474
|
+
# @option params [required, String] :analysis_report_id
|
475
|
+
# The unique identifier of the analysis report for deletion.
|
476
|
+
#
|
477
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
478
|
+
#
|
479
|
+
# @example Request syntax with placeholder values
|
480
|
+
#
|
481
|
+
# resp = client.delete_performance_analysis_report({
|
482
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
483
|
+
# identifier: "IdentifierString", # required
|
484
|
+
# analysis_report_id: "AnalysisReportId", # required
|
485
|
+
# })
|
486
|
+
#
|
487
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/DeletePerformanceAnalysisReport AWS API Documentation
|
488
|
+
#
|
489
|
+
# @overload delete_performance_analysis_report(params = {})
|
490
|
+
# @param [Hash] params ({})
|
491
|
+
def delete_performance_analysis_report(params = {}, options = {})
|
492
|
+
req = build_request(:delete_performance_analysis_report, params)
|
493
|
+
req.send_request(options)
|
494
|
+
end
|
495
|
+
|
401
496
|
# For a specific time period, retrieve the top `N` dimension keys for a
|
402
497
|
# metric.
|
403
498
|
#
|
@@ -529,7 +624,7 @@ module Aws::PI
|
|
529
624
|
#
|
530
625
|
# resp = client.describe_dimension_keys({
|
531
626
|
# service_type: "RDS", # required, accepts RDS, DOCDB
|
532
|
-
# identifier: "
|
627
|
+
# identifier: "IdentifierString", # required
|
533
628
|
# start_time: Time.now, # required
|
534
629
|
# end_time: Time.now, # required
|
535
630
|
# metric: "RequestString", # required
|
@@ -656,6 +751,94 @@ module Aws::PI
|
|
656
751
|
req.send_request(options)
|
657
752
|
end
|
658
753
|
|
754
|
+
# Retrieves the report including the report ID, status, time details,
|
755
|
+
# and the insights with recommendations. The report status can be
|
756
|
+
# `RUNNING`, `SUCCEEDED`, or `FAILED`. The insights include the
|
757
|
+
# `description` and `recommendation` fields.
|
758
|
+
#
|
759
|
+
# @option params [required, String] :service_type
|
760
|
+
# The Amazon Web Services service for which Performance Insights will
|
761
|
+
# return metrics. Valid value is `RDS`.
|
762
|
+
#
|
763
|
+
# @option params [required, String] :identifier
|
764
|
+
# An immutable identifier for a data source that is unique for an Amazon
|
765
|
+
# Web Services Region. Performance Insights gathers metrics from this
|
766
|
+
# data source. In the console, the identifier is shown as *ResourceID*.
|
767
|
+
# When you call `DescribeDBInstances`, the identifier is returned as
|
768
|
+
# `DbiResourceId`.
|
769
|
+
#
|
770
|
+
# To use a DB instance as a data source, specify its `DbiResourceId`
|
771
|
+
# value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
772
|
+
#
|
773
|
+
# @option params [required, String] :analysis_report_id
|
774
|
+
# A unique identifier of the created analysis report. For example,
|
775
|
+
# `report-12345678901234567`
|
776
|
+
#
|
777
|
+
# @option params [String] :text_format
|
778
|
+
# Indicates the text format in the report. The options are `PLAIN_TEXT`
|
779
|
+
# or `MARKDOWN`. The default value is `plain text`.
|
780
|
+
#
|
781
|
+
# @option params [String] :accept_language
|
782
|
+
# The text language in the report. The default language is `EN_US`
|
783
|
+
# (English).
|
784
|
+
#
|
785
|
+
# @return [Types::GetPerformanceAnalysisReportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
786
|
+
#
|
787
|
+
# * {Types::GetPerformanceAnalysisReportResponse#analysis_report #analysis_report} => Types::AnalysisReport
|
788
|
+
#
|
789
|
+
# @example Request syntax with placeholder values
|
790
|
+
#
|
791
|
+
# resp = client.get_performance_analysis_report({
|
792
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
793
|
+
# identifier: "IdentifierString", # required
|
794
|
+
# analysis_report_id: "AnalysisReportId", # required
|
795
|
+
# text_format: "PLAIN_TEXT", # accepts PLAIN_TEXT, MARKDOWN
|
796
|
+
# accept_language: "EN_US", # accepts EN_US
|
797
|
+
# })
|
798
|
+
#
|
799
|
+
# @example Response structure
|
800
|
+
#
|
801
|
+
# resp.analysis_report.analysis_report_id #=> String
|
802
|
+
# resp.analysis_report.identifier #=> String
|
803
|
+
# resp.analysis_report.service_type #=> String, one of "RDS", "DOCDB"
|
804
|
+
# resp.analysis_report.create_time #=> Time
|
805
|
+
# resp.analysis_report.start_time #=> Time
|
806
|
+
# resp.analysis_report.end_time #=> Time
|
807
|
+
# resp.analysis_report.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED"
|
808
|
+
# resp.analysis_report.insights #=> Array
|
809
|
+
# resp.analysis_report.insights[0].insight_id #=> String
|
810
|
+
# resp.analysis_report.insights[0].insight_type #=> String
|
811
|
+
# resp.analysis_report.insights[0].context #=> String, one of "CAUSAL", "CONTEXTUAL"
|
812
|
+
# resp.analysis_report.insights[0].start_time #=> Time
|
813
|
+
# resp.analysis_report.insights[0].end_time #=> Time
|
814
|
+
# resp.analysis_report.insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
|
815
|
+
# resp.analysis_report.insights[0].supporting_insights #=> Types::InsightList
|
816
|
+
# resp.analysis_report.insights[0].description #=> String
|
817
|
+
# resp.analysis_report.insights[0].recommendations #=> Array
|
818
|
+
# resp.analysis_report.insights[0].recommendations[0].recommendation_id #=> String
|
819
|
+
# resp.analysis_report.insights[0].recommendations[0].recommendation_description #=> String
|
820
|
+
# resp.analysis_report.insights[0].insight_data #=> Array
|
821
|
+
# resp.analysis_report.insights[0].insight_data[0].performance_insights_metric.metric #=> String
|
822
|
+
# resp.analysis_report.insights[0].insight_data[0].performance_insights_metric.display_name #=> String
|
823
|
+
# resp.analysis_report.insights[0].insight_data[0].performance_insights_metric.dimensions #=> Hash
|
824
|
+
# resp.analysis_report.insights[0].insight_data[0].performance_insights_metric.dimensions["DescriptiveString"] #=> String
|
825
|
+
# resp.analysis_report.insights[0].insight_data[0].performance_insights_metric.value #=> Float
|
826
|
+
# resp.analysis_report.insights[0].baseline_data #=> Array
|
827
|
+
# resp.analysis_report.insights[0].baseline_data[0].performance_insights_metric.metric #=> String
|
828
|
+
# resp.analysis_report.insights[0].baseline_data[0].performance_insights_metric.display_name #=> String
|
829
|
+
# resp.analysis_report.insights[0].baseline_data[0].performance_insights_metric.dimensions #=> Hash
|
830
|
+
# resp.analysis_report.insights[0].baseline_data[0].performance_insights_metric.dimensions["DescriptiveString"] #=> String
|
831
|
+
# resp.analysis_report.insights[0].baseline_data[0].performance_insights_metric.value #=> Float
|
832
|
+
#
|
833
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetPerformanceAnalysisReport AWS API Documentation
|
834
|
+
#
|
835
|
+
# @overload get_performance_analysis_report(params = {})
|
836
|
+
# @param [Hash] params ({})
|
837
|
+
def get_performance_analysis_report(params = {}, options = {})
|
838
|
+
req = build_request(:get_performance_analysis_report, params)
|
839
|
+
req.send_request(options)
|
840
|
+
end
|
841
|
+
|
659
842
|
# Retrieve the metadata for different features. For example, the
|
660
843
|
# metadata might indicate that a feature is turned on or off on a
|
661
844
|
# specific DB instance.
|
@@ -680,7 +863,7 @@ module Aws::PI
|
|
680
863
|
#
|
681
864
|
# resp = client.get_resource_metadata({
|
682
865
|
# service_type: "RDS", # required, accepts RDS, DOCDB
|
683
|
-
# identifier: "
|
866
|
+
# identifier: "IdentifierString", # required
|
684
867
|
# })
|
685
868
|
#
|
686
869
|
# @example Response structure
|
@@ -797,7 +980,7 @@ module Aws::PI
|
|
797
980
|
#
|
798
981
|
# resp = client.get_resource_metrics({
|
799
982
|
# service_type: "RDS", # required, accepts RDS, DOCDB
|
800
|
-
# identifier: "
|
983
|
+
# identifier: "IdentifierString", # required
|
801
984
|
# metric_queries: [ # required
|
802
985
|
# {
|
803
986
|
# metric: "RequestString", # required
|
@@ -882,7 +1065,7 @@ module Aws::PI
|
|
882
1065
|
#
|
883
1066
|
# resp = client.list_available_resource_dimensions({
|
884
1067
|
# service_type: "RDS", # required, accepts RDS, DOCDB
|
885
|
-
# identifier: "
|
1068
|
+
# identifier: "IdentifierString", # required
|
886
1069
|
# metrics: ["RequestString"], # required
|
887
1070
|
# max_results: 1,
|
888
1071
|
# next_token: "NextToken",
|
@@ -956,7 +1139,7 @@ module Aws::PI
|
|
956
1139
|
#
|
957
1140
|
# resp = client.list_available_resource_metrics({
|
958
1141
|
# service_type: "RDS", # required, accepts RDS, DOCDB
|
959
|
-
# identifier: "
|
1142
|
+
# identifier: "IdentifierString", # required
|
960
1143
|
# metric_types: ["RequestString"], # required
|
961
1144
|
# next_token: "NextToken",
|
962
1145
|
# max_results: 1,
|
@@ -979,6 +1162,203 @@ module Aws::PI
|
|
979
1162
|
req.send_request(options)
|
980
1163
|
end
|
981
1164
|
|
1165
|
+
# Lists all the analysis reports created for the DB instance. The
|
1166
|
+
# reports are sorted based on the start time of each report.
|
1167
|
+
#
|
1168
|
+
# @option params [required, String] :service_type
|
1169
|
+
# The Amazon Web Services service for which Performance Insights returns
|
1170
|
+
# metrics. Valid value is `RDS`.
|
1171
|
+
#
|
1172
|
+
# @option params [required, String] :identifier
|
1173
|
+
# An immutable identifier for a data source that is unique for an Amazon
|
1174
|
+
# Web Services Region. Performance Insights gathers metrics from this
|
1175
|
+
# data source. In the console, the identifier is shown as *ResourceID*.
|
1176
|
+
# When you call `DescribeDBInstances`, the identifier is returned as
|
1177
|
+
# `DbiResourceId`.
|
1178
|
+
#
|
1179
|
+
# To use a DB instance as a data source, specify its `DbiResourceId`
|
1180
|
+
# value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
|
1181
|
+
#
|
1182
|
+
# @option params [String] :next_token
|
1183
|
+
# An optional pagination token provided by a previous request. If this
|
1184
|
+
# parameter is specified, the response includes only records beyond the
|
1185
|
+
# token, up to the value specified by `MaxResults`.
|
1186
|
+
#
|
1187
|
+
# @option params [Integer] :max_results
|
1188
|
+
# The maximum number of items to return in the response. If more items
|
1189
|
+
# exist than the specified `MaxResults` value, a pagination token is
|
1190
|
+
# included in the response so that the remaining results can be
|
1191
|
+
# retrieved.
|
1192
|
+
#
|
1193
|
+
# @option params [Boolean] :list_tags
|
1194
|
+
# Specifies whether or not to include the list of tags in the response.
|
1195
|
+
#
|
1196
|
+
# @return [Types::ListPerformanceAnalysisReportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1197
|
+
#
|
1198
|
+
# * {Types::ListPerformanceAnalysisReportsResponse#analysis_reports #analysis_reports} => Array<Types::AnalysisReportSummary>
|
1199
|
+
# * {Types::ListPerformanceAnalysisReportsResponse#next_token #next_token} => String
|
1200
|
+
#
|
1201
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1202
|
+
#
|
1203
|
+
# @example Request syntax with placeholder values
|
1204
|
+
#
|
1205
|
+
# resp = client.list_performance_analysis_reports({
|
1206
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
1207
|
+
# identifier: "IdentifierString", # required
|
1208
|
+
# next_token: "NextToken",
|
1209
|
+
# max_results: 1,
|
1210
|
+
# list_tags: false,
|
1211
|
+
# })
|
1212
|
+
#
|
1213
|
+
# @example Response structure
|
1214
|
+
#
|
1215
|
+
# resp.analysis_reports #=> Array
|
1216
|
+
# resp.analysis_reports[0].analysis_report_id #=> String
|
1217
|
+
# resp.analysis_reports[0].create_time #=> Time
|
1218
|
+
# resp.analysis_reports[0].start_time #=> Time
|
1219
|
+
# resp.analysis_reports[0].end_time #=> Time
|
1220
|
+
# resp.analysis_reports[0].status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED"
|
1221
|
+
# resp.analysis_reports[0].tags #=> Array
|
1222
|
+
# resp.analysis_reports[0].tags[0].key #=> String
|
1223
|
+
# resp.analysis_reports[0].tags[0].value #=> String
|
1224
|
+
# resp.next_token #=> String
|
1225
|
+
#
|
1226
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListPerformanceAnalysisReports AWS API Documentation
|
1227
|
+
#
|
1228
|
+
# @overload list_performance_analysis_reports(params = {})
|
1229
|
+
# @param [Hash] params ({})
|
1230
|
+
def list_performance_analysis_reports(params = {}, options = {})
|
1231
|
+
req = build_request(:list_performance_analysis_reports, params)
|
1232
|
+
req.send_request(options)
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# Retrieves all the metadata tags associated with Amazon RDS Performance
|
1236
|
+
# Insights resource.
|
1237
|
+
#
|
1238
|
+
# @option params [required, String] :service_type
|
1239
|
+
# List the tags for the Amazon Web Services service for which
|
1240
|
+
# Performance Insights returns metrics. Valid value is `RDS`.
|
1241
|
+
#
|
1242
|
+
# @option params [required, String] :resource_arn
|
1243
|
+
# Lists all the tags for the Amazon RDS Performance Insights resource.
|
1244
|
+
# This value is an Amazon Resource Name (ARN). For information about
|
1245
|
+
# creating an ARN, see [ Constructing an RDS Amazon Resource Name
|
1246
|
+
# (ARN)][1].
|
1247
|
+
#
|
1248
|
+
#
|
1249
|
+
#
|
1250
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing
|
1251
|
+
#
|
1252
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1253
|
+
#
|
1254
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
1255
|
+
#
|
1256
|
+
# @example Request syntax with placeholder values
|
1257
|
+
#
|
1258
|
+
# resp = client.list_tags_for_resource({
|
1259
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
1260
|
+
# resource_arn: "AmazonResourceName", # required
|
1261
|
+
# })
|
1262
|
+
#
|
1263
|
+
# @example Response structure
|
1264
|
+
#
|
1265
|
+
# resp.tags #=> Array
|
1266
|
+
# resp.tags[0].key #=> String
|
1267
|
+
# resp.tags[0].value #=> String
|
1268
|
+
#
|
1269
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/ListTagsForResource AWS API Documentation
|
1270
|
+
#
|
1271
|
+
# @overload list_tags_for_resource(params = {})
|
1272
|
+
# @param [Hash] params ({})
|
1273
|
+
def list_tags_for_resource(params = {}, options = {})
|
1274
|
+
req = build_request(:list_tags_for_resource, params)
|
1275
|
+
req.send_request(options)
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
# Adds metadata tags to the Amazon RDS Performance Insights resource.
|
1279
|
+
#
|
1280
|
+
# @option params [required, String] :service_type
|
1281
|
+
# The Amazon Web Services service for which Performance Insights returns
|
1282
|
+
# metrics. Valid value is `RDS`.
|
1283
|
+
#
|
1284
|
+
# @option params [required, String] :resource_arn
|
1285
|
+
# The Amazon RDS Performance Insights resource that the tags are added
|
1286
|
+
# to. This value is an Amazon Resource Name (ARN). For information about
|
1287
|
+
# creating an ARN, see [ Constructing an RDS Amazon Resource Name
|
1288
|
+
# (ARN)][1].
|
1289
|
+
#
|
1290
|
+
#
|
1291
|
+
#
|
1292
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing
|
1293
|
+
#
|
1294
|
+
# @option params [required, Array<Types::Tag>] :tags
|
1295
|
+
# The metadata assigned to an Amazon RDS resource consisting of a
|
1296
|
+
# key-value pair.
|
1297
|
+
#
|
1298
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1299
|
+
#
|
1300
|
+
# @example Request syntax with placeholder values
|
1301
|
+
#
|
1302
|
+
# resp = client.tag_resource({
|
1303
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
1304
|
+
# resource_arn: "AmazonResourceName", # required
|
1305
|
+
# tags: [ # required
|
1306
|
+
# {
|
1307
|
+
# key: "TagKey", # required
|
1308
|
+
# value: "TagValue", # required
|
1309
|
+
# },
|
1310
|
+
# ],
|
1311
|
+
# })
|
1312
|
+
#
|
1313
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/TagResource AWS API Documentation
|
1314
|
+
#
|
1315
|
+
# @overload tag_resource(params = {})
|
1316
|
+
# @param [Hash] params ({})
|
1317
|
+
def tag_resource(params = {}, options = {})
|
1318
|
+
req = build_request(:tag_resource, params)
|
1319
|
+
req.send_request(options)
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
# Deletes the metadata tags from the Amazon RDS Performance Insights
|
1323
|
+
# resource.
|
1324
|
+
#
|
1325
|
+
# @option params [required, String] :service_type
|
1326
|
+
# List the tags for the Amazon Web Services service for which
|
1327
|
+
# Performance Insights returns metrics. Valid value is `RDS`.
|
1328
|
+
#
|
1329
|
+
# @option params [required, String] :resource_arn
|
1330
|
+
# The Amazon RDS Performance Insights resource that the tags are added
|
1331
|
+
# to. This value is an Amazon Resource Name (ARN). For information about
|
1332
|
+
# creating an ARN, see [ Constructing an RDS Amazon Resource Name
|
1333
|
+
# (ARN)][1].
|
1334
|
+
#
|
1335
|
+
#
|
1336
|
+
#
|
1337
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing
|
1338
|
+
#
|
1339
|
+
# @option params [required, Array<String>] :tag_keys
|
1340
|
+
# The metadata assigned to an Amazon RDS Performance Insights resource
|
1341
|
+
# consisting of a key-value pair.
|
1342
|
+
#
|
1343
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1344
|
+
#
|
1345
|
+
# @example Request syntax with placeholder values
|
1346
|
+
#
|
1347
|
+
# resp = client.untag_resource({
|
1348
|
+
# service_type: "RDS", # required, accepts RDS, DOCDB
|
1349
|
+
# resource_arn: "AmazonResourceName", # required
|
1350
|
+
# tag_keys: ["TagKey"], # required
|
1351
|
+
# })
|
1352
|
+
#
|
1353
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/UntagResource AWS API Documentation
|
1354
|
+
#
|
1355
|
+
# @overload untag_resource(params = {})
|
1356
|
+
# @param [Hash] params ({})
|
1357
|
+
def untag_resource(params = {}, options = {})
|
1358
|
+
req = build_request(:untag_resource, params)
|
1359
|
+
req.send_request(options)
|
1360
|
+
end
|
1361
|
+
|
982
1362
|
# @!endgroup
|
983
1363
|
|
984
1364
|
# @param params ({})
|
@@ -992,7 +1372,7 @@ module Aws::PI
|
|
992
1372
|
params: params,
|
993
1373
|
config: config)
|
994
1374
|
context[:gem_name] = 'aws-sdk-pi'
|
995
|
-
context[:gem_version] = '1.
|
1375
|
+
context[:gem_version] = '1.49.0'
|
996
1376
|
Seahorse::Client::Request.new(handlers, context)
|
997
1377
|
end
|
998
1378
|
|