Interface DeleteResourcePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DeleteResourcePolicyRequest.Builder,,DeleteResourcePolicyRequest> SdkBuilder<DeleteResourcePolicyRequest.Builder,,DeleteResourcePolicyRequest> SdkPojo,SdkRequest.Builder,SsmRequest.Builder
- Enclosing class:
DeleteResourcePolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeletionMode(String deletionMode) Specifies the intended outcome of the operation.deletionMode(DeletionMode deletionMode) Specifies the intended outcome of the operation.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyHash(String policyHash) ID of the current policy version.The policy ID.resourceArn(String resourceArn) Amazon Resource Name (ARN) of the resource to which the policies are attached.Methods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.ssm.model.SsmRequest.Builder
build
-
Method Details
-
resourceArn
Amazon Resource Name (ARN) of the resource to which the policies are attached.
- Parameters:
resourceArn- Amazon Resource Name (ARN) of the resource to which the policies are attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
The policy ID.
- Parameters:
policyId- The policy ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyHash
ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.
- Parameters:
policyHash- ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletionMode
Specifies the intended outcome of the operation. Applies only to the
Documentresource type. The operation ignores this parameter for other resource types. Optional. Defaults toRemoveSharing.-
RemoveSharing– Deletes the resource policy and removes sharing of the document. -
RollbackMigration– Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.
- Parameters:
deletionMode- Specifies the intended outcome of the operation. Applies only to theDocumentresource type. The operation ignores this parameter for other resource types. Optional. Defaults toRemoveSharing.-
RemoveSharing– Deletes the resource policy and removes sharing of the document. -
RollbackMigration– Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
deletionMode
Specifies the intended outcome of the operation. Applies only to the
Documentresource type. The operation ignores this parameter for other resource types. Optional. Defaults toRemoveSharing.-
RemoveSharing– Deletes the resource policy and removes sharing of the document. -
RollbackMigration– Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.
- Parameters:
deletionMode- Specifies the intended outcome of the operation. Applies only to theDocumentresource type. The operation ignores this parameter for other resource types. Optional. Defaults toRemoveSharing.-
RemoveSharing– Deletes the resource policy and removes sharing of the document. -
RollbackMigration– Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
DeleteResourcePolicyRequest.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
DeleteResourcePolicyRequest.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.
-