Interface UpdateConfigurationPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateConfigurationPolicyRequest.Builder,
,UpdateConfigurationPolicyRequest> SdkBuilder<UpdateConfigurationPolicyRequest.Builder,
,UpdateConfigurationPolicyRequest> SdkPojo
,SdkRequest.Builder
,SecurityHubRequest.Builder
- Enclosing class:
UpdateConfigurationPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfigurationPolicy
(Consumer<Policy.Builder> configurationPolicy) An object that defines how Security Hub is configured.configurationPolicy
(Policy configurationPolicy) An object that defines how Security Hub is configured.description
(String description) The description of the configuration policy.identifier
(String identifier) The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.The name of the configuration policy.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.updatedReason
(String updatedReason) The reason for updating the configuration policy.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.services.securityhub.model.SecurityHubRequest.Builder
build
-
Method Details
-
identifier
The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
- Parameters:
identifier
- The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted:
-, ., !, *, /
.- Parameters:
name
- The name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted:-, ., !, *, /
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the configuration policy.
- Parameters:
description
- The description of the configuration policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedReason
The reason for updating the configuration policy.
- Parameters:
updatedReason
- The reason for updating the configuration policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationPolicy
An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
- Parameters:
configurationPolicy
- An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationPolicy
default UpdateConfigurationPolicyRequest.Builder configurationPolicy(Consumer<Policy.Builder> configurationPolicy) An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
This is a convenience method that creates an instance of thePolicy.Builder
avoiding the need to create one manually viaPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigurationPolicy(Policy)
.- Parameters:
configurationPolicy
- a consumer that will call methods onPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateConfigurationPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateConfigurationPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-