Interface PutResourcePolicyRequest.Builder
- All Superinterfaces:
AmpRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutResourcePolicyRequest.Builder,,PutResourcePolicyRequest> SdkBuilder<PutResourcePolicyRequest.Builder,,PutResourcePolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutResourcePolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyDocument(String policyDocument) The JSON policy document to use as the resource-based policy.revisionId(String revisionId) The revision ID of the policy to update.workspaceId(String workspaceId) The ID of the workspace to attach the resource-based policy to.Methods inherited from interface software.amazon.awssdk.services.amp.model.AmpRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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
-
workspaceId
The ID of the workspace to attach the resource-based policy to.
- Parameters:
workspaceId- The ID of the workspace to attach the resource-based policy to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.
- Parameters:
policyDocument- The JSON policy document to use as the resource-based policy. This policy defines the permissions that other AWS accounts or services have to access your workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the request is safe to retry (idempotent).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
The revision ID of the policy to update. Use this parameter to ensure that you are updating the correct version of the policy. If you don't specify a revision ID, the policy is updated regardless of its current revision.
For the first PUT request on a workspace that doesn't have an existing resource policy, you can specify
NO_POLICYas the revision ID.- Parameters:
revisionId- The revision ID of the policy to update. Use this parameter to ensure that you are updating the correct version of the policy. If you don't specify a revision ID, the policy is updated regardless of its current revision.For the first PUT request on a workspace that doesn't have an existing resource policy, you can specify
NO_POLICYas the revision ID.- 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.
-