aws-sdk-pi 1.41.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-pi/client.rb +6 -1
- data/lib/aws-sdk-pi/client_api.rb +2 -0
- data/lib/aws-sdk-pi/endpoint_provider.rb +38 -95
- data/lib/aws-sdk-pi/types.rb +7 -120
- data/lib/aws-sdk-pi.rb +1 -1
- 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: b18704a0e38bf306c481014f0db4cb72a007dd5dbe607ace50e8a280410f0ef2
|
4
|
+
data.tar.gz: 6461e565c083163df77bbb56c1e43fb7a7f04dd8e622b4d5b80b643c95427106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54bbe83cf9441df7943aba8620a41fcb48a9f49703a1a4e7a5c5d856c6991d9b2f74a2dae6cb3848525a79d05c0fd62659c3e20686e6913a57169d9a030769a3
|
7
|
+
data.tar.gz: 6ab74dcc455aeb7a2ef584d057db91c6e4b08abc3e39a12ed4af34bc5b7c6a7e089ff0a3d3a065cac4ae3739196f56d297d40bd576c5ff388577f265406cbf4b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.43.0 (2023-03-02)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds a new field PeriodAlignment to allow the customer specifying the returned timestamp of time periods to be either the start or end time.
|
8
|
+
|
9
|
+
1.42.0 (2023-01-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
15
|
+
|
4
16
|
1.41.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -215,4 +227,4 @@ Unreleased Changes
|
|
215
227
|
1.0.0 (2018-05-29)
|
216
228
|
------------------
|
217
229
|
|
218
|
-
* Feature - Initial release of `aws-sdk-pi`.
|
230
|
+
* Feature - Initial release of `aws-sdk-pi`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.43.0
|
data/lib/aws-sdk-pi/client.rb
CHANGED
@@ -759,6 +759,10 @@ module Aws::PI
|
|
759
759
|
# parameter is specified, the response includes only records beyond the
|
760
760
|
# token, up to the value specified by `MaxRecords`.
|
761
761
|
#
|
762
|
+
# @option params [String] :period_alignment
|
763
|
+
# The returned timestamp which is the start or end time of the time
|
764
|
+
# periods. The default value is `END_TIME`.
|
765
|
+
#
|
762
766
|
# @return [Types::GetResourceMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
763
767
|
#
|
764
768
|
# * {Types::GetResourceMetricsResponse#aligned_start_time #aligned_start_time} => Time
|
@@ -792,6 +796,7 @@ module Aws::PI
|
|
792
796
|
# period_in_seconds: 1,
|
793
797
|
# max_results: 1,
|
794
798
|
# next_token: "NextToken",
|
799
|
+
# period_alignment: "END_TIME", # accepts END_TIME, START_TIME
|
795
800
|
# })
|
796
801
|
#
|
797
802
|
# @example Response structure
|
@@ -967,7 +972,7 @@ module Aws::PI
|
|
967
972
|
params: params,
|
968
973
|
config: config)
|
969
974
|
context[:gem_name] = 'aws-sdk-pi'
|
970
|
-
context[:gem_version] = '1.
|
975
|
+
context[:gem_version] = '1.43.0'
|
971
976
|
Seahorse::Client::Request.new(handlers, context)
|
972
977
|
end
|
973
978
|
|
@@ -65,6 +65,7 @@ module Aws::PI
|
|
65
65
|
MetricValuesList = Shapes::ListShape.new(name: 'MetricValuesList')
|
66
66
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
67
67
|
NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException')
|
68
|
+
PeriodAlignment = Shapes::StringShape.new(name: 'PeriodAlignment')
|
68
69
|
RequestString = Shapes::StringShape.new(name: 'RequestString')
|
69
70
|
RequestStringList = Shapes::ListShape.new(name: 'RequestStringList')
|
70
71
|
RequestedDimensionList = Shapes::ListShape.new(name: 'RequestedDimensionList')
|
@@ -176,6 +177,7 @@ module Aws::PI
|
|
176
177
|
GetResourceMetricsRequest.add_member(:period_in_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "PeriodInSeconds"))
|
177
178
|
GetResourceMetricsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
178
179
|
GetResourceMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
180
|
+
GetResourceMetricsRequest.add_member(:period_alignment, Shapes::ShapeRef.new(shape: PeriodAlignment, location_name: "PeriodAlignment"))
|
179
181
|
GetResourceMetricsRequest.struct_class = Types::GetResourceMetricsRequest
|
180
182
|
|
181
183
|
GetResourceMetricsResponse.add_member(:aligned_start_time, Shapes::ShapeRef.new(shape: ISOTimestamp, location_name: "AlignedStartTime"))
|
@@ -9,103 +9,46 @@
|
|
9
9
|
|
10
10
|
module Aws::PI
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
21
25
|
end
|
22
|
-
|
23
|
-
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pi-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pi-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pi.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pi.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
51
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
52
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
-
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
-
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
-
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
-
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
-
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
-
UyIsInJlcXVpcmVkIjp0cnVlL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ZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0
|
104
|
-
eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7
|
105
|
-
InVybCI6Imh0dHBzOi8vcGkue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNk
|
106
|
-
bnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlw
|
107
|
-
ZSI6ImVuZHBvaW50In1dfV19
|
108
|
-
|
109
|
-
JSON
|
110
53
|
end
|
111
54
|
end
|
data/lib/aws-sdk-pi/types.rb
CHANGED
@@ -30,34 +30,6 @@ module Aws::PI
|
|
30
30
|
include Aws::Structure
|
31
31
|
end
|
32
32
|
|
33
|
-
# @note When making an API call, you may pass DescribeDimensionKeysRequest
|
34
|
-
# data as a hash:
|
35
|
-
#
|
36
|
-
# {
|
37
|
-
# service_type: "RDS", # required, accepts RDS, DOCDB
|
38
|
-
# identifier: "RequestString", # required
|
39
|
-
# start_time: Time.now, # required
|
40
|
-
# end_time: Time.now, # required
|
41
|
-
# metric: "RequestString", # required
|
42
|
-
# period_in_seconds: 1,
|
43
|
-
# group_by: { # required
|
44
|
-
# group: "RequestString", # required
|
45
|
-
# dimensions: ["RequestString"],
|
46
|
-
# limit: 1,
|
47
|
-
# },
|
48
|
-
# additional_metrics: ["RequestString"],
|
49
|
-
# partition_by: {
|
50
|
-
# group: "RequestString", # required
|
51
|
-
# dimensions: ["RequestString"],
|
52
|
-
# limit: 1,
|
53
|
-
# },
|
54
|
-
# filter: {
|
55
|
-
# "RequestString" => "RequestString",
|
56
|
-
# },
|
57
|
-
# max_results: 1,
|
58
|
-
# next_token: "NextToken",
|
59
|
-
# }
|
60
|
-
#
|
61
33
|
# @!attribute [rw] service_type
|
62
34
|
# The Amazon Web Services service for which Performance Insights will
|
63
35
|
# return metrics. Valid values are as follows:
|
@@ -279,15 +251,6 @@ module Aws::PI
|
|
279
251
|
#
|
280
252
|
# </note>
|
281
253
|
#
|
282
|
-
# @note When making an API call, you may pass DimensionGroup
|
283
|
-
# data as a hash:
|
284
|
-
#
|
285
|
-
# {
|
286
|
-
# group: "RequestString", # required
|
287
|
-
# dimensions: ["RequestString"],
|
288
|
-
# limit: 1,
|
289
|
-
# }
|
290
|
-
#
|
291
254
|
# @!attribute [rw] group
|
292
255
|
# The name of the dimension group. Valid values are as follows:
|
293
256
|
#
|
@@ -594,17 +557,6 @@ module Aws::PI
|
|
594
557
|
include Aws::Structure
|
595
558
|
end
|
596
559
|
|
597
|
-
# @note When making an API call, you may pass GetDimensionKeyDetailsRequest
|
598
|
-
# data as a hash:
|
599
|
-
#
|
600
|
-
# {
|
601
|
-
# service_type: "RDS", # required, accepts RDS, DOCDB
|
602
|
-
# identifier: "IdentifierString", # required
|
603
|
-
# group: "RequestString", # required
|
604
|
-
# group_identifier: "RequestString", # required
|
605
|
-
# requested_dimensions: ["RequestString"],
|
606
|
-
# }
|
607
|
-
#
|
608
560
|
# @!attribute [rw] service_type
|
609
561
|
# The Amazon Web Services service for which Performance Insights
|
610
562
|
# returns data. The only valid value is `RDS`.
|
@@ -678,14 +630,6 @@ module Aws::PI
|
|
678
630
|
include Aws::Structure
|
679
631
|
end
|
680
632
|
|
681
|
-
# @note When making an API call, you may pass GetResourceMetadataRequest
|
682
|
-
# data as a hash:
|
683
|
-
#
|
684
|
-
# {
|
685
|
-
# service_type: "RDS", # required, accepts RDS, DOCDB
|
686
|
-
# identifier: "RequestString", # required
|
687
|
-
# }
|
688
|
-
#
|
689
633
|
# @!attribute [rw] service_type
|
690
634
|
# The Amazon Web Services service for which Performance Insights
|
691
635
|
# returns metrics.
|
@@ -731,32 +675,6 @@ module Aws::PI
|
|
731
675
|
include Aws::Structure
|
732
676
|
end
|
733
677
|
|
734
|
-
# @note When making an API call, you may pass GetResourceMetricsRequest
|
735
|
-
# data as a hash:
|
736
|
-
#
|
737
|
-
# {
|
738
|
-
# service_type: "RDS", # required, accepts RDS, DOCDB
|
739
|
-
# identifier: "RequestString", # required
|
740
|
-
# metric_queries: [ # required
|
741
|
-
# {
|
742
|
-
# metric: "RequestString", # required
|
743
|
-
# group_by: {
|
744
|
-
# group: "RequestString", # required
|
745
|
-
# dimensions: ["RequestString"],
|
746
|
-
# limit: 1,
|
747
|
-
# },
|
748
|
-
# filter: {
|
749
|
-
# "RequestString" => "RequestString",
|
750
|
-
# },
|
751
|
-
# },
|
752
|
-
# ],
|
753
|
-
# start_time: Time.now, # required
|
754
|
-
# end_time: Time.now, # required
|
755
|
-
# period_in_seconds: 1,
|
756
|
-
# max_results: 1,
|
757
|
-
# next_token: "NextToken",
|
758
|
-
# }
|
759
|
-
#
|
760
678
|
# @!attribute [rw] service_type
|
761
679
|
# The Amazon Web Services service for which Performance Insights
|
762
680
|
# returns metrics. Valid values are as follows:
|
@@ -837,6 +755,11 @@ module Aws::PI
|
|
837
755
|
# the token, up to the value specified by `MaxRecords`.
|
838
756
|
# @return [String]
|
839
757
|
#
|
758
|
+
# @!attribute [rw] period_alignment
|
759
|
+
# The returned timestamp which is the start or end time of the time
|
760
|
+
# periods. The default value is `END_TIME`.
|
761
|
+
# @return [String]
|
762
|
+
#
|
840
763
|
# @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetricsRequest AWS API Documentation
|
841
764
|
#
|
842
765
|
class GetResourceMetricsRequest < Struct.new(
|
@@ -847,7 +770,8 @@ module Aws::PI
|
|
847
770
|
:end_time,
|
848
771
|
:period_in_seconds,
|
849
772
|
:max_results,
|
850
|
-
:next_token
|
773
|
+
:next_token,
|
774
|
+
:period_alignment)
|
851
775
|
SENSITIVE = []
|
852
776
|
include Aws::Structure
|
853
777
|
end
|
@@ -923,17 +847,6 @@ module Aws::PI
|
|
923
847
|
include Aws::Structure
|
924
848
|
end
|
925
849
|
|
926
|
-
# @note When making an API call, you may pass ListAvailableResourceDimensionsRequest
|
927
|
-
# data as a hash:
|
928
|
-
#
|
929
|
-
# {
|
930
|
-
# service_type: "RDS", # required, accepts RDS, DOCDB
|
931
|
-
# identifier: "RequestString", # required
|
932
|
-
# metrics: ["RequestString"], # required
|
933
|
-
# max_results: 1,
|
934
|
-
# next_token: "NextToken",
|
935
|
-
# }
|
936
|
-
#
|
937
850
|
# @!attribute [rw] service_type
|
938
851
|
# The Amazon Web Services service for which Performance Insights
|
939
852
|
# returns metrics.
|
@@ -996,17 +909,6 @@ module Aws::PI
|
|
996
909
|
include Aws::Structure
|
997
910
|
end
|
998
911
|
|
999
|
-
# @note When making an API call, you may pass ListAvailableResourceMetricsRequest
|
1000
|
-
# data as a hash:
|
1001
|
-
#
|
1002
|
-
# {
|
1003
|
-
# service_type: "RDS", # required, accepts RDS, DOCDB
|
1004
|
-
# identifier: "RequestString", # required
|
1005
|
-
# metric_types: ["RequestString"], # required
|
1006
|
-
# next_token: "NextToken",
|
1007
|
-
# max_results: 1,
|
1008
|
-
# }
|
1009
|
-
#
|
1010
912
|
# @!attribute [rw] service_type
|
1011
913
|
# The Amazon Web Services service for which Performance Insights
|
1012
914
|
# returns metrics.
|
@@ -1126,21 +1028,6 @@ module Aws::PI
|
|
1126
1028
|
# the data points be aggregated by dimension group (`GroupBy`), and
|
1127
1029
|
# return only those data points that match your criteria (`Filter`).
|
1128
1030
|
#
|
1129
|
-
# @note When making an API call, you may pass MetricQuery
|
1130
|
-
# data as a hash:
|
1131
|
-
#
|
1132
|
-
# {
|
1133
|
-
# metric: "RequestString", # required
|
1134
|
-
# group_by: {
|
1135
|
-
# group: "RequestString", # required
|
1136
|
-
# dimensions: ["RequestString"],
|
1137
|
-
# limit: 1,
|
1138
|
-
# },
|
1139
|
-
# filter: {
|
1140
|
-
# "RequestString" => "RequestString",
|
1141
|
-
# },
|
1142
|
-
# }
|
1143
|
-
#
|
1144
1031
|
# @!attribute [rw] metric
|
1145
1032
|
# The name of a Performance Insights metric to be measured.
|
1146
1033
|
#
|
data/lib/aws-sdk-pi.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-pi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.43.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:
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|