com.pulumi.cloudflare.kotlin.ZeroTrustAccessOrganization.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustAccessOrganizationCustomPage
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustAccessOrganizationLoginDesign
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
import kotlin.collections.List
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustAccessOrganizationCustomPage.Companion.toKotlin as zeroTrustAccessOrganizationCustomPageToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustAccessOrganizationLoginDesign.Companion.toKotlin as zeroTrustAccessOrganizationLoginDesignToKotlin
/**
* Builder for [ZeroTrustAccessOrganization].
*/
@PulumiTagMarker
public class ZeroTrustAccessOrganizationResourceBuilder internal constructor() {
public var name: String? = null
public var args: ZeroTrustAccessOrganizationArgs = ZeroTrustAccessOrganizationArgs()
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 ZeroTrustAccessOrganizationArgsBuilder.() -> Unit) {
val builder = ZeroTrustAccessOrganizationArgsBuilder()
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(): ZeroTrustAccessOrganization {
val builtJavaResource =
com.pulumi.cloudflare.ZeroTrustAccessOrganization(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ZeroTrustAccessOrganization(builtJavaResource)
}
}
/**
* A Zero Trust organization defines the user login experience.
*/
public class ZeroTrustAccessOrganization internal constructor(
override val javaResource: com.pulumi.cloudflare.ZeroTrustAccessOrganization,
) : KotlinCustomResource(javaResource, ZeroTrustAccessOrganizationMapper) {
/**
* The account identifier to target for the resource. Conflicts with `zone_id`.
*/
public val accountId: Output
get() = javaResource.accountId().applyValue({ args0 -> args0 })
/**
* When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.
*/
public val allowAuthenticateViaWarp: Output?
get() = javaResource.allowAuthenticateViaWarp().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The unique subdomain assigned to your Zero Trust organization.
*/
public val authDomain: Output
get() = javaResource.authDomain().applyValue({ args0 -> args0 })
/**
* When set to true, users skip the identity provider selection step during login.
*/
public val autoRedirectToIdentity: Output?
get() = javaResource.autoRedirectToIdentity().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Custom pages for your Zero Trust organization.
*/
public val customPages: Output>?
get() = javaResource.customPages().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
zeroTrustAccessOrganizationCustomPageToKotlin(args0)
})
})
}).orElse(null)
})
/**
* When set to true, this will disable all editing of Access resources via the Zero Trust Dashboard.
*/
public val isUiReadOnly: Output?
get() = javaResource.isUiReadOnly().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
public val loginDesigns: Output>?
get() = javaResource.loginDesigns().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
zeroTrustAccessOrganizationLoginDesignToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The name of your Zero Trust organization.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`.
*/
public val sessionDuration: Output?
get() = javaResource.sessionDuration().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A description of the reason why the UI read only field is being toggled.
*/
public val uiReadOnlyToggleReason: Output?
get() = javaResource.uiReadOnlyToggleReason().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Must be in the format `300ms` or `2h45m`.
*/
public val userSeatExpirationInactiveTime: Output?
get() = javaResource.userSeatExpirationInactiveTime().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.
*/
public val warpAuthSessionDuration: Output?
get() = javaResource.warpAuthSessionDuration().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The zone identifier to target for the resource. Conflicts with `account_id`.
*/
public val zoneId: Output
get() = javaResource.zoneId().applyValue({ args0 -> args0 })
}
public object ZeroTrustAccessOrganizationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.cloudflare.ZeroTrustAccessOrganization::class == javaResource::class
override fun map(javaResource: Resource): ZeroTrustAccessOrganization =
ZeroTrustAccessOrganization(javaResource as com.pulumi.cloudflare.ZeroTrustAccessOrganization)
}
/**
* @see [ZeroTrustAccessOrganization].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [ZeroTrustAccessOrganization].
*/
public suspend fun zeroTrustAccessOrganization(
name: String,
block: suspend ZeroTrustAccessOrganizationResourceBuilder.() -> Unit,
): ZeroTrustAccessOrganization {
val builder = ZeroTrustAccessOrganizationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [ZeroTrustAccessOrganization].
* @param name The _unique_ name of the resulting resource.
*/
public fun zeroTrustAccessOrganization(name: String): ZeroTrustAccessOrganization {
val builder = ZeroTrustAccessOrganizationResourceBuilder()
builder.name(name)
return builder.build()
}