blib/lib/Paws/Connect/StartTaskContact.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Connect::StartTaskContact;
3 use Moose;
4 has Attributes => (is => 'ro', isa => 'Paws::Connect::Attributes');
5 has ClientToken => (is => 'ro', isa => 'Str');
6 has ContactFlowId => (is => 'ro', isa => 'Str', required => 1);
7 has Description => (is => 'ro', isa => 'Str');
8 has InstanceId => (is => 'ro', isa => 'Str', required => 1);
9 has Name => (is => 'ro', isa => 'Str', required => 1);
10 has PreviousContactId => (is => 'ro', isa => 'Str');
11 has References => (is => 'ro', isa => 'Paws::Connect::ContactReferences');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartTaskContact');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/contact/task');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Connect::StartTaskContactResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::Connect::StartTaskContact - Arguments for method StartTaskContact on L<Paws::Connect>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method StartTaskContact on the
30 L<Amazon Connect Service|Paws::Connect> service. Use the attributes of this class
31 as arguments to method StartTaskContact.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartTaskContact.
34  
35 =head1 SYNOPSIS
36  
37 my $connect = Paws->service('Connect');
38 my $StartTaskContactResponse = $connect->StartTaskContact(
39 ContactFlowId => 'MyContactFlowId',
40 InstanceId => 'MyInstanceId',
41 Name => 'MyName',
42 Attributes => {
43 'MyAttributeName' =>
44 'MyAttributeValue', # key: min: 1, max: 32767, value: max: 32767
45 }, # OPTIONAL
46 ClientToken => 'MyClientToken', # OPTIONAL
47 Description => 'MyDescription', # OPTIONAL
48 PreviousContactId => 'MyContactId', # OPTIONAL
49 References => {
50 'MyReferenceKey' => {
51 Type => 'URL', # values: URL
52 Value => 'MyReferenceValue', # max: 4096
53  
54 }, # key: min: 1, max: 4096
55 }, # OPTIONAL
56 );
57  
58 # Results:
59 my $ContactId = $StartTaskContactResponse->ContactId;
60  
61 # Returns a L<Paws::Connect::StartTaskContactResponse> object.
62  
63 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.
64 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/connect/StartTaskContact>
65  
66 =head1 ATTRIBUTES
67  
68  
69 =head2 Attributes => L<Paws::Connect::Attributes>
70  
71 A custom key-value pair using an attribute map. The attributes are
72 standard Amazon Connect attributes, and can be accessed in contact
73 flows just like any other contact attributes.
74  
75 There can be up to 32,768 UTF-8 bytes across all key-value pairs per
76 contact. Attribute keys can include only alphanumeric, dash, and
77 underscore characters.
78  
79  
80  
81 =head2 ClientToken => Str
82  
83 A unique, case-sensitive identifier that you provide to ensure the
84 idempotency of the request.
85  
86  
87  
88 =head2 B<REQUIRED> ContactFlowId => Str
89  
90 The identifier of the contact flow for initiating the tasks. To see the
91 ContactFlowId in the Amazon Connect console user interface, on the
92 navigation menu go to B<Routing>, B<Contact Flows>. Choose the contact
93 flow. On the contact flow page, under the name of the contact flow,
94 choose B<Show additional flow information>. The ContactFlowId is the
95 last part of the ARN, shown here in bold:
96  
97 arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/contact-flow/B<846ec553-a005-41c0-8341-xxxxxxxxxxxx>
98  
99  
100  
101 =head2 Description => Str
102  
103 A description of the task that is shown to an agent in the Contact
104 Control Panel (CCP).
105  
106  
107  
108 =head2 B<REQUIRED> InstanceId => Str
109  
110 The identifier of the Amazon Connect instance. You can find the
111 instanceId in the ARN of the instance.
112  
113  
114  
115 =head2 B<REQUIRED> Name => Str
116  
117 The name of a task that is shown to an agent in the Contact Control
118 Panel (CCP).
119  
120  
121  
122 =head2 PreviousContactId => Str
123  
124 The identifier of the previous chat, voice, or task contact.
125  
126  
127  
128 =head2 References => L<Paws::Connect::ContactReferences>
129  
130 A formatted URL that is shown to an agent in the Contact Control Panel
131 (CCP).
132  
133  
134  
135  
136 =head1 SEE ALSO
137  
138 This class forms part of L<Paws>, documenting arguments for method StartTaskContact in L<Paws::Connect>
139  
140 =head1 BUGS and CONTRIBUTIONS
141  
142 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
143  
144 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
145  
146 =cut
147