aws-sdk-connect 1.34.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2f591a4ef5da7d3bb41e2088e65c49b9540f8dc685a93a1502b6059a9687ac0
4
- data.tar.gz: 2be9a1238eeb100c3e0ee4194c089efd410065b7502f668591c55c835a1826f7
3
+ metadata.gz: 5e90171b4284015d7574567e8e1048010ea1890ec83e2217a00add04ba261c97
4
+ data.tar.gz: 3ed0c6e36355db6bbf4c01f0085922ea0041cf4fa1daeac42f35c5aab27574e9
5
5
  SHA512:
6
- metadata.gz: 5edf0889b3a43aea912e5474d0b238f71c248d384c14da316a5b37df2f0b6be842edab66dcac094cd7d1a4653f5b0c1b4393209ea8d6f5fb19d13736dbb44bec
7
- data.tar.gz: 4e7e94e53b8065be85f349045842ac1f42c7d56904521f36e0c75e3f3de92b240f2ac3e0a04f8b545e9e8a5403fff2c55463b68fa32c3b131db1c168d07c3c99
6
+ metadata.gz: e900f9de06bd10cce0e68690404751072f7d4082714bf9690466ed1a0d1c6cc4bdc7260af69b9cc2738b78708eaf3f39c73ef2717b899493d0b35b8ae4d59f2c
7
+ data.tar.gz: bacd11edf9df22d37f6824a91e2d1a8e2c9925aa99cc0f9d663e2ece7ee1b337d7438df4c9f7bd64b8f2eb1c0a478c0c633c2caf5aa591d8f65dc9174e378bcd
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-connect/customizations'
48
48
  # @!group service
49
49
  module Aws::Connect
50
50
 
51
- GEM_VERSION = '1.34.0'
51
+ GEM_VERSION = '1.35.0'
52
52
 
53
53
  end
@@ -604,6 +604,46 @@ module Aws::Connect
604
604
  req.send_request(options)
605
605
  end
606
606
 
607
+ # Creates a new user hierarchy group.
608
+ #
609
+ # @option params [required, String] :name
610
+ # The name of the user hierarchy group. Must not be more than 100
611
+ # characters.
612
+ #
613
+ # @option params [String] :parent_group_id
614
+ # The identifier for the parent hierarchy group. The user hierarchy is
615
+ # created at level one if the parent group ID is null.
616
+ #
617
+ # @option params [required, String] :instance_id
618
+ # The identifier of the Amazon Connect instance.
619
+ #
620
+ # @return [Types::CreateUserHierarchyGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
621
+ #
622
+ # * {Types::CreateUserHierarchyGroupResponse#hierarchy_group_id #hierarchy_group_id} => String
623
+ # * {Types::CreateUserHierarchyGroupResponse#hierarchy_group_arn #hierarchy_group_arn} => String
624
+ #
625
+ # @example Request syntax with placeholder values
626
+ #
627
+ # resp = client.create_user_hierarchy_group({
628
+ # name: "HierarchyGroupName", # required
629
+ # parent_group_id: "HierarchyGroupId",
630
+ # instance_id: "InstanceId", # required
631
+ # })
632
+ #
633
+ # @example Response structure
634
+ #
635
+ # resp.hierarchy_group_id #=> String
636
+ # resp.hierarchy_group_arn #=> String
637
+ #
638
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUserHierarchyGroup AWS API Documentation
639
+ #
640
+ # @overload create_user_hierarchy_group(params = {})
641
+ # @param [Hash] params ({})
642
+ def create_user_hierarchy_group(params = {}, options = {})
643
+ req = build_request(:create_user_hierarchy_group, params)
644
+ req.send_request(options)
645
+ end
646
+
607
647
  # Deletes a user account from the specified Amazon Connect instance.
608
648
  #
609
649
  # For information about what happens to a user's data when their
@@ -638,6 +678,33 @@ module Aws::Connect
638
678
  req.send_request(options)
639
679
  end
640
680
 
681
+ # Deletes an existing user hierarchy group. It must not be associated
682
+ # with any agents or have any active child groups.
683
+ #
684
+ # @option params [required, String] :hierarchy_group_id
685
+ # The identifier of the hierarchy group.
686
+ #
687
+ # @option params [required, String] :instance_id
688
+ # The identifier of the Amazon Connect instance.
689
+ #
690
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
691
+ #
692
+ # @example Request syntax with placeholder values
693
+ #
694
+ # resp = client.delete_user_hierarchy_group({
695
+ # hierarchy_group_id: "HierarchyGroupId", # required
696
+ # instance_id: "InstanceId", # required
697
+ # })
698
+ #
699
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUserHierarchyGroup AWS API Documentation
700
+ #
701
+ # @overload delete_user_hierarchy_group(params = {})
702
+ # @param [Hash] params ({})
703
+ def delete_user_hierarchy_group(params = {}, options = {})
704
+ req = build_request(:delete_user_hierarchy_group, params)
705
+ req.send_request(options)
706
+ end
707
+
641
708
  # Describes the specified contact flow.
