aws-sdk-customerprofiles 1.28.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,9 +50,6 @@ module Aws::CustomerProfiles
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::CustomerProfiles
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(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://profile-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
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://profile-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
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://profile.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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://profile-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://profile-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://profile.#{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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://profile.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://profile.#{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
@@ -25,6 +25,20 @@ module Aws::CustomerProfiles
25
25
  end
26
26
  end
27
27
 
28
+ class CreateCalculatedAttributeDefinition
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::CustomerProfiles::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
+
28
42
  class CreateDomain
29
43
  def self.build(context)
30
44
  unless context.config.regional_endpoint
@@ -39,6 +53,20 @@ module Aws::CustomerProfiles
39
53
  end
40
54
  end
41
55
 
56
+ class CreateEventStream
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::CustomerProfiles::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
+
42
70
  class CreateIntegrationWorkflow
43
71
  def self.build(context)
44
72
  unless context.config.regional_endpoint
@@ -67,6 +95,20 @@ module Aws::CustomerProfiles
67
95
  end
68
96
  end
69
97
 
98
+ class DeleteCalculatedAttributeDefinition
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::CustomerProfiles::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
+
70
112
  class DeleteDomain
71
113
  def self.build(context)
72
114
  unless context.config.regional_endpoint
@@ -81,6 +123,20 @@ module Aws::CustomerProfiles
81
123
  end
82
124
  end
83
125
 
126
+ class DeleteEventStream
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::CustomerProfiles::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
+
84
140
  class DeleteIntegration
85
141
  def self.build(context)
86
142
  unless context.config.regional_endpoint
@@ -179,6 +235,34 @@ module Aws::CustomerProfiles
179
235
  end
180
236
  end
181
237
 
238
+ class GetCalculatedAttributeDefinition
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::CustomerProfiles::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 GetCalculatedAttributeForProfile
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::CustomerProfiles::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 GetDomain
183
267
  def self.build(context)
184
268
  unless context.config.regional_endpoint
@@ -193,6 +277,20 @@ module Aws::CustomerProfiles
193
277
  end
194
278
  end
195
279
 
280
+ class GetEventStream
281
+ def self.build(context)
282
+ unless context.config.regional_endpoint
283
+ endpoint = context.config.endpoint.to_s
284
+ end
285
+ Aws::CustomerProfiles::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
+
196
294
  class GetIdentityResolutionJob
197
295
  def self.build(context)
198
296
  unless context.config.regional_endpoint
@@ -305,6 +403,34 @@ module Aws::CustomerProfiles
305
403
  end
306
404
  end
307
405
 
406
+ class ListCalculatedAttributeDefinitions
407
+ def self.build(context)
408
+ unless context.config.regional_endpoint
409
+ endpoint = context.config.endpoint.to_s
410
+ end
411
+ Aws::CustomerProfiles::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
+
420
+ class ListCalculatedAttributesForProfile
421
+ def self.build(context)
422
+ unless context.config.regional_endpoint
423
+ endpoint = context.config.endpoint.to_s
424
+ end
425
+ Aws::CustomerProfiles::EndpointParameters.new(
426
+ region: context.config.region,
427
+ use_dual_stack: context.config.use_dualstack_endpoint,
428
+ use_fips: context.config.use_fips_endpoint,
429
+ endpoint: endpoint,
430
+ )
431
+ end
432
+ end
433
+
308
434
  class ListDomains
309
435
  def self.build(context)
310
436
  unless context.config.regional_endpoint
@@ -319,6 +445,20 @@ module Aws::CustomerProfiles
319
445
  end
320
446
  end
321
447
 
448
+ class ListEventStreams
449
+ def self.build(context)
450
+ unless context.config.regional_endpoint
451
+ endpoint = context.config.endpoint.to_s
452
+ end
453
+ Aws::CustomerProfiles::EndpointParameters.new(
454
+ region: context.config.region,
455
+ use_dual_stack: context.config.use_dualstack_endpoint,
456
+ use_fips: context.config.use_fips_endpoint,
457
+ endpoint: endpoint,
458
+ )
459
+ end
460
+ end
461
+
322
462
  class ListIdentityResolutionJobs
323
463
  def self.build(context)
324
464
  unless context.config.regional_endpoint
@@ -515,6 +655,20 @@ module Aws::CustomerProfiles
515
655
  end
516
656
  end
517
657
 
658
+ class UpdateCalculatedAttributeDefinition
659
+ def self.build(context)
660
+ unless context.config.regional_endpoint
661
+ endpoint = context.config.endpoint.to_s
662
+ end
663
+ Aws::CustomerProfiles::EndpointParameters.new(
664
+ region: context.config.region,
665
+ use_dual_stack: context.config.use_dualstack_endpoint,
666
+ use_fips: context.config.use_fips_endpoint,
667
+ endpoint: endpoint,
668
+ )
669
+ end
670
+ end
671
+
518
672
  class UpdateDomain
519
673
  def self.build(context)
520
674
  unless context.config.regional_endpoint
@@ -58,14 +58,22 @@ module Aws::CustomerProfiles
58
58
  case context.operation_name
59
59
  when :add_profile_key
60
60
  Aws::CustomerProfiles::Endpoints::AddProfileKey.build(context)
61
+ when :create_calculated_attribute_definition
62
+ Aws::CustomerProfiles::Endpoints::CreateCalculatedAttributeDefinition.build(context)
61
63
  when :create_domain
62
64
  Aws::CustomerProfiles::Endpoints::CreateDomain.build(context)
65
+ when :create_event_stream
66
+ Aws::CustomerProfiles::Endpoints::CreateEventStream.build(context)
63
67
  when :create_integration_workflow
64
68
  Aws::CustomerProfiles::Endpoints::CreateIntegrationWorkflow.build(context)
65
69
  when :create_profile
66
70
  Aws::CustomerProfiles::Endpoints::CreateProfile.build(context)
71
+ when :delete_calculated_attribute_definition
72
+ Aws::CustomerProfiles::Endpoints::DeleteCalculatedAttributeDefinition.build(context)
67
73
  when :delete_domain
68
74
  Aws::CustomerProfiles::Endpoints::DeleteDomain.build(context)
75
+ when :delete_event_stream
76
+ Aws::CustomerProfiles::Endpoints::DeleteEventStream.build(context)
69
77
  when :delete_integration
70
78
  Aws::CustomerProfiles::Endpoints::DeleteIntegration.build(context)
71
79
  when :delete_profile
@@ -80,8 +88,14 @@ module Aws::CustomerProfiles
80
88
  Aws::CustomerProfiles::Endpoints::DeleteWorkflow.build(context)
81
89
  when :get_auto_merging_preview
82
90
  Aws::CustomerProfiles::Endpoints::GetAutoMergingPreview.build(context)
91
+ when :get_calculated_attribute_definition
92
+ Aws::CustomerProfiles::Endpoints::GetCalculatedAttributeDefinition.build(context)
93
+ when :get_calculated_attribute_for_profile
94
+ Aws::CustomerProfiles::Endpoints::GetCalculatedAttributeForProfile.build(context)
83
95
  when :get_domain
84
96
  Aws::CustomerProfiles::Endpoints::GetDomain.build(context)
97
+ when :get_event_stream
98
+ Aws::CustomerProfiles::Endpoints::GetEventStream.build(context)
85
99
  when :get_identity_resolution_job
86
100
  Aws::CustomerProfiles::Endpoints::GetIdentityResolutionJob.build(context)
87
101
  when :get_integration
@@ -98,8 +112,14 @@ module Aws::CustomerProfiles
98
112
  Aws::CustomerProfiles::Endpoints::GetWorkflowSteps.build(context)
99
113
  when :list_account_integrations
100
114
  Aws::CustomerProfiles::Endpoints::ListAccountIntegrations.build(context)
115
+ when :list_calculated_attribute_definitions
116
+ Aws::CustomerProfiles::Endpoints::ListCalculatedAttributeDefinitions.build(context)
117
+ when :list_calculated_attributes_for_profile
118
+ Aws::CustomerProfiles::Endpoints::ListCalculatedAttributesForProfile.build(context)
101
119
  when :list_domains
102
120
  Aws::CustomerProfiles::Endpoints::ListDomains.build(context)
121
+ when :list_event_streams
122
+ Aws::CustomerProfiles::Endpoints::ListEventStreams.build(context)
103
123
  when :list_identity_resolution_jobs
104
124
  Aws::CustomerProfiles::Endpoints::ListIdentityResolutionJobs.build(context)
105
125
  when :list_integrations
@@ -128,6 +148,8 @@ module Aws::CustomerProfiles
128
148
  Aws::CustomerProfiles::Endpoints::TagResource.build(context)
129
149
  when :untag_resource
130
150
  Aws::CustomerProfiles::Endpoints::UntagResource.build(context)
151
+ when :update_calculated_attribute_definition
152
+ Aws::CustomerProfiles::Endpoints::UpdateCalculatedAttributeDefinition.build(context)
131
153
  when :update_domain
132
154
  Aws::CustomerProfiles::Endpoints::UpdateDomain.build(context)
133
155
  when :update_profile