Struct aws_sdk_emr::types::BlockPublicAccessConfiguration
source · #[non_exhaustive]pub struct BlockPublicAccessConfiguration {
pub block_public_security_group_rules: Option<bool>,
pub permitted_public_security_group_rule_ranges: Option<Vec<PortRange>>,
pub classification: Option<String>,
pub configurations: Option<Vec<Configuration>>,
pub properties: Option<HashMap<String, String>>,
}
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.block_public_security_group_rules: Option<bool>
Indicates whether Amazon EMR block public access is enabled (true
) or disabled (false
). By default, the value is false
for accounts that have created Amazon 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 Amazon EC2 instances, is in the list of PermittedPublicSecurityGroupRuleRanges
.
classification: Option<String>
The classification within a configuration.
configurations: Option<Vec<Configuration>>
A list of additional configurations to apply within a configuration object.
properties: Option<HashMap<String, String>>
A set of properties specified within a configuration classification.
Implementations§
source§impl BlockPublicAccessConfiguration
impl BlockPublicAccessConfiguration
sourcepub fn block_public_security_group_rules(&self) -> Option<bool>
pub fn block_public_security_group_rules(&self) -> Option<bool>
Indicates whether Amazon EMR block public access is enabled (true
) or disabled (false
). By default, the value is false
for accounts that have created Amazon EMR clusters before July 2019. For accounts created after this, the default is true
.
sourcepub fn permitted_public_security_group_rule_ranges(&self) -> &[PortRange]
pub fn permitted_public_security_group_rule_ranges(&self) -> &[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 Amazon EC2 instances, is in the list of PermittedPublicSecurityGroupRuleRanges
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .permitted_public_security_group_rule_ranges.is_none()
.
sourcepub fn classification(&self) -> Option<&str>
pub fn classification(&self) -> Option<&str>
The classification within a configuration.
sourcepub fn configurations(&self) -> &[Configuration]
pub fn configurations(&self) -> &[Configuration]
A list of additional configurations to apply within a configuration object.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .configurations.is_none()
.
source§impl BlockPublicAccessConfiguration
impl BlockPublicAccessConfiguration
sourcepub fn builder() -> BlockPublicAccessConfigurationBuilder
pub fn builder() -> BlockPublicAccessConfigurationBuilder
Creates a new builder-style object to manufacture BlockPublicAccessConfiguration
.
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 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 ==
.