Class CfnResourcePolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.secretsmanager.CfnResourcePolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
- Enclosing class:
CfnResourcePolicyPropsMixin
@Stability(Stable)
public static final class CfnResourcePolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
A fluent builder for
CfnResourcePolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionblockPublicPolicy(Boolean blockPublicPolicy) Specifies whether to block resource-based policies that allow broad access to the secret.blockPublicPolicy(IResolvable blockPublicPolicy) Specifies whether to block resource-based policies that allow broad access to the secret.build()create()create(CfnPropertyMixinOptions options) resourcePolicy(Object resourcePolicy) A JSON-formatted string for an AWS resource-based policy.The ARN or name of the secret to attach the resource-based policy.secretId(ISecretRef secretId) The ARN or name of the secret to attach the resource-based policy.
-
Method Details
-
create
@Stability(Stable) public static CfnResourcePolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
blockPublicPolicy
@Stability(Stable) public CfnResourcePolicyPropsMixin.Builder blockPublicPolicy(Boolean 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.
- Parameters:
blockPublicPolicy- Specifies whether to block resource-based policies that allow broad access to the secret. This parameter is required.- Returns:
this- See Also:
-
blockPublicPolicy
@Stability(Stable) public CfnResourcePolicyPropsMixin.Builder blockPublicPolicy(IResolvable 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.
- Parameters:
blockPublicPolicy- Specifies whether to block resource-based policies that allow broad access to the secret. This parameter is required.- Returns:
this- See Also:
-
resourcePolicy
A JSON-formatted string for an AWS resource-based policy.For example policies, see Permissions policy examples .
- Parameters:
resourcePolicy- A JSON-formatted string for an AWS resource-based policy. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
secretId- The ARN or name of the secret to attach the resource-based policy. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
secretId- The ARN or name of the secret to attach the resource-based policy. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>- Returns:
- a newly built instance of
CfnResourcePolicyPropsMixin.
-