Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data PutBlockPublicAccessConfiguration = PutBlockPublicAccessConfiguration' {}
- newPutBlockPublicAccessConfiguration :: BlockPublicAccessConfiguration -> PutBlockPublicAccessConfiguration
- putBlockPublicAccessConfiguration_blockPublicAccessConfiguration :: Lens' PutBlockPublicAccessConfiguration BlockPublicAccessConfiguration
- data PutBlockPublicAccessConfigurationResponse = PutBlockPublicAccessConfigurationResponse' {
- httpStatus :: Int
- newPutBlockPublicAccessConfigurationResponse :: Int -> PutBlockPublicAccessConfigurationResponse
- putBlockPublicAccessConfigurationResponse_httpStatus :: Lens' PutBlockPublicAccessConfigurationResponse Int
Creating a Request
data PutBlockPublicAccessConfiguration Source #
See: newPutBlockPublicAccessConfiguration
smart constructor.
PutBlockPublicAccessConfiguration' | |
|
Instances
newPutBlockPublicAccessConfiguration Source #
:: BlockPublicAccessConfiguration |
|
-> PutBlockPublicAccessConfiguration |
Create a value of PutBlockPublicAccessConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blockPublicAccessConfiguration:PutBlockPublicAccessConfiguration'
, putBlockPublicAccessConfiguration_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 EMR cluster in a Region before this date, block public access is enabled by default in that Region.
Request Lenses
putBlockPublicAccessConfiguration_blockPublicAccessConfiguration :: Lens' PutBlockPublicAccessConfiguration BlockPublicAccessConfiguration Source #
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.
Destructuring the Response
data PutBlockPublicAccessConfigurationResponse Source #
See: newPutBlockPublicAccessConfigurationResponse
smart constructor.
PutBlockPublicAccessConfigurationResponse' | |
|
Instances
Eq PutBlockPublicAccessConfigurationResponse Source # | |
Read PutBlockPublicAccessConfigurationResponse Source # | |
Show PutBlockPublicAccessConfigurationResponse Source # | |
Generic PutBlockPublicAccessConfigurationResponse Source # | |
Defined in Amazonka.EMR.PutBlockPublicAccessConfiguration type Rep PutBlockPublicAccessConfigurationResponse :: Type -> Type # | |
NFData PutBlockPublicAccessConfigurationResponse Source # | |
type Rep PutBlockPublicAccessConfigurationResponse Source # | |
Defined in Amazonka.EMR.PutBlockPublicAccessConfiguration type Rep PutBlockPublicAccessConfigurationResponse = D1 ('MetaData "PutBlockPublicAccessConfigurationResponse" "Amazonka.EMR.PutBlockPublicAccessConfiguration" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "PutBlockPublicAccessConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutBlockPublicAccessConfigurationResponse Source #
Create a value of PutBlockPublicAccessConfigurationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:PutBlockPublicAccessConfigurationResponse'
, putBlockPublicAccessConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
putBlockPublicAccessConfigurationResponse_httpStatus :: Lens' PutBlockPublicAccessConfigurationResponse Int Source #
The response's http status code.