gcp.firebase.AppCheckAppAttestConfig
Explore with Pulumi AI
An app’s App Attest 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 AppAttestConfig, see:
- API documentation
- How-to Guides
Example Usage
Firebase App Check App Attest Config Minimal
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumi/time";
const _default = new gcp.firebase.AppleApp("default", {
project: "my-project-name",
displayName: "Apple app",
bundleId: "bundle.id.appattest",
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 defaultAppCheckAppAttestConfig = new gcp.firebase.AppCheckAppAttestConfig("default", {
project: "my-project-name",
appId: _default.appId,
}, {
dependsOn: [wait30s],
});
import pulumi
import pulumi_gcp as gcp
import pulumi_time as time
default = gcp.firebase.AppleApp("default",
project="my-project-name",
display_name="Apple app",
bundle_id="bundle.id.appattest",
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_app_attest_config = gcp.firebase.AppCheckAppAttestConfig("default",
project="my-project-name",
app_id=default.app_id,
opts = pulumi.ResourceOptions(depends_on=[wait30s]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"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.appattest"),
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
}
_, err = firebase.NewAppCheckAppAttestConfig(ctx, "default", &firebase.AppCheckAppAttestConfigArgs{
Project: pulumi.String("my-project-name"),
AppId: _default.AppId,
}, 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 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.appattest",
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 defaultAppCheckAppAttestConfig = new Gcp.Firebase.AppCheckAppAttestConfig("default", new()
{
Project = "my-project-name",
AppId = @default.AppId,
}, 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.AppCheckAppAttestConfig;
import com.pulumi.gcp.firebase.AppCheckAppAttestConfigArgs;
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.appattest")
.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 defaultAppCheckAppAttestConfig = new AppCheckAppAttestConfig("defaultAppCheckAppAttestConfig", AppCheckAppAttestConfigArgs.builder()
.project("my-project-name")
.appId(default_.appId())
.build(), CustomResourceOptions.builder()
.dependsOn(wait30s)
.build());
}
}
resources:
default:
type: gcp:firebase:AppleApp
properties:
project: my-project-name
displayName: Apple app
bundleId: bundle.id.appattest
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}
defaultAppCheckAppAttestConfig:
type: gcp:firebase:AppCheckAppAttestConfig
name: default
properties:
project: my-project-name
appId: ${default.appId}
options:
dependson:
- ${wait30s}
Firebase App Check App Attest Config Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as time from "@pulumi/time";
const _default = new gcp.firebase.AppleApp("default", {
project: "my-project-name",
displayName: "Apple app",
bundleId: "bundle.id.appattest",
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 defaultAppCheckAppAttestConfig = new gcp.firebase.AppCheckAppAttestConfig("default", {
project: "my-project-name",
appId: _default.appId,
tokenTtl: "7200s",
}, {
dependsOn: [wait30s],
});
import pulumi
import pulumi_gcp as gcp
import pulumi_time as time
default = gcp.firebase.AppleApp("default",
project="my-project-name",
display_name="Apple app",
bundle_id="bundle.id.appattest",
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_app_attest_config = gcp.firebase.AppCheckAppAttestConfig("default",
project="my-project-name",
app_id=default.app_id,
token_ttl="7200s",
opts = pulumi.ResourceOptions(depends_on=[wait30s]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"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.appattest"),
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
}
_, err = firebase.NewAppCheckAppAttestConfig(ctx, "default", &firebase.AppCheckAppAttestConfigArgs{
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
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.appattest",
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 defaultAppCheckAppAttestConfig = new Gcp.Firebase.AppCheckAppAttestConfig("default", new()
{
Project = "my-project-name",
AppId = @default.AppId,
TokenTtl = "7200s",
}, 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.AppCheckAppAttestConfig;
import com.pulumi.gcp.firebase.AppCheckAppAttestConfigArgs;
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.appattest")
.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 defaultAppCheckAppAttestConfig = new AppCheckAppAttestConfig("defaultAppCheckAppAttestConfig", AppCheckAppAttestConfigArgs.builder()
.project("my-project-name")
.appId(default_.appId())
.tokenTtl("7200s")
.build(), CustomResourceOptions.builder()
.dependsOn(wait30s)
.build());
}
}
resources:
default:
type: gcp:firebase:AppleApp
properties:
project: my-project-name
displayName: Apple app
bundleId: bundle.id.appattest
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}
defaultAppCheckAppAttestConfig:
type: gcp:firebase:AppCheckAppAttestConfig
name: default
properties:
project: my-project-name
appId: ${default.appId}
tokenTtl: 7200s
options:
dependson:
- ${wait30s}
Create AppCheckAppAttestConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppCheckAppAttestConfig(name: string, args: AppCheckAppAttestConfigArgs, opts?: CustomResourceOptions);
@overload
def AppCheckAppAttestConfig(resource_name: str,
args: AppCheckAppAttestConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppCheckAppAttestConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
project: Optional[str] = None,
token_ttl: Optional[str] = None)
func NewAppCheckAppAttestConfig(ctx *Context, name string, args AppCheckAppAttestConfigArgs, opts ...ResourceOption) (*AppCheckAppAttestConfig, error)
public AppCheckAppAttestConfig(string name, AppCheckAppAttestConfigArgs args, CustomResourceOptions? opts = null)
public AppCheckAppAttestConfig(String name, AppCheckAppAttestConfigArgs args)
public AppCheckAppAttestConfig(String name, AppCheckAppAttestConfigArgs args, CustomResourceOptions options)
type: gcp:firebase:AppCheckAppAttestConfig
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 AppCheckAppAttestConfigArgs
- 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 AppCheckAppAttestConfigArgs
- 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 AppCheckAppAttestConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppCheckAppAttestConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppCheckAppAttestConfigArgs
- 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 appCheckAppAttestConfigResource = new Gcp.Firebase.AppCheckAppAttestConfig("appCheckAppAttestConfigResource", new()
{
AppId = "string",
Project = "string",
TokenTtl = "string",
});
example, err := firebase.NewAppCheckAppAttestConfig(ctx, "appCheckAppAttestConfigResource", &firebase.AppCheckAppAttestConfigArgs{
AppId: pulumi.String("string"),
Project: pulumi.String("string"),
TokenTtl: pulumi.String("string"),
})
var appCheckAppAttestConfigResource = new AppCheckAppAttestConfig("appCheckAppAttestConfigResource", AppCheckAppAttestConfigArgs.builder()
.appId("string")
.project("string")
.tokenTtl("string")
.build());
app_check_app_attest_config_resource = gcp.firebase.AppCheckAppAttestConfig("appCheckAppAttestConfigResource",
app_id="string",
project="string",
token_ttl="string")
const appCheckAppAttestConfigResource = new gcp.firebase.AppCheckAppAttestConfig("appCheckAppAttestConfigResource", {
appId: "string",
project: "string",
tokenTtl: "string",
});
type: gcp:firebase:AppCheckAppAttestConfig
properties:
appId: string
project: string
tokenTtl: string
AppCheckAppAttestConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AppCheckAppAttestConfig resource accepts the following input properties:
- App
Id string - The ID of an
Apple App.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Token
Ttl string - Specifies the duration for which App Check tokens exchanged from App Attest 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 string - The ID of an
Apple App.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Token
Ttl string - Specifies the duration for which App Check tokens exchanged from App Attest 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 String - The ID of an
Apple App.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- token
Ttl String - Specifies the duration for which App Check tokens exchanged from App Attest 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 string - The ID of an
Apple App.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- token
Ttl string - Specifies the duration for which App Check tokens exchanged from App Attest 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.
- 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 App Attest 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 String - The ID of an
Apple App.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- token
Ttl String - Specifies the duration for which App Check tokens exchanged from App Attest 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 AppCheckAppAttestConfig resource produces the following output properties:
Look up Existing AppCheckAppAttestConfig Resource
Get an existing AppCheckAppAttestConfig 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?: AppCheckAppAttestConfigState, opts?: CustomResourceOptions): AppCheckAppAttestConfig
@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) -> AppCheckAppAttestConfig
func GetAppCheckAppAttestConfig(ctx *Context, name string, id IDInput, state *AppCheckAppAttestConfigState, opts ...ResourceOption) (*AppCheckAppAttestConfig, error)
public static AppCheckAppAttestConfig Get(string name, Input<string> id, AppCheckAppAttestConfigState? state, CustomResourceOptions? opts = null)
public static AppCheckAppAttestConfig get(String name, Output<String> id, AppCheckAppAttestConfigState 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.
- App
Id string - The ID of an
Apple App.
- Name string
- The relative resource name of the App Attest configuration object
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Token
Ttl string - Specifies the duration for which App Check tokens exchanged from App Attest 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 string - The ID of an
Apple App.
- Name string
- The relative resource name of the App Attest configuration object
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Token
Ttl string - Specifies the duration for which App Check tokens exchanged from App Attest 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 String - The ID of an
Apple App.
- name String
- The relative resource name of the App Attest configuration object
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- token
Ttl String - Specifies the duration for which App Check tokens exchanged from App Attest 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 string - The ID of an
Apple App.
- name string
- The relative resource name of the App Attest configuration object
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- token
Ttl string - Specifies the duration for which App Check tokens exchanged from App Attest 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.
- name str
- The relative resource name of the App Attest configuration object
- 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 App Attest 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 String - The ID of an
Apple App.
- name String
- The relative resource name of the App Attest configuration object
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- token
Ttl String - Specifies the duration for which App Check tokens exchanged from App Attest 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
AppAttestConfig can be imported using any of these accepted formats:
projects/{{project}}/apps/{{app_id}}/appAttestConfig
{{project}}/{{app_id}}
{{app_id}}
When using the pulumi import
command, AppAttestConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:firebase/appCheckAppAttestConfig:AppCheckAppAttestConfig default projects/{{project}}/apps/{{app_id}}/appAttestConfig
$ pulumi import gcp:firebase/appCheckAppAttestConfig:AppCheckAppAttestConfig default {{project}}/{{app_id}}
$ pulumi import gcp:firebase/appCheckAppAttestConfig:AppCheckAppAttestConfig 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.