642
709
  #
643
710
  # You can also create and update contact flows using the [Amazon Connect
@@ -2496,9 +2563,6 @@ module Aws::Connect
2496
2563
  # Contact attributes are available in Amazon Connect for 24 months, and
2497
2564
  # are then deleted.
2498
2565
  #
2499
- # This operation is also available in the Amazon Connect Flow language.
2500
- # See [UpdateContactAttributes][1].
2501
- #
2502
2566
  # **Important:** You cannot use the operation to update attributes for
2503
2567
  # contacts that occurred prior to the release of the API, September 12,
2504
2568
  # 2018. You can update attributes only for contacts that started after
@@ -2507,10 +2571,6 @@ module Aws::Connect
2507
2571
  # returned. This applies also to queued callbacks that were initiated
2508
2572
  # prior to the release of the API but are still active in your instance.
2509
2573
  #
2510
- #
2511
- #
2512
- # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/contact-actions-updatecontactattributes.html
2513
- #
2514
2574
  # @option params [required, String] :initial_contact_id
2515
2575
  # The identifier of the contact. This is the identifier of the contact
2516
2576
  # associated with the first interaction with the contact center.
@@ -2592,6 +2652,13 @@ module Aws::Connect
2592
2652
 
2593
2653
  # The name of the contact flow.
2594
2654
  #
2655
+ # You can also create and update contact flows using the [Amazon Connect
2656
+ # Flow language][1].
2657
+ #
2658
+ #
2659
+ #
2660
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html
2661
+ #
2595
2662
  # @option params [required, String] :instance_id
2596
2663
  # The identifier of the Amazon Connect instance.
2597
2664
  #
@@ -2797,6 +2864,79 @@ module Aws::Connect
2797
2864
  req.send_request(options)
2798
2865
  end
2799
2866
 
2867
+ # Updates the name of the user hierarchy group.
2868
+ #
2869
+ # @option params [required, String] :name
2870
+ # The name of the hierarchy group. Must not be more than 100 characters.
2871
+ #
2872
+ # @option params [required, String] :hierarchy_group_id
2873
+ # The identifier of the hierarchy group.
2874
+ #
2875
+ # @option params [required, String] :instance_id
2876
+ # The identifier of the Amazon Connect instance.
2877
+ #
2878
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2879
+ #
2880
+ # @example Request syntax with placeholder values
2881
+ #
2882
+ # resp = client.update_user_hierarchy_group_name({
2883
+ # name: "HierarchyGroupName", # required
2884
+ # hierarchy_group_id: "HierarchyGroupId", # required
2885
+ # instance_id: "InstanceId", # required
2886
+ # })
2887
+ #
2888
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchyGroupName AWS API Documentation
2889
+ #
2890
+ # @overload update_user_hierarchy_group_name(params = {})
2891
+ # @param [Hash] params ({})
2892
+ def update_user_hierarchy_group_name(params = {}, options = {})
2893
+ req = build_request(:update_user_hierarchy_group_name, params)
2894
+ req.send_request(options)
2895
+ end
2896
+
2897
+ # Updates the user hierarchy structure: add, remove, and rename user
2898
+ # hierarchy levels.
2899
+ #
2900
+ # @option params [required, Types::HierarchyStructureUpdate] :hierarchy_structure
2901
+ # The hierarchy levels to update.
2902
+ #
2903
+ # @option params [required, String] :instance_id
2904
+ # The identifier of the Amazon Connect instance.
2905
+ #
2906
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2907
+ #
2908
+ # @example Request syntax with placeholder values
2909
+ #
2910
+ # resp = client.update_user_hierarchy_structure({
2911
+ # hierarchy_structure: { # required
2912
+ # level_one: {
2913
+ # name: "HierarchyLevelName", # required
2914
+ # },
2915
+ # level_two: {
2916
+ # name: "HierarchyLevelName", # required
2917
+ # },
2918
+ # level_three: {
2919
+ # name: "HierarchyLevelName", # required
2920
+ # },
2921
+ # level_four: {
2922
+ # name: "HierarchyLevelName", # required
2923
+ # },
2924
+ # level_five: {
2925
+ # name: "HierarchyLevelName", # required
2926
+ # },
2927
+ # },
2928
+ # instance_id: "InstanceId", # required
2929
+ # })
2930
+ #
2931
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchyStructure AWS API Documentation
2932
+ #
2933
+ # @overload update_user_hierarchy_structure(params = {})
2934
+ # @param [Hash] params ({})
2935
+ def update_user_hierarchy_structure(params = {}, options = {})
2936
+ req = build_request(:update_user_hierarchy_structure, params)
2937
+ req.send_request(options)
2938
+ end
2939
+
2800
2940
  # Updates the identity information for the specified user.
