« blib/lib/Paws/EMR/AutoScalingPolicyStatus.pm
↑ Summary
blib/lib/Paws/EMR/BlockPublicAccessConfigurationMetadata.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::EMR::BlockPublicAccessConfiguration; | ||
| 3 | use Moose; | ||
| 4 | has BlockPublicSecurityGroupRules => (is => 'ro', isa => 'Bool', required => 1); | ||
| 5 | has PermittedPublicSecurityGroupRuleRanges => (is => 'ro', isa => 'ArrayRef[Paws::EMR::PortRange]'); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::EMR::BlockPublicAccessConfiguration | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::EMR::BlockPublicAccessConfiguration object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { BlockPublicSecurityGroupRules => $value, ..., PermittedPublicSecurityGroupRuleRanges => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::BlockPublicAccessConfiguration object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->BlockPublicSecurityGroupRules | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | A configuration for Amazon EMR block public access. When | ||
| 38 | C<BlockPublicSecurityGroupRules> is set to C<true>, Amazon EMR prevents | ||
| 39 | cluster creation if one of the cluster's security groups has a rule | ||
| 40 | that allows inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless | ||
| 41 | the port is specified as an exception using | ||
| 42 | C<PermittedPublicSecurityGroupRuleRanges>. | ||
| 43 | |||
| 44 | =head1 ATTRIBUTES | ||
| 45 | |||
| 46 | |||
| 47 | =head2 B<REQUIRED> BlockPublicSecurityGroupRules => Bool | ||
| 48 | |||
| 49 | Indicates whether Amazon EMR block public access is enabled (C<true>) | ||
| 50 | or disabled (C<false>). By default, the value is C<false> for accounts | ||
| 51 | that have created EMR clusters before July 2019. For accounts created | ||
| 52 | after this, the default is C<true>. | ||
| 53 | |||
| 54 | |||
| 55 | =head2 PermittedPublicSecurityGroupRuleRanges => ArrayRef[L<Paws::EMR::PortRange>] | ||
| 56 | |||
| 57 | Specifies ports and port ranges that are permitted to have security | ||
| 58 | group rules that allow inbound traffic from all public sources. For | ||
| 59 | example, if Port 23 (Telnet) is specified for | ||
| 60 | C<PermittedPublicSecurityGroupRuleRanges>, Amazon EMR allows cluster | ||
| 61 | creation if a security group associated with the cluster has a rule | ||
| 62 | that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port | ||
| 63 | ::/0 as the source. | ||
| 64 | |||
| 65 | By default, Port 22, which is used for SSH access to the cluster EC2 | ||
| 66 | instances, is in the list of C<PermittedPublicSecurityGroupRuleRanges>. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head1 SEE ALSO | ||
| 71 | |||
| 72 | This class forms part of L<Paws>, describing an object used in L<Paws::EMR> | ||
| 73 | |||
| 74 | =head1 BUGS and CONTRIBUTIONS | ||
| 75 | |||
| 76 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 77 | |||
| 78 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 79 | |||
| 80 | =cut | ||
| 81 |