You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Connect::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Connect::Client
- Defined in:
- (unknown)
Overview
An API client for Amazon Connect Service. To construct a client, you need to configure a :region
and :credentials
.
connect = Aws::Connect::Client.new(
region: region_name,
credentials: credentials,
# ...
)
See #initialize for a full list of supported configuration options.
Region
You can configure a default region in the following locations:
ENV['AWS_REGION']
Aws.config[:region]
Go here for a list of supported regions.
Credentials
Default credentials are loaded automatically from the following locations:
ENV['AWS_ACCESS_KEY_ID']
andENV['AWS_SECRET_ACCESS_KEY']
Aws.config[:credentials]
- The shared credentials ini file at
~/.aws/credentials
(more information) - From an instance profile when running on EC2
You can also construct a credentials object from one of the following classes:
Alternatively, you configure credentials with :access_key_id
and
:secret_access_key
:
# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))
Aws::Connect::Client.new(
access_key_id: creds['access_key_id'],
secret_access_key: creds['secret_access_key']
)
Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
Constructor collapse
-
#initialize(options = {}) ⇒ Aws::Connect::Client
constructor
Constructs an API client.
API Operations collapse
-
#associate_approved_origin(options = {}) ⇒ Struct
Associates an approved origin to an Amazon Connect instance.
.
-
#associate_instance_storage_config(options = {}) ⇒ Types::AssociateInstanceStorageConfigResponse
Associates a storage resource type for the first time.
-
#associate_lambda_function(options = {}) ⇒ Struct
Allows the specified Amazon Connect instance to access the specified Lambda function.
.
-
#associate_lex_bot(options = {}) ⇒ Struct
Allows the specified Amazon Connect instance to access the specified Amazon Lex bot.
.
-
#associate_routing_profile_queues(options = {}) ⇒ Struct
Associates a set of queues with a routing profile.
.
-
#associate_security_key(options = {}) ⇒ Types::AssociateSecurityKeyResponse
Associates a security key to the instance.
.
-
#create_contact_flow(options = {}) ⇒ Types::CreateContactFlowResponse
Creates a contact flow for the specified Amazon Connect instance.
You can also create and update contact flows using the Amazon Connect Flow language.
. -
#create_instance(options = {}) ⇒ Types::CreateInstanceResponse
Initiates an Amazon Connect instance with all the supported channels enabled.
-
#create_routing_profile(options = {}) ⇒ Types::CreateRoutingProfileResponse
Creates a new routing profile.
.
-
#create_user(options = {}) ⇒ Types::CreateUserResponse
Creates a user account for the specified Amazon Connect instance.
For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide.
. -
#create_user_hierarchy_group(options = {}) ⇒ Types::CreateUserHierarchyGroupResponse
Creates a new user hierarchy group.
.
-
#delete_instance(options = {}) ⇒ Struct
Deletes the Amazon Connect instance.
.
-
#delete_user(options = {}) ⇒ Struct
Deletes a user account from the specified Amazon Connect instance.
For information about what happens to a user's data when their account is deleted, see Delete Users from Your Amazon Connect Instance in the Amazon Connect Administrator Guide.
. -
#delete_user_hierarchy_group(options = {}) ⇒ Struct
Deletes an existing user hierarchy group.
-
#describe_contact_flow(options = {}) ⇒ Types::DescribeContactFlowResponse
Describes the specified contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
. -
#describe_instance(options = {}) ⇒ Types::DescribeInstanceResponse
Returns the current state of the specified instance identifier.
-
#describe_instance_attribute(options = {}) ⇒ Types::DescribeInstanceAttributeResponse
Describes the specified instance attribute.
.
-
#describe_instance_storage_config(options = {}) ⇒ Types::DescribeInstanceStorageConfigResponse
Retrieves the current storage configurations for the specified resource type, association ID, and instance ID.
.
-
#describe_routing_profile(options = {}) ⇒ Types::DescribeRoutingProfileResponse
Describes the specified routing profile.
.
-
#describe_user(options = {}) ⇒ Types::DescribeUserResponse
Describes the specified user account.
-
#describe_user_hierarchy_group(options = {}) ⇒ Types::DescribeUserHierarchyGroupResponse
Describes the specified hierarchy group.
.
-
#describe_user_hierarchy_structure(options = {}) ⇒ Types::DescribeUserHierarchyStructureResponse
Describes the hierarchy structure of the specified Amazon Connect instance.
.
-
#disassociate_approved_origin(options = {}) ⇒ Struct
Revokes access to integrated applications from Amazon Connect.
.
-
#disassociate_instance_storage_config(options = {}) ⇒ Struct
Removes the storage type configurations for the specified resource type and association ID.
.
-
#disassociate_lambda_function(options = {}) ⇒ Struct
Remove the Lambda function from the drop-down options available in the relevant contact flow blocks.
.
-
#disassociate_lex_bot(options = {}) ⇒ Struct
Revokes authorization from the specified instance to access the specified Amazon Lex bot.
.
-
#disassociate_routing_profile_queues(options = {}) ⇒ Struct
Disassociates a set of queues from a routing profile.
.
-
#disassociate_security_key(options = {}) ⇒ Struct
Deletes the specified security key.
.
-
#get_contact_attributes(options = {}) ⇒ Types::GetContactAttributesResponse
Retrieves the contact attributes for the specified contact.
.
-
#get_current_metric_data(options = {}) ⇒ Types::GetCurrentMetricDataResponse
Gets the real-time metric data from the specified Amazon Connect instance.
For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
. -
#get_federation_token(options = {}) ⇒ Types::GetFederationTokenResponse
Retrieves a token for federation.
.
-
#get_metric_data(options = {}) ⇒ Types::GetMetricDataResponse
Gets historical metric data from the specified Amazon Connect instance.
For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.
. -
#list_approved_origins(options = {}) ⇒ Types::ListApprovedOriginsResponse
Returns a paginated list of all approved origins associated with the instance.
.
-
#list_contact_flows(options = {}) ⇒ Types::ListContactFlowsResponse
Provides information about the contact flows for the specified Amazon Connect instance.
You can also create and update contact flows using the Amazon Connect Flow language.
For more information about contact flows, see Contact Flows in the Amazon Connect Administrator Guide.
. -
#list_hours_of_operations(options = {}) ⇒ Types::ListHoursOfOperationsResponse
Provides information about the hours of operation for the specified Amazon Connect instance.
For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect Administrator Guide.
. -
#list_instance_attributes(options = {}) ⇒ Types::ListInstanceAttributesResponse
Returns a paginated list of all attribute types for the given instance.
.
-
#list_instance_storage_configs(options = {}) ⇒ Types::ListInstanceStorageConfigsResponse
Returns a paginated list of storage configs for the identified instance and resource type.
.
-
#list_instances(options = {}) ⇒ Types::ListInstancesResponse
Return a list of instances which are in active state, creation-in-progress state, and failed state.
-
#list_lambda_functions(options = {}) ⇒ Types::ListLambdaFunctionsResponse
Returns a paginated list of all the Lambda functions that show up in the drop-down options in the relevant contact flow blocks.
.
-
#list_lex_bots(options = {}) ⇒ Types::ListLexBotsResponse
Returns a paginated list of all the Amazon Lex bots currently associated with the instance.
.
-
#list_phone_numbers(options = {}) ⇒ Types::ListPhoneNumbersResponse
Provides information about the phone numbers for the specified Amazon Connect instance.
-
#list_prompts(options = {}) ⇒ Types::ListPromptsResponse
Provides information about the prompts for the specified Amazon Connect instance.
.
-
#list_queues(options = {}) ⇒ Types::ListQueuesResponse
Provides information about the queues for the specified Amazon Connect instance.
For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator Guide.
. -
#list_routing_profile_queues(options = {}) ⇒ Types::ListRoutingProfileQueuesResponse
List the queues associated with a routing profile.
.
-
#list_routing_profiles(options = {}) ⇒ Types::ListRoutingProfilesResponse
Provides summary information about the routing profiles for the specified Amazon Connect instance.
For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator Guide.
. -
#list_security_keys(options = {}) ⇒ Types::ListSecurityKeysResponse
Returns a paginated list of all security keys associated with the instance.
.
-
#list_security_profiles(options = {}) ⇒ Types::ListSecurityProfilesResponse
Provides summary information about the security profiles for the specified Amazon Connect instance.
For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide.
. -
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.
. -
#list_user_hierarchy_groups(options = {}) ⇒ Types::ListUserHierarchyGroupsResponse
Provides summary information about the hierarchy groups for the specified Amazon Connect instance.
For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator Guide.
. -
#list_users(options = {}) ⇒ Types::ListUsersResponse
Provides summary information about the users for the specified Amazon Connect instance.
.
-
#resume_contact_recording(options = {}) ⇒ Struct
When a contact is being recorded, and the recording has been suspended using SuspendContactRecording, this API resumes recording the call.
Only voice recordings are supported at this time.
. -
#start_chat_contact(options = {}) ⇒ Types::StartChatContactResponse
Initiates a contact flow to start a new chat for the customer.
-
#start_contact_recording(options = {}) ⇒ Struct
This API starts recording the contact when the agent joins the call.
-
#start_outbound_voice_contact(options = {}) ⇒ Types::StartOutboundVoiceContactResponse
This API places an outbound call to a contact, and then initiates the contact flow.
-
#stop_contact(options = {}) ⇒ Struct
Ends the specified contact.
.
-
#stop_contact_recording(options = {}) ⇒ Struct
When a contact is being recorded, this API stops recording the call.
-
#suspend_contact_recording(options = {}) ⇒ Struct
When a contact is being recorded, this API suspends recording the call.
-
#tag_resource(options = {}) ⇒ Struct
Adds the specified tags to the specified resource.
The supported resource types are users, routing profiles, and contact flows.
For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.
. -
#untag_resource(options = {}) ⇒ Struct
Removes the specified tags from the specified resource.
.
-
#update_contact_attributes(options = {}) ⇒ Struct
Creates or updates the contact attributes associated with the specified contact.
You can add or update attributes for both ongoing and completed contacts.
-
#update_contact_flow_content(options = {}) ⇒ Struct
Updates the specified contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
. -
#update_contact_flow_name(options = {}) ⇒ Struct
The name of the contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
. -
#update_instance_attribute(options = {}) ⇒ Struct
Updates the value for the specified attribute type.
.
-
#update_instance_storage_config(options = {}) ⇒ Struct
Updates an existing configuration for a resource type.
-
#update_routing_profile_concurrency(options = {}) ⇒ Struct
Updates the channels that agents can handle in the Contact Control Panel (CCP) for a routing profile.
.
-
#update_routing_profile_default_outbound_queue(options = {}) ⇒ Struct
Updates the default outbound queue of a routing profile.
.
-
#update_routing_profile_name(options = {}) ⇒ Struct
Updates the name and description of a routing profile.
-
#update_routing_profile_queues(options = {}) ⇒ Struct
Updates the properties associated with a set of queues for a routing profile.
.
-
#update_user_hierarchy(options = {}) ⇒ Struct
Assigns the specified hierarchy group to the specified user.
.
-
#update_user_hierarchy_group_name(options = {}) ⇒ Struct
Updates the name of the user hierarchy group.
-
#update_user_hierarchy_structure(options = {}) ⇒ Struct
Updates the user hierarchy structure: add, remove, and rename user hierarchy levels.
.
-
#update_user_identity_info(options = {}) ⇒ Struct
Updates the identity information for the specified user.
Someone with the ability to invoke
UpdateUserIndentityInfo
can change the login credentials of other users by changing their email address. -
#update_user_phone_config(options = {}) ⇒ Struct
Updates the phone configuration settings for the specified user.
.
-
#update_user_routing_profile(options = {}) ⇒ Struct
Assigns the specified routing profile to the specified user.
.
-
#update_user_security_profiles(options = {}) ⇒ Struct
Assigns the specified security profiles to the specified user.
.
Instance Method Summary collapse
-
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
-
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
Methods inherited from Seahorse::Client::Base
add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options = {}) ⇒ Aws::Connect::Client
Constructs an API client.
Instance Method Details
#associate_approved_origin(options = {}) ⇒ Struct
Associates an approved origin to an Amazon Connect instance.
#associate_instance_storage_config(options = {}) ⇒ Types::AssociateInstanceStorageConfigResponse
Associates a storage resource type for the first time. You can only associate one type of storage configuration in a single call. This means, for example, that you can't define an instance with multiple S3 buckets for storing chat transcripts.
This API does not create a resource that doesn't exist. It only associates it to the instance. Ensure that the resource being specified in the storage configuration, like an Amazon S3 bucket, exists when being used for association.
#associate_lambda_function(options = {}) ⇒ Struct
Allows the specified Amazon Connect instance to access the specified Lambda function.
#associate_lex_bot(options = {}) ⇒ Struct
Allows the specified Amazon Connect instance to access the specified Amazon Lex bot.
#associate_routing_profile_queues(options = {}) ⇒ Struct
Associates a set of queues with a routing profile.
#associate_security_key(options = {}) ⇒ Types::AssociateSecurityKeyResponse
Associates a security key to the instance.
#create_contact_flow(options = {}) ⇒ Types::CreateContactFlowResponse
Creates a contact flow for the specified Amazon Connect instance.
You can also create and update contact flows using the Amazon Connect Flow language.
#create_instance(options = {}) ⇒ Types::CreateInstanceResponse
Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage (such as Amazon S3, or Kinesis) or allow for any configurations on features such as Contact Lens for Amazon Connect.
#create_routing_profile(options = {}) ⇒ Types::CreateRoutingProfileResponse
Creates a new routing profile.
#create_user(options = {}) ⇒ Types::CreateUserResponse
Creates a user account for the specified Amazon Connect instance.
For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide.
#create_user_hierarchy_group(options = {}) ⇒ Types::CreateUserHierarchyGroupResponse
Creates a new user hierarchy group.
#delete_instance(options = {}) ⇒ Struct
Deletes the Amazon Connect instance.
#delete_user(options = {}) ⇒ Struct
Deletes a user account from the specified Amazon Connect instance.
For information about what happens to a user's data when their account is deleted, see Delete Users from Your Amazon Connect Instance in the Amazon Connect Administrator Guide.
#delete_user_hierarchy_group(options = {}) ⇒ Struct
Deletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.
#describe_contact_flow(options = {}) ⇒ Types::DescribeContactFlowResponse
Describes the specified contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
#describe_instance(options = {}) ⇒ Types::DescribeInstanceResponse
Returns the current state of the specified instance identifier. It tracks the instance while it is being created and returns an error status if applicable.
If an instance is not created successfully, the instance status reason field returns details relevant to the reason. The instance in a failed state is returned only for 24 hours after the CreateInstance API was invoked.
#describe_instance_attribute(options = {}) ⇒ Types::DescribeInstanceAttributeResponse
Describes the specified instance attribute.
#describe_instance_storage_config(options = {}) ⇒ Types::DescribeInstanceStorageConfigResponse
Retrieves the current storage configurations for the specified resource type, association ID, and instance ID.
#describe_routing_profile(options = {}) ⇒ Types::DescribeRoutingProfileResponse
Describes the specified routing profile.
#describe_user(options = {}) ⇒ Types::DescribeUserResponse
Describes the specified user account. You can find the instance ID in the console (it’s the final part of the ARN). The console does not display the user IDs. Instead, list the users and note the IDs provided in the output.
#describe_user_hierarchy_group(options = {}) ⇒ Types::DescribeUserHierarchyGroupResponse
Describes the specified hierarchy group.
#describe_user_hierarchy_structure(options = {}) ⇒ Types::DescribeUserHierarchyStructureResponse
Describes the hierarchy structure of the specified Amazon Connect instance.
#disassociate_approved_origin(options = {}) ⇒ Struct
Revokes access to integrated applications from Amazon Connect.
#disassociate_instance_storage_config(options = {}) ⇒ Struct
Removes the storage type configurations for the specified resource type and association ID.
#disassociate_lambda_function(options = {}) ⇒ Struct
Remove the Lambda function from the drop-down options available in the relevant contact flow blocks.
#disassociate_lex_bot(options = {}) ⇒ Struct
Revokes authorization from the specified instance to access the specified Amazon Lex bot.
#disassociate_routing_profile_queues(options = {}) ⇒ Struct
Disassociates a set of queues from a routing profile.
#disassociate_security_key(options = {}) ⇒ Struct
Deletes the specified security key.
#get_contact_attributes(options = {}) ⇒ Types::GetContactAttributesResponse
Retrieves the contact attributes for the specified contact.
#get_current_metric_data(options = {}) ⇒ Types::GetCurrentMetricDataResponse
Gets the real-time metric data from the specified Amazon Connect instance.
For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
#get_federation_token(options = {}) ⇒ Types::GetFederationTokenResponse
Retrieves a token for federation.
#get_metric_data(options = {}) ⇒ Types::GetMetricDataResponse
Gets historical metric data from the specified Amazon Connect instance.
For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.
#list_approved_origins(options = {}) ⇒ Types::ListApprovedOriginsResponse
Returns a paginated list of all approved origins associated with the instance.
#list_contact_flows(options = {}) ⇒ Types::ListContactFlowsResponse
Provides information about the contact flows for the specified Amazon Connect instance.
You can also create and update contact flows using the Amazon Connect Flow language.
For more information about contact flows, see Contact Flows in the Amazon Connect Administrator Guide.
#list_hours_of_operations(options = {}) ⇒ Types::ListHoursOfOperationsResponse
Provides information about the hours of operation for the specified Amazon Connect instance.
For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect Administrator Guide.
#list_instance_attributes(options = {}) ⇒ Types::ListInstanceAttributesResponse
Returns a paginated list of all attribute types for the given instance.
#list_instance_storage_configs(options = {}) ⇒ Types::ListInstanceStorageConfigsResponse
Returns a paginated list of storage configs for the identified instance and resource type.
#list_instances(options = {}) ⇒ Types::ListInstancesResponse
Return a list of instances which are in active state, creation-in-progress state, and failed state. Instances that aren't successfully created (they are in a failed state) are returned only for 24 hours after the CreateInstance API was invoked.
#list_lambda_functions(options = {}) ⇒ Types::ListLambdaFunctionsResponse
Returns a paginated list of all the Lambda functions that show up in the drop-down options in the relevant contact flow blocks.
#list_lex_bots(options = {}) ⇒ Types::ListLexBotsResponse
Returns a paginated list of all the Amazon Lex bots currently associated with the instance.
#list_phone_numbers(options = {}) ⇒ Types::ListPhoneNumbersResponse
Provides information about the phone numbers for the specified Amazon Connect instance.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.
#list_prompts(options = {}) ⇒ Types::ListPromptsResponse
Provides information about the prompts for the specified Amazon Connect instance.
#list_queues(options = {}) ⇒ Types::ListQueuesResponse
Provides information about the queues for the specified Amazon Connect instance.
For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator Guide.
#list_routing_profile_queues(options = {}) ⇒ Types::ListRoutingProfileQueuesResponse
List the queues associated with a routing profile.
#list_routing_profiles(options = {}) ⇒ Types::ListRoutingProfilesResponse
Provides summary information about the routing profiles for the specified Amazon Connect instance.
For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator Guide.
#list_security_keys(options = {}) ⇒ Types::ListSecurityKeysResponse
Returns a paginated list of all security keys associated with the instance.
#list_security_profiles(options = {}) ⇒ Types::ListSecurityProfilesResponse
Provides summary information about the security profiles for the specified Amazon Connect instance.
For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide.
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for the specified resource.
For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.
#list_user_hierarchy_groups(options = {}) ⇒ Types::ListUserHierarchyGroupsResponse
Provides summary information about the hierarchy groups for the specified Amazon Connect instance.
For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator Guide.
#list_users(options = {}) ⇒ Types::ListUsersResponse
Provides summary information about the users for the specified Amazon Connect instance.
#resume_contact_recording(options = {}) ⇒ Struct
When a contact is being recorded, and the recording has been suspended using SuspendContactRecording, this API resumes recording the call.
Only voice recordings are supported at this time.
#start_chat_contact(options = {}) ⇒ Types::StartChatContactResponse
Initiates a contact flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the CreateParticipantConnection API in the Amazon Connect Participant Service.
When a new chat contact is successfully created, clients need to subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking CreateParticipantConnection with WEBSOCKET and CONNECTION_CREDENTIALS.
A 429 error occurs in two situations:
-
API rate limit is exceeded. API TPS throttling returns a
TooManyRequests
exception from the API Gateway. -
The quota for concurrent active chats is exceeded. Active chat throttling returns a
LimitExceededException
.
For more information about how chat works, see Chat in the Amazon Connect Administrator Guide.
#start_contact_recording(options = {}) ⇒ Struct
This API starts recording the contact when the agent joins the call. StartContactRecording is a one-time action. For example, if you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend and resume it, such as when collecting sensitive information (for example, a credit card number), use SuspendContactRecording and ResumeContactRecording.
You can use this API to override the recording behavior configured in the Set recording behavior block.
Only voice recordings are supported at this time.
#start_outbound_voice_contact(options = {}) ⇒ Types::StartOutboundVoiceContactResponse
This API places an outbound call to a contact, and then initiates the contact flow. It performs the actions in the contact flow that's specified (in ContactFlowId
).
Agents are not involved in initiating the outbound API (that is, dialing the contact). If the contact flow places an outbound call to a contact, and then puts the contact in queue, that's when the call is routed to the agent, like any other inbound case.
There is a 60 second dialing timeout for this operation. If the call is not connected after 60 seconds, it fails.
UK numbers with a 447 prefix are not allowed by default. Before you can dial these UK mobile numbers, you must submit a service quota increase request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator Guide.
#stop_contact(options = {}) ⇒ Struct
Ends the specified contact.
#stop_contact_recording(options = {}) ⇒ Struct
When a contact is being recorded, this API stops recording the call. StopContactRecording is a one-time action. If you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend it for sensitive information (for example, to collect a credit card number), and then restart it, use SuspendContactRecording and ResumeContactRecording.
Only voice recordings are supported at this time.
#suspend_contact_recording(options = {}) ⇒ Struct
When a contact is being recorded, this API suspends recording the call. For example, you might suspend the call recording while collecting sensitive information, such as a credit card number. Then use ResumeContactRecording to restart recording.
The period of time that the recording is suspended is filled with silence in the final recording.
Only voice recordings are supported at this time.
#tag_resource(options = {}) ⇒ Struct
Adds the specified tags to the specified resource.
The supported resource types are users, routing profiles, and contact flows.
For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.
#untag_resource(options = {}) ⇒ Struct
Removes the specified tags from the specified resource.
#update_contact_attributes(options = {}) ⇒ Struct
Creates or updates the contact attributes associated with the specified contact.
You can add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or identifying abusive callers.
Contact attributes are available in Amazon Connect for 24 months, and are then deleted.
Important: You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.
#update_contact_flow_content(options = {}) ⇒ Struct
Updates the specified contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
#update_contact_flow_name(options = {}) ⇒ Struct
The name of the contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
#update_instance_attribute(options = {}) ⇒ Struct
Updates the value for the specified attribute type.
#update_instance_storage_config(options = {}) ⇒ Struct
Updates an existing configuration for a resource type. This API is idempotent.
#update_routing_profile_concurrency(options = {}) ⇒ Struct
Updates the channels that agents can handle in the Contact Control Panel (CCP) for a routing profile.
#update_routing_profile_default_outbound_queue(options = {}) ⇒ Struct
Updates the default outbound queue of a routing profile.
#update_routing_profile_name(options = {}) ⇒ Struct
Updates the name and description of a routing profile. The request accepts the following data in JSON format. At least Name
or Description
must be provided.
#update_routing_profile_queues(options = {}) ⇒ Struct
Updates the properties associated with a set of queues for a routing profile.
#update_user_hierarchy(options = {}) ⇒ Struct
Assigns the specified hierarchy group to the specified user.
#update_user_hierarchy_group_name(options = {}) ⇒ Struct
Updates the name of the user hierarchy group.
#update_user_hierarchy_structure(options = {}) ⇒ Struct
Updates the user hierarchy structure: add, remove, and rename user hierarchy levels.
#update_user_identity_info(options = {}) ⇒ Struct
Updates the identity information for the specified user.
Someone with the ability to invoke UpdateUserIndentityInfo
can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. We strongly recommend limiting who has the ability to invoke UpdateUserIndentityInfo
. For more information, see Best Practices for Security Profiles in the Amazon Connect Administrator Guide.
#update_user_phone_config(options = {}) ⇒ Struct
Updates the phone configuration settings for the specified user.
#update_user_routing_profile(options = {}) ⇒ Struct
Assigns the specified routing profile to the specified user.
#update_user_security_profiles(options = {}) ⇒ Struct
Assigns the specified security profiles to the specified user.
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
Basic Usage
Waiters will poll until they are succesful, they fail by entering a terminal state, or until a maximum number of attempts are made.
# polls in a loop, sleeping between attempts client.waiter_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You configure waiters by passing a block to #wait_until:
# poll for ~25 seconds
client.wait_until(...) do |w|
w.max_attempts = 5
w.delay = 5
end
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success
or :failure
from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(...) do |w|
# disable max attempts
w.max_attempts = nil
# poll for 1 hour, instead of a number of attempts
w.before_wait do |attempts, response|
throw :failure if Time.now - started_at > 3600
end
end
Handling Errors
When a waiter is successful, it returns true
. When a waiter
fails, it raises an error. All errors raised extend from
Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters. The following table lists the supported waiters and the client method they call:
Waiter Name | Client Method | Default Delay: | Default Max Attempts: |
---|