
com.pulumi.awsnative.cloudtrail.kotlin.outputs.GetResourcePolicyResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudtrail.kotlin.outputs
import kotlin.Any
import kotlin.Suppress
/**
*
* @property resourcePolicy 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.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::CloudTrail::ResourcePolicy` for more information about the expected schema for this property.
*/
public data class GetResourcePolicyResult(
public val resourcePolicy: Any? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudtrail.outputs.GetResourcePolicyResult): GetResourcePolicyResult = GetResourcePolicyResult(
resourcePolicy = javaType.resourcePolicy().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy