#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for BlockPublicAccessConfiguration
Implementations
sourceimpl Builder
impl Builder
sourcepub fn block_public_security_group_rules(self, input: bool) -> Self
pub fn block_public_security_group_rules(self, input: bool) -> Self
Indicates whether Amazon 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.
sourcepub fn set_block_public_security_group_rules(self, input: Option<bool>) -> Self
pub fn set_block_public_security_group_rules(self, input: Option<bool>) -> Self
Indicates whether Amazon 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.
sourcepub fn permitted_public_security_group_rule_ranges(
self,
input: PortRange
) -> Self
pub fn permitted_public_security_group_rule_ranges(
self,
input: PortRange
) -> Self
Appends an item to permitted_public_security_group_rule_ranges.
To override the contents of this collection use set_permitted_public_security_group_rule_ranges.
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.
sourcepub fn set_permitted_public_security_group_rule_ranges(
self,
input: Option<Vec<PortRange>>
) -> Self
pub fn set_permitted_public_security_group_rule_ranges(
self,
input: Option<Vec<PortRange>>
) -> Self
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.
sourcepub fn classification(self, input: impl Into<String>) -> Self
pub fn classification(self, input: impl Into<String>) -> Self
The classification within a configuration.
sourcepub fn set_classification(self, input: Option<String>) -> Self
pub fn set_classification(self, input: Option<String>) -> Self
The classification within a configuration.
sourcepub fn configurations(self, input: Configuration) -> Self
pub fn configurations(self, input: Configuration) -> Self
Appends an item to configurations.
To override the contents of this collection use set_configurations.
A list of additional configurations to apply within a configuration object.
sourcepub fn set_configurations(self, input: Option<Vec<Configuration>>) -> Self
pub fn set_configurations(self, input: Option<Vec<Configuration>>) -> Self
A list of additional configurations to apply within a configuration object.
sourcepub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to properties.
To override the contents of this collection use set_properties.
A set of properties specified within a configuration classification.
sourcepub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
A set of properties specified within a configuration classification.
sourcepub fn build(self) -> BlockPublicAccessConfiguration
pub fn build(self) -> BlockPublicAccessConfiguration
Consumes the builder and constructs a BlockPublicAccessConfiguration
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more