2801
2941
  #
2802
2942
  # Someone with the ability to invoke `UpdateUserIndentityInfo` can
@@ -2952,7 +3092,7 @@ module Aws::Connect
2952
3092
  params: params,
2953
3093
  config: config)
2954
3094
  context[:gem_name] = 'aws-sdk-connect'
2955
- context[:gem_version] = '1.34.0'
3095
+ context[:gem_version] = '1.35.0'
2956
3096
  Seahorse::Client::Request.new(handlers, context)
2957
3097
  end
2958
3098
 
@@ -47,6 +47,8 @@ module Aws::Connect
47
47
  CreateContactFlowResponse = Shapes::StructureShape.new(name: 'CreateContactFlowResponse')
48
48
  CreateRoutingProfileRequest = Shapes::StructureShape.new(name: 'CreateRoutingProfileRequest')
49
49
  CreateRoutingProfileResponse = Shapes::StructureShape.new(name: 'CreateRoutingProfileResponse')
50
+ CreateUserHierarchyGroupRequest = Shapes::StructureShape.new(name: 'CreateUserHierarchyGroupRequest')
51
+ CreateUserHierarchyGroupResponse = Shapes::StructureShape.new(name: 'CreateUserHierarchyGroupResponse')
50
52
  CreateUserRequest = Shapes::StructureShape.new(name: 'CreateUserRequest')
51
53
  CreateUserResponse = Shapes::StructureShape.new(name: 'CreateUserResponse')
52
54
  Credentials = Shapes::StructureShape.new(name: 'Credentials')
@@ -58,6 +60,7 @@ module Aws::Connect
58
60
  CurrentMetricResults = Shapes::ListShape.new(name: 'CurrentMetricResults')
59
61
  CurrentMetrics = Shapes::ListShape.new(name: 'CurrentMetrics')
60
62
  Delay = Shapes::IntegerShape.new(name: 'Delay')
63
+ DeleteUserHierarchyGroupRequest = Shapes::StructureShape.new(name: 'DeleteUserHierarchyGroupRequest')
61
64
  DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest')
62
65
  DescribeContactFlowRequest = Shapes::StructureShape.new(name: 'DescribeContactFlowRequest')
63
66
  DescribeContactFlowResponse = Shapes::StructureShape.new(name: 'DescribeContactFlowResponse')
@@ -95,8 +98,10 @@ module Aws::Connect
95
98
  HierarchyLevel = Shapes::StructureShape.new(name: 'HierarchyLevel')
96
99
  HierarchyLevelId = Shapes::StringShape.new(name: 'HierarchyLevelId')
97
100
  HierarchyLevelName = Shapes::StringShape.new(name: 'HierarchyLevelName')
101
+ HierarchyLevelUpdate = Shapes::StructureShape.new(name: 'HierarchyLevelUpdate')
98
102
  HierarchyPath = Shapes::StructureShape.new(name: 'HierarchyPath')
99
103
  HierarchyStructure = Shapes::StructureShape.new(name: 'HierarchyStructure')
104
+ HierarchyStructureUpdate = Shapes::StructureShape.new(name: 'HierarchyStructureUpdate')
100
105
  HistoricalMetric = Shapes::StructureShape.new(name: 'HistoricalMetric')
101
106
  HistoricalMetricData = Shapes::StructureShape.new(name: 'HistoricalMetricData')
102
107
  HistoricalMetricDataCollections = Shapes::ListShape.new(name: 'HistoricalMetricDataCollections')
@@ -172,7 +177,9 @@ module Aws::Connect
172
177
  QueueType = Shapes::StringShape.new(name: 'QueueType')
173
178
  QueueTypes = Shapes::ListShape.new(name: 'QueueTypes')
174
179
  Queues = Shapes::ListShape.new(name: 'Queues')
180
+ ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
175
181
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
182
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
176
183
  ResumeContactRecordingRequest = Shapes::StructureShape.new(name: 'ResumeContactRecordingRequest')
177
184
  ResumeContactRecordingResponse = Shapes::StructureShape.new(name: 'ResumeContactRecordingResponse')
178
185
  RoutingProfile = Shapes::StructureShape.new(name: 'RoutingProfile')
@@ -224,7 +231,9 @@ module Aws::Connect
224
231
  UpdateRoutingProfileDefaultOutboundQueueRequest = Shapes::StructureShape.new(name: 'UpdateRoutingProfileDefaultOutboundQueueRequest')
225
232
  UpdateRoutingProfileNameRequest = Shapes::StructureShape.new(name: 'UpdateRoutingProfileNameRequest')
226
233
  UpdateRoutingProfileQueuesRequest = Shapes::StructureShape.new(name: 'UpdateRoutingProfileQueuesRequest')
234
+ UpdateUserHierarchyGroupNameRequest = Shapes::StructureShape.new(name: 'UpdateUserHierarchyGroupNameRequest')
227
235
  UpdateUserHierarchyRequest = Shapes::StructureShape.new(name: 'UpdateUserHierarchyRequest')
236
+ UpdateUserHierarchyStructureRequest = Shapes::StructureShape.new(name: 'UpdateUserHierarchyStructureRequest')
228
237
  UpdateUserIdentityInfoRequest = Shapes::StructureShape.new(name: 'UpdateUserIdentityInfoRequest')
229
238
  UpdateUserPhoneConfigRequest = Shapes::StructureShape.new(name: 'UpdateUserPhoneConfigRequest')
230
239
  UpdateUserRoutingProfileRequest = Shapes::StructureShape.new(name: 'UpdateUserRoutingProfileRequest')
@@ -305,6 +314,15 @@ module Aws::Connect
305
314
  CreateRoutingProfileResponse.add_member(:routing_profile_id, Shapes::ShapeRef.new(shape: RoutingProfileId, location_name: "RoutingProfileId"))
306
315
  CreateRoutingProfileResponse.struct_class = Types::CreateRoutingProfileResponse
307
316
 
317
+ CreateUserHierarchyGroupRequest.add_member(:name, Shapes::ShapeRef.new(shape: HierarchyGroupName, required: true, location_name: "Name"))
318
+ CreateUserHierarchyGroupRequest.add_member(:parent_group_id, Shapes::ShapeRef.new(shape: HierarchyGroupId, location_name: "ParentGroupId"))
319
+ CreateUserHierarchyGroupRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
320
+ CreateUserHierarchyGroupRequest.struct_class = Types::CreateUserHierarchyGroupRequest
321
+
322
+ CreateUserHierarchyGroupResponse.add_member(:hierarchy_group_id, Shapes::ShapeRef.new(shape: HierarchyGroupId, location_name: "HierarchyGroupId"))
323
+ CreateUserHierarchyGroupResponse.add_member(:hierarchy_group_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "HierarchyGroupArn"))
324
+ CreateUserHierarchyGroupResponse.struct_class = Types::CreateUserHierarchyGroupResponse
325
+
308
326
  CreateUserRequest.add_member(:username, Shapes::ShapeRef.new(shape: AgentUsername, required: true, location_name: "Username"))
309
327
  CreateUserRequest.add_member(:password, Shapes::ShapeRef.new(shape: Password, location_name: "Password"))
310
328
  CreateUserRequest.add_member(:identity_info, Shapes::ShapeRef.new(shape: UserIdentityInfo, location_name: "IdentityInfo"))
@@ -345,6 +363,10 @@ module Aws::Connect
345
363
 
346
364
  CurrentMetrics.member = Shapes::ShapeRef.new(shape: CurrentMetric)
347
365
 
366
+ DeleteUserHierarchyGroupRequest.add_member(:hierarchy_group_id, Shapes::ShapeRef.new(shape: HierarchyGroupId, required: true, location: "uri", location_name: "HierarchyGroupId"))
367
+ DeleteUserHierarchyGroupRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
368
+ DeleteUserHierarchyGroupRequest.struct_class = Types::DeleteUserHierarchyGroupRequest
369
+
348
370
  DeleteUserRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
349
371
  DeleteUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "UserId"))
350
372
  DeleteUserRequest.struct_class = Types::DeleteUserRequest
@@ -463,6 +485,9 @@ module Aws::Connect
463
485
  HierarchyLevel.add_member(:name, Shapes::ShapeRef.new(shape: HierarchyLevelName, location_name: "Name"))
464
486
  HierarchyLevel.struct_class = Types::HierarchyLevel
465
487
 
488
+ HierarchyLevelUpdate.add_member(:name, Shapes::ShapeRef.new(shape: HierarchyLevelName, required: true, location_name: "Name"))
489
+ HierarchyLevelUpdate.struct_class = Types::HierarchyLevelUpdate
490
+
466
491
  HierarchyPath.add_member(:level_one, Shapes::ShapeRef.new(shape: HierarchyGroupSummary, location_name: "LevelOne"))
467
492
  HierarchyPath.add_member(:level_two, Shapes::ShapeRef.new(shape: HierarchyGroupSummary, location_name: "LevelTwo"))
468
493
  HierarchyPath.add_member(:level_three, Shapes::ShapeRef.new(shape: HierarchyGroupSummary, location_name: "LevelThree"))
@@ -477,6 +502,13 @@ module Aws::Connect
477
502
  HierarchyStructure.add_member(:level_five, Shapes::ShapeRef.new(shape: HierarchyLevel, location_name: "LevelFive"))
478
503
  HierarchyStructure.struct_class = Types::HierarchyStructure
479
504
 
