All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyResource.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iotsitewise.kotlin.outputs

import kotlin.Suppress

/**
 * The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
 * @property portal Identifies an AWS IoT SiteWise Monitor portal.
 * @property project Identifies a specific AWS IoT SiteWise Monitor project.
 */
public data class AccessPolicyResource(
    public val portal: AccessPolicyPortal? = null,
    public val project: AccessPolicyProject? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AccessPolicyResource): AccessPolicyResource = AccessPolicyResource(
            portal = javaType.portal().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyPortal.Companion.toKotlin(args0)
                })
            }).orElse(null),
            project = javaType.project().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyProject.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy