aws-sdk-connect 1.128.0 → 1.130.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -445,6 +445,8 @@ module Aws::Connect
445
445
  IntegrationAssociationSummaryList = Shapes::ListShape.new(name: 'IntegrationAssociationSummaryList')
446
446
  IntegrationType = Shapes::StringShape.new(name: 'IntegrationType')
447
447
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
448
+ IntervalDetails = Shapes::StructureShape.new(name: 'IntervalDetails')
449
+ IntervalPeriod = Shapes::StringShape.new(name: 'IntervalPeriod')
448
450
  InvalidContactFlowException = Shapes::StructureShape.new(name: 'InvalidContactFlowException')
449
451
  InvalidContactFlowModuleException = Shapes::StructureShape.new(name: 'InvalidContactFlowModuleException')
450
452
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
@@ -562,6 +564,7 @@ module Aws::Connect
562
564
  MetricFilterV2 = Shapes::StructureShape.new(name: 'MetricFilterV2')
563
565
  MetricFilterValueList = Shapes::ListShape.new(name: 'MetricFilterValueList')
564
566
  MetricFiltersV2List = Shapes::ListShape.new(name: 'MetricFiltersV2List')
567
+ MetricInterval = Shapes::StructureShape.new(name: 'MetricInterval')
565
568
  MetricNameV2 = Shapes::StringShape.new(name: 'MetricNameV2')
566
569
  MetricResultV2 = Shapes::StructureShape.new(name: 'MetricResultV2')
567
570
  MetricResultsV2 = Shapes::ListShape.new(name: 'MetricResultsV2')
@@ -908,6 +911,7 @@ module Aws::Connect
908
911
  UpdateParticipantRoleConfigChannelInfo = Shapes::UnionShape.new(name: 'UpdateParticipantRoleConfigChannelInfo')
909
912
  UpdateParticipantRoleConfigRequest = Shapes::StructureShape.new(name: 'UpdateParticipantRoleConfigRequest')
910
913
  UpdateParticipantRoleConfigResponse = Shapes::StructureShape.new(name: 'UpdateParticipantRoleConfigResponse')
914
+ UpdatePhoneNumberMetadataRequest = Shapes::StructureShape.new(name: 'UpdatePhoneNumberMetadataRequest')
911
915
  UpdatePhoneNumberRequest = Shapes::StructureShape.new(name: 'UpdatePhoneNumberRequest')
912
916
  UpdatePhoneNumberResponse = Shapes::StructureShape.new(name: 'UpdatePhoneNumberResponse')
913
917
  UpdatePromptRequest = Shapes::StructureShape.new(name: 'UpdatePromptRequest')
@@ -1626,7 +1630,7 @@ module Aws::Connect
1626
1630
 
1627
1631
  DeleteEvaluationFormRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
1628
1632
  DeleteEvaluationFormRequest.add_member(:evaluation_form_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "uri", location_name: "EvaluationFormId"))
1629
- DeleteEvaluationFormRequest.add_member(:evaluation_form_version, Shapes::ShapeRef.new(shape: VersionNumber, location: "querystring", location_name: "version"))
1633
+ DeleteEvaluationFormRequest.add_member(:evaluation_form_version, Shapes::ShapeRef.new(shape: VersionNumber, location: "querystring", location_name: "version", metadata: {"box"=>true}))
1630
1634
  DeleteEvaluationFormRequest.struct_class = Types::DeleteEvaluationFormRequest
1631
1635
 
1632
1636
  DeleteHoursOfOperationRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
@@ -1748,7 +1752,7 @@ module Aws::Connect
1748
1752
 
1749
1753
  DescribeEvaluationFormRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
1750
1754
  DescribeEvaluationFormRequest.add_member(:evaluation_form_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "uri", location_name: "EvaluationFormId"))
1751
- DescribeEvaluationFormRequest.add_member(:evaluation_form_version, Shapes::ShapeRef.new(shape: VersionNumber, location: "querystring", location_name: "version"))
1755
+ DescribeEvaluationFormRequest.add_member(:evaluation_form_version, Shapes::ShapeRef.new(shape: VersionNumber, location: "querystring", location_name: "version", metadata: {"box"=>true}))
1752
1756
  DescribeEvaluationFormRequest.struct_class = Types::DescribeEvaluationFormRequest
1753
1757
 
1754
1758
  DescribeEvaluationFormResponse.add_member(:evaluation_form, Shapes::ShapeRef.new(shape: EvaluationForm, required: true, location_name: "EvaluationForm"))
