Class CfnBucketPolicyProps
Properties for defining a CfnBucketPolicy
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBucketPolicyProps : Object, ICfnBucketPolicyProps
Syntax (vb)
Public Class CfnBucketPolicyProps
Inherits Object
Implements ICfnBucketPolicyProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucketpolicy.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.S3;
var policyDocument;
var cfnBucketPolicyProps = new CfnBucketPolicyProps {
Bucket = "bucket",
PolicyDocument = policyDocument
};
Synopsis
Constructors
CfnBucketPolicyProps() |
Properties
Bucket | The name of the Amazon S3 bucket to which the policy applies. |
PolicyDocument | A policy document containing permissions to add to the specified bucket. |
Constructors
CfnBucketPolicyProps()
public CfnBucketPolicyProps()
Properties
Bucket
The name of the Amazon S3 bucket to which the policy applies.
public string Bucket { get; set; }
Property Value
System.String
Remarks
PolicyDocument
A policy document containing permissions to add to the specified bucket.
public object PolicyDocument { get; set; }
Property Value
System.Object
Remarks
In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM. For more information, see the AWS::IAM::Policy PolicyDocument resource description in this guide and Access Policy Language Overview in the Amazon S3 User Guide .