com.pulumi.awsnative.lex.kotlin.outputs.GetResourcePolicyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lex.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property id The identifier of the resource policy.
* @property policy A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow IAM syntax. If the policy isn't valid, Amazon Lex returns a validation exception.
* @property resourceArn The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
* @property revisionId Specifies the current revision of a resource policy.
*/
public data class GetResourcePolicyResult(
public val id: String? = null,
public val policy: ResourcePolicyPolicy? = null,
public val resourceArn: String? = null,
public val revisionId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lex.outputs.GetResourcePolicyResult): GetResourcePolicyResult = GetResourcePolicyResult(
id = javaType.id().map({ args0 -> args0 }).orElse(null),
policy = javaType.policy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lex.kotlin.outputs.ResourcePolicyPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
resourceArn = javaType.resourceArn().map({ args0 -> args0 }).orElse(null),
revisionId = javaType.revisionId().map({ args0 -> args0 }).orElse(null),
)
}
}