aws-sdk-account 1.8.0 → 1.10.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-account/client.rb +281 -1
- data/lib/aws-sdk-account/client_api.rb +120 -1
- data/lib/aws-sdk-account/endpoint_provider.rb +86 -208
- data/lib/aws-sdk-account/endpoints.rb +56 -0
- data/lib/aws-sdk-account/errors.rb +26 -0
- data/lib/aws-sdk-account/plugins/endpoints.rb +8 -0
- data/lib/aws-sdk-account/types.rb +331 -73
- data/lib/aws-sdk-account.rb +1 -1
- metadata +2 -2
@@ -9,216 +9,94 @@
|
|
9
9
|
|
10
10
|
module Aws::Account
|
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.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
30
|
+
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"))
|
31
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.api.aws", headers: {}, properties: {})
|
32
|
+
end
|
33
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
34
|
+
end
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
40
|
+
end
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.#{region}.api.aws", headers: {}, properties: {})
|
44
|
+
end
|
45
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
46
|
+
end
|
47
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"account", "signingRegion"=>"us-east-1"}]})
|
48
|
+
end
|
49
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
|
50
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
51
|
+
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"))
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
|
53
|
+
end
|
54
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
55
|
+
end
|
56
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
57
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {})
|
59
|
+
end
|
60
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
61
|
+
end
|
62
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
63
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
64
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
|
65
|
+
end
|
66
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
67
|
+
end
|
68
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"account", "signingRegion"=>"cn-northwest-1"}]})
|
69
|
+
end
|
70
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
71
|
+
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"))
|
72
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
73
|
+
end
|
74
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
75
|
+
end
|
76
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
77
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
78
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
79
|
+
end
|
80
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
81
|
+
end
|
82
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
83
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
84
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
85
|
+
end
|
86
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
87
|
+
end
|
88
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
89
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"account", "signingRegion"=>"us-east-1"}]})
|
90
|
+
end
|
91
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
|
92
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"account", "signingRegion"=>"cn-northwest-1"}]})
|
93
|
+
end
|
94
|
+
return Aws::Endpoints::Endpoint.new(url: "https://account.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
95
|
+
end
|
96
|
+
end
|
97
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
98
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
99
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
100
|
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
|
-
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
|
-
dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
|
43
|
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
|
213
|
-
bCJdfV0sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYWNjb3VudC5jbi1u
|
214
|
-
b3J0aHdlc3QtMS5hbWF6b25hd3MuY29tLmNuIiwicHJvcGVydGllcyI6eyJh
|
215
|
-
dXRoU2NoZW1lcyI6W3sibmFtZSI6InNpZ3Y0Iiwic2lnbmluZ05hbWUiOiJh
|
216
|
-
Y2NvdW50Iiwic2lnbmluZ1JlZ2lvbiI6ImNuLW5vcnRod2VzdC0xIn1dfSwi
|
217
|
-
aGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifSx7ImNvbmRpdGlvbnMi
|
218
|
-
OltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL2FjY291bnQue1JlZ2lv
|
219
|
-
bn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6
|
220
|
-
e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19XX0=
|
221
|
-
|
222
|
-
JSON
|
223
101
|
end
|
224
102
|
end
|
@@ -25,6 +25,34 @@ module Aws::Account
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
class DisableRegion
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::Account::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class EnableRegion
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::Account::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
28
56
|
class GetAlternateContact
|
29
57
|
def self.build(context)
|
30
58
|
unless context.config.regional_endpoint
|
@@ -53,6 +81,34 @@ module Aws::Account
|
|
53
81
|
end
|
54
82
|
end
|
55
83
|
|
84
|
+
class GetRegionOptStatus
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::Account::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class ListRegions
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::Account::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
56
112
|
class PutAlternateContact
|
57
113
|
def self.build(context)
|
58
114
|
unless context.config.regional_endpoint
|
@@ -28,6 +28,7 @@ module Aws::Account
|
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AccessDeniedException}
|
31
|
+
# * {ConflictException}
|
31
32
|
# * {InternalServerException}
|
32
33
|
# * {ResourceNotFoundException}
|
33
34
|
# * {TooManyRequestsException}
|
@@ -54,6 +55,21 @@ module Aws::Account
|
|
54
55
|
end
|
55
56
|
end
|
56
57
|
|
58
|
+
class ConflictException < ServiceError
|
59
|
+
|
60
|
+
# @param [Seahorse::Client::RequestContext] context
|
61
|
+
# @param [String] message
|
62
|
+
# @param [Aws::Account::Types::ConflictException] data
|
63
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
64
|
+
super(context, message, data)
|
65
|
+
end
|
66
|
+
|
67
|
+
# @return [String]
|
68
|
+
def message
|
69
|
+
@message || @data[:message]
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
57
73
|
class InternalServerException < ServiceError
|
58
74
|
|
59
75
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -120,10 +136,20 @@ module Aws::Account
|
|
120
136
|
super(context, message, data)
|
121
137
|
end
|
122
138
|
|
139
|
+
# @return [String]
|
140
|
+
def field_list
|
141
|
+
@data[:field_list]
|
142
|
+
end
|
143
|
+
|
123
144
|
# @return [String]
|
124
145
|
def message
|
125
146
|
@message || @data[:message]
|
126
147
|
end
|
148
|
+
|
149
|
+
# @return [String]
|
150
|
+
def reason
|
151
|
+
@data[:reason]
|
152
|
+
end
|
127
153
|
end
|
128
154
|
|
129
155
|
end
|
@@ -58,10 +58,18 @@ module Aws::Account
|
|
58
58
|
case context.operation_name
|
59
59
|
when :delete_alternate_contact
|
60
60
|
Aws::Account::Endpoints::DeleteAlternateContact.build(context)
|
61
|
+
when :disable_region
|
62
|
+
Aws::Account::Endpoints::DisableRegion.build(context)
|
63
|
+
when :enable_region
|
64
|
+
Aws::Account::Endpoints::EnableRegion.build(context)
|
61
65
|
when :get_alternate_contact
|
62
66
|
Aws::Account::Endpoints::GetAlternateContact.build(context)
|
63
67
|
when :get_contact_information
|
64
68
|
Aws::Account::Endpoints::GetContactInformation.build(context)
|
69
|
+
when :get_region_opt_status
|
70
|
+
Aws::Account::Endpoints::GetRegionOptStatus.build(context)
|
71
|
+
when :list_regions
|
72
|
+
Aws::Account::Endpoints::ListRegions.build(context)
|
65
73
|
when :put_alternate_contact
|
66
74
|
Aws::Account::Endpoints::PutAlternateContact.build(context)
|
67
75
|
when :put_contact_information
|