com.pulumi.awsnative.secretsmanager.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.secretsmanager.kotlin.outputs
import kotlin.Any
import kotlin.String
import kotlin.Suppress
/**
*
* @property id The Arn of the secret.
* @property resourcePolicy A JSON-formatted string for an AWS resource-based policy.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SecretsManager::ResourcePolicy` for more information about the expected schema for this property.
*/
public data class GetResourcePolicyResult(
public val id: String? = null,
public val resourcePolicy: Any? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.secretsmanager.outputs.GetResourcePolicyResult): GetResourcePolicyResult = GetResourcePolicyResult(
id = javaType.id().map({ args0 -> args0 }).orElse(null),
resourcePolicy = javaType.resourcePolicy().map({ args0 -> args0 }).orElse(null),
)
}
}