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

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LakeFormation::RevokePermissions;
3 use Moose;
4 has CatalogId => (is => 'ro', isa => 'Str');
5 has Permissions => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
6 has PermissionsWithGrantOption => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
7 has Principal => (is => 'ro', isa => 'Paws::LakeFormation::DataLakePrincipal', required => 1);
8 has Resource => (is => 'ro', isa => 'Paws::LakeFormation::Resource', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'RevokePermissions');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LakeFormation::RevokePermissionsResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::LakeFormation::RevokePermissions - Arguments for method RevokePermissions on L<Paws::LakeFormation>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method RevokePermissions on the
26 L<AWS Lake Formation|Paws::LakeFormation> service. Use the attributes of this class
27 as arguments to method RevokePermissions.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RevokePermissions.
30  
31 =head1 SYNOPSIS
32  
33 my $lakeformation = Paws->service('LakeFormation');
34 my $RevokePermissionsResponse = $lakeformation->RevokePermissions(
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 ],
39 Principal => {
40 DataLakePrincipalIdentifier =>
41 'MyDataLakePrincipalString', # min: 1, max: 255; OPTIONAL
42 },
43 Resource => {
44 Catalog => {
45  
46 }, # OPTIONAL
47 DataLocation => {
48 ResourceArn => 'MyResourceArnString',
49 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
50 }, # OPTIONAL
51 Database => {
52 Name => 'MyNameString', # min: 1, max: 255
53 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
54 }, # OPTIONAL
55 LFTag => {
56 TagKey => 'MyNameString', # min: 1, max: 255
57 TagValues => [
58 'MyLFTagValue', ... # max: 256
59 ], # min: 1, max: 50
60 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
61 }, # OPTIONAL
62 LFTagPolicy => {
63 Expression => [
64 {
65 TagKey => 'MyLFTagKey', # min: 1, max: 128
66 TagValues => [
67 'MyLFTagValue', ... # max: 256
68 ], # min: 1, max: 50
69  
70 },
71 ...
72 ], # min: 1, max: 5
73 ResourceType => 'DATABASE', # values: DATABASE, TABLE
74 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
75 }, # OPTIONAL
76 Table => {
77 DatabaseName => 'MyNameString', # min: 1, max: 255
78 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
79 Name => 'MyNameString', # min: 1, max: 255
80 TableWildcard => {
81  
82 }, # OPTIONAL
83 }, # OPTIONAL
84 TableWithColumns => {
85 DatabaseName => 'MyNameString', # min: 1, max: 255
86 Name => 'MyNameString', # min: 1, max: 255
87 CatalogId => 'MyCatalogIdString', # min: 1, max: 255; OPTIONAL
88 ColumnNames => [
89 'MyNameString', ... # min: 1, max: 255
90 ], # OPTIONAL
91 ColumnWildcard => {
92 ExcludedColumnNames => [
93 'MyNameString', ... # min: 1, max: 255
94 ], # OPTIONAL
95 }, # OPTIONAL
96 }, # OPTIONAL
97 },
98 CatalogId => 'MyCatalogIdString', # OPTIONAL
99 PermissionsWithGrantOption => [
100 'ALL',
101 ... # 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
102 ], # OPTIONAL
103 );
104  
105 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.
106 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lakeformation/RevokePermissions>
107  
108 =head1 ATTRIBUTES
109  
110  
111 =head2 CatalogId => Str
112  
113 The identifier for the Data Catalog. By default, the account ID. The
114 Data Catalog is the persistent metadata store. It contains database
115 definitions, table definitions, and other control information to manage
116 your AWS Lake Formation environment.
117  
118  
119  
120 =head2 B<REQUIRED> Permissions => ArrayRef[Str|Undef]
121  
122 The permissions revoked to the principal on the resource. For
123 information about permissions, see Security and Access Control to
124 Metadata and Data
125 (https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html).
126  
127  
128  
129 =head2 PermissionsWithGrantOption => ArrayRef[Str|Undef]
130  
131 Indicates a list of permissions for which to revoke the grant option
132 allowing the principal to pass permissions to other principals.
133  
134  
135  
136 =head2 B<REQUIRED> Principal => L<Paws::LakeFormation::DataLakePrincipal>
137  
138 The principal to be revoked permissions on the resource.
139  
140  
141  
142 =head2 B<REQUIRED> Resource => L<Paws::LakeFormation::Resource>
143  
144 The resource to which permissions are to be revoked.
145  
146  
147  
148  
149 =head1 SEE ALSO
150  
151 This class forms part of L<Paws>, documenting arguments for method RevokePermissions in L<Paws::LakeFormation>
152  
153 =head1 BUGS and CONTRIBUTIONS
154  
155 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
156  
157 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
158  
159 =cut
160