Struct aws_sdk_emr::operation::put_block_public_access_configuration::builders::PutBlockPublicAccessConfigurationInputBuilder
source · #[non_exhaustive]pub struct PutBlockPublicAccessConfigurationInputBuilder { /* private fields */ }Expand description
A builder for PutBlockPublicAccessConfigurationInput.
Implementations§
source§impl PutBlockPublicAccessConfigurationInputBuilder
impl PutBlockPublicAccessConfigurationInputBuilder
sourcepub fn block_public_access_configuration(
self,
input: BlockPublicAccessConfiguration,
) -> Self
pub fn block_public_access_configuration( self, input: BlockPublicAccessConfiguration, ) -> Self
A configuration for Amazon EMR block public access. The configuration applies to all clusters created in your account for the current Region. The configuration specifies whether block public access is enabled. If block public access is enabled, security groups associated with the cluster cannot have rules that allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is specified as an exception using PermittedPublicSecurityGroupRuleRanges in the BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. You can change this by updating BlockPublicSecurityGroupRules to remove the exception.
For accounts that created clusters in a Region before November 25, 2019, block public access is disabled by default in that Region. To use this feature, you must manually enable and configure it. For accounts that did not create an Amazon EMR cluster in a Region before this date, block public access is enabled by default in that Region.
sourcepub fn set_block_public_access_configuration(
self,
input: Option<BlockPublicAccessConfiguration>,
) -> Self
pub fn set_block_public_access_configuration( self, input: Option<BlockPublicAccessConfiguration>, ) -> Self
A configuration for Amazon EMR block public access. The configuration applies to all clusters created in your account for the current Region. The configuration specifies whether block public access is enabled. If block public access is enabled, security groups associated with the cluster cannot have rules that allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is specified as an exception using PermittedPublicSecurityGroupRuleRanges in the BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. You can change this by updating BlockPublicSecurityGroupRules to remove the exception.
For accounts that created clusters in a Region before November 25, 2019, block public access is disabled by default in that Region. To use this feature, you must manually enable and configure it. For accounts that did not create an Amazon EMR cluster in a Region before this date, block public access is enabled by default in that Region.
sourcepub fn get_block_public_access_configuration(
&self,
) -> &Option<BlockPublicAccessConfiguration>
pub fn get_block_public_access_configuration( &self, ) -> &Option<BlockPublicAccessConfiguration>
A configuration for Amazon EMR block public access. The configuration applies to all clusters created in your account for the current Region. The configuration specifies whether block public access is enabled. If block public access is enabled, security groups associated with the cluster cannot have rules that allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is specified as an exception using PermittedPublicSecurityGroupRuleRanges in the BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. You can change this by updating BlockPublicSecurityGroupRules to remove the exception.
For accounts that created clusters in a Region before November 25, 2019, block public access is disabled by default in that Region. To use this feature, you must manually enable and configure it. For accounts that did not create an Amazon EMR cluster in a Region before this date, block public access is enabled by default in that Region.
sourcepub fn build(self) -> Result<PutBlockPublicAccessConfigurationInput, BuildError>
pub fn build(self) -> Result<PutBlockPublicAccessConfigurationInput, BuildError>
Consumes the builder and constructs a PutBlockPublicAccessConfigurationInput.
source§impl PutBlockPublicAccessConfigurationInputBuilder
impl PutBlockPublicAccessConfigurationInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutBlockPublicAccessConfigurationOutput, SdkError<PutBlockPublicAccessConfigurationError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutBlockPublicAccessConfigurationOutput, SdkError<PutBlockPublicAccessConfigurationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutBlockPublicAccessConfigurationInputBuilder
impl Clone for PutBlockPublicAccessConfigurationInputBuilder
source§fn clone(&self) -> PutBlockPublicAccessConfigurationInputBuilder
fn clone(&self) -> PutBlockPublicAccessConfigurationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutBlockPublicAccessConfigurationInputBuilder
impl Default for PutBlockPublicAccessConfigurationInputBuilder
source§fn default() -> PutBlockPublicAccessConfigurationInputBuilder
fn default() -> PutBlockPublicAccessConfigurationInputBuilder
source§impl PartialEq for PutBlockPublicAccessConfigurationInputBuilder
impl PartialEq for PutBlockPublicAccessConfigurationInputBuilder
source§fn eq(&self, other: &PutBlockPublicAccessConfigurationInputBuilder) -> bool
fn eq(&self, other: &PutBlockPublicAccessConfigurationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PutBlockPublicAccessConfigurationInputBuilder
Auto Trait Implementations§
impl Freeze for PutBlockPublicAccessConfigurationInputBuilder
impl RefUnwindSafe for PutBlockPublicAccessConfigurationInputBuilder
impl Send for PutBlockPublicAccessConfigurationInputBuilder
impl Sync for PutBlockPublicAccessConfigurationInputBuilder
impl Unpin for PutBlockPublicAccessConfigurationInputBuilder
impl UnwindSafe for PutBlockPublicAccessConfigurationInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more