Show / Hide Table of Contents

Interface ICfnResourcePolicyProps

Properties for defining a CfnResourcePolicy.

Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnResourcePolicyProps
Syntax (vb)
Public Interface ICfnResourcePolicyProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-resourcepolicy.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SecretsManager;

             var resourcePolicy;

             var cfnResourcePolicyProps = new CfnResourcePolicyProps {
                 ResourcePolicy = resourcePolicy,
                 SecretId = "secretId",

                 // the properties below are optional
                 BlockPublicPolicy = false
             };

Synopsis

Properties

BlockPublicPolicy

Specifies whether to block resource-based policies that allow broad access to the secret.

ResourcePolicy

A JSON-formatted string for an AWS resource-based policy.

SecretId

The ARN or name of the secret to attach the resource-based policy.

Properties

BlockPublicPolicy

Specifies whether to block resource-based policies that allow broad access to the secret.

object? BlockPublicPolicy { get; }
Property Value

object

Remarks

By default, Secrets Manager blocks policies that allow broad access, for example those that use a wildcard for the principal.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-resourcepolicy.html#cfn-secretsmanager-resourcepolicy-blockpublicpolicy

ResourcePolicy

A JSON-formatted string for an AWS resource-based policy.

object ResourcePolicy { get; }
Property Value

object

Remarks

For example policies, see Permissions policy examples .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-resourcepolicy.html#cfn-secretsmanager-resourcepolicy-resourcepolicy

SecretId

The ARN or name of the secret to attach the resource-based policy.

string SecretId { get; }
Property Value

string

Remarks

For an ARN, we recommend that you specify a complete ARN rather than a partial ARN.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-resourcepolicy.html#cfn-secretsmanager-resourcepolicy-secretid

Back to top Generated by DocFX