505
+ HierarchyStructureUpdate.add_member(:level_one, Shapes::ShapeRef.new(shape: HierarchyLevelUpdate, location_name: "LevelOne"))
506
+ HierarchyStructureUpdate.add_member(:level_two, Shapes::ShapeRef.new(shape: HierarchyLevelUpdate, location_name: "LevelTwo"))
507
+ HierarchyStructureUpdate.add_member(:level_three, Shapes::ShapeRef.new(shape: HierarchyLevelUpdate, location_name: "LevelThree"))
508
+ HierarchyStructureUpdate.add_member(:level_four, Shapes::ShapeRef.new(shape: HierarchyLevelUpdate, location_name: "LevelFour"))
509
+ HierarchyStructureUpdate.add_member(:level_five, Shapes::ShapeRef.new(shape: HierarchyLevelUpdate, location_name: "LevelFive"))
510
+ HierarchyStructureUpdate.struct_class = Types::HierarchyStructureUpdate
511
+
480
512
  HistoricalMetric.add_member(:name, Shapes::ShapeRef.new(shape: HistoricalMetricName, location_name: "Name"))
481
513
  HistoricalMetric.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold", metadata: {"box"=>true}))
482
514
  HistoricalMetric.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
@@ -673,6 +705,11 @@ module Aws::Connect
673
705
 
674
706
  Queues.member = Shapes::ShapeRef.new(shape: QueueId)
675
707
 
708
+ ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
709
+ ResourceInUseException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
710
+ ResourceInUseException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ARN, location_name: "ResourceId"))
711
+ ResourceInUseException.struct_class = Types::ResourceInUseException
712
+
676
713
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
677
714
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
678
715
 
@@ -844,11 +881,20 @@ module Aws::Connect
844
881
  UpdateRoutingProfileQueuesRequest.add_member(:queue_configs, Shapes::ShapeRef.new(shape: RoutingProfileQueueConfigList, required: true, location_name: "QueueConfigs"))
845
882
  UpdateRoutingProfileQueuesRequest.struct_class = Types::UpdateRoutingProfileQueuesRequest
846
883
 
884
+ UpdateUserHierarchyGroupNameRequest.add_member(:name, Shapes::ShapeRef.new(shape: HierarchyGroupName, required: true, location_name: "Name"))
885
+ UpdateUserHierarchyGroupNameRequest.add_member(:hierarchy_group_id, Shapes::ShapeRef.new(shape: HierarchyGroupId, required: true, location: "uri", location_name: "HierarchyGroupId"))
886
+ UpdateUserHierarchyGroupNameRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
887
+ UpdateUserHierarchyGroupNameRequest.struct_class = Types::UpdateUserHierarchyGroupNameRequest
888
+
847
889
  UpdateUserHierarchyRequest.add_member(:hierarchy_group_id, Shapes::ShapeRef.new(shape: HierarchyGroupId, location_name: "HierarchyGroupId"))
848
890
  UpdateUserHierarchyRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "UserId"))
849
891
  UpdateUserHierarchyRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
850
892
  UpdateUserHierarchyRequest.struct_class = Types::UpdateUserHierarchyRequest
851
893
 
894
+ UpdateUserHierarchyStructureRequest.add_member(:hierarchy_structure, Shapes::ShapeRef.new(shape: HierarchyStructureUpdate, required: true, location_name: "HierarchyStructure"))
895
+ UpdateUserHierarchyStructureRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
896
+ UpdateUserHierarchyStructureRequest.struct_class = Types::UpdateUserHierarchyStructureRequest
897
+
852
898
  UpdateUserIdentityInfoRequest.add_member(:identity_info, Shapes::ShapeRef.new(shape: UserIdentityInfo, required: true, location_name: "IdentityInfo"))
853
899
  UpdateUserIdentityInfoRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "UserId"))
854
900
  UpdateUserIdentityInfoRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
@@ -983,6 +1029,21 @@ module Aws::Connect
983
1029
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
984
1030
  end)
985
1031
 
1032
+ api.add_operation(:create_user_hierarchy_group, Seahorse::Model::Operation.new.tap do |o|
1033
+ o.name = "CreateUserHierarchyGroup"
1034
+ o.http_method = "PUT"
1035
+ o.http_request_uri = "/user-hierarchy-groups/{InstanceId}"
1036
+ o.input = Shapes::ShapeRef.new(shape: CreateUserHierarchyGroupRequest)
1037
+ o.output = Shapes::ShapeRef.new(shape: CreateUserHierarchyGroupResponse)
1038
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1039
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1040
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateResourceException)
1041
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1042
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1043
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1044
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
1045
+ end)
1046
+
986
1047
  api.add_operation(:delete_user, Seahorse::Model::Operation.new.tap do |o|
987
1048
  o.name = "DeleteUser"
988
1049
  o.http_method = "DELETE"
@@ -996,6 +1057,20 @@ module Aws::Connect
996
1057
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
997
1058
  end)
998
1059
 
