aws-sdk-pi 1.42.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08dfa6e2e98c74cece29c41aa3ab0acf00927d4653973556bcfc10885c1aebbc'
4
- data.tar.gz: 2dbbf594d4428db2a9d4a4fec41d115b6ebcb0234d1a2d9bdc6dbec8a1f0f477
3
+ metadata.gz: a9e92d01e07485b1f91a46fb8509ec69715097167463fc2bca5198644b5c87c1
4
+ data.tar.gz: 75fef8653d06d2c9f87d0284a19894696dd7fc909dd09722b9c491f97778ef31
5
5
  SHA512:
6
- metadata.gz: db2df662d62403ffb0dcb6702eb0be834cc993855ace60c8b079ec6ac767ba1279bb815035b0fba6e68fa07f83ec6ef6aa1a28e7cc19e4041e8c63d1d6ddf64d
7
- data.tar.gz: c6f5367c2bd0749eb23a8ba9f20b971c27d5796e6af65e4faea375921ec096441e2ed19a2e1eeb308623c29516894e1c49c833170334ad5730885a5841312f00
6
+ metadata.gz: 79e1fd982713ab6e69c2b74cc40b7d0204b0ee473e8d602729d7cabb852e0029d3caccb3b09709b108cb5034a1d14234ed0e38a967f2bf3b155faee6f93e60fd
7
+ data.tar.gz: 749866c6f6468a6e7537a474ef31062b722438e2707ea5cd4e12b75dcbe466d148e6c8faf8ec925aeb03b88d34c33eb2281865ae0015a85d713e7736a7119b79
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.44.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.43.0 (2023-03-02)
10
+ ------------------
11
+
12
+ * 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.
13
+
4
14
  1.42.0 (2023-01-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.44.0
@@ -275,6 +275,11 @@ module Aws::PI
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -759,6 +764,10 @@ module Aws::PI
759
764
  # parameter is specified, the response includes only records beyond the
760
765
  # token, up to the value specified by `MaxRecords`.
761
766
  #
767
+ # @option params [String] :period_alignment
768
+ # The returned timestamp which is the start or end time of the time
769
+ # periods. The default value is `END_TIME`.
770
+ #
762
771
  # @return [Types::GetResourceMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
763
772
  #
764
773
  # * {Types::GetResourceMetricsResponse#aligned_start_time #aligned_start_time} => Time
@@ -792,6 +801,7 @@ module Aws::PI
792
801
  # period_in_seconds: 1,
793
802
  # max_results: 1,
794
803
  # next_token: "NextToken",
804
+ # period_alignment: "END_TIME", # accepts END_TIME, START_TIME
795
805
  # })
796
806
  #
797
807
  # @example Response structure
@@ -967,7 +977,7 @@ module Aws::PI
967
977
  params: params,
968
978
  config: config)
969
979
  context[:gem_name] = 'aws-sdk-pi'
970
- context[:gem_version] = '1.42.0'
980
+ context[:gem_version] = '1.44.0'
971
981
  Seahorse::Client::Request.new(handlers, context)
972
982
  end
973
983
 
@@ -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"))
@@ -14,36 +14,39 @@ module Aws::PI
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- 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"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://pi-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://pi-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://pi.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
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"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://pi.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://pi.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -123,7 +123,7 @@ module Aws::PI
123
123
  # dimension group in the `GroupBy` parameter is `db.sql_tokenized`,
124
124
  # you can specify per-SQL metrics to get the values for the top `N`
125
125
  # SQL digests. The response syntax is as follows: `"AdditionalMetrics"
126
- # : \{ "string" : "string" \}`.
126
+ # \: \{ "string" : "string" \}`.
127
127
  # @return [Array<String>]
128
128
  #
129
129
  # @!attribute [rw] partition_by
@@ -755,6 +755,11 @@ module Aws::PI
755
755
  # the token, up to the value specified by `MaxRecords`.
756
756
  # @return [String]
757
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
+ #
758
763
  # @see http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetricsRequest AWS API Documentation
759
764
  #
760
765
  class GetResourceMetricsRequest < Struct.new(
@@ -765,7 +770,8 @@ module Aws::PI
765
770
  :end_time,
766
771
  :period_in_seconds,
767
772
  :max_results,
768
- :next_token)
773
+ :next_token,
774
+ :period_alignment)
769
775
  SENSITIVE = []
770
776
  include Aws::Structure
771
777
  end
data/lib/aws-sdk-pi.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-pi/customizations'
52
52
  # @!group service
53
53
  module Aws::PI
54
54
 
55
- GEM_VERSION = '1.42.0'
55
+ GEM_VERSION = '1.44.0'
56
56
 
57
57
  end
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.42.0
4
+ version: 1.44.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: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-05-31 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.165.0
22
+ version: 3.174.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.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement