All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.recaptcha.kotlin.EnterpriseKeyArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.recaptcha.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.recaptcha.EnterpriseKeyArgs.builder
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyAndroidSettingsArgs
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyAndroidSettingsArgsBuilder
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyIosSettingsArgs
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyIosSettingsArgsBuilder
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyTestingOptionsArgs
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyTestingOptionsArgsBuilder
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyWafSettingsArgs
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyWafSettingsArgsBuilder
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyWebSettingsArgs
import com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyWebSettingsArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The RecaptchaEnterprise Key resource
 * ## Example Usage
 * ### Android_key
 * A basic test of recaptcha enterprise key that can be used by Android apps
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.recaptcha.EnterpriseKey("primary", {
 *     displayName: "display-name-one",
 *     androidSettings: {
 *         allowAllPackageNames: true,
 *         allowedPackageNames: [],
 *     },
 *     project: "my-project-name",
 *     testingOptions: {
 *         testingScore: 0.8,
 *     },
 *     labels: {
 *         "label-one": "value-one",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.recaptcha.EnterpriseKey("primary",
 *     display_name="display-name-one",
 *     android_settings={
 *         "allow_all_package_names": True,
 *         "allowed_package_names": [],
 *     },
 *     project="my-project-name",
 *     testing_options={
 *         "testing_score": 0.8,
 *     },
 *     labels={
 *         "label-one": "value-one",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Recaptcha.EnterpriseKey("primary", new()
 *     {
 *         DisplayName = "display-name-one",
 *         AndroidSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyAndroidSettingsArgs
 *         {
 *             AllowAllPackageNames = true,
 *             AllowedPackageNames = new() { },
 *         },
 *         Project = "my-project-name",
 *         TestingOptions = new Gcp.Recaptcha.Inputs.EnterpriseKeyTestingOptionsArgs
 *         {
 *             TestingScore = 0.8,
 *         },
 *         Labels =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/recaptcha"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := recaptcha.NewEnterpriseKey(ctx, "primary", &recaptcha.EnterpriseKeyArgs{
 * 			DisplayName: pulumi.String("display-name-one"),
 * 			AndroidSettings: &recaptcha.EnterpriseKeyAndroidSettingsArgs{
 * 				AllowAllPackageNames: pulumi.Bool(true),
 * 				AllowedPackageNames:  pulumi.StringArray{},
 * 			},
 * 			Project: pulumi.String("my-project-name"),
 * 			TestingOptions: &recaptcha.EnterpriseKeyTestingOptionsArgs{
 * 				TestingScore: pulumi.Float64(0.8),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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()
 *             .displayName("display-name-one")
 *             .androidSettings(EnterpriseKeyAndroidSettingsArgs.builder()
 *                 .allowAllPackageNames(true)
 *                 .allowedPackageNames()
 *                 .build())
 *             .project("my-project-name")
 *             .testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
 *                 .testingScore(0.8)
 *                 .build())
 *             .labels(Map.of("label-one", "value-one"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:recaptcha:EnterpriseKey
 *     properties:
 *       displayName: display-name-one
 *       androidSettings:
 *         allowAllPackageNames: true
 *         allowedPackageNames: []
 *       project: my-project-name
 *       testingOptions:
 *         testingScore: 0.8
 *       labels:
 *         label-one: value-one
 * ```
 * 
 * ### Ios_key
 * A basic test of recaptcha enterprise key that can be used by iOS apps
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.recaptcha.EnterpriseKey("primary", {
 *     displayName: "display-name-one",
 *     iosSettings: {
 *         allowAllBundleIds: true,
 *         allowedBundleIds: [],
 *     },
 *     project: "my-project-name",
 *     testingOptions: {
 *         testingScore: 1,
 *     },
 *     labels: {
 *         "label-one": "value-one",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.recaptcha.EnterpriseKey("primary",
 *     display_name="display-name-one",
 *     ios_settings={
 *         "allow_all_bundle_ids": True,
 *         "allowed_bundle_ids": [],
 *     },
 *     project="my-project-name",
 *     testing_options={
 *         "testing_score": 1,
 *     },
 *     labels={
 *         "label-one": "value-one",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Recaptcha.EnterpriseKey("primary", new()
 *     {
 *         DisplayName = "display-name-one",
 *         IosSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyIosSettingsArgs
 *         {
 *             AllowAllBundleIds = true,
 *             AllowedBundleIds = new() { },
 *         },
 *         Project = "my-project-name",
 *         TestingOptions = new Gcp.Recaptcha.Inputs.EnterpriseKeyTestingOptionsArgs
 *         {
 *             TestingScore = 1,
 *         },
 *         Labels =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/recaptcha"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := recaptcha.NewEnterpriseKey(ctx, "primary", &recaptcha.EnterpriseKeyArgs{
 * 			DisplayName: pulumi.String("display-name-one"),
 * 			IosSettings: &recaptcha.EnterpriseKeyIosSettingsArgs{
 * 				AllowAllBundleIds: pulumi.Bool(true),
 * 				AllowedBundleIds:  pulumi.StringArray{},
 * 			},
 * 			Project: pulumi.String("my-project-name"),
 * 			TestingOptions: &recaptcha.EnterpriseKeyTestingOptionsArgs{
 * 				TestingScore: pulumi.Float64(1),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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())
 *             .project("my-project-name")
 *             .testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
 *                 .testingScore(1)
 *                 .build())
 *             .labels(Map.of("label-one", "value-one"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:recaptcha:EnterpriseKey
 *     properties:
 *       displayName: display-name-one
 *       iosSettings:
 *         allowAllBundleIds: true
 *         allowedBundleIds: []
 *       project: my-project-name
 *       testingOptions:
 *         testingScore: 1
 *       labels:
 *         label-one: value-one
 * ```
 * 
 * ### Minimal_key
 * A minimal test of recaptcha enterprise key
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.recaptcha.EnterpriseKey("primary", {
 *     displayName: "display-name-one",
 *     project: "my-project-name",
 *     webSettings: {
 *         integrationType: "SCORE",
 *         allowAllDomains: true,
 *     },
 *     labels: {},
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.recaptcha.EnterpriseKey("primary",
 *     display_name="display-name-one",
 *     project="my-project-name",
 *     web_settings={
 *         "integration_type": "SCORE",
 *         "allow_all_domains": True,
 *     },
 *     labels={})
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Recaptcha.EnterpriseKey("primary", new()
 *     {
 *         DisplayName = "display-name-one",
 *         Project = "my-project-name",
 *         WebSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyWebSettingsArgs
 *         {
 *             IntegrationType = "SCORE",
 *             AllowAllDomains = true,
 *         },
 *         Labels = null,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/recaptcha"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := recaptcha.NewEnterpriseKey(ctx, "primary", &recaptcha.EnterpriseKeyArgs{
 * 			DisplayName: pulumi.String("display-name-one"),
 * 			Project:     pulumi.String("my-project-name"),
 * 			WebSettings: &recaptcha.EnterpriseKeyWebSettingsArgs{
 * 				IntegrationType: pulumi.String("SCORE"),
 * 				AllowAllDomains: pulumi.Bool(true),
 * 			},
 * 			Labels: nil,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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")
 *             .project("my-project-name")
 *             .webSettings(EnterpriseKeyWebSettingsArgs.builder()
 *                 .integrationType("SCORE")
 *                 .allowAllDomains(true)
 *                 .build())
 *             .labels()
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:recaptcha:EnterpriseKey
 *     properties:
 *       displayName: display-name-one
 *       project: my-project-name
 *       webSettings:
 *         integrationType: SCORE
 *         allowAllDomains: true
 *       labels: {}
 * ```
 * 
 * ### Waf_key
 * A basic test of recaptcha enterprise key that includes WAF settings
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.recaptcha.EnterpriseKey("primary", {
 *     displayName: "display-name-one",
 *     project: "my-project-name",
 *     testingOptions: {
 *         testingChallenge: "NOCAPTCHA",
 *         testingScore: 0.5,
 *     },
 *     wafSettings: {
 *         wafFeature: "CHALLENGE_PAGE",
 *         wafService: "CA",
 *     },
 *     webSettings: {
 *         integrationType: "INVISIBLE",
 *         allowAllDomains: true,
 *         allowedDomains: [],
 *         challengeSecurityPreference: "USABILITY",
 *     },
 *     labels: {
 *         "label-one": "value-one",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.recaptcha.EnterpriseKey("primary",
 *     display_name="display-name-one",
 *     project="my-project-name",
 *     testing_options={
 *         "testing_challenge": "NOCAPTCHA",
 *         "testing_score": 0.5,
 *     },
 *     waf_settings={
 *         "waf_feature": "CHALLENGE_PAGE",
 *         "waf_service": "CA",
 *     },
 *     web_settings={
 *         "integration_type": "INVISIBLE",
 *         "allow_all_domains": True,
 *         "allowed_domains": [],
 *         "challenge_security_preference": "USABILITY",
 *     },
 *     labels={
 *         "label-one": "value-one",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Recaptcha.EnterpriseKey("primary", new()
 *     {
 *         DisplayName = "display-name-one",
 *         Project = "my-project-name",
 *         TestingOptions = new Gcp.Recaptcha.Inputs.EnterpriseKeyTestingOptionsArgs
 *         {
 *             TestingChallenge = "NOCAPTCHA",
 *             TestingScore = 0.5,
 *         },
 *         WafSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyWafSettingsArgs
 *         {
 *             WafFeature = "CHALLENGE_PAGE",
 *             WafService = "CA",
 *         },
 *         WebSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyWebSettingsArgs
 *         {
 *             IntegrationType = "INVISIBLE",
 *             AllowAllDomains = true,
 *             AllowedDomains = new() { },
 *             ChallengeSecurityPreference = "USABILITY",
 *         },
 *         Labels =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/recaptcha"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := recaptcha.NewEnterpriseKey(ctx, "primary", &recaptcha.EnterpriseKeyArgs{
 * 			DisplayName: pulumi.String("display-name-one"),
 * 			Project:     pulumi.String("my-project-name"),
 * 			TestingOptions: &recaptcha.EnterpriseKeyTestingOptionsArgs{
 * 				TestingChallenge: pulumi.String("NOCAPTCHA"),
 * 				TestingScore:     pulumi.Float64(0.5),
 * 			},
 * 			WafSettings: &recaptcha.EnterpriseKeyWafSettingsArgs{
 * 				WafFeature: pulumi.String("CHALLENGE_PAGE"),
 * 				WafService: pulumi.String("CA"),
 * 			},
 * 			WebSettings: &recaptcha.EnterpriseKeyWebSettingsArgs{
 * 				IntegrationType:             pulumi.String("INVISIBLE"),
 * 				AllowAllDomains:             pulumi.Bool(true),
 * 				AllowedDomains:              pulumi.StringArray{},
 * 				ChallengeSecurityPreference: pulumi.String("USABILITY"),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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.EnterpriseKeyWafSettingsArgs;
 * 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")
 *             .project("my-project-name")
 *             .testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
 *                 .testingChallenge("NOCAPTCHA")
 *                 .testingScore(0.5)
 *                 .build())
 *             .wafSettings(EnterpriseKeyWafSettingsArgs.builder()
 *                 .wafFeature("CHALLENGE_PAGE")
 *                 .wafService("CA")
 *                 .build())
 *             .webSettings(EnterpriseKeyWebSettingsArgs.builder()
 *                 .integrationType("INVISIBLE")
 *                 .allowAllDomains(true)
 *                 .allowedDomains()
 *                 .challengeSecurityPreference("USABILITY")
 *                 .build())
 *             .labels(Map.of("label-one", "value-one"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:recaptcha:EnterpriseKey
 *     properties:
 *       displayName: display-name-one
 *       project: my-project-name
 *       testingOptions:
 *         testingChallenge: NOCAPTCHA
 *         testingScore: 0.5
 *       wafSettings:
 *         wafFeature: CHALLENGE_PAGE
 *         wafService: CA
 *       webSettings:
 *         integrationType: INVISIBLE
 *         allowAllDomains: true
 *         allowedDomains: []
 *         challengeSecurityPreference: USABILITY
 *       labels:
 *         label-one: value-one
 * ```
 * 
 * ### Web_key
 * A basic test of recaptcha enterprise key that can be used by websites
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.recaptcha.EnterpriseKey("primary", {
 *     displayName: "display-name-one",
 *     project: "my-project-name",
 *     testingOptions: {
 *         testingChallenge: "NOCAPTCHA",
 *         testingScore: 0.5,
 *     },
 *     webSettings: {
 *         integrationType: "CHECKBOX",
 *         allowAllDomains: true,
 *         allowedDomains: [],
 *         challengeSecurityPreference: "USABILITY",
 *     },
 *     labels: {
 *         "label-one": "value-one",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.recaptcha.EnterpriseKey("primary",
 *     display_name="display-name-one",
 *     project="my-project-name",
 *     testing_options={
 *         "testing_challenge": "NOCAPTCHA",
 *         "testing_score": 0.5,
 *     },
 *     web_settings={
 *         "integration_type": "CHECKBOX",
 *         "allow_all_domains": True,
 *         "allowed_domains": [],
 *         "challenge_security_preference": "USABILITY",
 *     },
 *     labels={
 *         "label-one": "value-one",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Recaptcha.EnterpriseKey("primary", new()
 *     {
 *         DisplayName = "display-name-one",
 *         Project = "my-project-name",
 *         TestingOptions = new Gcp.Recaptcha.Inputs.EnterpriseKeyTestingOptionsArgs
 *         {
 *             TestingChallenge = "NOCAPTCHA",
 *             TestingScore = 0.5,
 *         },
 *         WebSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyWebSettingsArgs
 *         {
 *             IntegrationType = "CHECKBOX",
 *             AllowAllDomains = true,
 *             AllowedDomains = new() { },
 *             ChallengeSecurityPreference = "USABILITY",
 *         },
 *         Labels =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/recaptcha"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := recaptcha.NewEnterpriseKey(ctx, "primary", &recaptcha.EnterpriseKeyArgs{
 * 			DisplayName: pulumi.String("display-name-one"),
 * 			Project:     pulumi.String("my-project-name"),
 * 			TestingOptions: &recaptcha.EnterpriseKeyTestingOptionsArgs{
 * 				TestingChallenge: pulumi.String("NOCAPTCHA"),
 * 				TestingScore:     pulumi.Float64(0.5),
 * 			},
 * 			WebSettings: &recaptcha.EnterpriseKeyWebSettingsArgs{
 * 				IntegrationType:             pulumi.String("CHECKBOX"),
 * 				AllowAllDomains:             pulumi.Bool(true),
 * 				AllowedDomains:              pulumi.StringArray{},
 * 				ChallengeSecurityPreference: pulumi.String("USABILITY"),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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")
 *             .project("my-project-name")
 *             .testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
 *                 .testingChallenge("NOCAPTCHA")
 *                 .testingScore(0.5)
 *                 .build())
 *             .webSettings(EnterpriseKeyWebSettingsArgs.builder()
 *                 .integrationType("CHECKBOX")
 *                 .allowAllDomains(true)
 *                 .allowedDomains()
 *                 .challengeSecurityPreference("USABILITY")
 *                 .build())
 *             .labels(Map.of("label-one", "value-one"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:recaptcha:EnterpriseKey
 *     properties:
 *       displayName: display-name-one
 *       project: my-project-name
 *       testingOptions:
 *         testingChallenge: NOCAPTCHA
 *         testingScore: 0.5
 *       webSettings:
 *         integrationType: CHECKBOX
 *         allowAllDomains: true
 *         allowedDomains: []
 *         challengeSecurityPreference: USABILITY
 *       labels:
 *         label-one: value-one
 * ```
 * 
 * ### Web_score_key
 * A basic test of recaptcha enterprise key with score integration type that can be used by websites
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.recaptcha.EnterpriseKey("primary", {
 *     displayName: "display-name-one",
 *     project: "my-project-name",
 *     testingOptions: {
 *         testingScore: 0.5,
 *     },
 *     webSettings: {
 *         integrationType: "SCORE",
 *         allowAllDomains: true,
 *         allowAmpTraffic: false,
 *         allowedDomains: [],
 *     },
 *     labels: {
 *         "label-one": "value-one",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.recaptcha.EnterpriseKey("primary",
 *     display_name="display-name-one",
 *     project="my-project-name",
 *     testing_options={
 *         "testing_score": 0.5,
 *     },
 *     web_settings={
 *         "integration_type": "SCORE",
 *         "allow_all_domains": True,
 *         "allow_amp_traffic": False,
 *         "allowed_domains": [],
 *     },
 *     labels={
 *         "label-one": "value-one",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Recaptcha.EnterpriseKey("primary", new()
 *     {
 *         DisplayName = "display-name-one",
 *         Project = "my-project-name",
 *         TestingOptions = new Gcp.Recaptcha.Inputs.EnterpriseKeyTestingOptionsArgs
 *         {
 *             TestingScore = 0.5,
 *         },
 *         WebSettings = new Gcp.Recaptcha.Inputs.EnterpriseKeyWebSettingsArgs
 *         {
 *             IntegrationType = "SCORE",
 *             AllowAllDomains = true,
 *             AllowAmpTraffic = false,
 *             AllowedDomains = new() { },
 *         },
 *         Labels =
 *         {
 *             { "label-one", "value-one" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/recaptcha"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := recaptcha.NewEnterpriseKey(ctx, "primary", &recaptcha.EnterpriseKeyArgs{
 * 			DisplayName: pulumi.String("display-name-one"),
 * 			Project:     pulumi.String("my-project-name"),
 * 			TestingOptions: &recaptcha.EnterpriseKeyTestingOptionsArgs{
 * 				TestingScore: pulumi.Float64(0.5),
 * 			},
 * 			WebSettings: &recaptcha.EnterpriseKeyWebSettingsArgs{
 * 				IntegrationType: pulumi.String("SCORE"),
 * 				AllowAllDomains: pulumi.Bool(true),
 * 				AllowAmpTraffic: pulumi.Bool(false),
 * 				AllowedDomains:  pulumi.StringArray{},
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label-one": pulumi.String("value-one"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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")
 *             .project("my-project-name")
 *             .testingOptions(EnterpriseKeyTestingOptionsArgs.builder()
 *                 .testingScore(0.5)
 *                 .build())
 *             .webSettings(EnterpriseKeyWebSettingsArgs.builder()
 *                 .integrationType("SCORE")
 *                 .allowAllDomains(true)
 *                 .allowAmpTraffic(false)
 *                 .allowedDomains()
 *                 .build())
 *             .labels(Map.of("label-one", "value-one"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:recaptcha:EnterpriseKey
 *     properties:
 *       displayName: display-name-one
 *       project: my-project-name
 *       testingOptions:
 *         testingScore: 0.5
 *       webSettings:
 *         integrationType: SCORE
 *         allowAllDomains: true
 *         allowAmpTraffic: false
 *         allowedDomains: []
 *       labels:
 *         label-one: value-one
 * ```
 * 
 * ## Import
 * Key can be imported using any of these accepted formats:
 * * `projects/{{project}}/keys/{{name}}`
 * * `{{project}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, Key can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey default projects/{{project}}/keys/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey default {{project}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:recaptcha/enterpriseKey:EnterpriseKey default {{name}}
 * ```
 * @property androidSettings Settings for keys that can be used by Android apps.
 * @property displayName Human-readable display name of this key. Modifiable by user.
 * - - -
 * @property iosSettings Settings for keys that can be used by iOS apps.
 * @property labels See [Creating and managing labels](https://cloud.google.com/recaptcha-enterprise/docs/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.
 * @property project The project for the resource
 * @property testingOptions Options for user acceptance testing.
 * @property wafSettings Settings specific to keys that can be used for WAF (Web Application Firewall).
 * @property webSettings Settings for keys that can be used by websites.
 */
public data class EnterpriseKeyArgs(
    public val androidSettings: Output? = null,
    public val displayName: Output? = null,
    public val iosSettings: Output? = null,
    public val labels: Output>? = null,
    public val project: Output? = null,
    public val testingOptions: Output? = null,
    public val wafSettings: Output? = null,
    public val webSettings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.recaptcha.EnterpriseKeyArgs =
        com.pulumi.gcp.recaptcha.EnterpriseKeyArgs.builder()
            .androidSettings(androidSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .iosSettings(iosSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .project(project?.applyValue({ args0 -> args0 }))
            .testingOptions(testingOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .wafSettings(wafSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .webSettings(webSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EnterpriseKeyArgs].
 */
@PulumiTagMarker
public class EnterpriseKeyArgsBuilder internal constructor() {
    private var androidSettings: Output? = null

    private var displayName: Output? = null

    private var iosSettings: Output? = null

    private var labels: Output>? = null

    private var project: Output? = null

    private var testingOptions: Output? = null

    private var wafSettings: Output? = null

    private var webSettings: Output? = null

    /**
     * @param value Settings for keys that can be used by Android apps.
     */
    @JvmName("fkblbmqnisgfgxfw")
    public suspend fun androidSettings(`value`: Output) {
        this.androidSettings = value
    }

    /**
     * @param value Human-readable display name of this key. Modifiable by user.
     * - - -
     */
    @JvmName("qtphblwuuhvccyxq")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value Settings for keys that can be used by iOS apps.
     */
    @JvmName("vcmdrlahlxrmjjre")
    public suspend fun iosSettings(`value`: Output) {
        this.iosSettings = value
    }

    /**
     * @param value See [Creating and managing labels](https://cloud.google.com/recaptcha-enterprise/docs/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.
     */
    @JvmName("vrcnlhpbbxpdaqcm")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("bswdpvkfmkfdhgwe")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Options for user acceptance testing.
     */
    @JvmName("teelmelwmoysiqrn")
    public suspend fun testingOptions(`value`: Output) {
        this.testingOptions = value
    }

    /**
     * @param value Settings specific to keys that can be used for WAF (Web Application Firewall).
     */
    @JvmName("dxdhspluhkidnqrf")
    public suspend fun wafSettings(`value`: Output) {
        this.wafSettings = value
    }

    /**
     * @param value Settings for keys that can be used by websites.
     */
    @JvmName("tkihixfrealthcwx")
    public suspend fun webSettings(`value`: Output) {
        this.webSettings = value
    }

    /**
     * @param value Settings for keys that can be used by Android apps.
     */
    @JvmName("jgjfikloailvcomy")
    public suspend fun androidSettings(`value`: EnterpriseKeyAndroidSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.androidSettings = mapped
    }

    /**
     * @param argument Settings for keys that can be used by Android apps.
     */
    @JvmName("luacyegyntenugpd")
    public suspend fun androidSettings(argument: suspend EnterpriseKeyAndroidSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = EnterpriseKeyAndroidSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.androidSettings = mapped
    }

    /**
     * @param value Human-readable display name of this key. Modifiable by user.
     * - - -
     */
    @JvmName("wmgrccfhyrurbbht")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value Settings for keys that can be used by iOS apps.
     */
    @JvmName("aysbikbsxnmrxyay")
    public suspend fun iosSettings(`value`: EnterpriseKeyIosSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iosSettings = mapped
    }

    /**
     * @param argument Settings for keys that can be used by iOS apps.
     */
    @JvmName("sgnecodgcbibcmln")
    public suspend fun iosSettings(argument: suspend EnterpriseKeyIosSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = EnterpriseKeyIosSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.iosSettings = mapped
    }

    /**
     * @param value See [Creating and managing labels](https://cloud.google.com/recaptcha-enterprise/docs/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.
     */
    @JvmName("uyskqmyvpjdftlaj")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values See [Creating and managing labels](https://cloud.google.com/recaptcha-enterprise/docs/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.
     */
    @JvmName("ixmselyskqagwume")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("euvisbfekkcbxcbr")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value Options for user acceptance testing.
     */
    @JvmName("ydjtnkxyysqoqwre")
    public suspend fun testingOptions(`value`: EnterpriseKeyTestingOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.testingOptions = mapped
    }

    /**
     * @param argument Options for user acceptance testing.
     */
    @JvmName("tuhpvfmimurrxgwr")
    public suspend fun testingOptions(argument: suspend EnterpriseKeyTestingOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = EnterpriseKeyTestingOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.testingOptions = mapped
    }

    /**
     * @param value Settings specific to keys that can be used for WAF (Web Application Firewall).
     */
    @JvmName("wsvdwnwntqbrcfol")
    public suspend fun wafSettings(`value`: EnterpriseKeyWafSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.wafSettings = mapped
    }

    /**
     * @param argument Settings specific to keys that can be used for WAF (Web Application Firewall).
     */
    @JvmName("cwnkcfugrkirqxom")
    public suspend fun wafSettings(argument: suspend EnterpriseKeyWafSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = EnterpriseKeyWafSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.wafSettings = mapped
    }

    /**
     * @param value Settings for keys that can be used by websites.
     */
    @JvmName("mpqorfrdgnbrarfc")
    public suspend fun webSettings(`value`: EnterpriseKeyWebSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webSettings = mapped
    }

    /**
     * @param argument Settings for keys that can be used by websites.
     */
    @JvmName("xrasphxgrpsayovh")
    public suspend fun webSettings(argument: suspend EnterpriseKeyWebSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = EnterpriseKeyWebSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.webSettings = mapped
    }

    internal fun build(): EnterpriseKeyArgs = EnterpriseKeyArgs(
        androidSettings = androidSettings,
        displayName = displayName,
        iosSettings = iosSettings,
        labels = labels,
        project = project,
        testingOptions = testingOptions,
        wafSettings = wafSettings,
        webSettings = webSettings,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy