gcp.identityplatform.DefaultSupportedIdpConfig
Explore with Pulumi AI
Configurations options for authenticating with a the standard set of Identity Toolkit-trusted IDPs.
You must enable the Google Identity Platform in the marketplace prior to using this resource.
Example Usage
Identity Platform Default Supported Idp Config Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var idpConfig = new Gcp.IdentityPlatform.DefaultSupportedIdpConfig("idpConfig", new()
{
ClientId = "client-id",
ClientSecret = "secret",
Enabled = true,
IdpId = "playgames.google.com",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/identityplatform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identityplatform.NewDefaultSupportedIdpConfig(ctx, "idpConfig", &identityplatform.DefaultSupportedIdpConfigArgs{
ClientId: pulumi.String("client-id"),
ClientSecret: pulumi.String("secret"),
Enabled: pulumi.Bool(true),
IdpId: pulumi.String("playgames.google.com"),
})
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.identityplatform.DefaultSupportedIdpConfig;
import com.pulumi.gcp.identityplatform.DefaultSupportedIdpConfigArgs;
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 idpConfig = new DefaultSupportedIdpConfig("idpConfig", DefaultSupportedIdpConfigArgs.builder()
.clientId("client-id")
.clientSecret("secret")
.enabled(true)
.idpId("playgames.google.com")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
idp_config = gcp.identityplatform.DefaultSupportedIdpConfig("idpConfig",
client_id="client-id",
client_secret="secret",
enabled=True,
idp_id="playgames.google.com")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const idpConfig = new gcp.identityplatform.DefaultSupportedIdpConfig("idpConfig", {
clientId: "client-id",
clientSecret: "secret",
enabled: true,
idpId: "playgames.google.com",
});
resources:
idpConfig:
type: gcp:identityplatform:DefaultSupportedIdpConfig
properties:
clientId: client-id
clientSecret: secret
enabled: true
idpId: playgames.google.com
Create DefaultSupportedIdpConfig Resource
new DefaultSupportedIdpConfig(name: string, args: DefaultSupportedIdpConfigArgs, opts?: CustomResourceOptions);
@overload
def DefaultSupportedIdpConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
enabled: Optional[bool] = None,
idp_id: Optional[str] = None,
project: Optional[str] = None)
@overload
def DefaultSupportedIdpConfig(resource_name: str,
args: DefaultSupportedIdpConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewDefaultSupportedIdpConfig(ctx *Context, name string, args DefaultSupportedIdpConfigArgs, opts ...ResourceOption) (*DefaultSupportedIdpConfig, error)
public DefaultSupportedIdpConfig(string name, DefaultSupportedIdpConfigArgs args, CustomResourceOptions? opts = null)
public DefaultSupportedIdpConfig(String name, DefaultSupportedIdpConfigArgs args)
public DefaultSupportedIdpConfig(String name, DefaultSupportedIdpConfigArgs args, CustomResourceOptions options)
type: gcp:identityplatform:DefaultSupportedIdpConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultSupportedIdpConfigArgs
- 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 DefaultSupportedIdpConfigArgs
- 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 DefaultSupportedIdpConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultSupportedIdpConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultSupportedIdpConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DefaultSupportedIdpConfig 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 DefaultSupportedIdpConfig resource accepts the following input properties:
- Client
Id string OAuth client ID
- Client
Secret string OAuth client secret
- Idp
Id string ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- Enabled bool
If this IDP allows the user to sign in
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Client
Id string OAuth client ID
- Client
Secret string OAuth client secret
- Idp
Id string ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- Enabled bool
If this IDP allows the user to sign in
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client
Id String OAuth client ID
- client
Secret String OAuth client secret
- idp
Id String ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- enabled Boolean
If this IDP allows the user to sign in
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client
Id string OAuth client ID
- client
Secret string OAuth client secret
- idp
Id string ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- enabled boolean
If this IDP allows the user to sign in
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client_
id str OAuth client ID
- client_
secret str OAuth client secret
- idp_
id str ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- enabled bool
If this IDP allows the user to sign in
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client
Id String OAuth client ID
- client
Secret String OAuth client secret
- idp
Id String ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- enabled Boolean
If this IDP allows the user to sign in
- 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 DefaultSupportedIdpConfig resource produces the following output properties:
Look up Existing DefaultSupportedIdpConfig Resource
Get an existing DefaultSupportedIdpConfig 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?: DefaultSupportedIdpConfigState, opts?: CustomResourceOptions): DefaultSupportedIdpConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
enabled: Optional[bool] = None,
idp_id: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None) -> DefaultSupportedIdpConfig
func GetDefaultSupportedIdpConfig(ctx *Context, name string, id IDInput, state *DefaultSupportedIdpConfigState, opts ...ResourceOption) (*DefaultSupportedIdpConfig, error)
public static DefaultSupportedIdpConfig Get(string name, Input<string> id, DefaultSupportedIdpConfigState? state, CustomResourceOptions? opts = null)
public static DefaultSupportedIdpConfig get(String name, Output<String> id, DefaultSupportedIdpConfigState 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.
- Client
Id string OAuth client ID
- Client
Secret string OAuth client secret
- Enabled bool
If this IDP allows the user to sign in
- Idp
Id string ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- Name string
The name of the DefaultSupportedIdpConfig resource
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Client
Id string OAuth client ID
- Client
Secret string OAuth client secret
- Enabled bool
If this IDP allows the user to sign in
- Idp
Id string ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- Name string
The name of the DefaultSupportedIdpConfig resource
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client
Id String OAuth client ID
- client
Secret String OAuth client secret
- enabled Boolean
If this IDP allows the user to sign in
- idp
Id String ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- name String
The name of the DefaultSupportedIdpConfig resource
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client
Id string OAuth client ID
- client
Secret string OAuth client secret
- enabled boolean
If this IDP allows the user to sign in
- idp
Id string ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- name string
The name of the DefaultSupportedIdpConfig resource
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client_
id str OAuth client ID
- client_
secret str OAuth client secret
- enabled bool
If this IDP allows the user to sign in
- idp_
id str ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- name str
The name of the DefaultSupportedIdpConfig resource
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- client
Id String OAuth client ID
- client
Secret String OAuth client secret
- enabled Boolean
If this IDP allows the user to sign in
- idp
Id String ID of the IDP. Possible values include:
apple.com
facebook.com
gc.apple.com
github.com
google.com
linkedin.com
microsoft.com
playgames.google.com
twitter.com
yahoo.com
- name String
The name of the DefaultSupportedIdpConfig resource
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Import
DefaultSupportedIdpConfig can be imported using any of these accepted formats* projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}
* {{project}}/{{idp_id}}
* {{idp_id}}
In Terraform v1.5.0 and later, use an import
block to import DefaultSupportedIdpConfig using one of the formats above. For exampletf import {
id = “projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}”
to = google_identity_platform_default_supported_idp_config.default }
$ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), DefaultSupportedIdpConfig can be imported using one of the formats above. For example
$ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig default projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}
$ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig default {{project}}/{{idp_id}}
$ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig default {{idp_id}}
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.