aws-sdk-pi 1.42.0 → 1.43.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08dfa6e2e98c74cece29c41aa3ab0acf00927d4653973556bcfc10885c1aebbc'
4
- data.tar.gz: 2dbbf594d4428db2a9d4a4fec41d115b6ebcb0234d1a2d9bdc6dbec8a1f0f477
3
+ metadata.gz: b18704a0e38bf306c481014f0db4cb72a007dd5dbe607ace50e8a280410f0ef2
4
+ data.tar.gz: 6461e565c083163df77bbb56c1e43fb7a7f04dd8e622b4d5b80b643c95427106
5
5
  SHA512:
6
- metadata.gz: db2df662d62403ffb0dcb6702eb0be834cc993855ace60c8b079ec6ac767ba1279bb815035b0fba6e68fa07f83ec6ef6aa1a28e7cc19e4041e8c63d1d6ddf64d
7
- data.tar.gz: c6f5367c2bd0749eb23a8ba9f20b971c27d5796e6af65e4faea375921ec096441e2ed19a2e1eeb308623c29516894e1c49c833170334ad5730885a5841312f00
6
+ metadata.gz: 54bbe83cf9441df7943aba8620a41fcb48a9f49703a1a4e7a5c5d856c6991d9b2f74a2dae6cb3848525a79d05c0fd62659c3e20686e6913a57169d9a030769a3
7
+ data.tar.gz: 6ab74dcc455aeb7a2ef584d057db91c6e4b08abc3e39a12ed4af34bc5b7c6a7e089ff0a3d3a065cac4ae3739196f56d297d40bd576c5ff388577f265406cbf4b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.42.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.43.0
@@ -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.42.0'
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"))
@@ -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
@@ -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.43.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.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: 2023-01-18 00:00:00.000000000 Z
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