—package
Paws::Connect::StartChatContact;
has
Attributes
=> (
is
=>
'ro'
,
isa
=>
'Paws::Connect::Attributes'
);
has
ClientToken
=> (
is
=>
'ro'
,
isa
=>
'Str'
);
has
ContactFlowId
=> (
is
=>
'ro'
,
isa
=>
'Str'
,
required
=> 1);
has
InitialMessage
=> (
is
=>
'ro'
,
isa
=>
'Paws::Connect::ChatMessage'
);
has
InstanceId
=> (
is
=>
'ro'
,
isa
=>
'Str'
,
required
=> 1);
has
ParticipantDetails
=> (
is
=>
'ro'
,
isa
=>
'Paws::Connect::ParticipantDetails'
,
required
=> 1);
class_has
_api_call
=> (
isa
=>
'Str'
,
is
=>
'ro'
,
default
=>
'StartChatContact'
);
class_has
_api_uri
=> (
isa
=>
'Str'
,
is
=>
'ro'
,
default
=>
'/contact/chat'
);
class_has
_api_method
=> (
isa
=>
'Str'
,
is
=>
'ro'
,
default
=>
'PUT'
);
class_has
_returns
=> (
isa
=>
'Str'
,
is
=>
'ro'
,
default
=>
'Paws::Connect::StartChatContactResponse'
);
1;
### main pod documentation begin ###
=head1 NAME
Paws::Connect::StartChatContact - Arguments for method StartChatContact on L<Paws::Connect>
=head1 DESCRIPTION
This class represents the parameters used for calling the method StartChatContact on the
L<Amazon Connect Service|Paws::Connect> service. Use the attributes of this class
as arguments to method StartChatContact.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartChatContact.
=head1 SYNOPSIS
my $connect = Paws->service('Connect');
my $StartChatContactResponse = $connect->StartChatContact(
ContactFlowId => 'MyContactFlowId',
InstanceId => 'MyInstanceId',
ParticipantDetails => {
DisplayName => 'MyDisplayName', # min: 1, max: 256
},
Attributes => {
'MyAttributeName' =>
'MyAttributeValue', # key: min: 1, max: 32767, value: max: 32767
}, # OPTIONAL
ClientToken => 'MyClientToken', # OPTIONAL
InitialMessage => {
Content => 'MyChatContent', # min: 1, max: 1024
ContentType => 'MyChatContentType', # min: 1, max: 100
}, # OPTIONAL
);
# Results:
my $ContactId = $StartChatContactResponse->ContactId;
my $ParticipantId = $StartChatContactResponse->ParticipantId;
my $ParticipantToken = $StartChatContactResponse->ParticipantToken;
# Returns a L<Paws::Connect::StartChatContactResponse> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/connect/StartChatContact>
=head1 ATTRIBUTES
=head2 Attributes => L<Paws::Connect::Attributes>
A custom key-value pair using an attribute map. The attributes are
standard Amazon Connect attributes. They can be accessed in contact
flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per
contact. Attribute keys can include only alphanumeric, dash, and
underscore characters.
=head2 ClientToken => Str
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
=head2 B<REQUIRED> ContactFlowId => Str
The identifier of the contact flow for initiating the chat. To see the
ContactFlowId in the Amazon Connect console user interface, on the
navigation menu go to B<Routing>, B<Contact Flows>. Choose the contact
flow. On the contact flow page, under the name of the contact flow,
choose B<Show additional flow information>. The ContactFlowId is the
last part of the ARN, shown here in bold:
arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/B<846ec553-a005-41c0-8341-xxxxxxxxxxxx>
=head2 InitialMessage => L<Paws::Connect::ChatMessage>
The initial message to be sent to the newly created chat.
=head2 B<REQUIRED> InstanceId => Str
The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
=head2 B<REQUIRED> ParticipantDetails => L<Paws::Connect::ParticipantDetails>
Information identifying the participant.
=head1 SEE ALSO
This class forms part of L<Paws>, documenting arguments for method StartChatContact in L<Paws::Connect>
=head1 BUGS and CONTRIBUTIONS
The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
=cut