ibm.AppidIdpFacebook
Explore with Pulumi AI
Update or reset an IBM Cloud AppID Management Services Facebook IDP configuration. For more information, see App ID social identity providers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const fb = new ibm.AppidIdpFacebook("fb", {
tenantId: _var.tenant_id,
isActive: true,
config: {
applicationId: "test_id",
applicationSecret: "test_secret",
},
});
import pulumi
import pulumi_ibm as ibm
fb = ibm.AppidIdpFacebook("fb",
tenant_id=var["tenant_id"],
is_active=True,
config={
"application_id": "test_id",
"application_secret": "test_secret",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewAppidIdpFacebook(ctx, "fb", &ibm.AppidIdpFacebookArgs{
TenantId: pulumi.Any(_var.Tenant_id),
IsActive: pulumi.Bool(true),
Config: &ibm.AppidIdpFacebookConfigArgs{
ApplicationId: pulumi.String("test_id"),
ApplicationSecret: pulumi.String("test_secret"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var fb = new Ibm.AppidIdpFacebook("fb", new()
{
TenantId = @var.Tenant_id,
IsActive = true,
Config = new Ibm.Inputs.AppidIdpFacebookConfigArgs
{
ApplicationId = "test_id",
ApplicationSecret = "test_secret",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppidIdpFacebook;
import com.pulumi.ibm.AppidIdpFacebookArgs;
import com.pulumi.ibm.inputs.AppidIdpFacebookConfigArgs;
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 fb = new AppidIdpFacebook("fb", AppidIdpFacebookArgs.builder()
.tenantId(var_.tenant_id())
.isActive(true)
.config(AppidIdpFacebookConfigArgs.builder()
.applicationId("test_id")
.applicationSecret("test_secret")
.build())
.build());
}
}
resources:
fb:
type: ibm:AppidIdpFacebook
properties:
tenantId: ${var.tenant_id}
isActive: true
config:
applicationId: test_id
applicationSecret: test_secret
Create AppidIdpFacebook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppidIdpFacebook(name: string, args: AppidIdpFacebookArgs, opts?: CustomResourceOptions);
@overload
def AppidIdpFacebook(resource_name: str,
args: AppidIdpFacebookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppidIdpFacebook(resource_name: str,
opts: Optional[ResourceOptions] = None,
is_active: Optional[bool] = None,
tenant_id: Optional[str] = None,
appid_idp_facebook_id: Optional[str] = None,
config: Optional[AppidIdpFacebookConfigArgs] = None)
func NewAppidIdpFacebook(ctx *Context, name string, args AppidIdpFacebookArgs, opts ...ResourceOption) (*AppidIdpFacebook, error)
public AppidIdpFacebook(string name, AppidIdpFacebookArgs args, CustomResourceOptions? opts = null)
public AppidIdpFacebook(String name, AppidIdpFacebookArgs args)
public AppidIdpFacebook(String name, AppidIdpFacebookArgs args, CustomResourceOptions options)
type: ibm:AppidIdpFacebook
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 AppidIdpFacebookArgs
- 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 AppidIdpFacebookArgs
- 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 AppidIdpFacebookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppidIdpFacebookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppidIdpFacebookArgs
- 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 appidIdpFacebookResource = new Ibm.AppidIdpFacebook("appidIdpFacebookResource", new()
{
IsActive = false,
TenantId = "string",
AppidIdpFacebookId = "string",
Config = new Ibm.Inputs.AppidIdpFacebookConfigArgs
{
ApplicationId = "string",
ApplicationSecret = "string",
},
});
example, err := ibm.NewAppidIdpFacebook(ctx, "appidIdpFacebookResource", &ibm.AppidIdpFacebookArgs{
IsActive: pulumi.Bool(false),
TenantId: pulumi.String("string"),
AppidIdpFacebookId: pulumi.String("string"),
Config: &ibm.AppidIdpFacebookConfigArgs{
ApplicationId: pulumi.String("string"),
ApplicationSecret: pulumi.String("string"),
},
})
var appidIdpFacebookResource = new AppidIdpFacebook("appidIdpFacebookResource", AppidIdpFacebookArgs.builder()
.isActive(false)
.tenantId("string")
.appidIdpFacebookId("string")
.config(AppidIdpFacebookConfigArgs.builder()
.applicationId("string")
.applicationSecret("string")
.build())
.build());
appid_idp_facebook_resource = ibm.AppidIdpFacebook("appidIdpFacebookResource",
is_active=False,
tenant_id="string",
appid_idp_facebook_id="string",
config={
"application_id": "string",
"application_secret": "string",
})
const appidIdpFacebookResource = new ibm.AppidIdpFacebook("appidIdpFacebookResource", {
isActive: false,
tenantId: "string",
appidIdpFacebookId: "string",
config: {
applicationId: "string",
applicationSecret: "string",
},
});
type: ibm:AppidIdpFacebook
properties:
appidIdpFacebookId: string
config:
applicationId: string
applicationSecret: string
isActive: false
tenantId: string
AppidIdpFacebook 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 AppidIdpFacebook resource accepts the following input properties:
- Is
Active bool - Facebook IDP activation
- Tenant
Id string - The AppID instance GUID
- Appid
Idp stringFacebook Id - Config
Appid
Idp Facebook Config Facebook IDP configuration
Nested scheme for
config
:
- Is
Active bool - Facebook IDP activation
- Tenant
Id string - The AppID instance GUID
- Appid
Idp stringFacebook Id - Config
Appid
Idp Facebook Config Args Facebook IDP configuration
Nested scheme for
config
:
- is
Active Boolean - Facebook IDP activation
- tenant
Id String - The AppID instance GUID
- appid
Idp StringFacebook Id - config
Appid
Idp Facebook Config Facebook IDP configuration
Nested scheme for
config
:
- is
Active boolean - Facebook IDP activation
- tenant
Id string - The AppID instance GUID
- appid
Idp stringFacebook Id - config
Appid
Idp Facebook Config Facebook IDP configuration
Nested scheme for
config
:
- is_
active bool - Facebook IDP activation
- tenant_
id str - The AppID instance GUID
- appid_
idp_ strfacebook_ id - config
Appid
Idp Facebook Config Args Facebook IDP configuration
Nested scheme for
config
:
- is
Active Boolean - Facebook IDP activation
- tenant
Id String - The AppID instance GUID
- appid
Idp StringFacebook Id - config Property Map
Facebook IDP configuration
Nested scheme for
config
:
Outputs
All input properties are implicitly available as output properties. Additionally, the AppidIdpFacebook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Redirect
Url string - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- Id string
- The provider-assigned unique ID for this managed resource.
- Redirect
Url string - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- id String
- The provider-assigned unique ID for this managed resource.
- redirect
Url String - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- id string
- The provider-assigned unique ID for this managed resource.
- redirect
Url string - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- id str
- The provider-assigned unique ID for this managed resource.
- redirect_
url str - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- id String
- The provider-assigned unique ID for this managed resource.
- redirect
Url String - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
Look up Existing AppidIdpFacebook Resource
Get an existing AppidIdpFacebook 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?: AppidIdpFacebookState, opts?: CustomResourceOptions): AppidIdpFacebook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
appid_idp_facebook_id: Optional[str] = None,
config: Optional[AppidIdpFacebookConfigArgs] = None,
is_active: Optional[bool] = None,
redirect_url: Optional[str] = None,
tenant_id: Optional[str] = None) -> AppidIdpFacebook
func GetAppidIdpFacebook(ctx *Context, name string, id IDInput, state *AppidIdpFacebookState, opts ...ResourceOption) (*AppidIdpFacebook, error)
public static AppidIdpFacebook Get(string name, Input<string> id, AppidIdpFacebookState? state, CustomResourceOptions? opts = null)
public static AppidIdpFacebook get(String name, Output<String> id, AppidIdpFacebookState state, CustomResourceOptions options)
resources: _: type: ibm:AppidIdpFacebook get: id: ${id}
- 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.
- Appid
Idp stringFacebook Id - Config
Appid
Idp Facebook Config Facebook IDP configuration
Nested scheme for
config
:- Is
Active bool - Facebook IDP activation
- Redirect
Url string - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- Tenant
Id string - The AppID instance GUID
- Appid
Idp stringFacebook Id - Config
Appid
Idp Facebook Config Args Facebook IDP configuration
Nested scheme for
config
:- Is
Active bool - Facebook IDP activation
- Redirect
Url string - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- Tenant
Id string - The AppID instance GUID
- appid
Idp StringFacebook Id - config
Appid
Idp Facebook Config Facebook IDP configuration
Nested scheme for
config
:- is
Active Boolean - Facebook IDP activation
- redirect
Url String - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- tenant
Id String - The AppID instance GUID
- appid
Idp stringFacebook Id - config
Appid
Idp Facebook Config Facebook IDP configuration
Nested scheme for
config
:- is
Active boolean - Facebook IDP activation
- redirect
Url string - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- tenant
Id string - The AppID instance GUID
- appid_
idp_ strfacebook_ id - config
Appid
Idp Facebook Config Args Facebook IDP configuration
Nested scheme for
config
:- is_
active bool - Facebook IDP activation
- redirect_
url str - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- tenant_
id str - The AppID instance GUID
- appid
Idp StringFacebook Id - config Property Map
Facebook IDP configuration
Nested scheme for
config
:- is
Active Boolean - Facebook IDP activation
- redirect
Url String - (String) Paste the URI into the Valid OAuth redirect URIs field in the Facebook Login section of the Facebook Developers Portal
- tenant
Id String - The AppID instance GUID
Supporting Types
AppidIdpFacebookConfig, AppidIdpFacebookConfigArgs
- Application
Id string - Facebook application ID
- Application
Secret string - Facebook application secret
- Application
Id string - Facebook application ID
- Application
Secret string - Facebook application secret
- application
Id String - Facebook application ID
- application
Secret String - Facebook application secret
- application
Id string - Facebook application ID
- application
Secret string - Facebook application secret
- application_
id str - Facebook application ID
- application_
secret str - Facebook application secret
- application
Id String - Facebook application ID
- application
Secret String - Facebook application secret
Import
The ibm_appid_idp_facebook
resource can be imported by using the AppID tenant ID.
Syntax
bash
$ pulumi import ibm:index/appidIdpFacebook:AppidIdpFacebook fb <tenant_id>
Example
bash
$ pulumi import ibm:index/appidIdpFacebook:AppidIdpFacebook fb 5fa344a8-d361-4bc2-9051-58ca253f4b2b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.