aws-sdk-connect 1.263.0 → 1.265.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.
@@ -290,6 +290,8 @@ module Aws::Connect
290
290
  ContactEvaluationAttributeOrConditionList = Shapes::ListShape.new(name: 'ContactEvaluationAttributeOrConditionList')
291
291
  ContactEvaluationAttributeValue = Shapes::StructureShape.new(name: 'ContactEvaluationAttributeValue')
292
292
  ContactEvaluations = Shapes::MapShape.new(name: 'ContactEvaluations')
293
+ ContactField = Shapes::StringShape.new(name: 'ContactField')
294
+ ContactFields = Shapes::ListShape.new(name: 'ContactFields')
293
295
  ContactFilter = Shapes::StructureShape.new(name: 'ContactFilter')
294
296
  ContactFlow = Shapes::StructureShape.new(name: 'ContactFlow')
295
297
  ContactFlowAttributeAndCondition = Shapes::StructureShape.new(name: 'ContactFlowAttributeAndCondition')
@@ -343,6 +345,7 @@ module Aws::Connect
343
345
  ContactMetricValue = Shapes::UnionShape.new(name: 'ContactMetricValue')
344
346
  ContactMetrics = Shapes::ListShape.new(name: 'ContactMetrics')
345
347
  ContactNotFoundException = Shapes::StructureShape.new(name: 'ContactNotFoundException')
348
+ ContactNotTerminatedException = Shapes::StructureShape.new(name: 'ContactNotTerminatedException')
346
349
  ContactParticipantRole = Shapes::StringShape.new(name: 'ContactParticipantRole')
347
350
  ContactRecordingType = Shapes::StringShape.new(name: 'ContactRecordingType')
348
351
  ContactReferences = Shapes::MapShape.new(name: 'ContactReferences')
@@ -514,6 +517,8 @@ module Aws::Connect
514
517
  Delay = Shapes::IntegerShape.new(name: 'Delay')
515
518
  DeleteAttachedFileRequest = Shapes::StructureShape.new(name: 'DeleteAttachedFileRequest')
516
519
  DeleteAttachedFileResponse = Shapes::StructureShape.new(name: 'DeleteAttachedFileResponse')
520
+ DeleteContactDataRequest = Shapes::StructureShape.new(name: 'DeleteContactDataRequest')
521
+ DeleteContactDataResponse = Shapes::StructureShape.new(name: 'DeleteContactDataResponse')
517
522
  DeleteContactEvaluationRequest = Shapes::StructureShape.new(name: 'DeleteContactEvaluationRequest')
518
523
  DeleteContactFlowModuleAliasRequest = Shapes::StructureShape.new(name: 'DeleteContactFlowModuleAliasRequest')
519
524
  DeleteContactFlowModuleAliasResponse = Shapes::StructureShape.new(name: 'DeleteContactFlowModuleAliasResponse')
@@ -1665,14 +1670,24 @@ module Aws::Connect
1665
1670
  Rule = Shapes::StructureShape.new(name: 'Rule')
1666
1671
  RuleAction = Shapes::StructureShape.new(name: 'RuleAction')
1667
1672
  RuleActions = Shapes::ListShape.new(name: 'RuleActions')
1673
+ RuleAttributeAndCondition = Shapes::StructureShape.new(name: 'RuleAttributeAndCondition')
1674
+ RuleAttributeFilter = Shapes::StructureShape.new(name: 'RuleAttributeFilter')
1675
+ RuleAttributeOrConditionList = Shapes::ListShape.new(name: 'RuleAttributeOrConditionList')
1676
+ RuleCapabilityTier = Shapes::StringShape.new(name: 'RuleCapabilityTier')
1677
+ RuleCapabilityTiers = Shapes::ListShape.new(name: 'RuleCapabilityTiers')
1668
1678
  RuleFunction = Shapes::StringShape.new(name: 'RuleFunction')
1669
1679
  RuleId = Shapes::StringShape.new(name: 'RuleId')
1670
1680
  RuleName = Shapes::StringShape.new(name: 'RuleName')
1671
1681
  RulePublishStatus = Shapes::StringShape.new(name: 'RulePublishStatus')
