Struct aws_sdk_emr::operation::put_block_public_access_configuration::builders::PutBlockPublicAccessConfigurationFluentBuilder
source · pub struct PutBlockPublicAccessConfigurationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutBlockPublicAccessConfiguration
.
Creates or updates an Amazon EMR block public access configuration for your Amazon Web Services account in the current Region. For more information see Configure Block Public Access for Amazon EMR in the Amazon EMR Management Guide.
Implementations§
source§impl PutBlockPublicAccessConfigurationFluentBuilder
impl PutBlockPublicAccessConfigurationFluentBuilder
sourcepub fn as_input(&self) -> &PutBlockPublicAccessConfigurationInputBuilder
pub fn as_input(&self) -> &PutBlockPublicAccessConfigurationInputBuilder
Access the PutBlockPublicAccessConfiguration as a reference.
sourcepub async fn send(
self
) -> Result<PutBlockPublicAccessConfigurationOutput, SdkError<PutBlockPublicAccessConfigurationError, HttpResponse>>
pub async fn send( self ) -> Result<PutBlockPublicAccessConfigurationOutput, SdkError<PutBlockPublicAccessConfigurationError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutBlockPublicAccessConfigurationOutput, PutBlockPublicAccessConfigurationError, Self>
pub fn customize( self ) -> CustomizableOperation<PutBlockPublicAccessConfigurationOutput, PutBlockPublicAccessConfigurationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
Trait Implementations§
source§impl Clone for PutBlockPublicAccessConfigurationFluentBuilder
impl Clone for PutBlockPublicAccessConfigurationFluentBuilder
source§fn clone(&self) -> PutBlockPublicAccessConfigurationFluentBuilder
fn clone(&self) -> PutBlockPublicAccessConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more