@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
194 lines (193 loc) • 5.95 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Configurations options for authenticating with a the standard set of Identity Toolkit-trusted IDPs.
*
* You must enable the
* [Google Identity Platform](https://console.cloud.google.com/marketplace/details/google-cloud-platform/customer-identity) in
* the marketplace prior to using this resource.
*
* ## Example Usage
*
* ### Identity Platform Default Supported Idp Config Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const idpConfig = new gcp.identityplatform.DefaultSupportedIdpConfig("idp_config", {
* enabled: true,
* idpId: "playgames.google.com",
* clientId: "client-id",
* clientSecret: "secret",
* });
* ```
*
* ## Import
*
* DefaultSupportedIdpConfig can be imported using any of these accepted formats:
*
* * `projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}`
*
* * `{{project}}/{{idp_id}}`
*
* * `{{idp_id}}`
*
* When using the `pulumi import` command, DefaultSupportedIdpConfig can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig default projects/{{project}}/defaultSupportedIdpConfigs/{{idp_id}}
* ```
*
* ```sh
* $ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig default {{project}}/{{idp_id}}
* ```
*
* ```sh
* $ pulumi import gcp:identityplatform/defaultSupportedIdpConfig:DefaultSupportedIdpConfig default {{idp_id}}
* ```
*/
export declare class DefaultSupportedIdpConfig extends pulumi.CustomResource {
/**
* Get an existing DefaultSupportedIdpConfig resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DefaultSupportedIdpConfigState, opts?: pulumi.CustomResourceOptions): DefaultSupportedIdpConfig;
/**
* Returns true if the given object is an instance of DefaultSupportedIdpConfig. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is DefaultSupportedIdpConfig;
/**
* OAuth client ID
*/
readonly clientId: pulumi.Output<string>;
/**
* OAuth client secret
*
*
* - - -
*/
readonly clientSecret: pulumi.Output<string>;
/**
* If this IDP allows the user to sign in
*/
readonly enabled: pulumi.Output<boolean | undefined>;
/**
* 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`
*/
readonly idpId: pulumi.Output<string>;
/**
* The name of the DefaultSupportedIdpConfig resource
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.Output<string>;
/**
* Create a DefaultSupportedIdpConfig resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: DefaultSupportedIdpConfigArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DefaultSupportedIdpConfig resources.
*/
export interface DefaultSupportedIdpConfigState {
/**
* OAuth client ID
*/
clientId?: pulumi.Input<string>;
/**
* OAuth client secret
*
*
* - - -
*/
clientSecret?: pulumi.Input<string>;
/**
* If this IDP allows the user to sign in
*/
enabled?: pulumi.Input<boolean>;
/**
* 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`
*/
idpId?: pulumi.Input<string>;
/**
* The name of the DefaultSupportedIdpConfig resource
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a DefaultSupportedIdpConfig resource.
*/
export interface DefaultSupportedIdpConfigArgs {
/**
* OAuth client ID
*/
clientId: pulumi.Input<string>;
/**
* OAuth client secret
*
*
* - - -
*/
clientSecret: pulumi.Input<string>;
/**
* If this IDP allows the user to sign in
*/
enabled?: pulumi.Input<boolean>;
/**
* 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`
*/
idpId: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}