gcp.identityplatform.Config
Explore with Pulumi AI
Identity Platform configuration for a Cloud project. Identity Platform is an end-to-end authentication system for third-party users to access apps and services.
This entity is created only once during intialization and cannot be deleted, individual Identity Providers may be disabled instead. This resource may only be created in billing-enabled projects.
To get more information about Config, see:
- API documentation
- How-to Guides
Example Usage
Identity Platform Config Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var defaultProject = new Gcp.Organizations.Project("defaultProject", new()
{
ProjectId = "my-project",
OrgId = "123456789",
BillingAccount = "000000-0000000-0000000-000000",
Labels =
{
{ "firebase", "enabled" },
},
});
var identitytoolkit = new Gcp.Projects.Service("identitytoolkit", new()
{
Project = defaultProject.ProjectId,
ServiceName = "identitytoolkit.googleapis.com",
});
var defaultConfig = new Gcp.IdentityPlatform.Config("defaultConfig", new()
{
Project = defaultProject.ProjectId,
AutodeleteAnonymousUsers = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/identityplatform"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultProject, err := organizations.NewProject(ctx, "defaultProject", &organizations.ProjectArgs{
ProjectId: pulumi.String("my-project"),
OrgId: pulumi.String("123456789"),
BillingAccount: pulumi.String("000000-0000000-0000000-000000"),
Labels: pulumi.StringMap{
"firebase": pulumi.String("enabled"),
},
})
if err != nil {
return err
}
_, err = projects.NewService(ctx, "identitytoolkit", &projects.ServiceArgs{
Project: defaultProject.ProjectId,
Service: pulumi.String("identitytoolkit.googleapis.com"),
})
if err != nil {
return err
}
_, err = identityplatform.NewConfig(ctx, "defaultConfig", &identityplatform.ConfigArgs{
Project: defaultProject.ProjectId,
AutodeleteAnonymousUsers: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.identityplatform.Config;
import com.pulumi.gcp.identityplatform.ConfigArgs;
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 defaultProject = new Project("defaultProject", ProjectArgs.builder()
.projectId("my-project")
.orgId("123456789")
.billingAccount("000000-0000000-0000000-000000")
.labels(Map.of("firebase", "enabled"))
.build());
var identitytoolkit = new Service("identitytoolkit", ServiceArgs.builder()
.project(defaultProject.projectId())
.service("identitytoolkit.googleapis.com")
.build());
var defaultConfig = new Config("defaultConfig", ConfigArgs.builder()
.project(defaultProject.projectId())
.autodeleteAnonymousUsers(true)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default_project = gcp.organizations.Project("defaultProject",
project_id="my-project",
org_id="123456789",
billing_account="000000-0000000-0000000-000000",
labels={
"firebase": "enabled",
})
identitytoolkit = gcp.projects.Service("identitytoolkit",
project=default_project.project_id,
service="identitytoolkit.googleapis.com")
default_config = gcp.identityplatform.Config("defaultConfig",
project=default_project.project_id,
autodelete_anonymous_users=True)
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const defaultProject = new gcp.organizations.Project("defaultProject", {
projectId: "my-project",
orgId: "123456789",
billingAccount: "000000-0000000-0000000-000000",
labels: {
firebase: "enabled",
},
});
const identitytoolkit = new gcp.projects.Service("identitytoolkit", {
project: defaultProject.projectId,
service: "identitytoolkit.googleapis.com",
});
const defaultConfig = new gcp.identityplatform.Config("defaultConfig", {
project: defaultProject.projectId,
autodeleteAnonymousUsers: true,
});
resources:
defaultProject:
type: gcp:organizations:Project
properties:
projectId: my-project
orgId: '123456789'
billingAccount: 000000-0000000-0000000-000000
labels:
firebase: enabled
identitytoolkit:
type: gcp:projects:Service
properties:
project: ${defaultProject.projectId}
service: identitytoolkit.googleapis.com
defaultConfig:
type: gcp:identityplatform:Config
properties:
project: ${defaultProject.projectId}
autodeleteAnonymousUsers: true
Create Config Resource
new Config(name: string, args?: ConfigArgs, opts?: CustomResourceOptions);
@overload
def Config(resource_name: str,
opts: Optional[ResourceOptions] = None,
autodelete_anonymous_users: Optional[bool] = None,
project: Optional[str] = None)
@overload
def Config(resource_name: str,
args: Optional[ConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewConfig(ctx *Context, name string, args *ConfigArgs, opts ...ResourceOption) (*Config, error)
public Config(string name, ConfigArgs? args = null, CustomResourceOptions? opts = null)
public Config(String name, ConfigArgs args)
public Config(String name, ConfigArgs args, CustomResourceOptions options)
type: gcp:identityplatform:Config
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigArgs
- 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 ConfigArgs
- 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 ConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Config 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 Config resource accepts the following input properties:
- Autodelete
Anonymous boolUsers Whether anonymous users will be auto-deleted after a period of 30 days
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Autodelete
Anonymous boolUsers Whether anonymous users will be auto-deleted after a period of 30 days
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete
Anonymous BooleanUsers Whether anonymous users will be auto-deleted after a period of 30 days
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete
Anonymous booleanUsers Whether anonymous users will be auto-deleted after a period of 30 days
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete_
anonymous_ boolusers Whether anonymous users will be auto-deleted after a period of 30 days
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete
Anonymous BooleanUsers Whether anonymous users will be auto-deleted after a period of 30 days
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Config resource produces the following output properties:
Look up Existing Config Resource
Get an existing Config 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?: ConfigState, opts?: CustomResourceOptions): Config
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
autodelete_anonymous_users: Optional[bool] = None,
name: Optional[str] = None,
project: Optional[str] = None) -> Config
func GetConfig(ctx *Context, name string, id IDInput, state *ConfigState, opts ...ResourceOption) (*Config, error)
public static Config Get(string name, Input<string> id, ConfigState? state, CustomResourceOptions? opts = null)
public static Config get(String name, Output<String> id, ConfigState 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.
- Autodelete
Anonymous boolUsers Whether anonymous users will be auto-deleted after a period of 30 days
- Name string
The name of the Config resource
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Autodelete
Anonymous boolUsers Whether anonymous users will be auto-deleted after a period of 30 days
- Name string
The name of the Config resource
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete
Anonymous BooleanUsers Whether anonymous users will be auto-deleted after a period of 30 days
- name String
The name of the Config resource
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete
Anonymous booleanUsers Whether anonymous users will be auto-deleted after a period of 30 days
- name string
The name of the Config resource
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete_
anonymous_ boolusers Whether anonymous users will be auto-deleted after a period of 30 days
- name str
The name of the Config resource
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- autodelete
Anonymous BooleanUsers Whether anonymous users will be auto-deleted after a period of 30 days
- name String
The name of the Config resource
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Import
Config can be imported using any of these accepted formats
$ pulumi import gcp:identityplatform/config:Config default projects/{{project}}/config
$ pulumi import gcp:identityplatform/config:Config default projects/{{project}}
$ pulumi import gcp:identityplatform/config:Config default {{project}}
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.