1682
+ RuleSearchSummary = Shapes::StructureShape.new(name: 'RuleSearchSummary')
1683
+ RuleSearchSummaryList = Shapes::ListShape.new(name: 'RuleSearchSummaryList')
1672
1684
  RuleSummary = Shapes::StructureShape.new(name: 'RuleSummary')
1673
1685
  RuleSummaryList = Shapes::ListShape.new(name: 'RuleSummaryList')
1674
1686
  RuleTriggerEventSource = Shapes::StructureShape.new(name: 'RuleTriggerEventSource')
1675
1687
  RulesConfiguration = Shapes::StructureShape.new(name: 'RulesConfiguration')
1688
+ RulesSearchConditionList = Shapes::ListShape.new(name: 'RulesSearchConditionList')
1689
+ RulesSearchCriteria = Shapes::StructureShape.new(name: 'RulesSearchCriteria')
1690
+ RulesSearchFilter = Shapes::StructureShape.new(name: 'RulesSearchFilter')
1676
1691
  S3Config = Shapes::StructureShape.new(name: 'S3Config')
1677
1692
  S3Uri = Shapes::StringShape.new(name: 'S3Uri')
1678
1693
  ScreenShareCapability = Shapes::StringShape.new(name: 'ScreenShareCapability')
@@ -1721,6 +1736,8 @@ module Aws::Connect
1721
1736
  SearchResourceTagsResponse = Shapes::StructureShape.new(name: 'SearchResourceTagsResponse')
1722
1737
  SearchRoutingProfilesRequest = Shapes::StructureShape.new(name: 'SearchRoutingProfilesRequest')
1723
1738
  SearchRoutingProfilesResponse = Shapes::StructureShape.new(name: 'SearchRoutingProfilesResponse')
1739
+ SearchRulesRequest = Shapes::StructureShape.new(name: 'SearchRulesRequest')
1740
+ SearchRulesResponse = Shapes::StructureShape.new(name: 'SearchRulesResponse')
1724
1741
  SearchSecurityProfilesRequest = Shapes::StructureShape.new(name: 'SearchSecurityProfilesRequest')
1725
1742
  SearchSecurityProfilesResponse = Shapes::StructureShape.new(name: 'SearchSecurityProfilesResponse')
1726
1743
  SearchTestCasesRequest = Shapes::StructureShape.new(name: 'SearchTestCasesRequest')
@@ -3097,6 +3114,8 @@ module Aws::Connect
3097
3114
  ContactEvaluations.key = Shapes::ShapeRef.new(shape: EvaluationId)
3098
3115
  ContactEvaluations.value = Shapes::ShapeRef.new(shape: ContactEvaluation)
3099
3116
 
3117
+ ContactFields.member = Shapes::ShapeRef.new(shape: ContactField)
3118
+
3100
3119
  ContactFilter.add_member(:contact_states, Shapes::ShapeRef.new(shape: ContactStates, location_name: "ContactStates"))
3101
3120
  ContactFilter.struct_class = Types::ContactFilter
3102
3121
 
@@ -3253,6 +3272,9 @@ module Aws::Connect
3253
3272
  ContactNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
3254
3273
  ContactNotFoundException.struct_class = Types::ContactNotFoundException
3255
3274
 
3275
+ ContactNotTerminatedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
3276
+ ContactNotTerminatedException.struct_class = Types::ContactNotTerminatedException
3277
+
3256
3278
  ContactReferences.key = Shapes::ShapeRef.new(shape: ReferenceKey)
3257
3279
  ContactReferences.value = Shapes::ShapeRef.new(shape: Reference)
3258
3280
 
@@ -4051,6 +4073,13 @@ module Aws::Connect
4051
4073
 
4052
4074
  DeleteAttachedFileResponse.struct_class = Types::DeleteAttachedFileResponse
4053
4075
 
4076
+ DeleteContactDataRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
4077
+ DeleteContactDataRequest.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location: "uri", location_name: "ContactId"))
4078
+ DeleteContactDataRequest.add_member(:contact_fields, Shapes::ShapeRef.new(shape: ContactFields, required: true, location_name: "ContactFields"))
4079
+ DeleteContactDataRequest.struct_class = Types::DeleteContactDataRequest
4080
+
4081
+ DeleteContactDataResponse.struct_class = Types::DeleteContactDataResponse
4082
+
4054
4083
  DeleteContactEvaluationRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
