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

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Connect::CreateQuickConnect;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has InstanceId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'InstanceId', required => 1);
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has QuickConnectConfig => (is => 'ro', isa => 'Paws::Connect::QuickConnectConfig', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::Connect::TagMap');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateQuickConnect');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/quick-connects/{InstanceId}');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Connect::CreateQuickConnectResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Connect::CreateQuickConnect - Arguments for method CreateQuickConnect on L<Paws::Connect>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateQuickConnect on the
27 L<Amazon Connect Service|Paws::Connect> service. Use the attributes of this class
28 as arguments to method CreateQuickConnect.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateQuickConnect.
31  
32 =head1 SYNOPSIS
33  
34 my $connect = Paws->service('Connect');
35 my $CreateQuickConnectResponse = $connect->CreateQuickConnect(
36 InstanceId => 'MyInstanceId',
37 Name => 'MyQuickConnectName',
38 QuickConnectConfig => {
39 QuickConnectType => 'USER', # values: USER, QUEUE, PHONE_NUMBER
40 PhoneConfig => {
41 PhoneNumber => 'MyPhoneNumber',
42  
43 }, # OPTIONAL
44 QueueConfig => {
45 ContactFlowId => 'MyContactFlowId', # max: 500
46 QueueId => 'MyQueueId',
47  
48 }, # OPTIONAL
49 UserConfig => {
50 ContactFlowId => 'MyContactFlowId', # max: 500
51 UserId => 'MyUserId',
52  
53 }, # OPTIONAL
54 },
55 Description => 'MyQuickConnectDescription', # OPTIONAL
56 Tags => {
57 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
58 }, # OPTIONAL
59 );
60  
61 # Results:
62 my $QuickConnectARN = $CreateQuickConnectResponse->QuickConnectARN;
63 my $QuickConnectId = $CreateQuickConnectResponse->QuickConnectId;
64  
65 # Returns a L<Paws::Connect::CreateQuickConnectResponse> object.
66  
67 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.
68 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/connect/CreateQuickConnect>
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 Description => Str
74  
75 The description of the quick connect.
76  
77  
78  
79 =head2 B<REQUIRED> InstanceId => Str
80  
81 The identifier of the Amazon Connect instance. You can find the
82 instanceId in the ARN of the instance.
83  
84  
85  
86 =head2 B<REQUIRED> Name => Str
87  
88 The name of the quick connect.
89  
90  
91  
92 =head2 B<REQUIRED> QuickConnectConfig => L<Paws::Connect::QuickConnectConfig>
93  
94 Configuration settings for the quick connect.
95  
96  
97  
98 =head2 Tags => L<Paws::Connect::TagMap>
99  
100 One or more tags.
101  
102  
103  
104  
105 =head1 SEE ALSO
106  
107 This class forms part of L<Paws>, documenting arguments for method CreateQuickConnect in L<Paws::Connect>
108  
109 =head1 BUGS and CONTRIBUTIONS
110  
111 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
112  
113 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
114  
115 =cut
116