interface CfnResourcePolicyMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SecretsManager.Mixins.CfnResourcePolicyMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssecretsmanager/mixins#CfnResourcePolicyMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.secretsmanager.mixins.CfnResourcePolicyMixinProps |
Python | aws_cdk.mixins_preview.aws_secretsmanager.mixins.CfnResourcePolicyMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_secretsmanager » mixins » CfnResourcePolicyMixinProps |
Properties for CfnResourcePolicyPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as secretsmanager_mixins } from '@aws-cdk/mixins-preview/aws-secretsmanager';
declare const resourcePolicy: any;
const cfnResourcePolicyMixinProps: secretsmanager_mixins.CfnResourcePolicyMixinProps = {
blockPublicPolicy: false,
resourcePolicy: resourcePolicy,
secretId: 'secretId',
};
Properties
| Name | Type | Description |
|---|---|---|
| block | boolean | IResolvable | Specifies whether to block resource-based policies that allow broad access to the secret. |
| resource | any | A JSON-formatted string for an AWS resource-based policy. |
| secret | string | The ARN or name of the secret to attach the resource-based policy. |
blockPublicPolicy?
Type:
boolean | IResolvable
(optional)
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.
resourcePolicy?
Type:
any
(optional)
A JSON-formatted string for an AWS resource-based policy.
For example policies, see Permissions policy examples .
secretId?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript