Class CfnBucketPolicyProps
Properties for defining a CfnBucketPolicy
.
Inheritance
System.Object
CfnBucketPolicyProps
Implements
Namespace: Amazon.CDK.AWS.S3Outposts
Assembly: Amazon.CDK.AWS.S3Outposts.dll
Syntax (csharp)
public class CfnBucketPolicyProps : Object, ICfnBucketPolicyProps
Syntax (vb)
Public Class CfnBucketPolicyProps
Inherits Object
Implements ICfnBucketPolicyProps
Remarks
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.S3Outposts;
var policyDocument;
var cfnBucketPolicyProps = new CfnBucketPolicyProps {
Bucket = "bucket",
PolicyDocument = policyDocument
};
Synopsis
Constructors
CfnBucketPolicyProps() |
Properties
Bucket | The name of the Amazon S3 Outposts 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 Outposts 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 .