aws-sdk-billing 1.11.0 → 1.12.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-billing/client.rb +3 -3
- data/lib/aws-sdk-billing/endpoint_parameters.rb +10 -0
- data/lib/aws-sdk-billing/endpoint_provider.rb +27 -3
- data/lib/aws-sdk-billing/types.rb +6 -6
- data/lib/aws-sdk-billing.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75278ec6b3f5eceacf2763d293f353ad7d99abd2f22212cd55092b88310d2044
|
4
|
+
data.tar.gz: ba43ff1eccd771e5521633b0d695db4fca691afa104afbfa9303eaae52029ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca20aa3e92b421d2b2b292ec6f0ae5b3a3efd6c9e52d946cf601f04caff80bf99deb1b2133241c29b3ac3874e30f270fedcb62f13efed6cf4386504621786d1
|
7
|
+
data.tar.gz: d2d7208e1e95ae262c77efbb9dc54e16e781393cb5fcfa33cbafaeb9e70339c34c0821630a7f0fc389497d5e92bb47daeffa8ee337dc0aab6d09d1f83b896462
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.12.0
|
@@ -501,7 +501,7 @@ module Aws::Billing
|
|
501
501
|
#
|
502
502
|
#
|
503
503
|
#
|
504
|
-
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/
|
504
|
+
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html
|
505
505
|
#
|
506
506
|
# @option params [String] :client_token
|
507
507
|
# A unique, case-sensitive identifier you specify to ensure idempotency
|
@@ -1054,7 +1054,7 @@ module Aws::Billing
|
|
1054
1054
|
#
|
1055
1055
|
#
|
1056
1056
|
#
|
1057
|
-
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/
|
1057
|
+
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html
|
1058
1058
|
#
|
1059
1059
|
# @return [Types::UpdateBillingViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1060
1060
|
#
|
@@ -1134,7 +1134,7 @@ module Aws::Billing
|
|
1134
1134
|
tracer: tracer
|
1135
1135
|
)
|
1136
1136
|
context[:gem_name] = 'aws-sdk-billing'
|
1137
|
-
context[:gem_version] = '1.
|
1137
|
+
context[:gem_version] = '1.12.0'
|
1138
1138
|
Seahorse::Client::Request.new(handlers, context)
|
1139
1139
|
end
|
1140
1140
|
|
@@ -10,6 +10,11 @@
|
|
10
10
|
module Aws::Billing
|
11
11
|
# Endpoint parameters used to influence endpoints per request.
|
12
12
|
#
|
13
|
+
# @!attribute use_dual_stack
|
14
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
15
|
+
#
|
16
|
+
# @return [Boolean]
|
17
|
+
#
|
13
18
|
# @!attribute use_fips
|
14
19
|
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
15
20
|
#
|
@@ -26,6 +31,7 @@ module Aws::Billing
|
|
26
31
|
# @return [String]
|
27
32
|
#
|
28
33
|
EndpointParameters = Struct.new(
|
34
|
+
:use_dual_stack,
|
29
35
|
:use_fips,
|
30
36
|
:endpoint,
|
31
37
|
:region,
|
@@ -35,6 +41,7 @@ module Aws::Billing
|
|
35
41
|
# @api private
|
36
42
|
class << self
|
37
43
|
PARAM_MAP = {
|
44
|
+
'UseDualStack' => :use_dual_stack,
|
38
45
|
'UseFIPS' => :use_fips,
|
39
46
|
'Endpoint' => :endpoint,
|
40
47
|
'Region' => :region,
|
@@ -42,6 +49,8 @@ module Aws::Billing
|
|
42
49
|
end
|
43
50
|
|
44
51
|
def initialize(options = {})
|
52
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
53
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
45
54
|
self[:use_fips] = options[:use_fips]
|
46
55
|
self[:use_fips] = false if self[:use_fips].nil?
|
47
56
|
self[:endpoint] = options[:endpoint]
|
@@ -50,6 +59,7 @@ module Aws::Billing
|
|
50
59
|
|
51
60
|
def self.create(config, options={})
|
52
61
|
new({
|
62
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
53
63
|
use_fips: config.use_fips_endpoint,
|
54
64
|
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
55
65
|
region: config.region,
|
@@ -14,14 +14,38 @@ module Aws::Billing
|
|
14
14
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
15
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
16
16
|
end
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
18
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
19
|
+
end
|
17
20
|
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
18
21
|
end
|
19
22
|
if Aws::Endpoints::Matchers.set?(parameters.region)
|
20
23
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
22
|
-
return Aws::Endpoints::Endpoint.new(url: "https://billing-
|
24
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: "https://billing.us-east-1.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
28
|
+
return Aws::Endpoints::Endpoint.new(url: "https://billing.us-east-1.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
|
29
|
+
end
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
31
|
+
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"))
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://billing-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
33
|
+
end
|
34
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
35
|
+
end
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
|
37
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://billing-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
39
|
+
end
|
40
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
41
|
+
end
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://billing.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
45
|
+
end
|
46
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
23
47
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: "https://billing.#{partition_result['implicitGlobalRegion']}.#{partition_result['
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://billing.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
|
25
49
|
end
|
26
50
|
end
|
27
51
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -50,7 +50,7 @@ module Aws::Billing
|
|
50
50
|
# @return [String]
|
51
51
|
#
|
52
52
|
# @!attribute [rw] name
|
53
|
-
#
|
53
|
+
# The account name of the billing view.
|
54
54
|
# @return [String]
|
55
55
|
#
|
56
56
|
# @!attribute [rw] description
|
@@ -62,7 +62,7 @@ module Aws::Billing
|
|
62
62
|
# @return [String]
|
63
63
|
#
|
64
64
|
# @!attribute [rw] owner_account_id
|
65
|
-
# The
|
65
|
+
# The account owner of the billing view.
|
66
66
|
# @return [String]
|
67
67
|
#
|
68
68
|
# @!attribute [rw] data_filter_expression
|
@@ -71,7 +71,7 @@ module Aws::Billing
|
|
71
71
|
#
|
72
72
|
#
|
73
73
|
#
|
74
|
-
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/
|
74
|
+
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html
|
75
75
|
# @return [Types::Expression]
|
76
76
|
#
|
77
77
|
# @!attribute [rw] created_at
|
@@ -176,7 +176,7 @@ module Aws::Billing
|
|
176
176
|
#
|
177
177
|
#
|
178
178
|
#
|
179
|
-
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/
|
179
|
+
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html
|
180
180
|
# @return [Types::Expression]
|
181
181
|
#
|
182
182
|
# @!attribute [rw] client_token
|
@@ -278,7 +278,7 @@ module Aws::Billing
|
|
278
278
|
#
|
279
279
|
#
|
280
280
|
#
|
281
|
-
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/
|
281
|
+
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html
|
282
282
|
#
|
283
283
|
# @!attribute [rw] dimensions
|
284
284
|
# The specific `Dimension` to use for `Expression`.
|
@@ -665,7 +665,7 @@ module Aws::Billing
|
|
665
665
|
#
|
666
666
|
#
|
667
667
|
#
|
668
|
-
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/
|
668
|
+
# [1]: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_Expression.html
|
669
669
|
# @return [Types::Expression]
|
670
670
|
#
|
671
671
|
# @see http://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/UpdateBillingViewRequest AWS API Documentation
|
data/lib/aws-sdk-billing.rb
CHANGED