public static interface PutResourcePolicyRequest.Builder extends SecretsManagerRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest.Builder |
blockPublicPolicy(Boolean blockPublicPolicy)
(Optional) If you set the parameter,
BlockPublicPolicy to true, then you block resource-based
policies that allow broad access to the secret. |
PutResourcePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutResourcePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutResourcePolicyRequest.Builder |
resourcePolicy(String resourcePolicy)
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services
resource-based policy.
|
PutResourcePolicyRequest.Builder |
secretId(String secretId)
Specifies the secret that you want to attach the resource-based policy.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutResourcePolicyRequest.Builder secretId(String secretId)
Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
secretId - Specifies the secret that you want to attach the resource-based policy. You can specify either the ARN
or the friendly name of the secret.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
PutResourcePolicyRequest.Builder resourcePolicy(String resourcePolicy)
A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For information on how to format a JSON parameter for the various command line tool environments, see Using JSON for Parameters in the CLI User Guide.
resourcePolicy - A JSON-formatted string constructed according to the grammar and syntax for an Amazon Web Services
resource-based policy. The policy in the string identifies who can access or manage this secret and
its versions. For information on how to format a JSON parameter for the various command line tool
environments, see Using
JSON for Parameters in the CLI User Guide.PutResourcePolicyRequest.Builder blockPublicPolicy(Boolean blockPublicPolicy)
(Optional) If you set the parameter, BlockPublicPolicy to true, then you block resource-based
policies that allow broad access to the secret.
blockPublicPolicy - (Optional) If you set the parameter, BlockPublicPolicy to true, then you block
resource-based policies that allow broad access to the secret.PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.