aws-sdk-connect 1.98.0 → 1.100.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.
@@ -229,6 +229,9 @@ module Aws::Connect
229
229
  Description250 = Shapes::StringShape.new(name: 'Description250')
230
230
  DestinationNotAllowedException = Shapes::StructureShape.new(name: 'DestinationNotAllowedException')
231
231
  Dimensions = Shapes::StructureShape.new(name: 'Dimensions')
232
+ DimensionsV2Key = Shapes::StringShape.new(name: 'DimensionsV2Key')
233
+ DimensionsV2Map = Shapes::MapShape.new(name: 'DimensionsV2Map')
234
+ DimensionsV2Value = Shapes::StringShape.new(name: 'DimensionsV2Value')
232
235
  DirectoryAlias = Shapes::StringShape.new(name: 'DirectoryAlias')
233
236
  DirectoryId = Shapes::StringShape.new(name: 'DirectoryId')
234
237
  DirectoryType = Shapes::StringShape.new(name: 'DirectoryType')
@@ -255,7 +258,10 @@ module Aws::Connect
255
258
  EventBridgeActionDefinition = Shapes::StructureShape.new(name: 'EventBridgeActionDefinition')
256
259
  EventBridgeActionName = Shapes::StringShape.new(name: 'EventBridgeActionName')
257
260
  EventSourceName = Shapes::StringShape.new(name: 'EventSourceName')
261
+ FilterV2 = Shapes::StructureShape.new(name: 'FilterV2')
262
+ FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
258
263
  Filters = Shapes::StructureShape.new(name: 'Filters')
264
+ FiltersV2List = Shapes::ListShape.new(name: 'FiltersV2List')
259
265
  FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
260
266
  FunctionArnsList = Shapes::ListShape.new(name: 'FunctionArnsList')
261
267
  GetContactAttributesRequest = Shapes::StructureShape.new(name: 'GetContactAttributesRequest')
@@ -268,12 +274,16 @@ module Aws::Connect
268
274
  GetFederationTokenResponse = Shapes::StructureShape.new(name: 'GetFederationTokenResponse')
269
275
  GetMetricDataRequest = Shapes::StructureShape.new(name: 'GetMetricDataRequest')
270
276
  GetMetricDataResponse = Shapes::StructureShape.new(name: 'GetMetricDataResponse')
277
+ GetMetricDataV2Request = Shapes::StructureShape.new(name: 'GetMetricDataV2Request')
278
+ GetMetricDataV2Response = Shapes::StructureShape.new(name: 'GetMetricDataV2Response')
271
279
  GetTaskTemplateRequest = Shapes::StructureShape.new(name: 'GetTaskTemplateRequest')
272
280
  GetTaskTemplateResponse = Shapes::StructureShape.new(name: 'GetTaskTemplateResponse')
273
281
  GetTrafficDistributionRequest = Shapes::StructureShape.new(name: 'GetTrafficDistributionRequest')
274
282
  GetTrafficDistributionResponse = Shapes::StructureShape.new(name: 'GetTrafficDistributionResponse')
275
283
  Grouping = Shapes::StringShape.new(name: 'Grouping')
284
+ GroupingV2 = Shapes::StringShape.new(name: 'GroupingV2')
276
285
  Groupings = Shapes::ListShape.new(name: 'Groupings')
286
+ GroupingsV2 = Shapes::ListShape.new(name: 'GroupingsV2')
277
287
  HierarchyGroup = Shapes::StructureShape.new(name: 'HierarchyGroup')
278
288
  HierarchyGroupCondition = Shapes::StructureShape.new(name: 'HierarchyGroupCondition')
279
289
  HierarchyGroupId = Shapes::StringShape.new(name: 'HierarchyGroupId')
@@ -426,6 +436,16 @@ module Aws::Connect
426
436
  MediaConcurrencies = Shapes::ListShape.new(name: 'MediaConcurrencies')
427
437
  MediaConcurrency = Shapes::StructureShape.new(name: 'MediaConcurrency')
428
438
  Message = Shapes::StringShape.new(name: 'Message')
439
+ MetricDataCollectionsV2 = Shapes::ListShape.new(name: 'MetricDataCollectionsV2')
440
+ MetricDataV2 = Shapes::StructureShape.new(name: 'MetricDataV2')
441
+ MetricFilterV2 = Shapes::StructureShape.new(name: 'MetricFilterV2')
442
+ MetricFilterValueList = Shapes::ListShape.new(name: 'MetricFilterValueList')
443
+ MetricFiltersV2List = Shapes::ListShape.new(name: 'MetricFiltersV2List')
444
+ MetricNameV2 = Shapes::StringShape.new(name: 'MetricNameV2')
445
+ MetricResultV2 = Shapes::StructureShape.new(name: 'MetricResultV2')
446
+ MetricResultsV2 = Shapes::ListShape.new(name: 'MetricResultsV2')
447
+ MetricV2 = Shapes::StructureShape.new(name: 'MetricV2')
448
+ MetricsV2 = Shapes::ListShape.new(name: 'MetricsV2')
429
449
  MinutesLimit60 = Shapes::IntegerShape.new(name: 'MinutesLimit60')
430
450
  MonitorCapability = Shapes::StringShape.new(name: 'MonitorCapability')
431
451
  MonitorContactRequest = Shapes::StructureShape.new(name: 'MonitorContactRequest')
@@ -532,6 +552,7 @@ module Aws::Connect
532
552
  ReplicateInstanceResponse = Shapes::StructureShape.new(name: 'ReplicateInstanceResponse')
533
553
  RequiredFieldInfo = Shapes::StructureShape.new(name: 'RequiredFieldInfo')
534
554
  RequiredTaskTemplateFields = Shapes::ListShape.new(name: 'RequiredTaskTemplateFields')
555
+ ResourceArnOrId = Shapes::StringShape.new(name: 'ResourceArnOrId')
535
556
  ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
536
557
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
537
558
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -668,6 +689,8 @@ module Aws::Connect
668
689
  TaskTemplateStatus = Shapes::StringShape.new(name: 'TaskTemplateStatus')
669
690
  TelephonyConfig = Shapes::StructureShape.new(name: 'TelephonyConfig')
670
691
  Threshold = Shapes::StructureShape.new(name: 'Threshold')
692
+ ThresholdCollections = Shapes::ListShape.new(name: 'ThresholdCollections')
693
+ ThresholdV2 = Shapes::StructureShape.new(name: 'ThresholdV2')
671
694
  ThresholdValue = Shapes::FloatShape.new(name: 'ThresholdValue')
672
695
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
673
696
  TimeZone = Shapes::StringShape.new(name: 'TimeZone')
@@ -1491,6 +1514,9 @@ module Aws::Connect
1491
1514
  Dimensions.add_member(:routing_profile, Shapes::ShapeRef.new(shape: RoutingProfileReference, location_name: "RoutingProfile"))
1492
1515
  Dimensions.struct_class = Types::Dimensions
1493
1516
 
1517
+ DimensionsV2Map.key = Shapes::ShapeRef.new(shape: DimensionsV2Key)
1518
+ DimensionsV2Map.value = Shapes::ShapeRef.new(shape: DimensionsV2Value)
1519
+
1494
1520
  DisassociateApprovedOriginRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
1495
1521
  DisassociateApprovedOriginRequest.add_member(:origin, Shapes::ShapeRef.new(shape: Origin, required: true, location: "querystring", location_name: "origin"))
1496
1522
  DisassociateApprovedOriginRequest.struct_class = Types::DisassociateApprovedOriginRequest
@@ -1559,11 +1585,19 @@ module Aws::Connect
1559
1585
  EventBridgeActionDefinition.add_member(:name, Shapes::ShapeRef.new(shape: EventBridgeActionName, required: true, location_name: "Name"))
1560
1586
  EventBridgeActionDefinition.struct_class = Types::EventBridgeActionDefinition
1561
1587
 
1588
+ FilterV2.add_member(:filter_key, Shapes::ShapeRef.new(shape: ResourceArnOrId, location_name: "FilterKey"))
1589
+ FilterV2.add_member(:filter_values, Shapes::ShapeRef.new(shape: FilterValueList, location_name: "FilterValues"))
1590
+ FilterV2.struct_class = Types::FilterV2
1591
+
1592
+ FilterValueList.member = Shapes::ShapeRef.new(shape: ResourceArnOrId)
1593
+
1562
1594
  Filters.add_member(:queues, Shapes::ShapeRef.new(shape: Queues, location_name: "Queues"))
1563
1595
  Filters.add_member(:channels, Shapes::ShapeRef.new(shape: Channels, location_name: "Channels"))
1564
1596
  Filters.add_member(:routing_profiles, Shapes::ShapeRef.new(shape: RoutingProfiles, location_name: "RoutingProfiles"))
1565
1597
  Filters.struct_class = Types::Filters
1566
1598
 
1599
+ FiltersV2List.member = Shapes::ShapeRef.new(shape: FilterV2)
1600
+
1567
1601
  FunctionArnsList.member = Shapes::ShapeRef.new(shape: FunctionArn)
1568
1602
 
1569
1603
  GetContactAttributesRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
@@ -1622,6 +1656,20 @@ module Aws::Connect
1622
1656
  GetMetricDataResponse.add_member(:metric_results, Shapes::ShapeRef.new(shape: HistoricalMetricResults, location_name: "MetricResults"))
1623
1657
  GetMetricDataResponse.struct_class = Types::GetMetricDataResponse