4055
4084
  DeleteContactEvaluationRequest.add_member(:evaluation_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "uri", location_name: "EvaluationId"))
4056
4085
  DeleteContactEvaluationRequest.struct_class = Types::DeleteContactEvaluationRequest
@@ -7641,6 +7670,7 @@ module Aws::Connect
7641
7670
  Rule.add_member(:rule_id, Shapes::ShapeRef.new(shape: RuleId, required: true, location_name: "RuleId"))
7642
7671
  Rule.add_member(:rule_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "RuleArn"))
7643
7672
  Rule.add_member(:trigger_event_source, Shapes::ShapeRef.new(shape: RuleTriggerEventSource, required: true, location_name: "TriggerEventSource"))
7673
+ Rule.add_member(:rule_capability_tiers, Shapes::ShapeRef.new(shape: RuleCapabilityTiers, location_name: "RuleCapabilityTiers"))
7644
7674
  Rule.add_member(:function, Shapes::ShapeRef.new(shape: RuleFunction, required: true, location_name: "Function"))
7645
7675
  Rule.add_member(:actions, Shapes::ShapeRef.new(shape: RuleActions, required: true, location_name: "Actions"))
7646
7676
  Rule.add_member(:publish_status, Shapes::ShapeRef.new(shape: RulePublishStatus, required: true, location_name: "PublishStatus"))
@@ -7664,11 +7694,39 @@ module Aws::Connect
7664
7694
 
7665
7695
  RuleActions.member = Shapes::ShapeRef.new(shape: RuleAction)
7666
7696
 
7697
+ RuleAttributeAndCondition.add_member(:tag_conditions, Shapes::ShapeRef.new(shape: TagAndConditionList, location_name: "TagConditions"))
7698
+ RuleAttributeAndCondition.struct_class = Types::RuleAttributeAndCondition
7699
+
7700
+ RuleAttributeFilter.add_member(:or_conditions, Shapes::ShapeRef.new(shape: RuleAttributeOrConditionList, location_name: "OrConditions"))
7701
+ RuleAttributeFilter.add_member(:and_condition, Shapes::ShapeRef.new(shape: RuleAttributeAndCondition, location_name: "AndCondition"))
7702
+ RuleAttributeFilter.add_member(:tag_condition, Shapes::ShapeRef.new(shape: TagCondition, location_name: "TagCondition"))
7703
+ RuleAttributeFilter.struct_class = Types::RuleAttributeFilter
7704
+
7705
+ RuleAttributeOrConditionList.member = Shapes::ShapeRef.new(shape: RuleAttributeAndCondition)
7706
+
7707
+ RuleCapabilityTiers.member = Shapes::ShapeRef.new(shape: RuleCapabilityTier)
7708
+
7709
+ RuleSearchSummary.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
7710
+ RuleSearchSummary.add_member(:rule_id, Shapes::ShapeRef.new(shape: RuleId, required: true, location_name: "RuleId"))
7711
+ RuleSearchSummary.add_member(:rule_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "RuleArn"))
7712
+ RuleSearchSummary.add_member(:trigger_event_source, Shapes::ShapeRef.new(shape: RuleTriggerEventSource, required: true, location_name: "TriggerEventSource"))
7713
+ RuleSearchSummary.add_member(:action_summaries, Shapes::ShapeRef.new(shape: ActionSummaries, required: true, location_name: "ActionSummaries"))
7714
+ RuleSearchSummary.add_member(:rule_capability_tiers, Shapes::ShapeRef.new(shape: RuleCapabilityTiers, location_name: "RuleCapabilityTiers"))
7715
+ RuleSearchSummary.add_member(:publish_status, Shapes::ShapeRef.new(shape: RulePublishStatus, required: true, location_name: "PublishStatus"))
7716
+ RuleSearchSummary.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedTime"))
7717
+ RuleSearchSummary.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "LastUpdatedTime"))
7718
+ RuleSearchSummary.add_member(:last_updated_by, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "LastUpdatedBy"))
7719
+ RuleSearchSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
7720
+ RuleSearchSummary.struct_class = Types::RuleSearchSummary
7721
+
7722
+ RuleSearchSummaryList.member = Shapes::ShapeRef.new(shape: RuleSearchSummary)
7723
+
7667
7724
  RuleSummary.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
