@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-09T19:16:39.261Z")
public interface CfnResourcePolicyProps
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 java.lang.Object |
getBlockPublicPolicy()
Specifies whether to block resource-based policies that allow broad access to the secret.
|
java.lang.Object |
getResourcePolicy()
A JSON-formatted string for an AWS resource-based policy.
|
java.lang.String |
getSecretId()
The ARN or name of the secret to attach the resource-based policy.
|
java.lang.Object getResourcePolicy()
For example policies, see Permissions policy examples .
java.lang.String getSecretId()
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.
default java.lang.Object getBlockPublicPolicy()
By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.
static CfnResourcePolicyProps.Builder builder()
CfnResourcePolicyProps.Builder
of CfnResourcePolicyProps