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

com.pulumi.cloudflare.kotlin.ZeroTrustRiskScoreIntegration.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

/**
 * Builder for [ZeroTrustRiskScoreIntegration].
 */
@PulumiTagMarker
public class ZeroTrustRiskScoreIntegrationResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: ZeroTrustRiskScoreIntegrationArgs = ZeroTrustRiskScoreIntegrationArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend ZeroTrustRiskScoreIntegrationArgsBuilder.() -> Unit) {
        val builder = ZeroTrustRiskScoreIntegrationArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): ZeroTrustRiskScoreIntegration {
        val builtJavaResource =
            com.pulumi.cloudflare.ZeroTrustRiskScoreIntegration(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return ZeroTrustRiskScoreIntegration(builtJavaResource)
    }
}

/**
 * The [Risk Score Integration](https://developers.cloudflare.com/cloudflare-one/insights/risk-score/#send-risk-score-to-okta) resource allows you to transmit changes in User Risk Score to a specified vendor such as Okta.
 */
public class ZeroTrustRiskScoreIntegration internal constructor(
    override val javaResource: com.pulumi.cloudflare.ZeroTrustRiskScoreIntegration,
) : KotlinCustomResource(javaResource, ZeroTrustRiskScoreIntegrationMapper) {
    /**
     * The account identifier to target for the resource.
     */
    public val accountId: Output
        get() = javaResource.accountId().applyValue({ args0 -> args0 })

    /**
     * Whether this integration is enabled. If disabled, no risk changes will be exported to the third-party.
     */
    public val active: Output
        get() = javaResource.active().applyValue({ args0 -> args0 })

    /**
     * The type of integration, e.g. 'Okta'. Full list of allowed values can be found here: https://developers.cloudflare.com/api/operations/dlp-zt-risk-score-integration-create#request-body
     */
    public val integrationType: Output
        get() = javaResource.integrationType().applyValue({ args0 -> args0 })

    /**
     * A reference id that can be supplied by the client. Currently this should be set to the Access-Okta IDP ID (a UUIDv4). If omitted, a random UUIDv4 is used. https://developers.cloudflare.com/api/operations/access-identity-providers-get-an-access-identity-provider
     */
    public val referenceId: Output
        get() = javaResource.referenceId().applyValue({ args0 -> args0 })

    /**
     * The base url of the tenant, e.g. 'https://tenant.okta.com'. Must be your Okta Tenant URL and not your custom domain.
     */
    public val tenantUrl: Output
        get() = javaResource.tenantUrl().applyValue({ args0 -> args0 })

    /**
     * The URL for the Shared Signals Framework configuration, e.g. '/.well-known/sse-configuration/{integration*uuid}/'. https://openid.net/specs/openid-sse-framework-1*0.html#rfc.section.6.2.1
     */
    public val wellKnownUrl: Output
        get() = javaResource.wellKnownUrl().applyValue({ args0 -> args0 })
}

public object ZeroTrustRiskScoreIntegrationMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.cloudflare.ZeroTrustRiskScoreIntegration::class == javaResource::class

    override fun map(javaResource: Resource): ZeroTrustRiskScoreIntegration =
        ZeroTrustRiskScoreIntegration(
            javaResource as
                com.pulumi.cloudflare.ZeroTrustRiskScoreIntegration,
        )
}

/**
 * @see [ZeroTrustRiskScoreIntegration].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [ZeroTrustRiskScoreIntegration].
 */
public suspend fun zeroTrustRiskScoreIntegration(
    name: String,
    block: suspend ZeroTrustRiskScoreIntegrationResourceBuilder.() -> Unit,
): ZeroTrustRiskScoreIntegration {
    val builder = ZeroTrustRiskScoreIntegrationResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [ZeroTrustRiskScoreIntegration].
 * @param name The _unique_ name of the resulting resource.
 */
public fun zeroTrustRiskScoreIntegration(name: String): ZeroTrustRiskScoreIntegration {
    val builder = ZeroTrustRiskScoreIntegrationResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy