aws-sdk-connect 1.209.0 → 1.211.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.
@@ -231,6 +231,12 @@ module Aws::Connect
231
231
  ContactFlowVersionSummaryList = Shapes::ListShape.new(name: 'ContactFlowVersionSummaryList')
232
232
  ContactId = Shapes::StringShape.new(name: 'ContactId')
233
233
  ContactInitiationMethod = Shapes::StringShape.new(name: 'ContactInitiationMethod')
234
+ ContactMetricInfo = Shapes::StructureShape.new(name: 'ContactMetricInfo')
235
+ ContactMetricName = Shapes::StringShape.new(name: 'ContactMetricName')
236
+ ContactMetricResult = Shapes::StructureShape.new(name: 'ContactMetricResult')
237
+ ContactMetricResults = Shapes::ListShape.new(name: 'ContactMetricResults')
238
+ ContactMetricValue = Shapes::UnionShape.new(name: 'ContactMetricValue')
239
+ ContactMetrics = Shapes::ListShape.new(name: 'ContactMetrics')
234
240
  ContactNotFoundException = Shapes::StructureShape.new(name: 'ContactNotFoundException')
235
241
  ContactRecordingType = Shapes::StringShape.new(name: 'ContactRecordingType')
236
242
  ContactReferences = Shapes::MapShape.new(name: 'ContactReferences')
@@ -608,6 +614,8 @@ module Aws::Connect
608
614
  GetAttachedFileResponse = Shapes::StructureShape.new(name: 'GetAttachedFileResponse')
609
615
  GetContactAttributesRequest = Shapes::StructureShape.new(name: 'GetContactAttributesRequest')
610
616
  GetContactAttributesResponse = Shapes::StructureShape.new(name: 'GetContactAttributesResponse')
617
+ GetContactMetricsRequest = Shapes::StructureShape.new(name: 'GetContactMetricsRequest')
618
+ GetContactMetricsResponse = Shapes::StructureShape.new(name: 'GetContactMetricsResponse')
611
619
  GetCurrentMetricDataRequest = Shapes::StructureShape.new(name: 'GetCurrentMetricDataRequest')
612
620
  GetCurrentMetricDataResponse = Shapes::StructureShape.new(name: 'GetCurrentMetricDataResponse')
613
621
  GetCurrentUserDataRequest = Shapes::StructureShape.new(name: 'GetCurrentUserDataRequest')
@@ -2223,6 +2231,23 @@ module Aws::Connect
2223
2231
 
2224
2232
  ContactFlowVersionSummaryList.member = Shapes::ShapeRef.new(shape: ContactFlowVersionSummary)
2225
2233
 
2234
+ ContactMetricInfo.add_member(:name, Shapes::ShapeRef.new(shape: ContactMetricName, required: true, location_name: "Name"))
2235
+ ContactMetricInfo.struct_class = Types::ContactMetricInfo
2236
+
2237
+ ContactMetricResult.add_member(:name, Shapes::ShapeRef.new(shape: ContactMetricName, required: true, location_name: "Name"))
2238
+ ContactMetricResult.add_member(:value, Shapes::ShapeRef.new(shape: ContactMetricValue, required: true, location_name: "Value"))
2239
+ ContactMetricResult.struct_class = Types::ContactMetricResult
2240
+
2241
+ ContactMetricResults.member = Shapes::ShapeRef.new(shape: ContactMetricResult)
2242
+
2243
+ ContactMetricValue.add_member(:number, Shapes::ShapeRef.new(shape: Double, location_name: "Number"))
2244
+ ContactMetricValue.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
2245
+ ContactMetricValue.add_member_subclass(:number, Types::ContactMetricValue::Number)
2246
+ ContactMetricValue.add_member_subclass(:unknown, Types::ContactMetricValue::Unknown)
2247
+ ContactMetricValue.struct_class = Types::ContactMetricValue
2248
+
2249
+ ContactMetrics.member = Shapes::ShapeRef.new(shape: ContactMetricInfo)
2250
+
2226
2251
  ContactNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
2227
2252
  ContactNotFoundException.struct_class = Types::ContactNotFoundException
2228
2253
 
@@ -3541,6 +3566,16 @@ module Aws::Connect
3541
3566
  GetContactAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "Attributes"))
3542
3567
  GetContactAttributesResponse.struct_class = Types::GetContactAttributesResponse
3543
3568
 
3569
+ GetContactMetricsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location_name: "InstanceId"))
3570
+ GetContactMetricsRequest.add_member(:contact_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location_name: "ContactId"))
3571
+ GetContactMetricsRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: ContactMetrics, required: true, location_name: "Metrics"))
3572
+ GetContactMetricsRequest.struct_class = Types::GetContactMetricsRequest
3573
+
3574
+ GetContactMetricsResponse.add_member(:metric_results, Shapes::ShapeRef.new(shape: ContactMetricResults, location_name: "MetricResults"))
3575
+ GetContactMetricsResponse.add_member(:id, Shapes::ShapeRef.new(shape: ContactId, location_name: "Id"))
3576
+ GetContactMetricsResponse.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "Arn"))
3577
+ GetContactMetricsResponse.struct_class = Types::GetContactMetricsResponse
3578
+
3544
3579
  GetCurrentMetricDataRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
3545
3580
  GetCurrentMetricDataRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, required: true, location_name: "Filters"))
3546
3581
  GetCurrentMetricDataRequest.add_member(:groupings, Shapes::ShapeRef.new(shape: Groupings, location_name: "Groupings"))
@@ -8369,6 +8404,20 @@ module Aws::Connect
8369
8404
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
8370
8405
  end)
8371
8406
 
8407
+ api.add_operation(:get_contact_metrics, Seahorse::Model::Operation.new.tap do |o|
8408
+ o.name = "GetContactMetrics"
8409
+ o.http_method = "POST"
8410
+ o.http_request_uri = "/metrics/contact"
8411
+ o.input = Shapes::ShapeRef.new(shape: GetContactMetricsRequest)
8412
+ o.output = Shapes::ShapeRef.new(shape: GetContactMetricsResponse)
8413
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
8414
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
8415
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
8416
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
8417
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
8418
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
8419
+ end)
8420
+
8372
8421
  api.add_operation(:get_current_metric_data, Seahorse::Model::Operation.new.tap do |o|
8373
8422
  o.name = "GetCurrentMetricData"
8374
8423
  o.http_method = "POST"