7668
7725
  RuleSummary.add_member(:rule_id, Shapes::ShapeRef.new(shape: RuleId, required: true, location_name: "RuleId"))
7669
7726
  RuleSummary.add_member(:rule_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "RuleArn"))
7670
7727
  RuleSummary.add_member(:event_source_name, Shapes::ShapeRef.new(shape: EventSourceName, required: true, location_name: "EventSourceName"))
7671
7728
  RuleSummary.add_member(:publish_status, Shapes::ShapeRef.new(shape: RulePublishStatus, required: true, location_name: "PublishStatus"))
7729
+ RuleSummary.add_member(:rule_capability_tiers, Shapes::ShapeRef.new(shape: RuleCapabilityTiers, location_name: "RuleCapabilityTiers"))
7672
7730
  RuleSummary.add_member(:action_summaries, Shapes::ShapeRef.new(shape: ActionSummaries, required: true, location_name: "ActionSummaries"))
7673
7731
  RuleSummary.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedTime"))
7674
7732
  RuleSummary.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "LastUpdatedTime"))
@@ -7683,6 +7741,16 @@ module Aws::Connect
7683
7741
  RulesConfiguration.add_member(:behavior, Shapes::ShapeRef.new(shape: Behavior, location_name: "Behavior"))
7684
7742
  RulesConfiguration.struct_class = Types::RulesConfiguration
7685
7743
 
7744
+ RulesSearchConditionList.member = Shapes::ShapeRef.new(shape: RulesSearchCriteria)
7745
+
7746
+ RulesSearchCriteria.add_member(:or_conditions, Shapes::ShapeRef.new(shape: RulesSearchConditionList, location_name: "OrConditions"))
7747
+ RulesSearchCriteria.add_member(:and_conditions, Shapes::ShapeRef.new(shape: RulesSearchConditionList, location_name: "AndConditions"))
7748
+ RulesSearchCriteria.add_member(:string_condition, Shapes::ShapeRef.new(shape: StringCondition, location_name: "StringCondition"))
7749
+ RulesSearchCriteria.struct_class = Types::RulesSearchCriteria
7750
+
7751
+ RulesSearchFilter.add_member(:attribute_filter, Shapes::ShapeRef.new(shape: RuleAttributeFilter, location_name: "AttributeFilter"))
7752
+ RulesSearchFilter.struct_class = Types::RulesSearchFilter
7753
+
7686
7754
  S3Config.add_member(:bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "BucketName"))
7687
7755
  S3Config.add_member(:bucket_prefix, Shapes::ShapeRef.new(shape: Prefix, required: true, location_name: "BucketPrefix"))
7688
7756
  S3Config.add_member(:encryption_config, Shapes::ShapeRef.new(shape: EncryptionConfig, location_name: "EncryptionConfig"))
@@ -7939,6 +8007,18 @@ module Aws::Connect
7939
8007
  SearchRoutingProfilesResponse.add_member(:approximate_total_count, Shapes::ShapeRef.new(shape: ApproximateTotalCount, location_name: "ApproximateTotalCount"))
7940
8008
  SearchRoutingProfilesResponse.struct_class = Types::SearchRoutingProfilesResponse
7941
8009
 
