ResourcePolicyArgs

data class ResourcePolicyArgs(val resourceArn: Output<String>? = null, val resourcePolicy: Output<Any>? = null) : ConvertibleToJava<ResourcePolicyArgs>

Resource Type definition for AWS::CloudTrail::ResourcePolicy

Constructors

Link copied to clipboard
fun ResourcePolicyArgs(resourceArn: Output<String>? = null, resourcePolicy: Output<Any>? = null)

Functions

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

Properties

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

The ARN of the AWS CloudTrail resource to which the policy applies.

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

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