Class CfnBucketPolicyMixinProps
Properties for CfnBucketPolicyPropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.S3Outposts
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnBucketPolicyMixinProps : ICfnBucketPolicyMixinProps
Syntax (vb)
Public Class CfnBucketPolicyMixinProps Implements ICfnBucketPolicyMixinProps
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.CfnPropertyMixins.AWS.S3Outposts;
var policyDocument;
var cfnBucketPolicyMixinProps = new CfnBucketPolicyMixinProps {
Bucket = "bucket",
PolicyDocument = policyDocument
};
Synopsis
Constructors
| CfnBucketPolicyMixinProps() | Properties for CfnBucketPolicyPropsMixin. |
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
CfnBucketPolicyMixinProps()
Properties for CfnBucketPolicyPropsMixin.
public CfnBucketPolicyMixinProps()
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.CfnPropertyMixins.AWS.S3Outposts;
var policyDocument;
var cfnBucketPolicyMixinProps = new CfnBucketPolicyMixinProps {
Bucket = "bucket",
PolicyDocument = policyDocument
};
Properties
Bucket
The name of the Amazon S3 Outposts bucket to which the policy applies.
public string? Bucket { get; set; }
Property Value
Remarks
PolicyDocument
A policy document containing permissions to add to the specified bucket.
public object? PolicyDocument { get; set; }
Property Value
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 .