1624
1658
 
1659
+ GetMetricDataV2Request.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "ResourceArn"))
1660
+ GetMetricDataV2Request.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
1661
+ GetMetricDataV2Request.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
1662
+ GetMetricDataV2Request.add_member(:filters, Shapes::ShapeRef.new(shape: FiltersV2List, required: true, location_name: "Filters"))
1663
+ GetMetricDataV2Request.add_member(:groupings, Shapes::ShapeRef.new(shape: GroupingsV2, location_name: "Groupings"))
1664
+ GetMetricDataV2Request.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricsV2, required: true, location_name: "Metrics"))
1665
+ GetMetricDataV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken2500, location_name: "NextToken"))
1666
+ GetMetricDataV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResult100, location_name: "MaxResults", metadata: {"box"=>true}))
1667
+ GetMetricDataV2Request.struct_class = Types::GetMetricDataV2Request
1668
+
1669
+ GetMetricDataV2Response.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken2500, location_name: "NextToken"))
1670
+ GetMetricDataV2Response.add_member(:metric_results, Shapes::ShapeRef.new(shape: MetricResultsV2, location_name: "MetricResults"))
1671
+ GetMetricDataV2Response.struct_class = Types::GetMetricDataV2Response
1672
+
1625
1673
  GetTaskTemplateRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
1626
1674
  GetTaskTemplateRequest.add_member(:task_template_id, Shapes::ShapeRef.new(shape: TaskTemplateId, required: true, location: "uri", location_name: "TaskTemplateId"))
1627
1675
  GetTaskTemplateRequest.add_member(:snapshot_version, Shapes::ShapeRef.new(shape: SnapshotVersion, location: "querystring", location_name: "snapshotVersion"))
@@ -1652,6 +1700,8 @@ module Aws::Connect
1652
1700
 
1653
1701
  Groupings.member = Shapes::ShapeRef.new(shape: Grouping)
1654
1702
 
1703
+ GroupingsV2.member = Shapes::ShapeRef.new(shape: GroupingV2)
1704
+
1655
1705
  HierarchyGroup.add_member(:id, Shapes::ShapeRef.new(shape: HierarchyGroupId, location_name: "Id"))
1656
1706
  HierarchyGroup.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "Arn"))
1657
1707
  HierarchyGroup.add_member(:name, Shapes::ShapeRef.new(shape: HierarchyGroupName, location_name: "Name"))
@@ -2183,6 +2233,33 @@ module Aws::Connect
2183
2233
  MediaConcurrency.add_member(:concurrency, Shapes::ShapeRef.new(shape: Concurrency, required: true, location_name: "Concurrency"))
2184
2234
  MediaConcurrency.struct_class = Types::MediaConcurrency
2185
2235
 
2236
+ MetricDataCollectionsV2.member = Shapes::ShapeRef.new(shape: MetricDataV2)
2237
+
2238
+ MetricDataV2.add_member(:metric, Shapes::ShapeRef.new(shape: MetricV2, location_name: "Metric"))
2239
+ MetricDataV2.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "Value", metadata: {"box"=>true}))
2240
+ MetricDataV2.struct_class = Types::MetricDataV2
2241
+
2242
+ MetricFilterV2.add_member(:metric_filter_key, Shapes::ShapeRef.new(shape: String, location_name: "MetricFilterKey"))
2243
+ MetricFilterV2.add_member(:metric_filter_values, Shapes::ShapeRef.new(shape: MetricFilterValueList, location_name: "MetricFilterValues"))
2244
+ MetricFilterV2.struct_class = Types::MetricFilterV2
2245
+
2246
+ MetricFilterValueList.member = Shapes::ShapeRef.new(shape: String)
2247
+
2248
+ MetricFiltersV2List.member = Shapes::ShapeRef.new(shape: MetricFilterV2)
2249
+
2250
+ MetricResultV2.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionsV2Map, location_name: "Dimensions"))
2251
+ MetricResultV2.add_member(:collections, Shapes::ShapeRef.new(shape: MetricDataCollectionsV2, location_name: "Collections"))
2252
+ MetricResultV2.struct_class = Types::MetricResultV2
2253
+
2254
+ MetricResultsV2.member = Shapes::ShapeRef.new(shape: MetricResultV2)
2255
+
2256
+ MetricV2.add_member(:name, Shapes::ShapeRef.new(shape: MetricNameV2, location_name: "Name"))
2257
+ MetricV2.add_member(:threshold, Shapes::ShapeRef.new(shape: ThresholdCollections, location_name: "Threshold"))
2258
+ MetricV2.add_member(:metric_filters, Shapes::ShapeRef.new(shape: MetricFiltersV2List, location_name: "MetricFilters"))
2259
+ MetricV2.struct_class = Types::MetricV2
2260
+
2261
+ MetricsV2.member = Shapes::ShapeRef.new(shape: MetricV2)
2262
+
2186
2263
  MonitorContactRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
