BucketPolicyArgs

data class BucketPolicyArgs(val bucket: Output<String>? = null, val policyDocument: Output<Any>? = null) : ConvertibleToJava<BucketPolicyArgs>

Resource Type definition for AWS::S3::BucketPolicy

Constructors

Link copied to clipboard
fun BucketPolicyArgs(bucket: Output<String>? = null, policyDocument: Output<Any>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BucketPolicyArgs

Properties

Link copied to clipboard
val bucket: Output<String>? = null

The name of the Amazon S3 bucket to which the policy applies.

Link copied to clipboard
val policyDocument: Output<Any>? = null

A policy document containing permissions to add to the specified bucket. 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.