1. Packages
  2. Ibm Provider
  3. API Docs
  4. AppidIdpCustom
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.AppidIdpCustom

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, or delete an IBM Cloud AppID Management Services Custom IDP resource. For more information, see AppID custom identity

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fs from "fs";
    import * as ibm from "@pulumi/ibm";
    
    const idp = new ibm.AppidIdpCustom("idp", {
        tenantId: _var.tenant_id,
        isActive: true,
        publicKey: fs.readFileSync("path/to/public_key", "utf8"),
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    idp = ibm.AppidIdpCustom("idp",
        tenant_id=var["tenant_id"],
        is_active=True,
        public_key=(lambda path: open(path).read())("path/to/public_key"))
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewAppidIdpCustom(ctx, "idp", &ibm.AppidIdpCustomArgs{
    			TenantId:  pulumi.Any(_var.Tenant_id),
    			IsActive:  pulumi.Bool(true),
    			PublicKey: pulumi.String(readFileOrPanic("path/to/public_key")),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var idp = new Ibm.AppidIdpCustom("idp", new()
        {
            TenantId = @var.Tenant_id,
            IsActive = true,
            PublicKey = File.ReadAllText("path/to/public_key"),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppidIdpCustom;
    import com.pulumi.ibm.AppidIdpCustomArgs;
    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 idp = new AppidIdpCustom("idp", AppidIdpCustomArgs.builder()
                .tenantId(var_.tenant_id())
                .isActive(true)
                .publicKey(Files.readString(Paths.get("path/to/public_key")))
                .build());
    
        }
    }
    
    resources:
      idp:
        type: ibm:AppidIdpCustom
        properties:
          tenantId: ${var.tenant_id}
          isActive: true
          publicKey:
            fn::readFile: path/to/public_key
    

    Create AppidIdpCustom Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppidIdpCustom(name: string, args: AppidIdpCustomArgs, opts?: CustomResourceOptions);
    @overload
    def AppidIdpCustom(resource_name: str,
                       args: AppidIdpCustomArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppidIdpCustom(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       is_active: Optional[bool] = None,
                       tenant_id: Optional[str] = None,
                       appid_idp_custom_id: Optional[str] = None,
                       public_key: Optional[str] = None)
    func NewAppidIdpCustom(ctx *Context, name string, args AppidIdpCustomArgs, opts ...ResourceOption) (*AppidIdpCustom, error)
    public AppidIdpCustom(string name, AppidIdpCustomArgs args, CustomResourceOptions? opts = null)
    public AppidIdpCustom(String name, AppidIdpCustomArgs args)
    public AppidIdpCustom(String name, AppidIdpCustomArgs args, CustomResourceOptions options)
    
    type: ibm:AppidIdpCustom
    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 AppidIdpCustomArgs
    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 AppidIdpCustomArgs
    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 AppidIdpCustomArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppidIdpCustomArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppidIdpCustomArgs
    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 appidIdpCustomResource = new Ibm.AppidIdpCustom("appidIdpCustomResource", new()
    {
        IsActive = false,
        TenantId = "string",
        AppidIdpCustomId = "string",
        PublicKey = "string",
    });
    
    example, err := ibm.NewAppidIdpCustom(ctx, "appidIdpCustomResource", &ibm.AppidIdpCustomArgs{
    	IsActive:         pulumi.Bool(false),
    	TenantId:         pulumi.String("string"),
    	AppidIdpCustomId: pulumi.String("string"),
    	PublicKey:        pulumi.String("string"),
    })
    
    var appidIdpCustomResource = new AppidIdpCustom("appidIdpCustomResource", AppidIdpCustomArgs.builder()
        .isActive(false)
        .tenantId("string")
        .appidIdpCustomId("string")
        .publicKey("string")
        .build());
    
    appid_idp_custom_resource = ibm.AppidIdpCustom("appidIdpCustomResource",
        is_active=False,
        tenant_id="string",
        appid_idp_custom_id="string",
        public_key="string")
    
    const appidIdpCustomResource = new ibm.AppidIdpCustom("appidIdpCustomResource", {
        isActive: false,
        tenantId: "string",
        appidIdpCustomId: "string",
        publicKey: "string",
    });
    
    type: ibm:AppidIdpCustom
    properties:
        appidIdpCustomId: string
        isActive: false
        publicKey: string
        tenantId: string
    

    AppidIdpCustom 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 AppidIdpCustom resource accepts the following input properties:

    IsActive bool
    true if custom IDP integration should be enabled
    TenantId string
    The AppID instance GUID
    AppidIdpCustomId string
    PublicKey string
    The public key used to validate signed JWT
    IsActive bool
    true if custom IDP integration should be enabled
    TenantId string
    The AppID instance GUID
    AppidIdpCustomId string
    PublicKey string
    The public key used to validate signed JWT
    isActive Boolean
    true if custom IDP integration should be enabled
    tenantId String
    The AppID instance GUID
    appidIdpCustomId String
    publicKey String
    The public key used to validate signed JWT
    isActive boolean
    true if custom IDP integration should be enabled
    tenantId string
    The AppID instance GUID
    appidIdpCustomId string
    publicKey string
    The public key used to validate signed JWT
    is_active bool
    true if custom IDP integration should be enabled
    tenant_id str
    The AppID instance GUID
    appid_idp_custom_id str
    public_key str
    The public key used to validate signed JWT
    isActive Boolean
    true if custom IDP integration should be enabled
    tenantId String
    The AppID instance GUID
    appidIdpCustomId String
    publicKey String
    The public key used to validate signed JWT

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppidIdpCustom resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AppidIdpCustom Resource

    Get an existing AppidIdpCustom 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?: AppidIdpCustomState, opts?: CustomResourceOptions): AppidIdpCustom
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            appid_idp_custom_id: Optional[str] = None,
            is_active: Optional[bool] = None,
            public_key: Optional[str] = None,
            tenant_id: Optional[str] = None) -> AppidIdpCustom
    func GetAppidIdpCustom(ctx *Context, name string, id IDInput, state *AppidIdpCustomState, opts ...ResourceOption) (*AppidIdpCustom, error)
    public static AppidIdpCustom Get(string name, Input<string> id, AppidIdpCustomState? state, CustomResourceOptions? opts = null)
    public static AppidIdpCustom get(String name, Output<String> id, AppidIdpCustomState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppidIdpCustom    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.
    The following state arguments are supported:
    AppidIdpCustomId string
    IsActive bool
    true if custom IDP integration should be enabled
    PublicKey string
    The public key used to validate signed JWT
    TenantId string
    The AppID instance GUID
    AppidIdpCustomId string
    IsActive bool
    true if custom IDP integration should be enabled
    PublicKey string
    The public key used to validate signed JWT
    TenantId string
    The AppID instance GUID
    appidIdpCustomId String
    isActive Boolean
    true if custom IDP integration should be enabled
    publicKey String
    The public key used to validate signed JWT
    tenantId String
    The AppID instance GUID
    appidIdpCustomId string
    isActive boolean
    true if custom IDP integration should be enabled
    publicKey string
    The public key used to validate signed JWT
    tenantId string
    The AppID instance GUID
    appid_idp_custom_id str
    is_active bool
    true if custom IDP integration should be enabled
    public_key str
    The public key used to validate signed JWT
    tenant_id str
    The AppID instance GUID
    appidIdpCustomId String
    isActive Boolean
    true if custom IDP integration should be enabled
    publicKey String
    The public key used to validate signed JWT
    tenantId String
    The AppID instance GUID

    Import

    The ibm_appid_idp_custom resource can be imported by using the AppID tenant ID.

    Syntax

    bash

    $ pulumi import ibm:index/appidIdpCustom:AppidIdpCustom idp <tenant_id>
    

    Example

    bash

    $ pulumi import ibm:index/appidIdpCustom:AppidIdpCustom idp 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud