Interface PutResourcePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<PutResourcePolicyRequest.Builder,,PutResourcePolicyRequest> SdkBuilder<PutResourcePolicyRequest.Builder,,PutResourcePolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutResourcePolicyRequest
@Mutable
@NotThreadSafe
public static interface PutResourcePolicyRequest.Builder
extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptionexpectedRevisionId(String expectedRevisionId) The expected revision identifier of the resource policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The JSON-formatted resource policy to associate with the knowledge base.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.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
-
resourceArn
The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The JSON-formatted resource policy to associate with the knowledge base.
- Parameters:
policy- The JSON-formatted resource policy to associate with the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedRevisionId
The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify the
revisionIdfrom the most recentGetResourcePolicyorPutResourcePolicyresponse.- Parameters:
expectedRevisionId- The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify therevisionIdfrom the most recentGetResourcePolicyorPutResourcePolicyresponse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutResourcePolicyRequest.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
PutResourcePolicyRequest.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.
-