public static interface PutResourcePolicyRequest.Builder extends SecretsManagerRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
Modifier and Type | Method and Description |
---|---|
PutResourcePolicyRequest.Builder |
blockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether to block resource-based policies that allow broad access to the secret, for example those
that use a wildcard for the principal.
|
PutResourcePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutResourcePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutResourcePolicyRequest.Builder |
resourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
PutResourcePolicyRequest.Builder |
secretId(String secretId)
The ARN or name of the secret to attach the resource-based policy.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
PutResourcePolicyRequest.Builder secretId(String secretId)
The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
secretId
- The ARN or name of the secret to attach the resource-based policy.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
PutResourcePolicyRequest.Builder resourcePolicy(String resourcePolicy)
A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see Permissions policy examples.
resourcePolicy
- A JSON-formatted string for an Amazon Web Services resource-based policy. For example policies, see
Permissions policy examples.PutResourcePolicyRequest.Builder blockPublicPolicy(Boolean blockPublicPolicy)
Specifies whether to block resource-based policies that allow broad access to the secret, for example those that use a wildcard for the principal. By default, public policies aren't blocked.
blockPublicPolicy
- Specifies whether to block resource-based policies that allow broad access to the secret, for example
those that use a wildcard for the principal. By default, public policies aren't blocked.PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
PutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.