![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.organizations.kotlin.outputs.GetResourcePolicyResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.organizations.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The Amazon Resource Name (ARN) of the resource policy.
* @property content The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Organizations::ResourcePolicy` for more information about the expected schema for this property.
* @property id The unique identifier (ID) associated with this resource policy.
* @property tags A list of tags that you want to attach to the resource policy
*/
public data class GetResourcePolicyResult(
public val arn: String? = null,
public val content: Any? = null,
public val id: String? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.organizations.outputs.GetResourcePolicyResult): GetResourcePolicyResult = GetResourcePolicyResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
content = javaType.content().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy