Interface UpdatePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<UpdatePolicyRequest.Builder,,UpdatePolicyRequest> SdkBuilder<UpdatePolicyRequest.Builder,,UpdatePolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdatePolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdatePolicyRequest.Builderdefinition(Consumer<PolicyDefinition.Builder> definition) The new Cedar policy statement that defines the access control rules.definition(PolicyDefinition definition) The new Cedar policy statement that defines the access control rules.description(String description) The new human-readable description for the policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyEngineId(String policyEngineId) The identifier of the policy engine that manages the policy to be updated.The unique identifier of the policy to be updated.validationMode(String validationMode) The validation mode for the policy update.validationMode(PolicyValidationMode validationMode) The validation mode for the policy update.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyEngineId
The identifier of the policy engine that manages the policy to be updated. This ensures the policy is updated within the correct policy engine context.
- Parameters:
policyEngineId- The identifier of the policy engine that manages the policy to be updated. This ensures the policy is updated within the correct policy engine context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
The unique identifier of the policy to be updated. This must be a valid policy ID that exists within the specified policy engine.
- Parameters:
policyId- The unique identifier of the policy to be updated. This must be a valid policy ID that exists within the specified policy engine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The new human-readable description for the policy. This optional field allows updating the policy's documentation while keeping the same policy logic.
- Parameters:
description- The new human-readable description for the policy. This optional field allows updating the policy's documentation while keeping the same policy logic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The new Cedar policy statement that defines the access control rules. This replaces the existing policy definition with new logic while maintaining the policy's identity.
- Parameters:
definition- The new Cedar policy statement that defines the access control rules. This replaces the existing policy definition with new logic while maintaining the policy's identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The new Cedar policy statement that defines the access control rules. This replaces the existing policy definition with new logic while maintaining the policy's identity.
This is a convenience method that creates an instance of thePolicyDefinition.Builderavoiding the need to create one manually viaPolicyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(PolicyDefinition).- Parameters:
definition- a consumer that will call methods onPolicyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
validationMode
The validation mode for the policy update. Determines how Cedar analyzer validation results are handled during policy updates. FAIL_ON_ANY_FINDINGS runs the Cedar analyzer and fails the update if validation issues are detected, ensuring the policy conforms to the Cedar schema and tool context. IGNORE_ALL_FINDINGS runs the Cedar analyzer but allows updates despite validation warnings. Use FAIL_ON_ANY_FINDINGS to ensure policy correctness during updates, especially when modifying policy logic or conditions.
- Parameters:
validationMode- The validation mode for the policy update. Determines how Cedar analyzer validation results are handled during policy updates. FAIL_ON_ANY_FINDINGS runs the Cedar analyzer and fails the update if validation issues are detected, ensuring the policy conforms to the Cedar schema and tool context. IGNORE_ALL_FINDINGS runs the Cedar analyzer but allows updates despite validation warnings. Use FAIL_ON_ANY_FINDINGS to ensure policy correctness during updates, especially when modifying policy logic or conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
validationMode
The validation mode for the policy update. Determines how Cedar analyzer validation results are handled during policy updates. FAIL_ON_ANY_FINDINGS runs the Cedar analyzer and fails the update if validation issues are detected, ensuring the policy conforms to the Cedar schema and tool context. IGNORE_ALL_FINDINGS runs the Cedar analyzer but allows updates despite validation warnings. Use FAIL_ON_ANY_FINDINGS to ensure policy correctness during updates, especially when modifying policy logic or conditions.
- Parameters:
validationMode- The validation mode for the policy update. Determines how Cedar analyzer validation results are handled during policy updates. FAIL_ON_ANY_FINDINGS runs the Cedar analyzer and fails the update if validation issues are detected, ensuring the policy conforms to the Cedar schema and tool context. IGNORE_ALL_FINDINGS runs the Cedar analyzer but allows updates despite validation warnings. Use FAIL_ON_ANY_FINDINGS to ensure policy correctness during updates, especially when modifying policy logic or conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdatePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdatePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-