@Stability(value=Stable) public static final class CfnResourcePolicyProps.Builder extends Object implements software.amazon.jsii.Builder<CfnResourcePolicyProps>
CfnResourcePolicyProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnResourcePolicyProps.Builder |
blockPublicPolicy(Boolean blockPublicPolicy)
Sets the value of
CfnResourcePolicyProps.getBlockPublicPolicy() |
CfnResourcePolicyProps.Builder |
blockPublicPolicy(IResolvable blockPublicPolicy)
Sets the value of
CfnResourcePolicyProps.getBlockPublicPolicy() |
CfnResourcePolicyProps |
build()
Builds the configured instance.
|
CfnResourcePolicyProps.Builder |
resourcePolicy(Object resourcePolicy)
Sets the value of
CfnResourcePolicyProps.getResourcePolicy() |
CfnResourcePolicyProps.Builder |
secretId(String secretId)
Sets the value of
CfnResourcePolicyProps.getSecretId() |
@Stability(value=Stable) public CfnResourcePolicyProps.Builder resourcePolicy(Object resourcePolicy)
CfnResourcePolicyProps.getResourcePolicy()resourcePolicy - A JSON-formatted string for an AWS resource-based policy. This parameter is required.
For example policies, see Permissions policy examples .this@Stability(value=Stable) public CfnResourcePolicyProps.Builder secretId(String secretId)
CfnResourcePolicyProps.getSecretId()secretId - The ARN or name of the secret to attach the resource-based policy. This parameter is required.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.this@Stability(value=Stable) public CfnResourcePolicyProps.Builder blockPublicPolicy(Boolean blockPublicPolicy)
CfnResourcePolicyProps.getBlockPublicPolicy()blockPublicPolicy - Specifies whether to block resource-based policies that allow broad access to the secret.
By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.this@Stability(value=Stable) public CfnResourcePolicyProps.Builder blockPublicPolicy(IResolvable blockPublicPolicy)
CfnResourcePolicyProps.getBlockPublicPolicy()blockPublicPolicy - Specifies whether to block resource-based policies that allow broad access to the secret.
By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.this@Stability(value=Stable) public CfnResourcePolicyProps build()
build in interface software.amazon.jsii.Builder<CfnResourcePolicyProps>CfnResourcePolicyPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.