1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. AppCheckPlayIntegrityConfig
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.firebase.AppCheckPlayIntegrityConfig

Explore with Pulumi AI

An app’s Play Integrity configuration object. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by the Play Integrity API. Make sure your gcp.firebase.AndroidApp has at least one sha256_hashes present.

To get more information about PlayIntegrityConfig, see:

Example Usage

Firebase App Check Play Integrity Config Minimal

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumi/time";

// Enables the Play Integrity API
const playIntegrity = new gcp.projects.Service("play_integrity", {
    project: "my-project-name",
    service: "playintegrity.googleapis.com",
    disableOnDestroy: false,
});
const _default = new gcp.firebase.AndroidApp("default", {
    project: "my-project-name",
    displayName: "Play Integrity app",
    packageName: "package.name.playintegrity",
    sha1Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
});
// 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 defaultAppCheckPlayIntegrityConfig = new gcp.firebase.AppCheckPlayIntegrityConfig("default", {
    project: "my-project-name",
    appId: _default.appId,
}, {
    dependsOn: [wait30s],
});
Copy
import pulumi
import pulumi_gcp as gcp
import pulumi_time as time

# Enables the Play Integrity API
play_integrity = gcp.projects.Service("play_integrity",
    project="my-project-name",
    service="playintegrity.googleapis.com",
    disable_on_destroy=False)
default = gcp.firebase.AndroidApp("default",
    project="my-project-name",
    display_name="Play Integrity app",
    package_name="package.name.playintegrity",
    sha1_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"])
# 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_play_integrity_config = gcp.firebase.AppCheckPlayIntegrityConfig("default",
    project="my-project-name",
    app_id=default.app_id,
    opts = pulumi.ResourceOptions(depends_on=[wait30s]))
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"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 {
		// Enables the Play Integrity API
		_, err := projects.NewService(ctx, "play_integrity", &projects.ServiceArgs{
			Project:          pulumi.String("my-project-name"),
			Service:          pulumi.String("playintegrity.googleapis.com"),
			DisableOnDestroy: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_default, err := firebase.NewAndroidApp(ctx, "default", &firebase.AndroidAppArgs{
			Project:     pulumi.String("my-project-name"),
			DisplayName: pulumi.String("Play Integrity app"),
			PackageName: pulumi.String("package.name.playintegrity"),
			Sha1Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
			},
			Sha256Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
			},
		})
		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
		}
		_, err = firebase.NewAppCheckPlayIntegrityConfig(ctx, "default", &firebase.AppCheckPlayIntegrityConfigArgs{
			Project: pulumi.String("my-project-name"),
			AppId:   _default.AppId,
		}, pulumi.DependsOn([]pulumi.Resource{
			wait30s,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Time = Pulumi.Time;

return await Deployment.RunAsync(() => 
{
    // Enables the Play Integrity API
    var playIntegrity = new Gcp.Projects.Service("play_integrity", new()
    {
        Project = "my-project-name",
        ServiceName = "playintegrity.googleapis.com",
        DisableOnDestroy = false,
    });

    var @default = new Gcp.Firebase.AndroidApp("default", new()
    {
        Project = "my-project-name",
        DisplayName = "Play Integrity app",
        PackageName = "package.name.playintegrity",
        Sha1Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21c",
        },
        Sha256Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc",
        },
    });

    // 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 defaultAppCheckPlayIntegrityConfig = new Gcp.Firebase.AppCheckPlayIntegrityConfig("default", new()
    {
        Project = "my-project-name",
        AppId = @default.AppId,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            wait30s,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.firebase.AndroidApp;
import com.pulumi.gcp.firebase.AndroidAppArgs;
import com.pulumi.time.sleep;
import com.pulumi.time.sleepArgs;
import com.pulumi.gcp.firebase.AppCheckPlayIntegrityConfig;
import com.pulumi.gcp.firebase.AppCheckPlayIntegrityConfigArgs;
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) {
        // Enables the Play Integrity API
        var playIntegrity = new Service("playIntegrity", ServiceArgs.builder()
            .project("my-project-name")
            .service("playintegrity.googleapis.com")
            .disableOnDestroy(false)
            .build());

        var default_ = new AndroidApp("default", AndroidAppArgs.builder()
            .project("my-project-name")
            .displayName("Play Integrity app")
            .packageName("package.name.playintegrity")
            .sha1Hashes("2145bdf698b8715039bd0e83f2069bed435ac21c")
            .sha256Hashes("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc")
            .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(List.of(default_))
                .build());

        var defaultAppCheckPlayIntegrityConfig = new AppCheckPlayIntegrityConfig("defaultAppCheckPlayIntegrityConfig", AppCheckPlayIntegrityConfigArgs.builder()
            .project("my-project-name")
            .appId(default_.appId())
            .build(), CustomResourceOptions.builder()
                .dependsOn(wait30s)
                .build());

    }
}
Copy
resources:
  # Enables the Play Integrity API
  playIntegrity:
    type: gcp:projects:Service
    name: play_integrity
    properties:
      project: my-project-name
      service: playintegrity.googleapis.com
      disableOnDestroy: false
  default:
    type: gcp:firebase:AndroidApp
    properties:
      project: my-project-name
      displayName: Play Integrity app
      packageName: package.name.playintegrity
      sha1Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21c
      sha256Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc
  # 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}
  defaultAppCheckPlayIntegrityConfig:
    type: gcp:firebase:AppCheckPlayIntegrityConfig
    name: default
    properties:
      project: my-project-name
      appId: ${default.appId}
    options:
      dependsOn:
        - ${wait30s}
Copy

Firebase App Check Play Integrity Config Full

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumi/time";

// Enables the Play Integrity API
const playIntegrity = new gcp.projects.Service("play_integrity", {
    project: "my-project-name",
    service: "playintegrity.googleapis.com",
    disableOnDestroy: false,
});
const _default = new gcp.firebase.AndroidApp("default", {
    project: "my-project-name",
    displayName: "Play Integrity app",
    packageName: "package.name.playintegrity",
    sha1Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
});
// 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 defaultAppCheckPlayIntegrityConfig = new gcp.firebase.AppCheckPlayIntegrityConfig("default", {
    project: "my-project-name",
    appId: _default.appId,
    tokenTtl: "7200s",
}, {
    dependsOn: [wait30s],
});
Copy
import pulumi
import pulumi_gcp as gcp
import pulumi_time as time

