AccessServiceToken

class AccessServiceToken : KotlinCustomResource

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>

Properties

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

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

Link copied to clipboard
val clientId: Output<String>

UUID client ID associated with the Service Token. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val clientSecret: Output<String>

A secret for interacting with Access protocols. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val expiresAt: Output<String>

Date when the token expires.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val minDaysForRenewal: Output<Int>?

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

Link copied to clipboard
val name: Output<String>

Friendly name of the token's intent.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>?

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