aws-sdk-rolesanywhere 1.0.0 → 1.2.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-rolesanywhere/client.rb +20 -3
- data/lib/aws-sdk-rolesanywhere/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-rolesanywhere/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-rolesanywhere/endpoints.rb +379 -0
- data/lib/aws-sdk-rolesanywhere/plugins/endpoints.rb +120 -0
- data/lib/aws-sdk-rolesanywhere/types.rb +0 -175
- data/lib/aws-sdk-rolesanywhere.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8fc32554c5ce8e1e992e6c136ebe43e8c447b707b12e86409b150b3794a5493
|
4
|
+
data.tar.gz: 2c113fcbbe164db3e5280ff6bc4cce89cf162c05ae9bae84bf1518bc4eabcafd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8578981d91f8b426c86a13492ad052b080b3d544160e7ddbf95424366624a58cf45ea676a0fb9b4befc058ba15bd3c9e21cbf1cafbfc9e795ed43721572953e3
|
7
|
+
data.tar.gz: ea39267068ae8b94bc7f8dd136f9269a950f6ca093ae83c5c5427caf295625d7ac8731e9645e276936967a869b39a8909713a0743be249e38ab5991ffc6f9399
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.2.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.1.0 (2022-10-25)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
15
|
+
|
4
16
|
1.0.0 (2022-07-05)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:rolesanywhere)
|
@@ -79,8 +79,9 @@ module Aws::RolesAnywhere
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::RolesAnywhere::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::RolesAnywhere
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::RolesAnywhere
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::RolesAnywhere::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::RolesAnywhere::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -1602,7 +1619,7 @@ module Aws::RolesAnywhere
|
|
1602
1619
|
params: params,
|
1603
1620
|
config: config)
|
1604
1621
|
context[:gem_name] = 'aws-sdk-rolesanywhere'
|
1605
|
-
context[:gem_version] = '1.
|
1622
|
+
context[:gem_version] = '1.2.0'
|
1606
1623
|
Seahorse::Client::Request.new(handlers, context)
|
1607
1624
|
end
|
1608
1625
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::RolesAnywhere
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# 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.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::RolesAnywhere
|
11
|
+
class EndpointProvider
|
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 (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://rolesanywhere-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
|
33
|
+
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://rolesanywhere-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
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://rolesanywhere.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rolesanywhere.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,379 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::RolesAnywhere
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CreateProfile
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class CreateTrustAnchor
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::RolesAnywhere::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 DeleteCrl
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::RolesAnywhere::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
|
+
|
56
|
+
class DeleteProfile
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class DeleteTrustAnchor
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class DisableCrl
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::RolesAnywhere::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 DisableProfile
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::RolesAnywhere::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
|
+
|
112
|
+
class DisableTrustAnchor
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class EnableCrl
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class EnableProfile
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class EnableTrustAnchor
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class GetCrl
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class GetProfile
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class GetSubject
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class GetTrustAnchor
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
+
use_fips: context.config.use_fips_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class ImportCrl
|
225
|
+
def self.build(context)
|
226
|
+
unless context.config.regional_endpoint
|
227
|
+
endpoint = context.config.endpoint.to_s
|
228
|
+
end
|
229
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
230
|
+
region: context.config.region,
|
231
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
|
+
use_fips: context.config.use_fips_endpoint,
|
233
|
+
endpoint: endpoint,
|
234
|
+
)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
class ListCrls
|
239
|
+
def self.build(context)
|
240
|
+
unless context.config.regional_endpoint
|
241
|
+
endpoint = context.config.endpoint.to_s
|
242
|
+
end
|
243
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
244
|
+
region: context.config.region,
|
245
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
|
+
use_fips: context.config.use_fips_endpoint,
|
247
|
+
endpoint: endpoint,
|
248
|
+
)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class ListProfiles
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
258
|
+
region: context.config.region,
|
259
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
+
use_fips: context.config.use_fips_endpoint,
|
261
|
+
endpoint: endpoint,
|
262
|
+
)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class ListSubjects
|
267
|
+
def self.build(context)
|
268
|
+
unless context.config.regional_endpoint
|
269
|
+
endpoint = context.config.endpoint.to_s
|
270
|
+
end
|
271
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
272
|
+
region: context.config.region,
|
273
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
+
use_fips: context.config.use_fips_endpoint,
|
275
|
+
endpoint: endpoint,
|
276
|
+
)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class ListTagsForResource
|
281
|
+
def self.build(context)
|
282
|
+
unless context.config.regional_endpoint
|
283
|
+
endpoint = context.config.endpoint.to_s
|
284
|
+
end
|
285
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
286
|
+
region: context.config.region,
|
287
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
288
|
+
use_fips: context.config.use_fips_endpoint,
|
289
|
+
endpoint: endpoint,
|
290
|
+
)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
class ListTrustAnchors
|
295
|
+
def self.build(context)
|
296
|
+
unless context.config.regional_endpoint
|
297
|
+
endpoint = context.config.endpoint.to_s
|
298
|
+
end
|
299
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
300
|
+
region: context.config.region,
|
301
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
302
|
+
use_fips: context.config.use_fips_endpoint,
|
303
|
+
endpoint: endpoint,
|
304
|
+
)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
class TagResource
|
309
|
+
def self.build(context)
|
310
|
+
unless context.config.regional_endpoint
|
311
|
+
endpoint = context.config.endpoint.to_s
|
312
|
+
end
|
313
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
314
|
+
region: context.config.region,
|
315
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
316
|
+
use_fips: context.config.use_fips_endpoint,
|
317
|
+
endpoint: endpoint,
|
318
|
+
)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
class UntagResource
|
323
|
+
def self.build(context)
|
324
|
+
unless context.config.regional_endpoint
|
325
|
+
endpoint = context.config.endpoint.to_s
|
326
|
+
end
|
327
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
328
|
+
region: context.config.region,
|
329
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
330
|
+
use_fips: context.config.use_fips_endpoint,
|
331
|
+
endpoint: endpoint,
|
332
|
+
)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
class UpdateCrl
|
337
|
+
def self.build(context)
|
338
|
+
unless context.config.regional_endpoint
|
339
|
+
endpoint = context.config.endpoint.to_s
|
340
|
+
end
|
341
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
342
|
+
region: context.config.region,
|
343
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
344
|
+
use_fips: context.config.use_fips_endpoint,
|
345
|
+
endpoint: endpoint,
|
346
|
+
)
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class UpdateProfile
|
351
|
+
def self.build(context)
|
352
|
+
unless context.config.regional_endpoint
|
353
|
+
endpoint = context.config.endpoint.to_s
|
354
|
+
end
|
355
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
356
|
+
region: context.config.region,
|
357
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
358
|
+
use_fips: context.config.use_fips_endpoint,
|
359
|
+
endpoint: endpoint,
|
360
|
+
)
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
class UpdateTrustAnchor
|
365
|
+
def self.build(context)
|
366
|
+
unless context.config.regional_endpoint
|
367
|
+
endpoint = context.config.endpoint.to_s
|
368
|
+
end
|
369
|
+
Aws::RolesAnywhere::EndpointParameters.new(
|
370
|
+
region: context.config.region,
|
371
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
|
+
use_fips: context.config.use_fips_endpoint,
|
373
|
+
endpoint: endpoint,
|
374
|
+
)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
end
|
379
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::RolesAnywhere
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::RolesAnywhere::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::RolesAnywhere::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::RolesAnywhere::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :create_profile
|
60
|
+
Aws::RolesAnywhere::Endpoints::CreateProfile.build(context)
|
61
|
+
when :create_trust_anchor
|
62
|
+
Aws::RolesAnywhere::Endpoints::CreateTrustAnchor.build(context)
|
63
|
+
when :delete_crl
|
64
|
+
Aws::RolesAnywhere::Endpoints::DeleteCrl.build(context)
|
65
|
+
when :delete_profile
|
66
|
+
Aws::RolesAnywhere::Endpoints::DeleteProfile.build(context)
|
67
|
+
when :delete_trust_anchor
|
68
|
+
Aws::RolesAnywhere::Endpoints::DeleteTrustAnchor.build(context)
|
69
|
+
when :disable_crl
|
70
|
+
Aws::RolesAnywhere::Endpoints::DisableCrl.build(context)
|
71
|
+
when :disable_profile
|
72
|
+
Aws::RolesAnywhere::Endpoints::DisableProfile.build(context)
|
73
|
+
when :disable_trust_anchor
|
74
|
+
Aws::RolesAnywhere::Endpoints::DisableTrustAnchor.build(context)
|
75
|
+
when :enable_crl
|
76
|
+
Aws::RolesAnywhere::Endpoints::EnableCrl.build(context)
|
77
|
+
when :enable_profile
|
78
|
+
Aws::RolesAnywhere::Endpoints::EnableProfile.build(context)
|
79
|
+
when :enable_trust_anchor
|
80
|
+
Aws::RolesAnywhere::Endpoints::EnableTrustAnchor.build(context)
|
81
|
+
when :get_crl
|
82
|
+
Aws::RolesAnywhere::Endpoints::GetCrl.build(context)
|
83
|
+
when :get_profile
|
84
|
+
Aws::RolesAnywhere::Endpoints::GetProfile.build(context)
|
85
|
+
when :get_subject
|
86
|
+
Aws::RolesAnywhere::Endpoints::GetSubject.build(context)
|
87
|
+
when :get_trust_anchor
|
88
|
+
Aws::RolesAnywhere::Endpoints::GetTrustAnchor.build(context)
|
89
|
+
when :import_crl
|
90
|
+
Aws::RolesAnywhere::Endpoints::ImportCrl.build(context)
|
91
|
+
when :list_crls
|
92
|
+
Aws::RolesAnywhere::Endpoints::ListCrls.build(context)
|
93
|
+
when :list_profiles
|
94
|
+
Aws::RolesAnywhere::Endpoints::ListProfiles.build(context)
|
95
|
+
when :list_subjects
|
96
|
+
Aws::RolesAnywhere::Endpoints::ListSubjects.build(context)
|
97
|
+
when :list_tags_for_resource
|
98
|
+
Aws::RolesAnywhere::Endpoints::ListTagsForResource.build(context)
|
99
|
+
when :list_trust_anchors
|
100
|
+
Aws::RolesAnywhere::Endpoints::ListTrustAnchors.build(context)
|
101
|
+
when :tag_resource
|
102
|
+
Aws::RolesAnywhere::Endpoints::TagResource.build(context)
|
103
|
+
when :untag_resource
|
104
|
+
Aws::RolesAnywhere::Endpoints::UntagResource.build(context)
|
105
|
+
when :update_crl
|
106
|
+
Aws::RolesAnywhere::Endpoints::UpdateCrl.build(context)
|
107
|
+
when :update_profile
|
108
|
+
Aws::RolesAnywhere::Endpoints::UpdateProfile.build(context)
|
109
|
+
when :update_trust_anchor
|
110
|
+
Aws::RolesAnywhere::Endpoints::UpdateTrustAnchor.build(context)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
def add_handlers(handlers, _config)
|
116
|
+
handlers.add(Handler, step: :build, priority: 75)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -23,25 +23,6 @@ module Aws::RolesAnywhere
|
|
23
23
|
include Aws::Structure
|
24
24
|
end
|
25
25
|
|
26
|
-
# @note When making an API call, you may pass CreateProfileRequest
|
27
|
-
# data as a hash:
|
28
|
-
#
|
29
|
-
# {
|
30
|
-
# duration_seconds: 1,
|
31
|
-
# enabled: false,
|
32
|
-
# managed_policy_arns: ["ManagedPolicyListMemberString"],
|
33
|
-
# name: "ResourceName", # required
|
34
|
-
# require_instance_properties: false,
|
35
|
-
# role_arns: ["RoleArn"], # required
|
36
|
-
# session_policy: "String",
|
37
|
-
# tags: [
|
38
|
-
# {
|
39
|
-
# key: "TagKey", # required
|
40
|
-
# value: "TagValue", # required
|
41
|
-
# },
|
42
|
-
# ],
|
43
|
-
# }
|
44
|
-
#
|
45
26
|
# @!attribute [rw] duration_seconds
|
46
27
|
# The number of seconds the vended session credentials are valid for.
|
47
28
|
# @return [Integer]
|
@@ -101,27 +82,6 @@ module Aws::RolesAnywhere
|
|
101
82
|
include Aws::Structure
|
102
83
|
end
|
103
84
|
|
104
|
-
# @note When making an API call, you may pass CreateTrustAnchorRequest
|
105
|
-
# data as a hash:
|
106
|
-
#
|
107
|
-
# {
|
108
|
-
# enabled: false,
|
109
|
-
# name: "ResourceName", # required
|
110
|
-
# source: { # required
|
111
|
-
# source_data: {
|
112
|
-
# acm_pca_arn: "String",
|
113
|
-
# x509_certificate_data: "String",
|
114
|
-
# },
|
115
|
-
# source_type: "AWS_ACM_PCA", # accepts AWS_ACM_PCA, CERTIFICATE_BUNDLE, SELF_SIGNED_REPOSITORY
|
116
|
-
# },
|
117
|
-
# tags: [
|
118
|
-
# {
|
119
|
-
# key: "TagKey", # required
|
120
|
-
# value: "TagValue", # required
|
121
|
-
# },
|
122
|
-
# ],
|
123
|
-
# }
|
124
|
-
#
|
125
85
|
# @!attribute [rw] enabled
|
126
86
|
# Specifies whether the trust anchor is enabled.
|
127
87
|
# @return [Boolean]
|
@@ -269,22 +229,6 @@ module Aws::RolesAnywhere
|
|
269
229
|
include Aws::Structure
|
270
230
|
end
|
271
231
|
|
272
|
-
# @note When making an API call, you may pass ImportCrlRequest
|
273
|
-
# data as a hash:
|
274
|
-
#
|
275
|
-
# {
|
276
|
-
# crl_data: "data", # required
|
277
|
-
# enabled: false,
|
278
|
-
# name: "ResourceName", # required
|
279
|
-
# tags: [
|
280
|
-
# {
|
281
|
-
# key: "TagKey", # required
|
282
|
-
# value: "TagValue", # required
|
283
|
-
# },
|
284
|
-
# ],
|
285
|
-
# trust_anchor_arn: "TrustAnchorArn", # required
|
286
|
-
# }
|
287
|
-
#
|
288
232
|
# @!attribute [rw] crl_data
|
289
233
|
# The x509 v3 specified certificate revocation list
|
290
234
|
# @return [String]
|
@@ -390,14 +334,6 @@ module Aws::RolesAnywhere
|
|
390
334
|
include Aws::Structure
|
391
335
|
end
|
392
336
|
|
393
|
-
# @note When making an API call, you may pass ListRequest
|
394
|
-
# data as a hash:
|
395
|
-
#
|
396
|
-
# {
|
397
|
-
# next_token: "ListRequestNextTokenString",
|
398
|
-
# page_size: 1,
|
399
|
-
# }
|
400
|
-
#
|
401
337
|
# @!attribute [rw] next_token
|
402
338
|
# A token that indicates where the output should continue from, if a
|
403
339
|
# previous operation did not show all results. To get the next
|
@@ -436,13 +372,6 @@ module Aws::RolesAnywhere
|
|
436
372
|
include Aws::Structure
|
437
373
|
end
|
438
374
|
|
439
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
440
|
-
# data as a hash:
|
441
|
-
#
|
442
|
-
# {
|
443
|
-
# resource_arn: "AmazonResourceName", # required
|
444
|
-
# }
|
445
|
-
#
|
446
375
|
# @!attribute [rw] resource_arn
|
447
376
|
# The ARN of the resource.
|
448
377
|
# @return [String]
|
@@ -592,13 +521,6 @@ module Aws::RolesAnywhere
|
|
592
521
|
include Aws::Structure
|
593
522
|
end
|
594
523
|
|
595
|
-
# @note When making an API call, you may pass ScalarCrlRequest
|
596
|
-
# data as a hash:
|
597
|
-
#
|
598
|
-
# {
|
599
|
-
# crl_id: "Uuid", # required
|
600
|
-
# }
|
601
|
-
#
|
602
524
|
# @!attribute [rw] crl_id
|
603
525
|
# The unique identifier of the certificate revocation list (CRL).
|
604
526
|
# @return [String]
|
@@ -611,13 +533,6 @@ module Aws::RolesAnywhere
|
|
611
533
|
include Aws::Structure
|
612
534
|
end
|
613
535
|
|
614
|
-
# @note When making an API call, you may pass ScalarProfileRequest
|
615
|
-
# data as a hash:
|
616
|
-
#
|
617
|
-
# {
|
618
|
-
# profile_id: "Uuid", # required
|
619
|
-
# }
|
620
|
-
#
|
621
536
|
# @!attribute [rw] profile_id
|
622
537
|
# The unique identifier of the profile.
|
623
538
|
# @return [String]
|
@@ -630,13 +545,6 @@ module Aws::RolesAnywhere
|
|
630
545
|
include Aws::Structure
|
631
546
|
end
|
632
547
|
|
633
|
-
# @note When making an API call, you may pass ScalarSubjectRequest
|
634
|
-
# data as a hash:
|
635
|
-
#
|
636
|
-
# {
|
637
|
-
# subject_id: "Uuid", # required
|
638
|
-
# }
|
639
|
-
#
|
640
548
|
# @!attribute [rw] subject_id
|
641
549
|
# The unique identifier of the subject.
|
642
550
|
# @return [String]
|
@@ -649,13 +557,6 @@ module Aws::RolesAnywhere
|
|
649
557
|
include Aws::Structure
|
650
558
|
end
|
651
559
|
|
652
|
-
# @note When making an API call, you may pass ScalarTrustAnchorRequest
|
653
|
-
# data as a hash:
|
654
|
-
#
|
655
|
-
# {
|
656
|
-
# trust_anchor_id: "Uuid", # required
|
657
|
-
# }
|
658
|
-
#
|
659
560
|
# @!attribute [rw] trust_anchor_id
|
660
561
|
# The unique identifier of the trust anchor.
|
661
562
|
# @return [String]
|
@@ -670,17 +571,6 @@ module Aws::RolesAnywhere
|
|
670
571
|
|
671
572
|
# The trust anchor type and its related certificate data.
|
672
573
|
#
|
673
|
-
# @note When making an API call, you may pass Source
|
674
|
-
# data as a hash:
|
675
|
-
#
|
676
|
-
# {
|
677
|
-
# source_data: {
|
678
|
-
# acm_pca_arn: "String",
|
679
|
-
# x509_certificate_data: "String",
|
680
|
-
# },
|
681
|
-
# source_type: "AWS_ACM_PCA", # accepts AWS_ACM_PCA, CERTIFICATE_BUNDLE, SELF_SIGNED_REPOSITORY
|
682
|
-
# }
|
683
|
-
#
|
684
574
|
# @!attribute [rw] source_data
|
685
575
|
# The data field of the trust anchor depending on its type.
|
686
576
|
# @return [Types::SourceData]
|
@@ -860,14 +750,6 @@ module Aws::RolesAnywhere
|
|
860
750
|
|
861
751
|
# A label that consists of a key and value you define.
|
862
752
|
#
|
863
|
-
# @note When making an API call, you may pass Tag
|
864
|
-
# data as a hash:
|
865
|
-
#
|
866
|
-
# {
|
867
|
-
# key: "TagKey", # required
|
868
|
-
# value: "TagValue", # required
|
869
|
-
# }
|
870
|
-
#
|
871
753
|
# @!attribute [rw] key
|
872
754
|
# The tag key.
|
873
755
|
# @return [String]
|
@@ -885,19 +767,6 @@ module Aws::RolesAnywhere
|
|
885
767
|
include Aws::Structure
|
886
768
|
end
|
887
769
|
|
888
|
-
# @note When making an API call, you may pass TagResourceRequest
|
889
|
-
# data as a hash:
|
890
|
-
#
|
891
|
-
# {
|
892
|
-
# resource_arn: "AmazonResourceName", # required
|
893
|
-
# tags: [ # required
|
894
|
-
# {
|
895
|
-
# key: "TagKey", # required
|
896
|
-
# value: "TagValue", # required
|
897
|
-
# },
|
898
|
-
# ],
|
899
|
-
# }
|
900
|
-
#
|
901
770
|
# @!attribute [rw] resource_arn
|
902
771
|
# The ARN of the resource.
|
903
772
|
# @return [String]
|
@@ -988,14 +857,6 @@ module Aws::RolesAnywhere
|
|
988
857
|
include Aws::Structure
|
989
858
|
end
|
990
859
|
|
991
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
992
|
-
# data as a hash:
|
993
|
-
#
|
994
|
-
# {
|
995
|
-
# resource_arn: "AmazonResourceName", # required
|
996
|
-
# tag_keys: ["TagKey"], # required
|
997
|
-
# }
|
998
|
-
#
|
999
860
|
# @!attribute [rw] resource_arn
|
1000
861
|
# The ARN of the resource.
|
1001
862
|
# @return [String]
|
@@ -1017,15 +878,6 @@ module Aws::RolesAnywhere
|
|
1017
878
|
#
|
1018
879
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
1019
880
|
|
1020
|
-
# @note When making an API call, you may pass UpdateCrlRequest
|
1021
|
-
# data as a hash:
|
1022
|
-
#
|
1023
|
-
# {
|
1024
|
-
# crl_data: "data",
|
1025
|
-
# crl_id: "Uuid", # required
|
1026
|
-
# name: "ResourceName",
|
1027
|
-
# }
|
1028
|
-
#
|
1029
881
|
# @!attribute [rw] crl_data
|
1030
882
|
# The x509 v3 specified certificate revocation list
|
1031
883
|
# @return [String]
|
@@ -1048,18 +900,6 @@ module Aws::RolesAnywhere
|
|
1048
900
|
include Aws::Structure
|
1049
901
|
end
|
1050
902
|
|
1051
|
-
# @note When making an API call, you may pass UpdateProfileRequest
|
1052
|
-
# data as a hash:
|
1053
|
-
#
|
1054
|
-
# {
|
1055
|
-
# duration_seconds: 1,
|
1056
|
-
# managed_policy_arns: ["ManagedPolicyListMemberString"],
|
1057
|
-
# name: "ResourceName",
|
1058
|
-
# profile_id: "Uuid", # required
|
1059
|
-
# role_arns: ["RoleArn"],
|
1060
|
-
# session_policy: "UpdateProfileRequestSessionPolicyString",
|
1061
|
-
# }
|
1062
|
-
#
|
1063
903
|
# @!attribute [rw] duration_seconds
|
1064
904
|
# The number of seconds the vended session credentials are valid for.
|
1065
905
|
# @return [Integer]
|
@@ -1104,21 +944,6 @@ module Aws::RolesAnywhere
|
|
1104
944
|
include Aws::Structure
|
1105
945
|
end
|
1106
946
|
|
1107
|
-
# @note When making an API call, you may pass UpdateTrustAnchorRequest
|
1108
|
-
# data as a hash:
|
1109
|
-
#
|
1110
|
-
# {
|
1111
|
-
# name: "ResourceName",
|
1112
|
-
# source: {
|
1113
|
-
# source_data: {
|
1114
|
-
# acm_pca_arn: "String",
|
1115
|
-
# x509_certificate_data: "String",
|
1116
|
-
# },
|
1117
|
-
# source_type: "AWS_ACM_PCA", # accepts AWS_ACM_PCA, CERTIFICATE_BUNDLE, SELF_SIGNED_REPOSITORY
|
1118
|
-
# },
|
1119
|
-
# trust_anchor_id: "Uuid", # required
|
1120
|
-
# }
|
1121
|
-
#
|
1122
947
|
# @!attribute [rw] name
|
1123
948
|
# The name of the trust anchor.
|
1124
949
|
# @return [String]
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-rolesanywhere/types'
|
15
15
|
require_relative 'aws-sdk-rolesanywhere/client_api'
|
16
|
+
require_relative 'aws-sdk-rolesanywhere/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-rolesanywhere/client'
|
17
18
|
require_relative 'aws-sdk-rolesanywhere/errors'
|
18
19
|
require_relative 'aws-sdk-rolesanywhere/resource'
|
20
|
+
require_relative 'aws-sdk-rolesanywhere/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-rolesanywhere/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-rolesanywhere/endpoints'
|
19
23
|
require_relative 'aws-sdk-rolesanywhere/customizations'
|
20
24
|
|
21
25
|
# This module provides support for IAM Roles Anywhere. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-rolesanywhere/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::RolesAnywhere
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.2.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rolesanywhere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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-01-18 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.
|
22
|
+
version: 3.165.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.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-rolesanywhere/client.rb
|
60
60
|
- lib/aws-sdk-rolesanywhere/client_api.rb
|
61
61
|
- lib/aws-sdk-rolesanywhere/customizations.rb
|
62
|
+
- lib/aws-sdk-rolesanywhere/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-rolesanywhere/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-rolesanywhere/endpoints.rb
|
62
65
|
- lib/aws-sdk-rolesanywhere/errors.rb
|
66
|
+
- lib/aws-sdk-rolesanywhere/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-rolesanywhere/resource.rb
|
64
68
|
- lib/aws-sdk-rolesanywhere/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|