8010
+ SearchRulesRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
8011
+ SearchRulesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResult200, location_name: "MaxResults", metadata: {"box" => true}))
8012
+ SearchRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken2500, location_name: "NextToken"))
8013
+ SearchRulesRequest.add_member(:search_criteria, Shapes::ShapeRef.new(shape: RulesSearchCriteria, location_name: "SearchCriteria"))
8014
+ SearchRulesRequest.add_member(:search_filter, Shapes::ShapeRef.new(shape: RulesSearchFilter, location_name: "SearchFilter"))
8015
+ SearchRulesRequest.struct_class = Types::SearchRulesRequest
8016
+
8017
+ SearchRulesResponse.add_member(:rules, Shapes::ShapeRef.new(shape: RuleSearchSummaryList, required: true, location_name: "Rules"))
8018
+ SearchRulesResponse.add_member(:approximate_total_count, Shapes::ShapeRef.new(shape: ApproximateTotalCount, location_name: "ApproximateTotalCount"))
8019
+ SearchRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken2500, location_name: "NextToken"))
8020
+ SearchRulesResponse.struct_class = Types::SearchRulesResponse
8021
+
7942
8022
  SearchSecurityProfilesRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
7943
8023
  SearchSecurityProfilesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken2500, location_name: "NextToken"))
7944
8024
  SearchSecurityProfilesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResult100, location_name: "MaxResults", metadata: {"box" => true}))
@@ -10837,6 +10917,20 @@ module Aws::Connect
10837
10917
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
10838
10918
  end)
10839
10919
 
10920
+ api.add_operation(:delete_contact_data, Seahorse::Model::Operation.new.tap do |o|
10921
+ o.name = "DeleteContactData"
10922
+ o.http_method = "POST"
10923
+ o.http_request_uri = "/contact/delete/{InstanceId}/{ContactId}"
10924
+ o.input = Shapes::ShapeRef.new(shape: DeleteContactDataRequest)
10925
+ o.output = Shapes::ShapeRef.new(shape: DeleteContactDataResponse)
10926
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
10927
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
10928
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
10929
+ o.errors << Shapes::ShapeRef.new(shape: ContactNotTerminatedException)
10930
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
10931
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
10932
+ end)
10933
+
10840
10934
  api.add_operation(:delete_contact_evaluation, Seahorse::Model::Operation.new.tap do |o|
10841
10935
  o.name = "DeleteContactEvaluation"
10842
10936
  o.http_method = "DELETE"
@@ -13983,6 +14077,26 @@ module Aws::Connect
13983
14077
  )
13984
14078
  end)
13985
14079
 
14080
+ api.add_operation(:search_rules, Seahorse::Model::Operation.new.tap do |o|
14081
+ o.name = "SearchRules"
14082
+ o.http_method = "POST"
14083
+ o.http_request_uri = "/search-rules"
14084
+ o.input = Shapes::ShapeRef.new(shape: SearchRulesRequest)
14085
+ o.output = Shapes::ShapeRef.new(shape: SearchRulesResponse)
14086
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
14087
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
14088
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
14089
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
14090
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
14091
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
14092
+ o[:pager] = Aws::Pager.new(
14093
+ limit_key: "max_results",
14094
+ tokens: {
14095
+ "next_token" => "next_token"
14096
+ }
14097
+ )
14098
+ end)
14099
+
13986
14100
  api.add_operation(:search_security_profiles, Seahorse::Model::Operation.new.tap do |o|
13987
14101
  o.name = "SearchSecurityProfiles"
13988
14102
  o.http_method = "POST"
@@ -32,6 +32,7 @@ module Aws::Connect
32
32
  # * {ConflictException}
33
33
  # * {ContactFlowNotPublishedException}
34
34
  # * {ContactNotFoundException}
35
+ # * {ContactNotTerminatedException}
35
36
  # * {DestinationNotAllowedException}
36
37
  # * {DuplicateResourceException}
37
38
  # * {IdempotencyException}
@@ -137,6 +138,21 @@ module Aws::Connect
137
138
  end
138
139
  end
139
140
 
141
+ class ContactNotTerminatedException < ServiceError
142
+
143
+ # @param [Seahorse::Client::RequestContext] context
144
+ # @param [String] message
145
+ # @param [Aws::Connect::Types::ContactNotTerminatedException] data
146
+ def initialize(context, message, data = Aws::EmptyStructure.new)
147
+ super(context, message, data)
148
+ end
149
+
150
+ # @return [String]
151
+ def message
152
+ @message || @data[:message]
153
+ end
154
+ end
155
+
140
156
  class DestinationNotAllowedException < ServiceError
141
157
 
142
158
  # @param [Seahorse::Client::RequestContext] context