pub struct BlockPublicAccessConfiguration {
pub block_public_security_group_rules: bool,
pub permitted_public_security_group_rule_ranges: Option<Vec<PortRange>>,
}
Expand description
A configuration for Amazon EMR block public access. When BlockPublicSecurityGroupRules
is set to true
, Amazon EMR prevents cluster creation if one of the cluster's security groups has a rule that allows inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is specified as an exception using PermittedPublicSecurityGroupRuleRanges
.
Fields§
§block_public_security_group_rules: bool
Indicates whether EMR block public access is enabled (true
) or disabled (false
). By default, the value is false
for accounts that have created EMR clusters before July 2019. For accounts created after this, the default is true
.
permitted_public_security_group_rule_ranges: Option<Vec<PortRange>>
Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources. For example, if Port 23 (Telnet) is specified for PermittedPublicSecurityGroupRuleRanges
, Amazon EMR allows cluster creation if a security group associated with the cluster has a rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port ::/0 as the source.
By default, Port 22, which is used for SSH access to the cluster EC2 instances, is in the list of PermittedPublicSecurityGroupRuleRanges
.
Trait Implementations§
Source§impl Clone for BlockPublicAccessConfiguration
impl Clone for BlockPublicAccessConfiguration
Source§fn clone(&self) -> BlockPublicAccessConfiguration
fn clone(&self) -> BlockPublicAccessConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for BlockPublicAccessConfiguration
impl Default for BlockPublicAccessConfiguration
Source§fn default() -> BlockPublicAccessConfiguration
fn default() -> BlockPublicAccessConfiguration
Source§impl<'de> Deserialize<'de> for BlockPublicAccessConfiguration
impl<'de> Deserialize<'de> for BlockPublicAccessConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BlockPublicAccessConfiguration
impl PartialEq for BlockPublicAccessConfiguration
Source§fn eq(&self, other: &BlockPublicAccessConfiguration) -> bool
fn eq(&self, other: &BlockPublicAccessConfiguration) -> bool
self
and other
values to be equal, and is used by ==
.