Class SecurityControlDefinition
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SecurityControlDefinition.Builder,
SecurityControlDefinition>
Provides metadata for a security control, including its unique standard-agnostic identifier, title, description, severity, availability in Amazon Web Services Regions, and a link to remediation steps.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final RegionAvailabilityStatus
Specifies whether a security control is available in the current Amazon Web Services Region.final String
Specifies whether a security control is available in the current Amazon Web Services Region.final List
<SecurityControlProperty> Security control properties that you can customize.Security control properties that you can customize.final String
The description of a security control across standards.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the CustomizableProperties property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the ParameterDefinitions property.final Map
<String, ParameterDefinition> An object that provides a security control parameter name, description, and the options for customizing it.final String
A link to Security Hub documentation that explains how to remediate a failed finding for a security control.final String
The unique identifier of a security control across standards.static Class
<? extends SecurityControlDefinition.Builder> final SeverityRating
The severity of a security control.final String
The severity of a security control.final String
title()
The title of a security control.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
securityControlId
The unique identifier of a security control across standards. Values for this field typically consist of an Amazon Web Servicesservice name and a number (for example, APIGateway.3). This parameter differs from
SecurityControlArn
, which is a unique Amazon Resource Name (ARN) assigned to a control. The ARN references the security control ID (for example, arn:aws:securityhub:eu-central-1:123456789012:security-control/APIGateway.3).- Returns:
- The unique identifier of a security control across standards. Values for this field typically consist of
an Amazon Web Servicesservice name and a number (for example, APIGateway.3). This parameter differs from
SecurityControlArn
, which is a unique Amazon Resource Name (ARN) assigned to a control. The ARN references the security control ID (for example, arn:aws:securityhub:eu-central-1:123456789012:security-control/APIGateway.3).
-
title
The title of a security control.
- Returns:
- The title of a security control.
-
description
The description of a security control across standards. This typically summarizes how Security Hub evaluates the control and the conditions under which it produces a failed finding. This parameter doesn't reference a specific standard.
- Returns:
- The description of a security control across standards. This typically summarizes how Security Hub evaluates the control and the conditions under which it produces a failed finding. This parameter doesn't reference a specific standard.
-
remediationUrl
A link to Security Hub documentation that explains how to remediate a failed finding for a security control.
- Returns:
- A link to Security Hub documentation that explains how to remediate a failed finding for a security control.
-
severityRating
The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
If the service returns an enum value that is not available in the current SDK version,
severityRating
will returnSeverityRating.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityRatingAsString()
.- Returns:
- The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
- See Also:
-
severityRatingAsString
The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
If the service returns an enum value that is not available in the current SDK version,
severityRating
will returnSeverityRating.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityRatingAsString()
.- Returns:
- The severity of a security control. For more information about how Security Hub determines control severity, see Assigning severity to control findings in the Security Hub User Guide.
- See Also:
-
currentRegionAvailability
Specifies whether a security control is available in the current Amazon Web Services Region.
If the service returns an enum value that is not available in the current SDK version,
currentRegionAvailability
will returnRegionAvailabilityStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentRegionAvailabilityAsString()
.- Returns:
- Specifies whether a security control is available in the current Amazon Web Services Region.
- See Also:
-
currentRegionAvailabilityAsString
Specifies whether a security control is available in the current Amazon Web Services Region.
If the service returns an enum value that is not available in the current SDK version,
currentRegionAvailability
will returnRegionAvailabilityStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentRegionAvailabilityAsString()
.- Returns:
- Specifies whether a security control is available in the current Amazon Web Services Region.
- See Also:
-
customizableProperties
Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCustomizableProperties()
method.- Returns:
- Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
-
hasCustomizableProperties
public final boolean hasCustomizableProperties()For responses, this returns true if the service returned a value for the CustomizableProperties property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
customizablePropertiesAsStrings
Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCustomizableProperties()
method.- Returns:
- Security control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
-
hasParameterDefinitions
public final boolean hasParameterDefinitions()For responses, this returns true if the service returned a value for the ParameterDefinitions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
parameterDefinitions
An object that provides a security control parameter name, description, and the options for customizing it. This object is excluded for a control that doesn't support custom parameters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasParameterDefinitions()
method.- Returns:
- An object that provides a security control parameter name, description, and the options for customizing it. This object is excluded for a control that doesn't support custom parameters.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SecurityControlDefinition.Builder,
SecurityControlDefinition> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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
-
sdkFields
-