aws-sdk-rolesanywhere 1.2.0 → 1.4.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rolesanywhere/client.rb +227 -84
- data/lib/aws-sdk-rolesanywhere/client_api.rb +78 -1
- data/lib/aws-sdk-rolesanywhere/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-rolesanywhere/endpoints.rb +28 -0
- data/lib/aws-sdk-rolesanywhere/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-rolesanywhere/types.rb +217 -90
- data/lib/aws-sdk-rolesanywhere.rb +1 -1
- metadata +4 -4
@@ -43,10 +43,25 @@ module Aws::RolesAnywhere
|
|
43
43
|
ListTrustAnchorsResponse = Shapes::StructureShape.new(name: 'ListTrustAnchorsResponse')
|
44
44
|
ManagedPolicyList = Shapes::ListShape.new(name: 'ManagedPolicyList')
|
45
45
|
ManagedPolicyListMemberString = Shapes::StringShape.new(name: 'ManagedPolicyListMemberString')
|
46
|
+
NotificationChannel = Shapes::StringShape.new(name: 'NotificationChannel')
|
47
|
+
NotificationEvent = Shapes::StringShape.new(name: 'NotificationEvent')
|
48
|
+
NotificationSetting = Shapes::StructureShape.new(name: 'NotificationSetting')
|
49
|
+
NotificationSettingDetail = Shapes::StructureShape.new(name: 'NotificationSettingDetail')
|
50
|
+
NotificationSettingDetailConfiguredByString = Shapes::StringShape.new(name: 'NotificationSettingDetailConfiguredByString')
|
51
|
+
NotificationSettingDetailThresholdInteger = Shapes::IntegerShape.new(name: 'NotificationSettingDetailThresholdInteger')
|
52
|
+
NotificationSettingDetails = Shapes::ListShape.new(name: 'NotificationSettingDetails')
|
53
|
+
NotificationSettingKey = Shapes::StructureShape.new(name: 'NotificationSettingKey')
|
54
|
+
NotificationSettingKeys = Shapes::ListShape.new(name: 'NotificationSettingKeys')
|
55
|
+
NotificationSettingThresholdInteger = Shapes::IntegerShape.new(name: 'NotificationSettingThresholdInteger')
|
56
|
+
NotificationSettings = Shapes::ListShape.new(name: 'NotificationSettings')
|
46
57
|
ProfileArn = Shapes::StringShape.new(name: 'ProfileArn')
|
47
58
|
ProfileDetail = Shapes::StructureShape.new(name: 'ProfileDetail')
|
48
59
|
ProfileDetailResponse = Shapes::StructureShape.new(name: 'ProfileDetailResponse')
|
49
60
|
ProfileDetails = Shapes::ListShape.new(name: 'ProfileDetails')
|
61
|
+
PutNotificationSettingsRequest = Shapes::StructureShape.new(name: 'PutNotificationSettingsRequest')
|
62
|
+
PutNotificationSettingsResponse = Shapes::StructureShape.new(name: 'PutNotificationSettingsResponse')
|
63
|
+
ResetNotificationSettingsRequest = Shapes::StructureShape.new(name: 'ResetNotificationSettingsRequest')
|
64
|
+
ResetNotificationSettingsResponse = Shapes::StructureShape.new(name: 'ResetNotificationSettingsResponse')
|
50
65
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
51
66
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
52
67
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
@@ -57,6 +72,7 @@ module Aws::RolesAnywhere
|
|
57
72
|
ScalarTrustAnchorRequest = Shapes::StructureShape.new(name: 'ScalarTrustAnchorRequest')
|
58
73
|
Source = Shapes::StructureShape.new(name: 'Source')
|
59
74
|
SourceData = Shapes::UnionShape.new(name: 'SourceData')
|
75
|
+
SourceDataX509CertificateDataString = Shapes::StringShape.new(name: 'SourceDataX509CertificateDataString')
|
60
76
|
String = Shapes::StringShape.new(name: 'String')
|
61
77
|
SubjectDetail = Shapes::StructureShape.new(name: 'SubjectDetail')
|
62
78
|
SubjectDetailResponse = Shapes::StructureShape.new(name: 'SubjectDetailResponse')
|
@@ -102,6 +118,7 @@ module Aws::RolesAnywhere
|
|
102
118
|
|
103
119
|
CreateTrustAnchorRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "enabled"))
|
104
120
|
CreateTrustAnchorRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
|
121
|
+
CreateTrustAnchorRequest.add_member(:notification_settings, Shapes::ShapeRef.new(shape: NotificationSettings, location_name: "notificationSettings"))
|
105
122
|
CreateTrustAnchorRequest.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "source"))
|
106
123
|
CreateTrustAnchorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
107
124
|
CreateTrustAnchorRequest.struct_class = Types::CreateTrustAnchorRequest
|
@@ -176,6 +193,29 @@ module Aws::RolesAnywhere
|
|
176
193
|
|
177
194
|
ManagedPolicyList.member = Shapes::ShapeRef.new(shape: ManagedPolicyListMemberString)
|
178
195
|
|
196
|
+
NotificationSetting.add_member(:channel, Shapes::ShapeRef.new(shape: NotificationChannel, location_name: "channel"))
|
197
|
+
NotificationSetting.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enabled"))
|
198
|
+
NotificationSetting.add_member(:event, Shapes::ShapeRef.new(shape: NotificationEvent, required: true, location_name: "event"))
|
199
|
+
NotificationSetting.add_member(:threshold, Shapes::ShapeRef.new(shape: NotificationSettingThresholdInteger, location_name: "threshold"))
|
200
|
+
NotificationSetting.struct_class = Types::NotificationSetting
|
201
|
+
|
202
|
+
NotificationSettingDetail.add_member(:channel, Shapes::ShapeRef.new(shape: NotificationChannel, location_name: "channel"))
|
203
|
+
NotificationSettingDetail.add_member(:configured_by, Shapes::ShapeRef.new(shape: NotificationSettingDetailConfiguredByString, location_name: "configuredBy"))
|
204
|
+
NotificationSettingDetail.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enabled"))
|
205
|
+
NotificationSettingDetail.add_member(:event, Shapes::ShapeRef.new(shape: NotificationEvent, required: true, location_name: "event"))
|
206
|
+
NotificationSettingDetail.add_member(:threshold, Shapes::ShapeRef.new(shape: NotificationSettingDetailThresholdInteger, location_name: "threshold"))
|
207
|
+
NotificationSettingDetail.struct_class = Types::NotificationSettingDetail
|
208
|
+
|
209
|
+
NotificationSettingDetails.member = Shapes::ShapeRef.new(shape: NotificationSettingDetail)
|
210
|
+
|
211
|
+
NotificationSettingKey.add_member(:channel, Shapes::ShapeRef.new(shape: NotificationChannel, location_name: "channel"))
|
212
|
+
NotificationSettingKey.add_member(:event, Shapes::ShapeRef.new(shape: NotificationEvent, required: true, location_name: "event"))
|
213
|
+
NotificationSettingKey.struct_class = Types::NotificationSettingKey
|
214
|
+
|
215
|
+
NotificationSettingKeys.member = Shapes::ShapeRef.new(shape: NotificationSettingKey)
|
216
|
+
|
217
|
+
NotificationSettings.member = Shapes::ShapeRef.new(shape: NotificationSetting)
|
218
|
+
|
179
219
|
ProfileDetail.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "createdAt"))
|
180
220
|
ProfileDetail.add_member(:created_by, Shapes::ShapeRef.new(shape: String, location_name: "createdBy"))
|
181
221
|
ProfileDetail.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "durationSeconds"))
|
@@ -195,6 +235,20 @@ module Aws::RolesAnywhere
|
|
195
235
|
|
196
236
|
ProfileDetails.member = Shapes::ShapeRef.new(shape: ProfileDetail)
|
197
237
|
|
238
|
+
PutNotificationSettingsRequest.add_member(:notification_settings, Shapes::ShapeRef.new(shape: NotificationSettings, required: true, location_name: "notificationSettings"))
|
239
|
+
PutNotificationSettingsRequest.add_member(:trust_anchor_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "trustAnchorId"))
|
240
|
+
PutNotificationSettingsRequest.struct_class = Types::PutNotificationSettingsRequest
|
241
|
+
|
242
|
+
PutNotificationSettingsResponse.add_member(:trust_anchor, Shapes::ShapeRef.new(shape: TrustAnchorDetail, required: true, location_name: "trustAnchor"))
|
243
|
+
PutNotificationSettingsResponse.struct_class = Types::PutNotificationSettingsResponse
|
244
|
+
|
245
|
+
ResetNotificationSettingsRequest.add_member(:notification_setting_keys, Shapes::ShapeRef.new(shape: NotificationSettingKeys, required: true, location_name: "notificationSettingKeys"))
|
246
|
+
ResetNotificationSettingsRequest.add_member(:trust_anchor_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "trustAnchorId"))
|
247
|
+
ResetNotificationSettingsRequest.struct_class = Types::ResetNotificationSettingsRequest
|
248
|
+
|
249
|
+
ResetNotificationSettingsResponse.add_member(:trust_anchor, Shapes::ShapeRef.new(shape: TrustAnchorDetail, required: true, location_name: "trustAnchor"))
|
250
|
+
ResetNotificationSettingsResponse.struct_class = Types::ResetNotificationSettingsResponse
|
251
|
+
|
198
252
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
199
253
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
200
254
|
|
@@ -217,7 +271,7 @@ module Aws::RolesAnywhere
|
|
217
271
|
Source.struct_class = Types::Source
|
218
272
|
|
219
273
|
SourceData.add_member(:acm_pca_arn, Shapes::ShapeRef.new(shape: String, location_name: "acmPcaArn"))
|
220
|
-
SourceData.add_member(:x509_certificate_data, Shapes::ShapeRef.new(shape:
|
274
|
+
SourceData.add_member(:x509_certificate_data, Shapes::ShapeRef.new(shape: SourceDataX509CertificateDataString, location_name: "x509CertificateData"))
|
221
275
|
SourceData.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
222
276
|
SourceData.add_member_subclass(:acm_pca_arn, Types::SourceData::AcmPcaArn)
|
223
277
|
SourceData.add_member_subclass(:x509_certificate_data, Types::SourceData::X509CertificateData)
|
@@ -269,6 +323,7 @@ module Aws::RolesAnywhere
|
|
269
323
|
TrustAnchorDetail.add_member(:created_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "createdAt"))
|
270
324
|
TrustAnchorDetail.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "enabled"))
|
271
325
|
TrustAnchorDetail.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
|
326
|
+
TrustAnchorDetail.add_member(:notification_settings, Shapes::ShapeRef.new(shape: NotificationSettingDetails, location_name: "notificationSettings"))
|
272
327
|
TrustAnchorDetail.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
|
273
328
|
TrustAnchorDetail.add_member(:trust_anchor_arn, Shapes::ShapeRef.new(shape: String, location_name: "trustAnchorArn"))
|
274
329
|
TrustAnchorDetail.add_member(:trust_anchor_id, Shapes::ShapeRef.new(shape: Uuid, location_name: "trustAnchorId"))
|
@@ -556,6 +611,28 @@ module Aws::RolesAnywhere
|
|
556
611
|
)
|
557
612
|
end)
|
558
613
|
|
614
|
+
api.add_operation(:put_notification_settings, Seahorse::Model::Operation.new.tap do |o|
|
615
|
+
o.name = "PutNotificationSettings"
|
616
|
+
o.http_method = "PATCH"
|
617
|
+
o.http_request_uri = "/put-notifications-settings"
|
618
|
+
o.input = Shapes::ShapeRef.new(shape: PutNotificationSettingsRequest)
|
619
|
+
o.output = Shapes::ShapeRef.new(shape: PutNotificationSettingsResponse)
|
620
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
621
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
622
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
623
|
+
end)
|
624
|
+
|
625
|
+
api.add_operation(:reset_notification_settings, Seahorse::Model::Operation.new.tap do |o|
|
626
|
+
o.name = "ResetNotificationSettings"
|
627
|
+
o.http_method = "PATCH"
|
628
|
+
o.http_request_uri = "/reset-notifications-settings"
|
629
|
+
o.input = Shapes::ShapeRef.new(shape: ResetNotificationSettingsRequest)
|
630
|
+
o.output = Shapes::ShapeRef.new(shape: ResetNotificationSettingsResponse)
|
631
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
632
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
633
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
634
|
+
end)
|
635
|
+
|
559
636
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
560
637
|
o.name = "TagResource"
|
561
638
|
o.http_method = "POST"
|
@@ -14,36 +14,39 @@ module Aws::RolesAnywhere
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
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
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
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"
|
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
|
-
|
41
|
-
|
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://rolesanywhere-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://rolesanywhere-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://rolesanywhere.#{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
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rolesanywhere.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rolesanywhere.#{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
|
@@ -305,6 +305,34 @@ module Aws::RolesAnywhere
|
|
305
305
|
end
|
306
306
|
end
|
307
307
|
|
308
|
+
class PutNotificationSettings
|
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 ResetNotificationSettings
|
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
|
+
|
308
336
|
class TagResource
|
309
337
|
def self.build(context)
|
310
338
|
unless context.config.regional_endpoint
|
@@ -98,6 +98,10 @@ module Aws::RolesAnywhere
|
|
98
98
|
Aws::RolesAnywhere::Endpoints::ListTagsForResource.build(context)
|
99
99
|
when :list_trust_anchors
|
100
100
|
Aws::RolesAnywhere::Endpoints::ListTrustAnchors.build(context)
|
101
|
+
when :put_notification_settings
|
102
|
+
Aws::RolesAnywhere::Endpoints::PutNotificationSettings.build(context)
|
103
|
+
when :reset_notification_settings
|
104
|
+
Aws::RolesAnywhere::Endpoints::ResetNotificationSettings.build(context)
|
101
105
|
when :tag_resource
|
102
106
|
Aws::RolesAnywhere::Endpoints::TagResource.build(context)
|
103
107
|
when :untag_resource
|