AccessServiceTokenArgs

data class AccessServiceTokenArgs(val accountId: Output<String>? = null, val duration: Output<String>? = null, val minDaysForRenewal: Output<Int>? = null, val name: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AccessServiceTokenArgs>

Access Service Tokens are used for service-to-service communication when an application is behind Cloudflare Access.

Import

If you are importing an Access Service Token you will not have the client_secret available in the state for use. The client_secret is only available once, at creation. In most cases, it is better to just create a new resource should you need to reference it in other resources.

$ pulumi import cloudflare:index/accessServiceToken:AccessServiceToken example <account_id>/<service_token_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, duration: Output<String>? = null, minDaysForRenewal: Output<Int>? = null, name: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Conflicts with zone_id.

Link copied to clipboard
val duration: Output<String>? = null

Length of time the service token is valid for. Available values: 8760h, 17520h, 43800h, 87600h, forever.

Link copied to clipboard
val minDaysForRenewal: Output<Int>? = null
Link copied to clipboard
val name: Output<String>? = null

Friendly name of the token's intent.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource. Conflicts with account_id.

Functions

Link copied to clipboard
open override fun toJava(): AccessServiceTokenArgs