blib/lib/Paws/Quicksight/CreateFolder.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Quicksight::CreateFolder;
3 use Moose;
4 has AwsAccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'AwsAccountId', required => 1);
5 has FolderId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FolderId', required => 1);
6 has FolderType => (is => 'ro', isa => 'Str');
7 has Name => (is => 'ro', isa => 'Str');
8 has ParentFolderArn => (is => 'ro', isa => 'Str');
9 has Permissions => (is => 'ro', isa => 'ArrayRef[Paws::Quicksight::ResourcePermission]');
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Quicksight::Tag]');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateFolder');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/accounts/{AwsAccountId}/folders/{FolderId}');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Quicksight::CreateFolderResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::Quicksight::CreateFolder - Arguments for method CreateFolder on L<Paws::Quicksight>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateFolder on the
29 L<Amazon QuickSight|Paws::Quicksight> service. Use the attributes of this class
30 as arguments to method CreateFolder.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateFolder.
33  
34 =head1 SYNOPSIS
35  
36 my $quicksight = Paws->service('Quicksight');
37 my $CreateFolderResponse = $quicksight->CreateFolder(
38 AwsAccountId => 'MyAwsAccountId',
39 FolderId => 'MyRestrictiveResourceId',
40 FolderType => 'SHARED', # OPTIONAL
41 Name => 'MyFolderName', # OPTIONAL
42 ParentFolderArn => 'MyArn', # OPTIONAL
43 Permissions => [
44 {
45 Actions => [ 'MyString', ... ], # min: 1, max: 16
46 Principal => 'MyPrincipal', # min: 1, max: 256
47  
48 },
49 ...
50 ], # OPTIONAL
51 Tags => [
52 {
53 Key => 'MyTagKey', # min: 1, max: 128
54 Value => 'MyTagValue', # min: 1, max: 256
55  
56 },
57 ...
58 ], # OPTIONAL
59 );
60  
61 # Results:
62 my $Arn = $CreateFolderResponse->Arn;
63 my $FolderId = $CreateFolderResponse->FolderId;
64 my $RequestId = $CreateFolderResponse->RequestId;
65 my $Status = $CreateFolderResponse->Status;
66  
67 # Returns a L<Paws::Quicksight::CreateFolderResponse> object.
68  
69 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.
70 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/quicksight/CreateFolder>
71  
72 =head1 ATTRIBUTES
73  
74  
75 =head2 B<REQUIRED> AwsAccountId => Str
76  
77 The AWS Account ID.
78  
79  
80  
81 =head2 B<REQUIRED> FolderId => Str
82  
83 The folder ID.
84  
85  
86  
87 =head2 FolderType => Str
88  
89 The type of folder. By default, C<folderType> is C<SHARED>.
90  
91 Valid values are: C<"SHARED">
92  
93 =head2 Name => Str
94  
95 The name of the folder.
96  
97  
98  
99 =head2 ParentFolderArn => Str
100  
101 The Amazon Resource Name (ARN) for the parent folder.
102  
103 C<ParentFolderArn> can be null. An empty C<parentFolderArn> creates a
104 root-level folder.
105  
106  
107  
108 =head2 Permissions => ArrayRef[L<Paws::Quicksight::ResourcePermission>]
109  
110 A structure that describes the principals and the resource-level
111 permissions of a folder.
112  
113 To specify no permissions, omit C<Permissions>.
114  
115  
116  
117 =head2 Tags => ArrayRef[L<Paws::Quicksight::Tag>]
118  
119 Tags for the folder.
120  
121  
122  
123  
124 =head1 SEE ALSO
125  
126 This class forms part of L<Paws>, documenting arguments for method CreateFolder in L<Paws::Quicksight>
127  
128 =head1 BUGS and CONTRIBUTIONS
129  
130 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
131  
132 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
133  
134 =cut
135