blib/lib/Paws/S3/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::S3::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::S3::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::S3::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::S3::PublicAccessBlockConfiguration object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->BlockPublicAcls
36  
37 =head1 DESCRIPTION
38  
39 The PublicAccessBlock configuration that you want to apply to this
40 Amazon S3 bucket. 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 =head1 ATTRIBUTES
47  
48  
49 =head2 BlockPublicAcls => Bool
50  
51 Specifies whether Amazon S3 should block public access control lists
52 (ACLs) for this bucket and objects in this bucket. Setting this element
53 to C<TRUE> causes the following behavior:
54  
55 =over
56  
57 =item *
58  
59 PUT Bucket acl and PUT Object acl calls fail if the specified ACL is
60 public.
61  
62 =item *
63  
64 PUT Object calls fail if the request includes a public ACL.
65  
66 =item *
67  
68 PUT Bucket calls fail if the request includes a public ACL.
69  
70 =back
71  
72 Enabling this setting doesn't affect existing policies or ACLs.
73  
74  
75 =head2 BlockPublicPolicy => Bool
76  
77 Specifies whether Amazon S3 should block public bucket policies for
78 this bucket. Setting this element to C<TRUE> causes Amazon S3 to reject
79 calls to PUT Bucket policy if the specified bucket policy allows public
80 access.
81  
82 Enabling this setting doesn't affect existing bucket policies.
83  
84  
85 =head2 IgnorePublicAcls => Bool
86  
87 Specifies whether Amazon S3 should ignore public ACLs for this bucket
88 and objects in this bucket. Setting this element to C<TRUE> causes
89 Amazon S3 to ignore all public ACLs on this bucket and objects in this
90 bucket.
91  
92 Enabling this setting doesn't affect the persistence of any existing
93 ACLs and doesn't prevent new public ACLs from being set.
94  
95  
96 =head2 RestrictPublicBuckets => Bool
97  
98 Specifies whether Amazon S3 should restrict public bucket policies for
99 this bucket. Setting this element to C<TRUE> restricts access to this
100 bucket to only AWS service principals and authorized users within this
101 account if the bucket has a public policy.
102  
103 Enabling this setting doesn't affect previously stored bucket policies,
104 except that public and cross-account access within any public bucket
105 policy, including non-public delegation to specific accounts, is
106 blocked.
107  
108  
109  
110 =head1 SEE ALSO
111  
112 This class forms part of L<Paws>, describing an object used in L<Paws::S3>
113  
114 =head1 BUGS and CONTRIBUTIONS
115  
116 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
117  
118 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
119  
120 =cut
121