2187
2264
  MonitorContactRequest.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location_name: "ContactId"))
2188
2265
  MonitorContactRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: AgentResourceId, required: true, location_name: "UserId"))
@@ -2671,6 +2748,7 @@ module Aws::Connect
2671
2748
  StartChatContactRequest.add_member(:chat_duration_in_minutes, Shapes::ShapeRef.new(shape: ChatDurationInMinutes, location_name: "ChatDurationInMinutes"))
2672
2749
  StartChatContactRequest.add_member(:supported_messaging_content_types, Shapes::ShapeRef.new(shape: SupportedMessagingContentTypes, location_name: "SupportedMessagingContentTypes"))
2673
2750
  StartChatContactRequest.add_member(:persistent_chat, Shapes::ShapeRef.new(shape: PersistentChat, location_name: "PersistentChat"))
2751
+ StartChatContactRequest.add_member(:related_contact_id, Shapes::ShapeRef.new(shape: ContactId, location_name: "RelatedContactId"))
2674
2752
  StartChatContactRequest.struct_class = Types::StartChatContactRequest
2675
2753
 
2676
2754
  StartChatContactResponse.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, location_name: "ContactId"))
@@ -2834,6 +2912,12 @@ module Aws::Connect
2834
2912
  Threshold.add_member(:threshold_value, Shapes::ShapeRef.new(shape: ThresholdValue, location_name: "ThresholdValue", metadata: {"box"=>true}))
2835
2913
  Threshold.struct_class = Types::Threshold
2836
2914
 
2915
+ ThresholdCollections.member = Shapes::ShapeRef.new(shape: ThresholdV2)
2916
+
2917
+ ThresholdV2.add_member(:comparison, Shapes::ShapeRef.new(shape: ResourceArnOrId, location_name: "Comparison"))
2918
+ ThresholdV2.add_member(:threshold_value, Shapes::ShapeRef.new(shape: ThresholdValue, location_name: "ThresholdValue", metadata: {"box"=>true}))
2919
+ ThresholdV2.struct_class = Types::ThresholdV2
2920
+
2837
2921
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
2838
2922
  ThrottlingException.struct_class = Types::ThrottlingException
2839
2923
 
@@ -4332,6 +4416,25 @@ module Aws::Connect
4332
4416
  )
4333
4417
  end)
4334
4418
 
4419
+ api.add_operation(:get_metric_data_v2, Seahorse::Model::Operation.new.tap do |o|
4420
+ o.name = "GetMetricDataV2"
4421
+ o.http_method = "POST"
4422
+ o.http_request_uri = "/metrics/data"
4423
+ o.input = Shapes::ShapeRef.new(shape: GetMetricDataV2Request)
4424
+ o.output = Shapes::ShapeRef.new(shape: GetMetricDataV2Response)
4425
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
4426
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
4427
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
4428
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
4429
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
4430
+ o[:pager] = Aws::Pager.new(
4431
+ limit_key: "max_results",
4432
+ tokens: {
4433
+ "next_token" => "next_token"
4434
+ }
4435
+ )
4436
+ end)
4437
+
4335
4438
  api.add_operation(:get_task_template, Seahorse::Model::Operation.new.tap do |o|
4336
4439
  o.name = "GetTaskTemplate"
4337
4440
  o.http_method = "GET"
@@ -1075,6 +1075,20 @@ module Aws::Connect
1075
1075
  end
1076
1076
  end
1077
1077
 
1078
+ class GetMetricDataV2
1079
+ def self.build(context)
1080
+ unless context.config.regional_endpoint
1081
+ endpoint = context.config.endpoint.to_s
1082
+ end
1083
+ Aws::Connect::EndpointParameters.new(
1084
+ region: context.config.region,
1085
+ use_dual_stack: context.config.use_dualstack_endpoint,
1086
+ use_fips: context.config.use_fips_endpoint,
1087
+ endpoint: endpoint,
1088
+ )
1089
+ end
1090
+ end
1091
+
1078
1092
  class GetTaskTemplate
1079
1093
  def self.build(context)
1080
1094
  unless context.config.regional_endpoint
@@ -208,6 +208,8 @@ module Aws::Connect
208
208
  Aws::Connect::Endpoints::GetFederationToken.build(context)
209
209
  when :get_metric_data
210
210
  Aws::Connect::Endpoints::GetMetricData.build(context)
211
+ when :get_metric_data_v2
212
+ Aws::Connect::Endpoints::GetMetricDataV2.build(context)
211
213
  when :get_task_template
212
214
  Aws::Connect::Endpoints::GetTaskTemplate.build(context)
213
215
  when :get_traffic_distribution