WorkloadIdentityPoolArgs

data class WorkloadIdentityPoolArgs(val description: Output<String>? = null, val disabled: Output<Boolean>? = null, val displayName: Output<String>? = null, val project: Output<String>? = null, val workloadIdentityPoolId: Output<String>? = null) : ConvertibleToJava<WorkloadIdentityPoolArgs>

Represents a collection of external workload identities. You can define IAM policies to grant these identities access to Google Cloud resources. To get more information about WorkloadIdentityPool, see:

Example Usage

Iam Workload Identity Pool Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.iam.WorkloadIdentityPool;
import com.pulumi.gcp.iam.WorkloadIdentityPoolArgs;
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 example = new WorkloadIdentityPool("example", WorkloadIdentityPoolArgs.builder()
.workloadIdentityPoolId("example-pool")
.build());
}
}

Iam Workload Identity Pool Full

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.iam.WorkloadIdentityPool;
import com.pulumi.gcp.iam.WorkloadIdentityPoolArgs;
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 example = new WorkloadIdentityPool("example", WorkloadIdentityPoolArgs.builder()
.description("Identity pool for automated test")
.disabled(true)
.displayName("Name of pool")
.workloadIdentityPoolId("example-pool")
.build());
}
}

Import

WorkloadIdentityPool can be imported using any of these accepted formats

$ pulumi import gcp:iam/workloadIdentityPool:WorkloadIdentityPool default projects/{{project}}/locations/global/workloadIdentityPools/{{workload_identity_pool_id}}
$ pulumi import gcp:iam/workloadIdentityPool:WorkloadIdentityPool default {{project}}/{{workload_identity_pool_id}}
$ pulumi import gcp:iam/workloadIdentityPool:WorkloadIdentityPool default {{workload_identity_pool_id}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, disabled: Output<Boolean>? = null, displayName: Output<String>? = null, project: Output<String>? = null, workloadIdentityPoolId: Output<String>? = null)

Properties

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

A description of the pool. Cannot exceed 256 characters.

Link copied to clipboard
val disabled: Output<Boolean>? = null

Whether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again.

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

A display name for the pool. Cannot exceed 32 characters.

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

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

The ID to use for the pool, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters a-z0-9-. The prefix gcp- is reserved for use by Google, and may not be specified.

Functions

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