1060
+ api.add_operation(:delete_user_hierarchy_group, Seahorse::Model::Operation.new.tap do |o|
1061
+ o.name = "DeleteUserHierarchyGroup"
1062
+ o.http_method = "DELETE"
1063
+ o.http_request_uri = "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}"
1064
+ o.input = Shapes::ShapeRef.new(shape: DeleteUserHierarchyGroupRequest)
1065
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1066
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1067
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1068
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1069
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1070
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1071
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
1072
+ end)
1073
+
999
1074
  api.add_operation(:describe_contact_flow, Seahorse::Model::Operation.new.tap do |o|
1000
1075
  o.name = "DescribeContactFlow"
1001
1076
  o.http_method = "GET"
@@ -1559,6 +1634,34 @@ module Aws::Connect
1559
1634
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
1560
1635
  end)
1561
1636
 
1637
+ api.add_operation(:update_user_hierarchy_group_name, Seahorse::Model::Operation.new.tap do |o|
1638
+ o.name = "UpdateUserHierarchyGroupName"
1639
+ o.http_method = "POST"
1640
+ o.http_request_uri = "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}/name"
1641
+ o.input = Shapes::ShapeRef.new(shape: UpdateUserHierarchyGroupNameRequest)
1642
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1643
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1644
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1645
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateResourceException)
1646
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1647
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1648
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
1649
+ end)
1650
+
1651
+ api.add_operation(:update_user_hierarchy_structure, Seahorse::Model::Operation.new.tap do |o|
1652
+ o.name = "UpdateUserHierarchyStructure"
1653
+ o.http_method = "POST"
1654
+ o.http_request_uri = "/user-hierarchy-structure/{InstanceId}"
1655
+ o.input = Shapes::ShapeRef.new(shape: UpdateUserHierarchyStructureRequest)
1656
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1657
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1658
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1659
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1660
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1661
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1662
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
1663
+ end)
1664
+
1562
1665
  api.add_operation(:update_user_identity_info, Seahorse::Model::Operation.new.tap do |o|
1563
1666
  o.name = "UpdateUserIdentityInfo"
1564
1667
  o.http_method = "POST"
@@ -37,6 +37,7 @@ module Aws::Connect
37
37
  # * {InvalidRequestException}
38
38
  # * {LimitExceededException}
39
39
  # * {OutboundContactNotPermittedException}
40
+ # * {ResourceInUseException}
40
41
  # * {ResourceNotFoundException}
41
42
  # * {ThrottlingException}
42
43
  # * {UserNotFoundException}
@@ -197,6 +198,31 @@ module Aws::Connect
197
198
  end
198
199
  end
199
200
 
201
+ class ResourceInUseException < ServiceError
202
+
203
+ # @param [Seahorse::Client::RequestContext] context
204
+ # @param [String] message
205
+ # @param [Aws::Connect::Types::ResourceInUseException] data
206
+ def initialize(context, message, data = Aws::EmptyStructure.new)
207
+ super(context, message, data)
208
+ end
209
+
210
+ # @return [String]
211
+ def message
212
+ @message || @data[:message]
213
+ end
214
+
215
+ # @return [String]
216
+ def resource_type
217
+ @data[:resource_type]
218
+ end
219
+
220
+ # @return [String]
221
+ def resource_id
222
+ @data[:resource_id]
223
+ end
224
+ end
225
+
200
226
  class ResourceNotFoundException < ServiceError
201
227
 
202
228
  # @param [Seahorse::Client::RequestContext] context
@@ -356,6 +356,56 @@ module Aws::Connect
356
356
  include Aws::Structure
357
357
  end
358
358
 
359
+ # @note When making an API call, you may pass CreateUserHierarchyGroupRequest
360
+ # data as a hash:
361
+ #
362
+ # {
363
+ # name: "HierarchyGroupName", # required
364
+ # parent_group_id: "HierarchyGroupId",
365
+ # instance_id: "InstanceId", # required
366
+ # }
367
+ #
368
+ # @!attribute [rw] name
369
+ # The name of the user hierarchy group. Must not be more than 100
370
+ # characters.
371
+ # @return [String]
372
+ #
373
+ # @!attribute [rw] parent_group_id
374
+ # The identifier for the parent hierarchy group. The user hierarchy is
375
+ # created at level one if the parent group ID is null.
376
+ # @return [String]
377
+ #
378
+ # @!attribute [rw] instance_id
379
+ # The identifier of the Amazon Connect instance.
380
+ # @return [String]
381
+ #
382
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUserHierarchyGroupRequest AWS API Documentation
383
+ #
384
+ class CreateUserHierarchyGroupRequest < Struct.new(
385
+ :name,
386
+ :parent_group_id,
387
+ :instance_id)
388
+ SENSITIVE = []
389
+ include Aws::Structure
390
+ end
391
+
392
+ # @!attribute [rw] hierarchy_group_id
393
+ # The identifier of the hierarchy group.
394
+ # @return [String]
395
+ #
396
+ # @!attribute [rw] hierarchy_group_arn
397
+ # The Amazon Resource Name (ARN) of the hierarchy group.
398
+ # @return [String]
399
+ #
400
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUserHierarchyGroupResponse AWS API Documentation
401
+ #
402
+ class CreateUserHierarchyGroupResponse < Struct.new(
403
+ :hierarchy_group_id,
404
+ :hierarchy_group_arn)
405
+ SENSITIVE = []
406
+ include Aws::Structure
407
+ end
408
+
359
409
  # @note When making an API call, you may pass CreateUserRequest
360
410
  # data as a hash:
361
411
  #
@@ -576,6 +626,31 @@ module Aws::Connect
576
626
  include Aws::Structure
577
627
  end
578
628
 
629
+ # @note When making an API call, you may pass DeleteUserHierarchyGroupRequest
630
+ # data as a hash:
631
+ #
632
+ # {
633
+ # hierarchy_group_id: "HierarchyGroupId", # required
634
+ # instance_id: "InstanceId", # required
635
+ # }
636
+ #
637
+ # @!attribute [rw] hierarchy_group_id
638
+ # The identifier of the hierarchy group.
639
+ # @return [String]
640
+ #
641
+ # @!attribute [rw] instance_id
642
+ # The identifier of the Amazon Connect instance.
643
+ # @return [String]
644
+ #
645
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUserHierarchyGroupRequest AWS API Documentation
646
+ #
647
+ class DeleteUserHierarchyGroupRequest < Struct.new(
648
+ :hierarchy_group_id,
649
+ :instance_id)
650
+ SENSITIVE = []
651
+ include Aws::Structure
652
+ end
653
+
579
654
  # @note When making an API call, you may pass DeleteUserRequest
580
655
  # data as a hash:
581
656
  #
@@ -1534,6 +1609,28 @@ module Aws::Connect
1534
1609
  include Aws::Structure
1535
1610
  end
1536
1611
 
1612
+ # Contains information about the hierarchy level to update.
1613
+ #
1614
+ # @note When making an API call, you may pass HierarchyLevelUpdate
1615
+ # data as a hash:
1616
+ #
1617
+ # {
1618
+ # name: "HierarchyLevelName", # required
1619
+ # }
1620
+ #
1621
+ # @!attribute [rw] name
1622
+ # The name of the user hierarchy level. Must not be more than 50
1623
+ # characters.
1624
+ # @return [String]
1625
+ #
1626
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/HierarchyLevelUpdate AWS API Documentation
1627
+ #
1628
+ class HierarchyLevelUpdate < Struct.new(
1629
+ :name)
1630
+ SENSITIVE = []
1631
+ include Aws::Structure
1632
+ end
1633
+
1537
1634
  # Contains information about the levels of a hierarchy group.
1538
1635
  #
1539
1636
  # @!attribute [rw] level_one
@@ -1602,6 +1699,61 @@ module Aws::Connect
1602
1699
  include Aws::Structure
1603
1700
  end
1604
1701
 
1702
+ # Contains information about the level hierarchy to update.
1703
+ #
1704
+ # @note When making an API call, you may pass HierarchyStructureUpdate
1705
+ # data as a hash:
1706
+ #
1707
+ # {
1708
+ # level_one: {
1709
+ # name: "HierarchyLevelName", # required
1710
+ # },
1711
+ # level_two: {
1712
+ # name: "HierarchyLevelName", # required
1713
+ # },
1714
+ # level_three: {
1715
+ # name: "HierarchyLevelName", # required
1716
+ # },
1717
+ # level_four: {
1718
+ # name: "HierarchyLevelName", # required
1719
+ # },
1720
+ # level_five: {
1721
+ # name: "HierarchyLevelName", # required
1722
+ # },
1723
+ # }
1724
+ #
1725
+ # @!attribute [rw] level_one
1726
+ # The update for level one.
1727
+ # @return [Types::HierarchyLevelUpdate]
1728
+ #
1729
+ # @!attribute [rw] level_two
1730
+ # The update for level two.
1731
+ # @return [Types::HierarchyLevelUpdate]
1732
+ #
1733
+ # @!attribute [rw] level_three
1734
+ # The update for level three.
1735
+ # @return [Types::HierarchyLevelUpdate]
1736
+ #
1737
+ # @!attribute [rw] level_four
1738
+ # The update for level four.
1739
+ # @return [Types::HierarchyLevelUpdate]
1740
+ #
1741
+ # @!attribute [rw] level_five
1742
+ # The update for level five.
1743
+ # @return [Types::HierarchyLevelUpdate]
1744
+ #
1745
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/HierarchyStructureUpdate AWS API Documentation
1746
+ #
1747
+ class HierarchyStructureUpdate < Struct.new(
1748
+ :level_one,
1749
+ :level_two,
1750
+ :level_three,
1751
+ :level_four,
1752
+ :level_five)
1753
+ SENSITIVE = []
1754
+ include Aws::Structure
1755
+ end
1756
+
1605
1757
  # Contains information about a historical metric. For a description of
1606
1758
  # each metric, see [Historical Metrics Definitions][1] in the *Amazon
1607
1759
  # Connect Administrator Guide*.
@@ -2541,6 +2693,29 @@ module Aws::Connect
2541
2693
  include Aws::Structure
2542
2694
  end
2543
2695
 
2696
+ # That resource is already in use. Please try another.
2697
+ #
2698
+ # @!attribute [rw] message
2699
+ # @return [String]
2700
+ #
2701
+ # @!attribute [rw] resource_type
2702
+ # The type of resource.
2703
+ # @return [String]
2704
+ #
2705
+ # @!attribute [rw] resource_id
2706
+ # The identifier for the resource.
2707
+ # @return [String]
2708
+ #
2709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ResourceInUseException AWS API Documentation
2710
+ #
2711
+ class ResourceInUseException < Struct.new(
2712
+ :message,
2713
+ :resource_type,
2714
+ :resource_id)
2715
+ SENSITIVE = []
2716
+ include Aws::Structure
2717
+ end
2718
+
2544
2719
  # The specified resource was not found.
2545
2720
  #
2546
2721
  # @!attribute [rw] message
@@ -3515,6 +3690,38 @@ module Aws::Connect
3515
3690
  include Aws::Structure
3516
3691
  end
3517
3692
 
3693
+ # @note When making an API call, you may pass UpdateUserHierarchyGroupNameRequest
3694
+ # data as a hash:
3695
+ #
3696
+ # {
3697
+ # name: "HierarchyGroupName", # required
3698
+ # hierarchy_group_id: "HierarchyGroupId", # required
3699
+ # instance_id: "InstanceId", # required
3700
+ # }
3701
+ #
3702
+ # @!attribute [rw] name
3703
+ # The name of the hierarchy group. Must not be more than 100
3704
+ # characters.
3705
+ # @return [String]
3706
+ #
3707
+ # @!attribute [rw] hierarchy_group_id
3708
+ # The identifier of the hierarchy group.
3709
+ # @return [String]
3710
+ #
3711
+ # @!attribute [rw] instance_id
3712
+ # The identifier of the Amazon Connect instance.
3713
+ # @return [String]
3714
+ #
3715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchyGroupNameRequest AWS API Documentation
3716
+ #
3717
+ class UpdateUserHierarchyGroupNameRequest < Struct.new(
3718
+ :name,
3719
+ :hierarchy_group_id,
3720
+ :instance_id)
3721
+ SENSITIVE = []
3722
+ include Aws::Structure
3723
+ end
3724
+
3518
3725
  # @note When making an API call, you may pass UpdateUserHierarchyRequest
3519
3726
  # data as a hash:
3520
3727
  #
@@ -3546,6 +3753,47 @@ module Aws::Connect
3546
3753
  include Aws::Structure
3547
3754
  end
3548
3755
 
3756
+ # @note When making an API call, you may pass UpdateUserHierarchyStructureRequest
3757
+ # data as a hash:
3758
+ #
3759
+ # {
3760
+ # hierarchy_structure: { # required
3761
+ # level_one: {
3762
+ # name: "HierarchyLevelName", # required
3763
+ # },
3764
+ # level_two: {
3765
+ # name: "HierarchyLevelName", # required
3766
+ # },
3767
+ # level_three: {
3768
+ # name: "HierarchyLevelName", # required
3769
+ # },
3770
+ # level_four: {
3771
+ # name: "HierarchyLevelName", # required
3772
+ # },
3773
+ # level_five: {
3774
+ # name: "HierarchyLevelName", # required
3775
+ # },
3776
+ # },
3777
+ # instance_id: "InstanceId", # required
3778
+ # }
3779
+ #
3780
+ # @!attribute [rw] hierarchy_structure
3781
+ # The hierarchy levels to update.
3782
+ # @return [Types::HierarchyStructureUpdate]
3783
+ #
3784
+ # @!attribute [rw] instance_id
3785
+ # The identifier of the Amazon Connect instance.
3786
+ # @return [String]
3787
+ #
3788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchyStructureRequest AWS API Documentation
3789
+ #
3790
+ class UpdateUserHierarchyStructureRequest < Struct.new(
3791
+ :hierarchy_structure,
3792
+ :instance_id)
3793
+ SENSITIVE = []
3794
+ include Aws::Structure
3795
+ end
3796
+
3549
3797
  # @note When making an API call, you may pass UpdateUserIdentityInfoRequest
3550
3798
  # data as a hash:
3551
3799
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.0
4
+ version: 1.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core