aws-sdk-connect 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-connect.rb +1 -1
- data/lib/aws-sdk-connect/client.rb +54 -1
- data/lib/aws-sdk-connect/client_api.rb +21 -0
- data/lib/aws-sdk-connect/types.rb +44 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c28de04b77f92e5da94e7b9dba3a133ab32102
|
4
|
+
data.tar.gz: 188a479e594e7e6641a845a33aba583c19b2baf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 610caf7f134c4e2e94c8d0610eb9104d1ce04aa15137d9283018421c6647c2e72ef7b9ef7a7c394c0a8842ad9acbbae5d1b1c6a1f93803d7c6443b00319b52d5
|
7
|
+
data.tar.gz: 861d73573683a1954af2e285ba8e3cc3a089e5901b70ba6d8a83a6d38e5cc18b69521f56694cceec22f19fae38e2ca2fb92afee7523f5ad501daeea82f389616
|
data/lib/aws-sdk-connect.rb
CHANGED
@@ -838,6 +838,59 @@ module Aws::Connect
|
|
838
838
|
req.send_request(options)
|
839
839
|
end
|
840
840
|
|
841
|
+
# The `UpdateContactAttributes` operation lets you programmatically
|
842
|
+
# create new or update existing contact attributes associated with a
|
843
|
+
# contact. You can use the operation to add or update attributes for
|
844
|
+
# both ongoing and completed contacts. For example, you can update the
|
845
|
+
# customer's name or the reason the customer called while the call is
|
846
|
+
# active, or add notes about steps that the agent took during the call
|
847
|
+
# that are displayed to the next agent that takes the call. You can also
|
848
|
+
# use the `UpdateContactAttributes` operation to update attributes for a
|
849
|
+
# contact using data from your CRM application and save the data with
|
850
|
+
# the contact in Amazon Connect. You could also flag calls for
|
851
|
+
# additional analysis, or flag abusive callers.
|
852
|
+
#
|
853
|
+
# Contact attributes are available in Amazon Connect for 24 months, and
|
854
|
+
# are then deleted.
|
855
|
+
#
|
856
|
+
# @option params [required, String] :initial_contact_id
|
857
|
+
# The unique identifier of the contact for which to update attributes.
|
858
|
+
# This is the identifier for the contact associated with the first
|
859
|
+
# interaction with the contact center.
|
860
|
+
#
|
861
|
+
# @option params [required, String] :instance_id
|
862
|
+
# The identifier for your Amazon Connect instance. To find the ID of
|
863
|
+
# your Amazon Connect instance, open the AWS console and select Amazon
|
864
|
+
# Connect. Select the instance alias of the instance. The instance ID is
|
865
|
+
# displayed in the Overview section of your instance settings. For
|
866
|
+
# example, the instance ID is the set of characters at the end of the
|
867
|
+
# instance ARN, after instance/, such as
|
868
|
+
# 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
|
869
|
+
#
|
870
|
+
# @option params [required, Hash<String,String>] :attributes
|
871
|
+
# The key-value pairs for the attribute to update.
|
872
|
+
#
|
873
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
874
|
+
#
|
875
|
+
# @example Request syntax with placeholder values
|
876
|
+
#
|
877
|
+
# resp = client.update_contact_attributes({
|
878
|
+
# initial_contact_id: "ContactId", # required
|
879
|
+
# instance_id: "InstanceId", # required
|
880
|
+
# attributes: { # required
|
881
|
+
# "AttributeName" => "AttributeValue",
|
882
|
+
# },
|
883
|
+
# })
|
884
|
+
#
|
885
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributes AWS API Documentation
|
886
|
+
#
|
887
|
+
# @overload update_contact_attributes(params = {})
|
888
|
+
# @param [Hash] params ({})
|
889
|
+
def update_contact_attributes(params = {}, options = {})
|
890
|
+
req = build_request(:update_contact_attributes, params)
|
891
|
+
req.send_request(options)
|
892
|
+
end
|
893
|
+
|
841
894
|
# Assigns the specified hierarchy group to the user.
|
842
895
|
#
|
843
896
|
# @option params [String] :hierarchy_group_id
|
@@ -1045,7 +1098,7 @@ module Aws::Connect
|
|
1045
1098
|
params: params,
|
1046
1099
|
config: config)
|
1047
1100
|
context[:gem_name] = 'aws-sdk-connect'
|
1048
|
-
context[:gem_version] = '1.
|
1101
|
+
context[:gem_version] = '1.5.0'
|
1049
1102
|
Seahorse::Client::Request.new(handlers, context)
|
1050
1103
|
end
|
1051
1104
|
|
@@ -87,6 +87,8 @@ module Aws::Connect
|
|
87
87
|
StopContactRequest = Shapes::StructureShape.new(name: 'StopContactRequest')
|
88
88
|
StopContactResponse = Shapes::StructureShape.new(name: 'StopContactResponse')
|
89
89
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
90
|
+
UpdateContactAttributesRequest = Shapes::StructureShape.new(name: 'UpdateContactAttributesRequest')
|
91
|
+
UpdateContactAttributesResponse = Shapes::StructureShape.new(name: 'UpdateContactAttributesResponse')
|
90
92
|
UpdateUserHierarchyRequest = Shapes::StructureShape.new(name: 'UpdateUserHierarchyRequest')
|
91
93
|
UpdateUserIdentityInfoRequest = Shapes::StructureShape.new(name: 'UpdateUserIdentityInfoRequest')
|
92
94
|
UpdateUserPhoneConfigRequest = Shapes::StructureShape.new(name: 'UpdateUserPhoneConfigRequest')
|
@@ -258,6 +260,13 @@ module Aws::Connect
|
|
258
260
|
|
259
261
|
StopContactResponse.struct_class = Types::StopContactResponse
|
260
262
|
|
263
|
+
UpdateContactAttributesRequest.add_member(:initial_contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location_name: "InitialContactId"))
|
264
|
+
UpdateContactAttributesRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
|
265
|
+
UpdateContactAttributesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, required: true, location_name: "Attributes"))
|
266
|
+
UpdateContactAttributesRequest.struct_class = Types::UpdateContactAttributesRequest
|
267
|
+
|
268
|
+
UpdateContactAttributesResponse.struct_class = Types::UpdateContactAttributesResponse
|
269
|
+
|
261
270
|
UpdateUserHierarchyRequest.add_member(:hierarchy_group_id, Shapes::ShapeRef.new(shape: HierarchyGroupId, location_name: "HierarchyGroupId"))
|
262
271
|
UpdateUserHierarchyRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "UserId"))
|
263
272
|
UpdateUserHierarchyRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
|
@@ -492,6 +501,18 @@ module Aws::Connect
|
|
492
501
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
493
502
|
end)
|
494
503
|
|
504
|
+
api.add_operation(:update_contact_attributes, Seahorse::Model::Operation.new.tap do |o|
|
505
|
+
o.name = "UpdateContactAttributes"
|
506
|
+
o.http_method = "POST"
|
507
|
+
o.http_request_uri = "/contact/attributes"
|
508
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateContactAttributesRequest)
|
509
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateContactAttributesResponse)
|
510
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
511
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
513
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
514
|
+
end)
|
515
|
+
|
495
516
|
api.add_operation(:update_user_hierarchy, Seahorse::Model::Operation.new.tap do |o|
|
496
517
|
o.name = "UpdateUserHierarchy"
|
497
518
|
o.http_method = "POST"
|
@@ -916,6 +916,50 @@ module Aws::Connect
|
|
916
916
|
#
|
917
917
|
class StopContactResponse < Aws::EmptyStructure; end
|
918
918
|
|
919
|
+
# @note When making an API call, you may pass UpdateContactAttributesRequest
|
920
|
+
# data as a hash:
|
921
|
+
#
|
922
|
+
# {
|
923
|
+
# initial_contact_id: "ContactId", # required
|
924
|
+
# instance_id: "InstanceId", # required
|
925
|
+
# attributes: { # required
|
926
|
+
# "AttributeName" => "AttributeValue",
|
927
|
+
# },
|
928
|
+
# }
|
929
|
+
#
|
930
|
+
# @!attribute [rw] initial_contact_id
|
931
|
+
# The unique identifier of the contact for which to update attributes.
|
932
|
+
# This is the identifier for the contact associated with the first
|
933
|
+
# interaction with the contact center.
|
934
|
+
# @return [String]
|
935
|
+
#
|
936
|
+
# @!attribute [rw] instance_id
|
937
|
+
# The identifier for your Amazon Connect instance. To find the ID of
|
938
|
+
# your Amazon Connect instance, open the AWS console and select Amazon
|
939
|
+
# Connect. Select the instance alias of the instance. The instance ID
|
940
|
+
# is displayed in the Overview section of your instance settings. For
|
941
|
+
# example, the instance ID is the set of characters at the end of the
|
942
|
+
# instance ARN, after instance/, such as
|
943
|
+
# 10a4c4eb-f57e-4d4c-b602-bf39176ced07.
|
944
|
+
# @return [String]
|
945
|
+
#
|
946
|
+
# @!attribute [rw] attributes
|
947
|
+
# The key-value pairs for the attribute to update.
|
948
|
+
# @return [Hash<String,String>]
|
949
|
+
#
|
950
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributesRequest AWS API Documentation
|
951
|
+
#
|
952
|
+
class UpdateContactAttributesRequest < Struct.new(
|
953
|
+
:initial_contact_id,
|
954
|
+
:instance_id,
|
955
|
+
:attributes)
|
956
|
+
include Aws::Structure
|
957
|
+
end
|
958
|
+
|
959
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributesResponse AWS API Documentation
|
960
|
+
#
|
961
|
+
class UpdateContactAttributesResponse < Aws::EmptyStructure; end
|
962
|
+
|
919
963
|
# @note When making an API call, you may pass UpdateUserHierarchyRequest
|
920
964
|
# data as a hash:
|
921
965
|
#
|
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.
|
4
|
+
version: 1.5.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: 2018-09-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|