pub struct PutBlockPublicAccessConfiguration<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> PutBlockPublicAccessConfiguration<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutBlockPublicAccessConfiguration<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutBlockPublicAccessConfigurationOutput, SdkError<PutBlockPublicAccessConfigurationError>> where
R::Policy: SmithyRetryPolicy<PutBlockPublicAccessConfigurationInputOperationOutputAlias, PutBlockPublicAccessConfigurationOutput, PutBlockPublicAccessConfigurationError, PutBlockPublicAccessConfigurationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutBlockPublicAccessConfigurationOutput, SdkError<PutBlockPublicAccessConfigurationError>> where
R::Policy: SmithyRetryPolicy<PutBlockPublicAccessConfigurationInputOperationOutputAlias, PutBlockPublicAccessConfigurationOutput, PutBlockPublicAccessConfigurationError, PutBlockPublicAccessConfigurationInputOperationRetryAlias>,
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.
pub 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 EMR cluster in a Region before this date, block public access is enabled by default in that Region.
pub 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 EMR cluster in a Region before this date, block public access is enabled by default in that Region.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutBlockPublicAccessConfiguration<C, M, R>
impl<C, M, R> Send for PutBlockPublicAccessConfiguration<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutBlockPublicAccessConfiguration<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutBlockPublicAccessConfiguration<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutBlockPublicAccessConfiguration<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more