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

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Connect::CreateContactFlow;
3 use Moose;
4 has Content => (is => 'ro', isa => 'Str', required => 1);
5 has Description => (is => 'ro', isa => 'Str');
6 has InstanceId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'InstanceId', required => 1);
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::Connect::TagMap');
9 has Type => (is => 'ro', isa => 'Str', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateContactFlow');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/contact-flows/{InstanceId}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Connect::CreateContactFlowResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Connect::CreateContactFlow - Arguments for method CreateContactFlow on L<Paws::Connect>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateContactFlow on the
28 L<Amazon Connect Service|Paws::Connect> service. Use the attributes of this class
29 as arguments to method CreateContactFlow.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateContactFlow.
32  
33 =head1 SYNOPSIS
34  
35 my $connect = Paws->service('Connect');
36 my $CreateContactFlowResponse = $connect->CreateContactFlow(
37 Content => 'MyContactFlowContent',
38 InstanceId => 'MyInstanceId',
39 Name => 'MyContactFlowName',
40 Type => 'CONTACT_FLOW',
41 Description => 'MyContactFlowDescription', # OPTIONAL
42 Tags => {
43 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
44 }, # OPTIONAL
45 );
46  
47 # Results:
48 my $ContactFlowArn = $CreateContactFlowResponse->ContactFlowArn;
49 my $ContactFlowId = $CreateContactFlowResponse->ContactFlowId;
50  
51 # Returns a L<Paws::Connect::CreateContactFlowResponse> object.
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/connect/CreateContactFlow>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> Content => Str
60  
61 The content of the contact flow.
62  
63  
64  
65 =head2 Description => Str
66  
67 The description of the contact flow.
68  
69  
70  
71 =head2 B<REQUIRED> InstanceId => Str
72  
73 The identifier of the Amazon Connect instance.
74  
75  
76  
77 =head2 B<REQUIRED> Name => Str
78  
79 The name of the contact flow.
80  
81  
82  
83 =head2 Tags => L<Paws::Connect::TagMap>
84  
85 One or more tags.
86  
87  
88  
89 =head2 B<REQUIRED> Type => Str
90  
91 The type of the contact flow. For descriptions of the available types,
92 see Choose a Contact Flow Type
93 (https://docs.aws.amazon.com/connect/latest/adminguide/create-contact-flow.html#contact-flow-types)
94 in the I<Amazon Connect Administrator Guide>.
95  
96 Valid values are: C<"CONTACT_FLOW">, C<"CUSTOMER_QUEUE">, C<"CUSTOMER_HOLD">, C<"CUSTOMER_WHISPER">, C<"AGENT_HOLD">, C<"AGENT_WHISPER">, C<"OUTBOUND_WHISPER">, C<"AGENT_TRANSFER">, C<"QUEUE_TRANSFER">
97  
98  
99 =head1 SEE ALSO
100  
101 This class forms part of L<Paws>, documenting arguments for method CreateContactFlow in L<Paws::Connect>
102  
103 =head1 BUGS and CONTRIBUTIONS
104  
105 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
106  
107 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
108  
109 =cut
110