@@ -2106,7 +2110,7 @@ module Aws::Connect
2106
2110
  EvaluationFormSummary.add_member(:last_activated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastActivatedTime"))
2107
2111
  EvaluationFormSummary.add_member(:last_activated_by, Shapes::ShapeRef.new(shape: ARN, location_name: "LastActivatedBy"))
2108
2112
  EvaluationFormSummary.add_member(:latest_version, Shapes::ShapeRef.new(shape: VersionNumber, required: true, location_name: "LatestVersion"))
2109
- EvaluationFormSummary.add_member(:active_version, Shapes::ShapeRef.new(shape: VersionNumber, location_name: "ActiveVersion"))
2113
+ EvaluationFormSummary.add_member(:active_version, Shapes::ShapeRef.new(shape: VersionNumber, location_name: "ActiveVersion", metadata: {"box"=>true}))
2110
2114
  EvaluationFormSummary.struct_class = Types::EvaluationFormSummary
2111
2115
 
2112
2116
  EvaluationFormSummaryList.member = Shapes::ShapeRef.new(shape: EvaluationFormSummary)
@@ -2234,6 +2238,7 @@ module Aws::Connect
2234
2238
  GetMetricDataV2Request.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "ResourceArn"))
2235
2239
  GetMetricDataV2Request.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
2236
2240
  GetMetricDataV2Request.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
2241
+ GetMetricDataV2Request.add_member(:interval, Shapes::ShapeRef.new(shape: IntervalDetails, location_name: "Interval"))
2237
2242
  GetMetricDataV2Request.add_member(:filters, Shapes::ShapeRef.new(shape: FiltersV2List, required: true, location_name: "Filters"))
2238
2243
  GetMetricDataV2Request.add_member(:groupings, Shapes::ShapeRef.new(shape: GroupingsV2, location_name: "Groupings"))
2239
2244
  GetMetricDataV2Request.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricsV2, required: true, location_name: "Metrics"))
@@ -2462,6 +2467,10 @@ module Aws::Connect
2462
2467
  InternalServiceException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
2463
2468
  InternalServiceException.struct_class = Types::InternalServiceException
2464
2469
 
2470
+ IntervalDetails.add_member(:time_zone, Shapes::ShapeRef.new(shape: String, location_name: "TimeZone"))
2471
+ IntervalDetails.add_member(:interval_period, Shapes::ShapeRef.new(shape: IntervalPeriod, location_name: "IntervalPeriod"))
2472
+ IntervalDetails.struct_class = Types::IntervalDetails
2473
+
2465
2474
  InvalidContactFlowException.add_member(:problems, Shapes::ShapeRef.new(shape: Problems, location_name: "problems"))
2466
2475
  InvalidContactFlowException.struct_class = Types::InvalidContactFlowException
2467
2476
 
@@ -2910,13 +2919,20 @@ module Aws::Connect
2910
2919
 
2911
2920
  MetricFilterV2.add_member(:metric_filter_key, Shapes::ShapeRef.new(shape: String, location_name: "MetricFilterKey"))
2912
2921
  MetricFilterV2.add_member(:metric_filter_values, Shapes::ShapeRef.new(shape: MetricFilterValueList, location_name: "MetricFilterValues"))
2922
+ MetricFilterV2.add_member(:negate, Shapes::ShapeRef.new(shape: Boolean, location_name: "Negate"))
2913
2923
  MetricFilterV2.struct_class = Types::MetricFilterV2
2914
2924
 
2915
2925
  MetricFilterValueList.member = Shapes::ShapeRef.new(shape: String)
2916
2926
 
2917
2927
  MetricFiltersV2List.member = Shapes::ShapeRef.new(shape: MetricFilterV2)
2918
2928
 
2929
+ MetricInterval.add_member(:interval, Shapes::ShapeRef.new(shape: IntervalPeriod, location_name: "Interval"))
2930
+ MetricInterval.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
2931
+ MetricInterval.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
2932
+ MetricInterval.struct_class = Types::MetricInterval
2933
+
2919
2934
  MetricResultV2.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionsV2Map, location_name: "Dimensions"))
2935
+ MetricResultV2.add_member(:metric_interval, Shapes::ShapeRef.new(shape: MetricInterval, location_name: "MetricInterval"))
2920
2936
  MetricResultV2.add_member(:collections, Shapes::ShapeRef.new(shape: MetricDataCollectionsV2, location_name: "Collections"))
2921
2937
  MetricResultV2.struct_class = Types::MetricResultV2
2922
2938
 
@@ -3860,7 +3876,7 @@ module Aws::Connect
3860
3876
  UpdateEvaluationFormRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
3861
3877
  UpdateEvaluationFormRequest.add_member(:evaluation_form_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "uri", location_name: "EvaluationFormId"))
3862
3878
  UpdateEvaluationFormRequest.add_member(:evaluation_form_version, Shapes::ShapeRef.new(shape: VersionNumber, required: true, location_name: "EvaluationFormVersion"))
