Interface ICfnBucketPolicyProps
Properties for defining a CfnBucketPolicy
.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnBucketPolicyProps
Syntax (vb)
Public Interface 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
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. |
Properties
Bucket
The name of the Amazon S3 bucket to which the policy applies.
string Bucket { get; }
Property Value
System.String
Remarks
PolicyDocument
A policy document containing permissions to add to the specified bucket.
object PolicyDocument { get; }
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 .