EnterpriseKey

class EnterpriseKey : KotlinCustomResource

The RecaptchaEnterprise Key resource

Example Usage

Android_key

A basic test of recaptcha enterprise key that can be used by Android apps

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.recaptcha.EnterpriseKey;
import com.pulumi.gcp.recaptcha.EnterpriseKeyArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyAndroidSettingsArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyTestingOptionsArgs;
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 primary = new EnterpriseKey("primary", EnterpriseKeyArgs.builder()
.androidSettings(EnterpriseKeyAndroidSettingsArgs.builder()
.allowAllPackageNames(true)
.allowedPackageNames()
.build())
.displayName("display-name-one")
.labels(Map.of("label-one", "value-one"))
.project("my-project-name")
.testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
.testingScore(0.8)
.build())
.build());
}
}

Ios_key

A basic test of recaptcha enterprise key that can be used by iOS apps

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.recaptcha.EnterpriseKey;
import com.pulumi.gcp.recaptcha.EnterpriseKeyArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyIosSettingsArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyTestingOptionsArgs;
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 primary = new EnterpriseKey("primary", EnterpriseKeyArgs.builder()
.displayName("display-name-one")
.iosSettings(EnterpriseKeyIosSettingsArgs.builder()
.allowAllBundleIds(true)
.allowedBundleIds()
.build())
.labels(Map.of("label-one", "value-one"))
.project("my-project-name")
.testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
.testingScore(1)
.build())
.build());
}
}

Minimal_key

A minimal test of recaptcha enterprise key

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.recaptcha.EnterpriseKey;
import com.pulumi.gcp.recaptcha.EnterpriseKeyArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyWebSettingsArgs;
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 primary = new EnterpriseKey("primary", EnterpriseKeyArgs.builder()
.displayName("display-name-one")
.labels()
.project("my-project-name")
.webSettings(EnterpriseKeyWebSettingsArgs.builder()
.allowAllDomains(true)
.integrationType("SCORE")
.build())
.build());
}
}

Web_key

A basic test of recaptcha enterprise key that can be used by websites

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.recaptcha.EnterpriseKey;
import com.pulumi.gcp.recaptcha.EnterpriseKeyArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyTestingOptionsArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyWebSettingsArgs;
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 primary = new EnterpriseKey("primary", EnterpriseKeyArgs.builder()
.displayName("display-name-one")
.labels(Map.of("label-one", "value-one"))
.project("my-project-name")
.testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
.testingChallenge("NOCAPTCHA")
.testingScore(0.5)
.build())
.webSettings(EnterpriseKeyWebSettingsArgs.builder()
.allowAllDomains(true)
.allowedDomains()
.challengeSecurityPreference("USABILITY")
.integrationType("CHECKBOX")
.build())
.build());
}
}

Web_score_key

A basic test of recaptcha enterprise key with score integration type that can be used by websites

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.recaptcha.EnterpriseKey;
import com.pulumi.gcp.recaptcha.EnterpriseKeyArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyTestingOptionsArgs;
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyWebSettingsArgs;
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 primary = new EnterpriseKey("primary", EnterpriseKeyArgs.builder()
.displayName("display-name-one")
.labels(Map.of("label-one", "value-one"))
.project("my-project-name")
.testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
.testingScore(0.5)
.build())
.webSettings(EnterpriseKeyWebSettingsArgs.builder()
.allowAllDomains(true)
.allowAmpTraffic(false)
.allowedDomains()
.integrationType("SCORE")
.build())
.build());
}
}

Import

Key can be imported using any of these accepted formats* projects/{{project}}/keys/{{name}} * {{project}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import Key using one of the formats above. For exampletf import { id = "projects/{{project}}/keys/{{name}}" to = google_recaptcha_enterprise_key.default }

$ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Key can be imported using one of the formats above. For example
$ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey default projects/{{project}}/keys/{{name}}
$ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey default {{project}}/{{name}}
$ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey default {{name}}

Properties

Link copied to clipboard

Settings for keys that can be used by Android apps.

Link copied to clipboard
val createTime: Output<String>

The timestamp corresponding to the creation of this Key.

Link copied to clipboard
val displayName: Output<String>

Human-readable display name of this key. Modifiable by user.

Link copied to clipboard
val effectiveLabels: Output<Map<String, Any>>

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Settings for keys that can be used by iOS apps.

Link copied to clipboard
val labels: Output<Map<String, String>>?

See Creating and managing labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Link copied to clipboard
val name: Output<String>

The resource name for the Key in the format "projects/{project}/keys/{key}".

Link copied to clipboard
val project: Output<String>

The project for the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
val pulumiLabels: Output<Map<String, Any>>

The combination of labels configured directly on the resource and default labels configured on the provider.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Options for user acceptance testing.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Settings for keys that can be used by websites.