3863
- UpdateEvaluationFormRequest.add_member(:create_new_version, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "CreateNewVersion"))
3879
+ UpdateEvaluationFormRequest.add_member(:create_new_version, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "CreateNewVersion", metadata: {"box"=>true}))
3864
3880
  UpdateEvaluationFormRequest.add_member(:title, Shapes::ShapeRef.new(shape: EvaluationFormTitle, required: true, location_name: "Title"))
3865
3881
  UpdateEvaluationFormRequest.add_member(:description, Shapes::ShapeRef.new(shape: EvaluationFormDescription, location_name: "Description"))
3866
3882
  UpdateEvaluationFormRequest.add_member(:items, Shapes::ShapeRef.new(shape: EvaluationFormItemsList, required: true, location_name: "Items"))
@@ -3905,6 +3921,11 @@ module Aws::Connect
3905
3921
 
3906
3922
  UpdateParticipantRoleConfigResponse.struct_class = Types::UpdateParticipantRoleConfigResponse
3907
3923
 
3924
+ UpdatePhoneNumberMetadataRequest.add_member(:phone_number_id, Shapes::ShapeRef.new(shape: PhoneNumberId, required: true, location: "uri", location_name: "PhoneNumberId"))
3925
+ UpdatePhoneNumberMetadataRequest.add_member(:phone_number_description, Shapes::ShapeRef.new(shape: PhoneNumberDescription, location_name: "PhoneNumberDescription"))
3926
+ UpdatePhoneNumberMetadataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
3927
+ UpdatePhoneNumberMetadataRequest.struct_class = Types::UpdatePhoneNumberMetadataRequest
3928
+
3908
3929
  UpdatePhoneNumberRequest.add_member(:phone_number_id, Shapes::ShapeRef.new(shape: PhoneNumberId, required: true, location: "uri", location_name: "PhoneNumberId"))
3909
3930
  UpdatePhoneNumberRequest.add_member(:target_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "TargetArn"))
3910
3931
  UpdatePhoneNumberRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
@@ -7067,6 +7088,22 @@ module Aws::Connect
7067
7088
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
7068
7089
  end)
7069
7090
 
7091
+ api.add_operation(:update_phone_number_metadata, Seahorse::Model::Operation.new.tap do |o|
7092
+ o.name = "UpdatePhoneNumberMetadata"
7093
+ o.http_method = "PUT"
7094
+ o.http_request_uri = "/phone-number/{PhoneNumberId}/metadata"
7095
+ o.input = Shapes::ShapeRef.new(shape: UpdatePhoneNumberMetadataRequest)
7096
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
7097
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
7098
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
7099
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
7100
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
7101
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
7102
+ o.errors << Shapes::ShapeRef.new(shape: IdempotencyException)
7103
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
7104
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
7105
+ end)
7106
+
7070
7107
  api.add_operation(:update_prompt, Seahorse::Model::Operation.new.tap do |o|
7071
7108
  o.name = "UpdatePrompt"
7072
7109
  o.http_method = "POST"
@@ -32,8 +32,8 @@ module Aws::Connect
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
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
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
37
37
  return Aws::Endpoints::Endpoint.new(url: "https://connect.#{region}.amazonaws.com", headers: {}, properties: {})
38
38
  end
39
39
  return Aws::Endpoints::Endpoint.new(url: "https://connect-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
@@ -2588,6 +2588,20 @@ module Aws::Connect
2588
2588
  end
2589
2589
  end
2590
2590
 
2591
+ class UpdatePhoneNumberMetadata
2592
+ def self.build(context)
2593
+ unless context.config.regional_endpoint
2594
+ endpoint = context.config.endpoint.to_s
2595
+ end
2596
+ Aws::Connect::EndpointParameters.new(
2597
+ region: context.config.region,
2598
+ use_dual_stack: context.config.use_dualstack_endpoint,
2599
+ use_fips: context.config.use_fips_endpoint,
2600
+ endpoint: endpoint,
2601
+ )
2602
+ end
2603
+ end
2604
+
2591
2605
  class UpdatePrompt
2592
2606
  def self.build(context)
2593
2607
  unless context.config.regional_endpoint
@@ -424,6 +424,8 @@ module Aws::Connect
424
424
  Aws::Connect::Endpoints::UpdateParticipantRoleConfig.build(context)
425
425
  when :update_phone_number
426
426
  Aws::Connect::Endpoints::UpdatePhoneNumber.build(context)
427
+ when :update_phone_number_metadata
428
+ Aws::Connect::Endpoints::UpdatePhoneNumberMetadata.build(context)
427
429
  when :update_prompt
428
430
  Aws::Connect::Endpoints::UpdatePrompt.build(context)
429
431
  when :update_queue_hours_of_operation