blib/lib/Paws/S3Control/PublicAccessBlockConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::S3Control::PublicAccessBlockConfiguration;
3 use Moose;
4 has BlockPublicAcls => (is => 'ro', isa => 'Bool');
5 has BlockPublicPolicy => (is => 'ro', isa => 'Bool');
6 has IgnorePublicAcls => (is => 'ro', isa => 'Bool');
7 has RestrictPublicBuckets => (is => 'ro', isa => 'Bool');
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::S3Control::PublicAccessBlockConfiguration
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::S3Control::PublicAccessBlockConfiguration object:
27  
28 $service_obj->Method(Att1 => { BlockPublicAcls => $value, ..., RestrictPublicBuckets => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::S3Control::PublicAccessBlockConfiguration object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->BlockPublicAcls
36  
37 =head1 DESCRIPTION
38  
39 The C<PublicAccessBlock> configuration that you want to apply to this
40 Amazon S3 account. You can enable the configuration options in any
41 combination. For more information about when Amazon S3 considers a
42 bucket or object public, see The Meaning of "Public"
43 (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
44 in the I<Amazon S3 User Guide>.
45  
46 This is not supported for Amazon S3 on Outposts.
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 BlockPublicAcls => Bool
52  
53 Specifies whether Amazon S3 should block public access control lists
54 (ACLs) for buckets in this account. Setting this element to C<TRUE>
55 causes the following behavior:
56  
57 =over
58  
59 =item *
60  
61 PUT Bucket acl and PUT Object acl calls fail if the specified ACL is
62 public.
63  
64 =item *
65  
66 PUT Object calls fail if the request includes a public ACL.
67  
68 =item *
69  
70 PUT Bucket calls fail if the request includes a public ACL.
71  
72 =back
73  
74 Enabling this setting doesn't affect existing policies or ACLs.
75  
76 This is not supported for Amazon S3 on Outposts.
77  
78  
79 =head2 BlockPublicPolicy => Bool
80  
81 Specifies whether Amazon S3 should block public bucket policies for
82 buckets in this account. Setting this element to C<TRUE> causes Amazon
83 S3 to reject calls to PUT Bucket policy if the specified bucket policy
84 allows public access.
85  
86 Enabling this setting doesn't affect existing bucket policies.
87  
88 This is not supported for Amazon S3 on Outposts.
89  
90  
91 =head2 IgnorePublicAcls => Bool
92  
93 Specifies whether Amazon S3 should ignore public ACLs for buckets in
94 this account. Setting this element to C<TRUE> causes Amazon S3 to
95 ignore all public ACLs on buckets in this account and any objects that
96 they contain.
97  
98 Enabling this setting doesn't affect the persistence of any existing
99 ACLs and doesn't prevent new public ACLs from being set.
100  
101 This is not supported for Amazon S3 on Outposts.
102  
103  
104 =head2 RestrictPublicBuckets => Bool
105  
106 Specifies whether Amazon S3 should restrict public bucket policies for
107 buckets in this account. Setting this element to C<TRUE> restricts
108 access to buckets with public policies to only AWS service principals
109 and authorized users within this account.
110  
111 Enabling this setting doesn't affect previously stored bucket policies,
112 except that public and cross-account access within any public bucket
113 policy, including non-public delegation to specific accounts, is
114 blocked.
115  
116 This is not supported for Amazon S3 on Outposts.
117  
118  
119  
120 =head1 SEE ALSO
121  
122 This class forms part of L<Paws>, describing an object used in L<Paws::S3Control>
123  
124 =head1 BUGS and CONTRIBUTIONS
125  
126 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
127  
128 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
129  
130 =cut
131