aws-sdk-workmail 1.57.0 → 1.59.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-workmail/client.rb +684 -44
- data/lib/aws-sdk-workmail/client_api.rb +230 -32
- data/lib/aws-sdk-workmail/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-workmail/endpoints.rb +56 -0
- data/lib/aws-sdk-workmail/plugins/endpoints.rb +8 -0
- data/lib/aws-sdk-workmail/types.rb +849 -26
- data/lib/aws-sdk-workmail.rb +1 -1
- metadata +2 -2
@@ -14,36 +14,39 @@ module Aws::WorkMail
|
|
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://workmail-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://workmail-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://workmail-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://workmail-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://workmail.#{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://workmail.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://workmail.#{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
|
@@ -404,6 +404,20 @@ module Aws::WorkMail
|
|
404
404
|
end
|
405
405
|
end
|
406
406
|
|
407
|
+
class DescribeEntity
|
408
|
+
def self.build(context)
|
409
|
+
unless context.config.regional_endpoint
|
410
|
+
endpoint = context.config.endpoint.to_s
|
411
|
+
end
|
412
|
+
Aws::WorkMail::EndpointParameters.new(
|
413
|
+
region: context.config.region,
|
414
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
415
|
+
use_fips: context.config.use_fips_endpoint,
|
416
|
+
endpoint: endpoint,
|
417
|
+
)
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
407
421
|
class DescribeGroup
|
408
422
|
def self.build(context)
|
409
423
|
unless context.config.regional_endpoint
|
@@ -698,6 +712,20 @@ module Aws::WorkMail
|
|
698
712
|
end
|
699
713
|
end
|
700
714
|
|
715
|
+
class ListGroupsForEntity
|
716
|
+
def self.build(context)
|
717
|
+
unless context.config.regional_endpoint
|
718
|
+
endpoint = context.config.endpoint.to_s
|
719
|
+
end
|
720
|
+
Aws::WorkMail::EndpointParameters.new(
|
721
|
+
region: context.config.region,
|
722
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
723
|
+
use_fips: context.config.use_fips_endpoint,
|
724
|
+
endpoint: endpoint,
|
725
|
+
)
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
701
729
|
class ListImpersonationRoles
|
702
730
|
def self.build(context)
|
703
731
|
unless context.config.regional_endpoint
|
@@ -1062,6 +1090,20 @@ module Aws::WorkMail
|
|
1062
1090
|
end
|
1063
1091
|
end
|
1064
1092
|
|
1093
|
+
class UpdateGroup
|
1094
|
+
def self.build(context)
|
1095
|
+
unless context.config.regional_endpoint
|
1096
|
+
endpoint = context.config.endpoint.to_s
|
1097
|
+
end
|
1098
|
+
Aws::WorkMail::EndpointParameters.new(
|
1099
|
+
region: context.config.region,
|
1100
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1101
|
+
use_fips: context.config.use_fips_endpoint,
|
1102
|
+
endpoint: endpoint,
|
1103
|
+
)
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
1065
1107
|
class UpdateImpersonationRole
|
1066
1108
|
def self.build(context)
|
1067
1109
|
unless context.config.regional_endpoint
|
@@ -1132,5 +1174,19 @@ module Aws::WorkMail
|
|
1132
1174
|
end
|
1133
1175
|
end
|
1134
1176
|
|
1177
|
+
class UpdateUser
|
1178
|
+
def self.build(context)
|
1179
|
+
unless context.config.regional_endpoint
|
1180
|
+
endpoint = context.config.endpoint.to_s
|
1181
|
+
end
|
1182
|
+
Aws::WorkMail::EndpointParameters.new(
|
1183
|
+
region: context.config.region,
|
1184
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1185
|
+
use_fips: context.config.use_fips_endpoint,
|
1186
|
+
endpoint: endpoint,
|
1187
|
+
)
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
|
1135
1191
|
end
|
1136
1192
|
end
|
@@ -112,6 +112,8 @@ module Aws::WorkMail
|
|
112
112
|
Aws::WorkMail::Endpoints::DeregisterMailDomain.build(context)
|
113
113
|
when :describe_email_monitoring_configuration
|
114
114
|
Aws::WorkMail::Endpoints::DescribeEmailMonitoringConfiguration.build(context)
|
115
|
+
when :describe_entity
|
116
|
+
Aws::WorkMail::Endpoints::DescribeEntity.build(context)
|
115
117
|
when :describe_group
|
116
118
|
Aws::WorkMail::Endpoints::DescribeGroup.build(context)
|
117
119
|
when :describe_inbound_dmarc_settings
|
@@ -154,6 +156,8 @@ module Aws::WorkMail
|
|
154
156
|
Aws::WorkMail::Endpoints::ListGroupMembers.build(context)
|
155
157
|
when :list_groups
|
156
158
|
Aws::WorkMail::Endpoints::ListGroups.build(context)
|
159
|
+
when :list_groups_for_entity
|
160
|
+
Aws::WorkMail::Endpoints::ListGroupsForEntity.build(context)
|
157
161
|
when :list_impersonation_roles
|
158
162
|
Aws::WorkMail::Endpoints::ListImpersonationRoles.build(context)
|
159
163
|
when :list_mail_domains
|
@@ -206,6 +210,8 @@ module Aws::WorkMail
|
|
206
210
|
Aws::WorkMail::Endpoints::UpdateAvailabilityConfiguration.build(context)
|
207
211
|
when :update_default_mail_domain
|
208
212
|
Aws::WorkMail::Endpoints::UpdateDefaultMailDomain.build(context)
|
213
|
+
when :update_group
|
214
|
+
Aws::WorkMail::Endpoints::UpdateGroup.build(context)
|
209
215
|
when :update_impersonation_role
|
210
216
|
Aws::WorkMail::Endpoints::UpdateImpersonationRole.build(context)
|
211
217
|
when :update_mailbox_quota
|
@@ -216,6 +222,8 @@ module Aws::WorkMail
|
|
216
222
|
Aws::WorkMail::Endpoints::UpdatePrimaryEmailAddress.build(context)
|
217
223
|
when :update_resource
|
218
224
|
Aws::WorkMail::Endpoints::UpdateResource.build(context)
|
225
|
+
when :update_user
|
226
|
+
Aws::WorkMail::Endpoints::UpdateUser.build(context)
|
219
227
|
end
|
220
228
|
end
|
221
229
|
end
|