aws-sdk-ssmcontacts 1.16.0 → 1.18.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ssmcontacts/client.rb +822 -709
- data/lib/aws-sdk-ssmcontacts/client_api.rb +478 -7
- data/lib/aws-sdk-ssmcontacts/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-ssmcontacts/endpoints.rb +168 -0
- data/lib/aws-sdk-ssmcontacts/errors.rb +5 -0
- data/lib/aws-sdk-ssmcontacts/plugins/endpoints.rb +24 -0
- data/lib/aws-sdk-ssmcontacts/types.rb +958 -6
- data/lib/aws-sdk-ssmcontacts.rb +1 -1
- metadata +4 -4
@@ -14,36 +14,39 @@ module Aws::SSMContacts
|
|
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://ssm-contacts-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://ssm-contacts-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://ssm-contacts-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://ssm-contacts-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://ssm-contacts.#{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://ssm-contacts.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ssm-contacts.#{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
|
@@ -67,6 +67,34 @@ module Aws::SSMContacts
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
class CreateRotation
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::SSMContacts::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 CreateRotationOverride
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::SSMContacts::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
|
+
|
70
98
|
class DeactivateContactChannel
|
71
99
|
def self.build(context)
|
72
100
|
unless context.config.regional_endpoint
|
@@ -109,6 +137,34 @@ module Aws::SSMContacts
|
|
109
137
|
end
|
110
138
|
end
|
111
139
|
|
140
|
+
class DeleteRotation
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::SSMContacts::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 DeleteRotationOverride
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::SSMContacts::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
|
+
|
112
168
|
class DescribeEngagement
|
113
169
|
def self.build(context)
|
114
170
|
unless context.config.regional_endpoint
|
@@ -179,6 +235,34 @@ module Aws::SSMContacts
|
|
179
235
|
end
|
180
236
|
end
|
181
237
|
|
238
|
+
class GetRotation
|
239
|
+
def self.build(context)
|
240
|
+
unless context.config.regional_endpoint
|
241
|
+
endpoint = context.config.endpoint.to_s
|
242
|
+
end
|
243
|
+
Aws::SSMContacts::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 GetRotationOverride
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::SSMContacts::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
|
+
|
182
266
|
class ListContactChannels
|
183
267
|
def self.build(context)
|
184
268
|
unless context.config.regional_endpoint
|
@@ -235,6 +319,20 @@ module Aws::SSMContacts
|
|
235
319
|
end
|
236
320
|
end
|
237
321
|
|
322
|
+
class ListPageResolutions
|
323
|
+
def self.build(context)
|
324
|
+
unless context.config.regional_endpoint
|
325
|
+
endpoint = context.config.endpoint.to_s
|
326
|
+
end
|
327
|
+
Aws::SSMContacts::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
|
+
|
238
336
|
class ListPagesByContact
|
239
337
|
def self.build(context)
|
240
338
|
unless context.config.regional_endpoint
|
@@ -263,6 +361,62 @@ module Aws::SSMContacts
|
|
263
361
|
end
|
264
362
|
end
|
265
363
|
|
364
|
+
class ListPreviewRotationShifts
|
365
|
+
def self.build(context)
|
366
|
+
unless context.config.regional_endpoint
|
367
|
+
endpoint = context.config.endpoint.to_s
|
368
|
+
end
|
369
|
+
Aws::SSMContacts::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
|
+
class ListRotationOverrides
|
379
|
+
def self.build(context)
|
380
|
+
unless context.config.regional_endpoint
|
381
|
+
endpoint = context.config.endpoint.to_s
|
382
|
+
end
|
383
|
+
Aws::SSMContacts::EndpointParameters.new(
|
384
|
+
region: context.config.region,
|
385
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
386
|
+
use_fips: context.config.use_fips_endpoint,
|
387
|
+
endpoint: endpoint,
|
388
|
+
)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
class ListRotationShifts
|
393
|
+
def self.build(context)
|
394
|
+
unless context.config.regional_endpoint
|
395
|
+
endpoint = context.config.endpoint.to_s
|
396
|
+
end
|
397
|
+
Aws::SSMContacts::EndpointParameters.new(
|
398
|
+
region: context.config.region,
|
399
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
400
|
+
use_fips: context.config.use_fips_endpoint,
|
401
|
+
endpoint: endpoint,
|
402
|
+
)
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class ListRotations
|
407
|
+
def self.build(context)
|
408
|
+
unless context.config.regional_endpoint
|
409
|
+
endpoint = context.config.endpoint.to_s
|
410
|
+
end
|
411
|
+
Aws::SSMContacts::EndpointParameters.new(
|
412
|
+
region: context.config.region,
|
413
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
+
use_fips: context.config.use_fips_endpoint,
|
415
|
+
endpoint: endpoint,
|
416
|
+
)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
266
420
|
class ListTagsForResource
|
267
421
|
def self.build(context)
|
268
422
|
unless context.config.regional_endpoint
|
@@ -389,5 +543,19 @@ module Aws::SSMContacts
|
|
389
543
|
end
|
390
544
|
end
|
391
545
|
|
546
|
+
class UpdateRotation
|
547
|
+
def self.build(context)
|
548
|
+
unless context.config.regional_endpoint
|
549
|
+
endpoint = context.config.endpoint.to_s
|
550
|
+
end
|
551
|
+
Aws::SSMContacts::EndpointParameters.new(
|
552
|
+
region: context.config.region,
|
553
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
554
|
+
use_fips: context.config.use_fips_endpoint,
|
555
|
+
endpoint: endpoint,
|
556
|
+
)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
392
560
|
end
|
393
561
|
end
|
@@ -64,12 +64,20 @@ module Aws::SSMContacts
|
|
64
64
|
Aws::SSMContacts::Endpoints::CreateContact.build(context)
|
65
65
|
when :create_contact_channel
|
66
66
|
Aws::SSMContacts::Endpoints::CreateContactChannel.build(context)
|
67
|
+
when :create_rotation
|
68
|
+
Aws::SSMContacts::Endpoints::CreateRotation.build(context)
|
69
|
+
when :create_rotation_override
|
70
|
+
Aws::SSMContacts::Endpoints::CreateRotationOverride.build(context)
|
67
71
|
when :deactivate_contact_channel
|
68
72
|
Aws::SSMContacts::Endpoints::DeactivateContactChannel.build(context)
|
69
73
|
when :delete_contact
|
70
74
|
Aws::SSMContacts::Endpoints::DeleteContact.build(context)
|
71
75
|
when :delete_contact_channel
|
72
76
|
Aws::SSMContacts::Endpoints::DeleteContactChannel.build(context)
|
77
|
+
when :delete_rotation
|
78
|
+
Aws::SSMContacts::Endpoints::DeleteRotation.build(context)
|
79
|
+
when :delete_rotation_override
|
80
|
+
Aws::SSMContacts::Endpoints::DeleteRotationOverride.build(context)
|
73
81
|
when :describe_engagement
|
74
82
|
Aws::SSMContacts::Endpoints::DescribeEngagement.build(context)
|
75
83
|
when :describe_page
|
@@ -80,6 +88,10 @@ module Aws::SSMContacts
|
|
80
88
|
Aws::SSMContacts::Endpoints::GetContactChannel.build(context)
|
81
89
|
when :get_contact_policy
|
82
90
|
Aws::SSMContacts::Endpoints::GetContactPolicy.build(context)
|
91
|
+
when :get_rotation
|
92
|
+
Aws::SSMContacts::Endpoints::GetRotation.build(context)
|
93
|
+
when :get_rotation_override
|
94
|
+
Aws::SSMContacts::Endpoints::GetRotationOverride.build(context)
|
83
95
|
when :list_contact_channels
|
84
96
|
Aws::SSMContacts::Endpoints::ListContactChannels.build(context)
|
85
97
|
when :list_contacts
|
@@ -88,10 +100,20 @@ module Aws::SSMContacts
|
|
88
100
|
Aws::SSMContacts::Endpoints::ListEngagements.build(context)
|
89
101
|
when :list_page_receipts
|
90
102
|
Aws::SSMContacts::Endpoints::ListPageReceipts.build(context)
|
103
|
+
when :list_page_resolutions
|
104
|
+
Aws::SSMContacts::Endpoints::ListPageResolutions.build(context)
|
91
105
|
when :list_pages_by_contact
|
92
106
|
Aws::SSMContacts::Endpoints::ListPagesByContact.build(context)
|
93
107
|
when :list_pages_by_engagement
|
94
108
|
Aws::SSMContacts::Endpoints::ListPagesByEngagement.build(context)
|
109
|
+
when :list_preview_rotation_shifts
|
110
|
+
Aws::SSMContacts::Endpoints::ListPreviewRotationShifts.build(context)
|
111
|
+
when :list_rotation_overrides
|
112
|
+
Aws::SSMContacts::Endpoints::ListRotationOverrides.build(context)
|
113
|
+
when :list_rotation_shifts
|
114
|
+
Aws::SSMContacts::Endpoints::ListRotationShifts.build(context)
|
115
|
+
when :list_rotations
|
116
|
+
Aws::SSMContacts::Endpoints::ListRotations.build(context)
|
95
117
|
when :list_tags_for_resource
|
96
118
|
Aws::SSMContacts::Endpoints::ListTagsForResource.build(context)
|
97
119
|
when :put_contact_policy
|
@@ -110,6 +132,8 @@ module Aws::SSMContacts
|
|
110
132
|
Aws::SSMContacts::Endpoints::UpdateContact.build(context)
|
111
133
|
when :update_contact_channel
|
112
134
|
Aws::SSMContacts::Endpoints::UpdateContactChannel.build(context)
|
135
|
+
when :update_rotation
|
136
|
+
Aws::SSMContacts::Endpoints::UpdateRotation.build(context)
|
113
137
|
end
|
114
138
|
end
|
115
139
|
end
|