@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.020Z") @Stability(value=Stable) public interface CfnResourcePolicyProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.secretsmanager.*;
Object resourcePolicy;
CfnResourcePolicyProps cfnResourcePolicyProps = CfnResourcePolicyProps.builder()
.resourcePolicy(resourcePolicy)
.secretId("secretId")
// the properties below are optional
.blockPublicPolicy(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResourcePolicyProps.Builder
A builder for
CfnResourcePolicyProps |
static class |
CfnResourcePolicyProps.Jsii$Proxy
An implementation for
CfnResourcePolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnResourcePolicyProps.Builder |
builder() |
default Object |
getBlockPublicPolicy()
Specifies whether to block resource-based policies that allow broad access to the secret.
|
Object |
getResourcePolicy()
A JSON-formatted string for an AWS resource-based policy.
|
String |
getSecretId()
The ARN or name of the secret to attach the resource-based policy.
|
@Stability(value=Stable) @NotNull Object getResourcePolicy()
For example policies, see Permissions policy examples .
@Stability(value=Stable) @NotNull String getSecretId()
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
@Stability(value=Stable) @Nullable default Object getBlockPublicPolicy()
By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.
@Stability(value=Stable) static CfnResourcePolicyProps.Builder builder()
CfnResourcePolicyProps.Builder of CfnResourcePolicyPropsCopyright © 2022. All rights reserved.