Class GetBlockPublicAccessConfigurationResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.emr.model.EmrResponse
-
- software.amazon.awssdk.services.emr.model.GetBlockPublicAccessConfigurationResponse
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<GetBlockPublicAccessConfigurationResponse.Builder,GetBlockPublicAccessConfigurationResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetBlockPublicAccessConfigurationResponse extends EmrResponse implements ToCopyableBuilder<GetBlockPublicAccessConfigurationResponse.Builder,GetBlockPublicAccessConfigurationResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GetBlockPublicAccessConfigurationResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPublicAccessConfiguration
blockPublicAccessConfiguration()
A configuration for Amazon EMR block public access.BlockPublicAccessConfigurationMetadata
blockPublicAccessConfigurationMetadata()
Properties that describe the Amazon Web Services principal that created theBlockPublicAccessConfiguration
using thePutBlockPublicAccessConfiguration
action as well as the date and time that the configuration was created.static GetBlockPublicAccessConfigurationResponse.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends GetBlockPublicAccessConfigurationResponse.Builder>
serializableBuilderClass()
GetBlockPublicAccessConfigurationResponse.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.emr.model.EmrResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
blockPublicAccessConfiguration
public final BlockPublicAccessConfiguration 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 theBlockPublicAccessConfiguration
. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. To change this, update the block public access configuration 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.
- Returns:
- 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 theBlockPublicAccessConfiguration
. By default, Port 22 (SSH) is an exception, and public access is allowed on this port. To change this, update the block public access configuration 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.
-
blockPublicAccessConfigurationMetadata
public final BlockPublicAccessConfigurationMetadata blockPublicAccessConfigurationMetadata()
Properties that describe the Amazon Web Services principal that created the
BlockPublicAccessConfiguration
using thePutBlockPublicAccessConfiguration
action as well as the date and time that the configuration was created. Each time a configuration for block public access is updated, Amazon EMR updates this metadata.- Returns:
- Properties that describe the Amazon Web Services principal that created the
BlockPublicAccessConfiguration
using thePutBlockPublicAccessConfiguration
action as well as the date and time that the configuration was created. Each time a configuration for block public access is updated, Amazon EMR updates this metadata.
-
toBuilder
public GetBlockPublicAccessConfigurationResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<GetBlockPublicAccessConfigurationResponse.Builder,GetBlockPublicAccessConfigurationResponse>
- Specified by:
toBuilder
in classAwsResponse
-
builder
public static GetBlockPublicAccessConfigurationResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetBlockPublicAccessConfigurationResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkResponse
-
-