# Enables the Play Integrity API
play_integrity = gcp.projects.Service("play_integrity",
    project="my-project-name",
    service="playintegrity.googleapis.com",
    disable_on_destroy=False)
default = gcp.firebase.AndroidApp("default",
    project="my-project-name",
    display_name="Play Integrity app",
    package_name="package.name.playintegrity",
    sha1_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"])
# 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_play_integrity_config = gcp.firebase.AppCheckPlayIntegrityConfig("default",
    project="my-project-name",
    app_id=default.app_id,
    token_ttl="7200s",
    opts = pulumi.ResourceOptions(depends_on=[wait30s]))
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
	"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 {
		// Enables the Play Integrity API
		_, err := projects.NewService(ctx, "play_integrity", &projects.ServiceArgs{
			Project:          pulumi.String("my-project-name"),
			Service:          pulumi.String("playintegrity.googleapis.com"),
			DisableOnDestroy: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_default, err := firebase.NewAndroidApp(ctx, "default", &firebase.AndroidAppArgs{
			Project:     pulumi.String("my-project-name"),
			DisplayName: pulumi.String("Play Integrity app"),
			PackageName: pulumi.String("package.name.playintegrity"),
			Sha1Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
			},
			Sha256Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
			},
		})
		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
		}
		_, err = firebase.NewAppCheckPlayIntegrityConfig(ctx, "default", &firebase.AppCheckPlayIntegrityConfigArgs{
			Project:  pulumi.String("my-project-name"),
			AppId:    _default.AppId,
			TokenTtl: pulumi.String("7200s"),
		}, pulumi.DependsOn([]pulumi.Resource{
			wait30s,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Time = Pulumi.Time;

return await Deployment.RunAsync(() => 
{
    // Enables the Play Integrity API
    var playIntegrity = new Gcp.Projects.Service("play_integrity", new()
    {
        Project = "my-project-name",
        ServiceName = "playintegrity.googleapis.com",
        DisableOnDestroy = false,
    });

    var @default = new Gcp.Firebase.AndroidApp("default", new()
    {
        Project = "my-project-name",
        DisplayName = "Play Integrity app",
        PackageName = "package.name.playintegrity",
        Sha1Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21c",
        },
        Sha256Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc",
        },
    });

    // 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 defaultAppCheckPlayIntegrityConfig = new Gcp.Firebase.AppCheckPlayIntegrityConfig("default", new()
    {
        Project = "my-project-name",
        AppId = @default.AppId,
        TokenTtl = "7200s",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            wait30s,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.firebase.AndroidApp;
import com.pulumi.gcp.firebase.AndroidAppArgs;
import com.pulumi.time.sleep;
import com.pulumi.time.sleepArgs;
import com.pulumi.gcp.firebase.AppCheckPlayIntegrityConfig;
import com.pulumi.gcp.firebase.AppCheckPlayIntegrityConfigArgs;
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) {
        // Enables the Play Integrity API
        var playIntegrity = new Service("playIntegrity", ServiceArgs.builder()
            .project("my-project-name")
            .service("playintegrity.googleapis.com")
            .disableOnDestroy(false)
            .build());

        var default_ = new AndroidApp("default", AndroidAppArgs.builder()
            .project("my-project-name")
            .displayName("Play Integrity app")
            .packageName("package.name.playintegrity")
            .sha1Hashes("2145bdf698b8715039bd0e83f2069bed435ac21c")
            .sha256Hashes("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc")
            .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(List.of(default_))
                .build());

        var defaultAppCheckPlayIntegrityConfig = new AppCheckPlayIntegrityConfig("defaultAppCheckPlayIntegrityConfig", AppCheckPlayIntegrityConfigArgs.builder()
            .project("my-project-name")
            .appId(default_.appId())
            .tokenTtl("7200s")
            .build(), CustomResourceOptions.builder()
                .dependsOn(wait30s)
                .build());

    }
}
Copy
resources:
  # Enables the Play Integrity API
  playIntegrity:
    type: gcp:projects:Service
    name: play_integrity
    properties:
      project: my-project-name
      service: playintegrity.googleapis.com
      disableOnDestroy: false
  default:
    type: gcp:firebase:AndroidApp
    properties:
      project: my-project-name
      displayName: Play Integrity app
      packageName: package.name.playintegrity
      sha1Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21c
      sha256Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc
  # 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}
  defaultAppCheckPlayIntegrityConfig:
    type: gcp:firebase:AppCheckPlayIntegrityConfig
    name: default
    properties:
      project: my-project-name
      appId: ${default.appId}
      tokenTtl: 7200s
    options:
      dependsOn:
        - ${wait30s}
Copy

Create AppCheckPlayIntegrityConfig Resource

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

Constructor syntax

new AppCheckPlayIntegrityConfig(name: string, args: AppCheckPlayIntegrityConfigArgs, opts?: CustomResourceOptions);
@overload
def AppCheckPlayIntegrityConfig(resource_name: str,
                                args: AppCheckPlayIntegrityConfigArgs,
                                opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AppCheckPlayIntegrityConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AppCheckPlayIntegrityConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AppCheckPlayIntegrityConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AppCheckPlayIntegrityConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AppCheckPlayIntegrityConfigArgs
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 appCheckPlayIntegrityConfigResource = new Gcp.Firebase.AppCheckPlayIntegrityConfig("appCheckPlayIntegrityConfigResource", new()
{
    AppId = "string",
    Project = "string",
    TokenTtl = "string",
});
Copy
example, err := firebase.NewAppCheckPlayIntegrityConfig(ctx, "appCheckPlayIntegrityConfigResource", &firebase.AppCheckPlayIntegrityConfigArgs{
	AppId:    pulumi.String("string"),
	Project:  pulumi.String("string"),
	TokenTtl: pulumi.String("string"),
})
Copy
var appCheckPlayIntegrityConfigResource = new AppCheckPlayIntegrityConfig("appCheckPlayIntegrityConfigResource", AppCheckPlayIntegrityConfigArgs.builder()
    .appId("string")
    .project("string")
    .tokenTtl("string")
    .build());
Copy
app_check_play_integrity_config_resource = gcp.firebase.AppCheckPlayIntegrityConfig("appCheckPlayIntegrityConfigResource",
    app_id="string",
    project="string",
    token_ttl="string")
Copy
const appCheckPlayIntegrityConfigResource = new gcp.firebase.AppCheckPlayIntegrityConfig("appCheckPlayIntegrityConfigResource", {
    appId: "string",
    project: "string",
    tokenTtl: "string",
});
Copy
type: gcp:firebase:AppCheckPlayIntegrityConfig
properties:
    appId: string
    project: string
    tokenTtl: string
Copy

AppCheckPlayIntegrityConfig 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 AppCheckPlayIntegrityConfig resource accepts the following input properties:

AppId
This property is required.
Changes to this property will trigger replacement.
string
The ID of an Android App.


Project Changes to this property will trigger replacement. 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 Play Integrity 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of an Android App.


Project Changes to this property will trigger replacement. 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 Play Integrity 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of an Android App.


project Changes to this property will trigger replacement. 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 Play Integrity 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of an Android App.


project Changes to this property will trigger replacement. 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 Play Integrity 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
This property is required.
Changes to this property will trigger replacement.
str
The ID of an Android App.


project Changes to this property will trigger replacement. 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 Play Integrity 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of an Android App.


project Changes to this property will trigger replacement. 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 Play Integrity 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 AppCheckPlayIntegrityConfig 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 Play Integrity configuration object
Id string
The provider-assigned unique ID for this managed resource.
Name string
The relative resource name of the Play Integrity configuration object
id String
The provider-assigned unique ID for this managed resource.
name String
The relative resource name of the Play Integrity configuration object
id string
The provider-assigned unique ID for this managed resource.
name string
The relative resource name of the Play Integrity configuration object
id str
The provider-assigned unique ID for this managed resource.
name str
The relative resource name of the Play Integrity configuration object
id String
The provider-assigned unique ID for this managed resource.
name String
The relative resource name of the Play Integrity configuration object

Look up Existing AppCheckPlayIntegrityConfig Resource

Get an existing AppCheckPlayIntegrityConfig 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?: AppCheckPlayIntegrityConfigState, opts?: CustomResourceOptions): AppCheckPlayIntegrityConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_id: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        token_ttl: Optional[str] = None) -> AppCheckPlayIntegrityConfig
func GetAppCheckPlayIntegrityConfig(ctx *Context, name string, id IDInput, state *AppCheckPlayIntegrityConfigState, opts ...ResourceOption) (*AppCheckPlayIntegrityConfig, error)
public static AppCheckPlayIntegrityConfig Get(string name, Input<string> id, AppCheckPlayIntegrityConfigState? state, CustomResourceOptions? opts = null)
public static AppCheckPlayIntegrityConfig get(String name, Output<String> id, AppCheckPlayIntegrityConfigState state, CustomResourceOptions options)
resources:  _:    type: gcp:firebase:AppCheckPlayIntegrityConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The ID of an Android App.


Name string
The relative resource name of the Play Integrity configuration object
Project Changes to this property will trigger replacement. 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 Play Integrity 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 Changes to this property will trigger replacement. string
The ID of an Android App.


Name string
The relative resource name of the Play Integrity configuration object
Project Changes to this property will trigger replacement. 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 Play Integrity 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 Changes to this property will trigger replacement. String
The ID of an Android App.


name String
The relative resource name of the Play Integrity configuration object
project Changes to this property will trigger replacement. 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 Play Integrity 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 Changes to this property will trigger replacement. string
The ID of an Android App.


name string
The relative resource name of the Play Integrity configuration object
project Changes to this property will trigger replacement. 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 Play Integrity 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 Changes to this property will trigger replacement. str
The ID of an Android App.


name str
The relative resource name of the Play Integrity configuration object
project Changes to this property will trigger replacement. 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 Play Integrity 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 Changes to this property will trigger replacement. String
The ID of an Android App.


name String
The relative resource name of the Play Integrity configuration object
project Changes to this property will trigger replacement. 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 Play Integrity 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

PlayIntegrityConfig can be imported using any of these accepted formats:

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

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

  • {{app_id}}

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

$ pulumi import gcp:firebase/appCheckPlayIntegrityConfig:AppCheckPlayIntegrityConfig default projects/{{project}}/apps/{{app_id}}/playIntegrityConfig
Copy
$ pulumi import gcp:firebase/appCheckPlayIntegrityConfig:AppCheckPlayIntegrityConfig default {{project}}/{{app_id}}
Copy
$ pulumi import gcp:firebase/appCheckPlayIntegrityConfig:AppCheckPlayIntegrityConfig default {{app_id}}
Copy

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.