1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. AppCheckDeviceCheckConfig
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.firebase.AppCheckDeviceCheckConfig

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    An app’s DeviceCheck configuration object. Note that the Team ID registered with your app is used as part of the validation process. Make sure your gcp.firebase.AppleApp has a team_id present.

    To get more information about DeviceCheckConfig, see:

    Example Usage

    Firebase App Check Device Check Config Full

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as std from "@pulumi/std";
    import * as time from "@pulumi/time";
    
    const _default = new gcp.firebase.AppleApp("default", {
        project: "my-project-name",
        displayName: "Apple app",
        bundleId: "bundle.id.devicecheck",
        teamId: "9987654321",
    });
    // It takes a while for App Check to recognize the new app
    // If your app already exists, you don't have to wait 30 seconds.
    const wait30s = new time.index.Sleep("wait_30s", {createDuration: "30s"}, {
        dependsOn: [_default],
    });
    const defaultAppCheckDeviceCheckConfig = new gcp.firebase.AppCheckDeviceCheckConfig("default", {
        project: "my-project-name",
        appId: _default.appId,
        tokenTtl: "7200s",
        keyId: "Key ID",
        privateKey: std.file({
            input: "path/to/private-key.p8",
        }).then(invoke => invoke.result),
    }, {
        dependsOn: [wait30s],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumi_std as std
    import pulumi_time as time
    
    default = gcp.firebase.AppleApp("default",
        project="my-project-name",
        display_name="Apple app",
        bundle_id="bundle.id.devicecheck",
        team_id="9987654321")
    # It takes a while for App Check to recognize the new app
    # If your app already exists, you don't have to wait 30 seconds.
    wait30s = time.index.Sleep("wait_30s", create_duration=30s,
    opts = pulumi.ResourceOptions(depends_on=[default]))
    default_app_check_device_check_config = gcp.firebase.AppCheckDeviceCheckConfig("default",
        project="my-project-name",
        app_id=default.app_id,
        token_ttl="7200s",
        key_id="Key ID",
        private_key=std.file(input="path/to/private-key.p8").result,
        opts = pulumi.ResourceOptions(depends_on=[wait30s]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi-time/sdk/go/time"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firebase.NewAppleApp(ctx, "default", &firebase.AppleAppArgs{
    			Project:     pulumi.String("my-project-name"),
    			DisplayName: pulumi.String("Apple app"),
    			BundleId:    pulumi.String("bundle.id.devicecheck"),
    			TeamId:      pulumi.String("9987654321"),
    		})
    		if err != nil {
    			return err
    		}
    		// It takes a while for App Check to recognize the new app
    		// If your app already exists, you don't have to wait 30 seconds.
    		wait30s, err := time.NewSleep(ctx, "wait_30s", &time.SleepArgs{
    			CreateDuration: "30s",
    		}, pulumi.DependsOn([]pulumi.Resource{
    			_default,
    		}))
    		if err != nil {
    			return err
    		}
    		invokeFile, err := std.File(ctx, &std.FileArgs{
    			Input: "path/to/private-key.p8",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = firebase.NewAppCheckDeviceCheckConfig(ctx, "default", &firebase.AppCheckDeviceCheckConfigArgs{
    			Project:    pulumi.String("my-project-name"),
    			AppId:      _default.AppId,
    			TokenTtl:   pulumi.String("7200s"),
    			KeyId:      pulumi.String("Key ID"),
    			PrivateKey: pulumi.String(invokeFile.Result),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			wait30s,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Std = Pulumi.Std;
    using Time = Pulumi.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Firebase.AppleApp("default", new()
        {
            Project = "my-project-name",
            DisplayName = "Apple app",
            BundleId = "bundle.id.devicecheck",
            TeamId = "9987654321",
        });
    
        // It takes a while for App Check to recognize the new app
        // If your app already exists, you don't have to wait 30 seconds.
        var wait30s = new Time.Index.Sleep("wait_30s", new()
        {
            CreateDuration = "30s",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                @default,
            },
        });
    
        var defaultAppCheckDeviceCheckConfig = new Gcp.Firebase.AppCheckDeviceCheckConfig("default", new()
        {
            Project = "my-project-name",
            AppId = @default.AppId,
            TokenTtl = "7200s",
            KeyId = "Key ID",
            PrivateKey = Std.File.Invoke(new()
            {
                Input = "path/to/private-key.p8",
            }).Apply(invoke => invoke.Result),
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                wait30s,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.firebase.AppleApp;
    import com.pulumi.gcp.firebase.AppleAppArgs;
    import com.pulumi.time.sleep;
    import com.pulumi.time.SleepArgs;
    import com.pulumi.gcp.firebase.AppCheckDeviceCheckConfig;
    import com.pulumi.gcp.firebase.AppCheckDeviceCheckConfigArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 default_ = new AppleApp("default", AppleAppArgs.builder()
                .project("my-project-name")
                .displayName("Apple app")
                .bundleId("bundle.id.devicecheck")
                .teamId("9987654321")
                .build());
    
            // It takes a while for App Check to recognize the new app
            // If your app already exists, you don't have to wait 30 seconds.
            var wait30s = new Sleep("wait30s", SleepArgs.builder()
                .createDuration("30s")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
            var defaultAppCheckDeviceCheckConfig = new AppCheckDeviceCheckConfig("defaultAppCheckDeviceCheckConfig", AppCheckDeviceCheckConfigArgs.builder()
                .project("my-project-name")
                .appId(default_.appId())
                .tokenTtl("7200s")
                .keyId("Key ID")
                .privateKey(StdFunctions.file(FileArgs.builder()
                    .input("path/to/private-key.p8")
                    .build()).result())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(wait30s)
                    .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:firebase:AppleApp
        properties:
          project: my-project-name
          displayName: Apple app
          bundleId: bundle.id.devicecheck
          teamId: '9987654321'
      # It takes a while for App Check to recognize the new app
      # If your app already exists, you don't have to wait 30 seconds.
      wait30s:
        type: time:sleep
        name: wait_30s
        properties:
          createDuration: 30s
        options:
          dependson:
            - ${default}
      defaultAppCheckDeviceCheckConfig:
        type: gcp:firebase:AppCheckDeviceCheckConfig
        name: default
        properties:
          project: my-project-name
          appId: ${default.appId}
          tokenTtl: 7200s
          keyId: Key ID
          privateKey:
            fn::invoke:
              Function: std:file
              Arguments:
                input: path/to/private-key.p8
              Return: result
        options:
          dependson:
            - ${wait30s}
    

    Create AppCheckDeviceCheckConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppCheckDeviceCheckConfig(name: string, args: AppCheckDeviceCheckConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AppCheckDeviceCheckConfig(resource_name: str,
                                  args: AppCheckDeviceCheckConfigArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppCheckDeviceCheckConfig(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  app_id: Optional[str] = None,
                                  key_id: Optional[str] = None,
                                  private_key: Optional[str] = None,
                                  project: Optional[str] = None,
                                  token_ttl: Optional[str] = None)
    func NewAppCheckDeviceCheckConfig(ctx *Context, name string, args AppCheckDeviceCheckConfigArgs, opts ...ResourceOption) (*AppCheckDeviceCheckConfig, error)
    public AppCheckDeviceCheckConfig(string name, AppCheckDeviceCheckConfigArgs args, CustomResourceOptions? opts = null)
    public AppCheckDeviceCheckConfig(String name, AppCheckDeviceCheckConfigArgs args)
    public AppCheckDeviceCheckConfig(String name, AppCheckDeviceCheckConfigArgs args, CustomResourceOptions options)
    
    type: gcp:firebase:AppCheckDeviceCheckConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AppCheckDeviceCheckConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AppCheckDeviceCheckConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AppCheckDeviceCheckConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppCheckDeviceCheckConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppCheckDeviceCheckConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var appCheckDeviceCheckConfigResource = new Gcp.Firebase.AppCheckDeviceCheckConfig("appCheckDeviceCheckConfigResource", new()
    {
        AppId = "string",
        KeyId = "string",
        PrivateKey = "string",
        Project = "string",
        TokenTtl = "string",
    });
    
    example, err := firebase.NewAppCheckDeviceCheckConfig(ctx, "appCheckDeviceCheckConfigResource", &firebase.AppCheckDeviceCheckConfigArgs{
    	AppId:      pulumi.String("string"),
    	KeyId:      pulumi.String("string"),
    	PrivateKey: pulumi.String("string"),
    	Project:    pulumi.String("string"),
    	TokenTtl:   pulumi.String("string"),
    })
    
    var appCheckDeviceCheckConfigResource = new AppCheckDeviceCheckConfig("appCheckDeviceCheckConfigResource", AppCheckDeviceCheckConfigArgs.builder()
        .appId("string")
        .keyId("string")
        .privateKey("string")
        .project("string")
        .tokenTtl("string")
        .build());
    
    app_check_device_check_config_resource = gcp.firebase.AppCheckDeviceCheckConfig("appCheckDeviceCheckConfigResource",
        app_id="string",
        key_id="string",
        private_key="string",
        project="string",
        token_ttl="string")
    
    const appCheckDeviceCheckConfigResource = new gcp.firebase.AppCheckDeviceCheckConfig("appCheckDeviceCheckConfigResource", {
        appId: "string",
        keyId: "string",
        privateKey: "string",
        project: "string",
        tokenTtl: "string",
    });
    
    type: gcp:firebase:AppCheckDeviceCheckConfig
    properties:
        appId: string
        keyId: string
        privateKey: string
        project: string
        tokenTtl: string
    

    AppCheckDeviceCheckConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AppCheckDeviceCheckConfig resource accepts the following input properties:

    AppId string
    The ID of an Apple App.


    KeyId string
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    PrivateKey string
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TokenTtl string
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    AppId string
    The ID of an Apple App.


    KeyId string
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    PrivateKey string
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TokenTtl string
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    appId String
    The ID of an Apple App.


    keyId String
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    privateKey String
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tokenTtl String
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    appId string
    The ID of an Apple App.


    keyId string
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    privateKey string
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tokenTtl string
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    app_id str
    The ID of an Apple App.


    key_id str
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    private_key str
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    token_ttl str
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    appId String
    The ID of an Apple App.


    keyId String
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    privateKey String
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tokenTtl String
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppCheckDeviceCheckConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The relative resource name of the DeviceCheck configuration object
    PrivateKeySet bool
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The relative resource name of the DeviceCheck configuration object
    PrivateKeySet bool
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The relative resource name of the DeviceCheck configuration object
    privateKeySet Boolean
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The relative resource name of the DeviceCheck configuration object
    privateKeySet boolean
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The relative resource name of the DeviceCheck configuration object
    private_key_set bool
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The relative resource name of the DeviceCheck configuration object
    privateKeySet Boolean
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.

    Look up Existing AppCheckDeviceCheckConfig Resource

    Get an existing AppCheckDeviceCheckConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AppCheckDeviceCheckConfigState, opts?: CustomResourceOptions): AppCheckDeviceCheckConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[str] = None,
            key_id: Optional[str] = None,
            name: Optional[str] = None,
            private_key: Optional[str] = None,
            private_key_set: Optional[bool] = None,
            project: Optional[str] = None,
            token_ttl: Optional[str] = None) -> AppCheckDeviceCheckConfig
    func GetAppCheckDeviceCheckConfig(ctx *Context, name string, id IDInput, state *AppCheckDeviceCheckConfigState, opts ...ResourceOption) (*AppCheckDeviceCheckConfig, error)
    public static AppCheckDeviceCheckConfig Get(string name, Input<string> id, AppCheckDeviceCheckConfigState? state, CustomResourceOptions? opts = null)
    public static AppCheckDeviceCheckConfig get(String name, Output<String> id, AppCheckDeviceCheckConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppId string
    The ID of an Apple App.


    KeyId string
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    Name string
    The relative resource name of the DeviceCheck configuration object
    PrivateKey string
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    PrivateKeySet bool
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TokenTtl string
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    AppId string
    The ID of an Apple App.


    KeyId string
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    Name string
    The relative resource name of the DeviceCheck configuration object
    PrivateKey string
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    PrivateKeySet bool
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TokenTtl string
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    appId String
    The ID of an Apple App.


    keyId String
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    name String
    The relative resource name of the DeviceCheck configuration object
    privateKey String
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    privateKeySet Boolean
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tokenTtl String
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    appId string
    The ID of an Apple App.


    keyId string
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    name string
    The relative resource name of the DeviceCheck configuration object
    privateKey string
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    privateKeySet boolean
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tokenTtl string
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    app_id str
    The ID of an Apple App.


    key_id str
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    name str
    The relative resource name of the DeviceCheck configuration object
    private_key str
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    private_key_set bool
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    token_ttl str
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
    appId String
    The ID of an Apple App.


    keyId String
    The key identifier of a private key enabled with DeviceCheck, created in your Apple Developer account.
    name String
    The relative resource name of the DeviceCheck configuration object
    privateKey String
    The contents of the private key (.p8) file associated with the key specified by keyId. Note: This property is sensitive and will not be displayed in the plan.
    privateKeySet Boolean
    Whether the privateKey field was previously set. Since App Check will never return the privateKey field, this field is the only way to find out whether it was previously set.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tokenTtl String
    Specifies the duration for which App Check tokens exchanged from DeviceCheck artifacts will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

    Import

    DeviceCheckConfig can be imported using any of these accepted formats:

    • projects/{{project}}/apps/{{app_id}}/deviceCheckConfig

    • {{project}}/{{app_id}}

    • {{app_id}}

    When using the pulumi import command, DeviceCheckConfig can be imported using one of the formats above. For example:

    $ pulumi import gcp:firebase/appCheckDeviceCheckConfig:AppCheckDeviceCheckConfig default projects/{{project}}/apps/{{app_id}}/deviceCheckConfig
    
    $ pulumi import gcp:firebase/appCheckDeviceCheckConfig:AppCheckDeviceCheckConfig default {{project}}/{{app_id}}
    
    $ pulumi import gcp:firebase/appCheckDeviceCheckConfig:AppCheckDeviceCheckConfig default {{app_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi