AccessServiceTokenArgs

data class AccessServiceTokenArgs(val accountId: 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.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessServiceToken;
import com.pulumi.cloudflare.AccessServiceTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myApp = new AccessServiceToken("myApp", AccessServiceTokenArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.minDaysForRenewal(30)
.name("CI/CD app renewed")
.build());
}
}

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, 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 minDaysForRenewal: Output<Int>? = null

Refresh the token if terraform is run within the specified amount of days before expiration

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