blib/lib/Paws/LakeFormation/BatchGrantPermissions.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LakeFormation::BatchGrantPermissions;
3 use Moose;
4 has CatalogId => (is => 'ro', isa => 'Str');
5 has Entries => (is => 'ro', isa => 'ArrayRef[Paws::LakeFormation::BatchPermissionsRequestEntry]', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'BatchGrantPermissions');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LakeFormation::BatchGrantPermissionsResponse');
11 class_has _result_key => (isa => 'Str', is => 'ro');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::LakeFormation::BatchGrantPermissions - Arguments for method BatchGrantPermissions on L<Paws::LakeFormation>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method BatchGrantPermissions on the
23 L<AWS Lake Formation|Paws::LakeFormation> service. Use the attributes of this class
24 as arguments to method BatchGrantPermissions.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to BatchGrantPermissions.
27  
28 =head1 SYNOPSIS
29  
30 my $lakeformation = Paws->service('LakeFormation');
31 my $BatchGrantPermissionsResponse = $lakeformation->BatchGrantPermissions(
32 Entries => [
33 {
34 Id => 'MyIdentifier', # min: 1, max: 255
35 Permissions => [
36 'ALL',
37 ... # values: ALL, SELECT, ALTER, DROP, DELETE, INSERT, DESCRIBE, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS, CREATE_TAG, ALTER_TAG, DELETE_TAG, DESCRIBE_TAG, ASSOCIATE_TAG
38 ], # OPTIONAL
39 PermissionsWithGrantOption => [
40 'ALL',
41 ... # values: ALL, SELECT, ALTER, DROP, DELETE, INSERT, DESCRIBE, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS, CREATE_TAG, ALTER_TAG, DELETE_TAG, DESCRIBE_TAG, ASSOCIATE_TAG
42 ], # OPTIONAL
43 Principal => {
44 DataLakePrincipalIdentifier =>
45 'MyDataLakePrincipalString', # min: 1, max: 255; OPTIONAL
46 }, # OPTIONAL
47 Resource => {
48 Catalog => {
49  
50 }, # OPTIONAL
51 DataLocation => {
52 ResourceArn => 'MyResourceArnString',
53 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
54 }, # OPTIONAL
55 Database => {
56 Name => 'MyNameString', # min: 1, max: 255
57 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
58 }, # OPTIONAL
59 LFTag => {
60 TagKey => 'MyNameString', # min: 1, max: 255
61 TagValues => [
62 'MyLFTagValue', ... # max: 256
63 ], # min: 1, max: 50
64 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
65 }, # OPTIONAL
66 LFTagPolicy => {
67 Expression => [
68 {
69 TagKey => 'MyLFTagKey', # min: 1, max: 128
70 TagValues => [
71 'MyLFTagValue', ... # max: 256
72 ], # min: 1, max: 50
73  
74 },
75 ...
76 ], # min: 1, max: 5
77 ResourceType => 'DATABASE', # values: DATABASE, TABLE
78 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
79 }, # OPTIONAL
80 Table => {
81 DatabaseName => 'MyNameString', # min: 1, max: 255
82 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
83 Name => 'MyNameString', # min: 1, max: 255
84 TableWildcard => {
85  
86 }, # OPTIONAL
87 }, # OPTIONAL
88 TableWithColumns => {
89 DatabaseName => 'MyNameString', # min: 1, max: 255
90 Name => 'MyNameString', # min: 1, max: 255
91 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
92 ColumnNames => [
93 'MyNameString', ... # min: 1, max: 255
94 ], # OPTIONAL
95 ColumnWildcard => {
96 ExcludedColumnNames => [
97 'MyNameString', ... # min: 1, max: 255
98 ], # OPTIONAL
99 }, # OPTIONAL
100 }, # OPTIONAL
101 }, # OPTIONAL
102 },
103 ...
104 ],
105 CatalogId => 'MyCatalogIdString', # OPTIONAL
106 );
107  
108 # Results:
109 my $Failures = $BatchGrantPermissionsResponse->Failures;
110  
111 # Returns a L<Paws::LakeFormation::BatchGrantPermissionsResponse> object.
112  
113 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.
114 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lakeformation/BatchGrantPermissions>
115  
116 =head1 ATTRIBUTES
117  
118  
119 =head2 CatalogId => Str
120  
121 The identifier for the Data Catalog. By default, the account ID. The
122 Data Catalog is the persistent metadata store. It contains database
123 definitions, table definitions, and other control information to manage
124 your AWS Lake Formation environment.
125  
126  
127  
128 =head2 B<REQUIRED> Entries => ArrayRef[L<Paws::LakeFormation::BatchPermissionsRequestEntry>]
129  
130 A list of up to 20 entries for resource permissions to be granted by
131 batch operation to the principal.
132  
133  
134  
135  
136 =head1 SEE ALSO
137  
138 This class forms part of L<Paws>, documenting arguments for method BatchGrantPermissions in L<Paws::LakeFormation>
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