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

ibm.AppidPasswordRegex

Explore with Pulumi AI

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

    Update or reset an IBM Cloud AppID Management Services Password Regex configuration. For more information, see defining password policies

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const rgx = new ibm.AppidPasswordRegex("rgx", {
        tenantId: _var.tenant_id,
        regex: "^(?:(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*)$",
        errorMessage: "test error",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    rgx = ibm.AppidPasswordRegex("rgx",
        tenant_id=var["tenant_id"],
        regex="^(?:(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*)$",
        error_message="test error")
    
    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.NewAppidPasswordRegex(ctx, "rgx", &ibm.AppidPasswordRegexArgs{
    			TenantId:     pulumi.Any(_var.Tenant_id),
    			Regex:        pulumi.String("^(?:(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*)$"),
    			ErrorMessage: pulumi.String("test error"),
    		})
    		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 rgx = new Ibm.AppidPasswordRegex("rgx", new()
        {
            TenantId = @var.Tenant_id,
            Regex = "^(?:(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*)$",
            ErrorMessage = "test error",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppidPasswordRegex;
    import com.pulumi.ibm.AppidPasswordRegexArgs;
    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 rgx = new AppidPasswordRegex("rgx", AppidPasswordRegexArgs.builder()
                .tenantId(var_.tenant_id())
                .regex("^(?:(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*)$")
                .errorMessage("test error")
                .build());
    
        }
    }
    
    resources:
      rgx:
        type: ibm:AppidPasswordRegex
        properties:
          tenantId: ${var.tenant_id}
          regex: ^(?:(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*)$
          errorMessage: test error
    

    Create AppidPasswordRegex Resource

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

    Constructor syntax

    new AppidPasswordRegex(name: string, args: AppidPasswordRegexArgs, opts?: CustomResourceOptions);
    @overload
    def AppidPasswordRegex(resource_name: str,
                           args: AppidPasswordRegexArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppidPasswordRegex(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           regex: Optional[str] = None,
                           tenant_id: Optional[str] = None,
                           appid_password_regex_id: Optional[str] = None,
                           error_message: Optional[str] = None)
    func NewAppidPasswordRegex(ctx *Context, name string, args AppidPasswordRegexArgs, opts ...ResourceOption) (*AppidPasswordRegex, error)
    public AppidPasswordRegex(string name, AppidPasswordRegexArgs args, CustomResourceOptions? opts = null)
    public AppidPasswordRegex(String name, AppidPasswordRegexArgs args)
    public AppidPasswordRegex(String name, AppidPasswordRegexArgs args, CustomResourceOptions options)
    
    type: ibm:AppidPasswordRegex
    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 AppidPasswordRegexArgs
    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 AppidPasswordRegexArgs
    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 AppidPasswordRegexArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppidPasswordRegexArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppidPasswordRegexArgs
    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 appidPasswordRegexResource = new Ibm.AppidPasswordRegex("appidPasswordRegexResource", new()
    {
        Regex = "string",
        TenantId = "string",
        AppidPasswordRegexId = "string",
        ErrorMessage = "string",
    });
    
    example, err := ibm.NewAppidPasswordRegex(ctx, "appidPasswordRegexResource", &ibm.AppidPasswordRegexArgs{
    	Regex:                pulumi.String("string"),
    	TenantId:             pulumi.String("string"),
    	AppidPasswordRegexId: pulumi.String("string"),
    	ErrorMessage:         pulumi.String("string"),
    })
    
    var appidPasswordRegexResource = new AppidPasswordRegex("appidPasswordRegexResource", AppidPasswordRegexArgs.builder()
        .regex("string")
        .tenantId("string")
        .appidPasswordRegexId("string")
        .errorMessage("string")
        .build());
    
    appid_password_regex_resource = ibm.AppidPasswordRegex("appidPasswordRegexResource",
        regex="string",
        tenant_id="string",
        appid_password_regex_id="string",
        error_message="string")
    
    const appidPasswordRegexResource = new ibm.AppidPasswordRegex("appidPasswordRegexResource", {
        regex: "string",
        tenantId: "string",
        appidPasswordRegexId: "string",
        errorMessage: "string",
    });
    
    type: ibm:AppidPasswordRegex
    properties:
        appidPasswordRegexId: string
        errorMessage: string
        regex: string
        tenantId: string
    

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

    Regex string
    The escaped regex expression rule for acceptable password
    TenantId string
    The AppID instance GUID
    AppidPasswordRegexId string
    ErrorMessage string
    Custom error message
    Regex string
    The escaped regex expression rule for acceptable password
    TenantId string
    The AppID instance GUID
    AppidPasswordRegexId string
    ErrorMessage string
    Custom error message
    regex String
    The escaped regex expression rule for acceptable password
    tenantId String
    The AppID instance GUID
    appidPasswordRegexId String
    errorMessage String
    Custom error message
    regex string
    The escaped regex expression rule for acceptable password
    tenantId string
    The AppID instance GUID
    appidPasswordRegexId string
    errorMessage string
    Custom error message
    regex str
    The escaped regex expression rule for acceptable password
    tenant_id str
    The AppID instance GUID
    appid_password_regex_id str
    error_message str
    Custom error message
    regex String
    The escaped regex expression rule for acceptable password
    tenantId String
    The AppID instance GUID
    appidPasswordRegexId String
    errorMessage String
    Custom error message

    Outputs

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

    Base64EncodedRegex string
    (String) The regex expression rule for acceptable password encoded in base64
    Id string
    The provider-assigned unique ID for this managed resource.
    Base64EncodedRegex string
    (String) The regex expression rule for acceptable password encoded in base64
    Id string
    The provider-assigned unique ID for this managed resource.
    base64EncodedRegex String
    (String) The regex expression rule for acceptable password encoded in base64
    id String
    The provider-assigned unique ID for this managed resource.
    base64EncodedRegex string
    (String) The regex expression rule for acceptable password encoded in base64
    id string
    The provider-assigned unique ID for this managed resource.
    base64_encoded_regex str
    (String) The regex expression rule for acceptable password encoded in base64
    id str
    The provider-assigned unique ID for this managed resource.
    base64EncodedRegex String
    (String) The regex expression rule for acceptable password encoded in base64
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AppidPasswordRegex Resource

    Get an existing AppidPasswordRegex 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?: AppidPasswordRegexState, opts?: CustomResourceOptions): AppidPasswordRegex
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            appid_password_regex_id: Optional[str] = None,
            base64_encoded_regex: Optional[str] = None,
            error_message: Optional[str] = None,
            regex: Optional[str] = None,
            tenant_id: Optional[str] = None) -> AppidPasswordRegex
    func GetAppidPasswordRegex(ctx *Context, name string, id IDInput, state *AppidPasswordRegexState, opts ...ResourceOption) (*AppidPasswordRegex, error)
    public static AppidPasswordRegex Get(string name, Input<string> id, AppidPasswordRegexState? state, CustomResourceOptions? opts = null)
    public static AppidPasswordRegex get(String name, Output<String> id, AppidPasswordRegexState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppidPasswordRegex    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:
    AppidPasswordRegexId string
    Base64EncodedRegex string
    (String) The regex expression rule for acceptable password encoded in base64
    ErrorMessage string
    Custom error message
    Regex string
    The escaped regex expression rule for acceptable password
    TenantId string
    The AppID instance GUID
    AppidPasswordRegexId string
    Base64EncodedRegex string
    (String) The regex expression rule for acceptable password encoded in base64
    ErrorMessage string
    Custom error message
    Regex string
    The escaped regex expression rule for acceptable password
    TenantId string
    The AppID instance GUID
    appidPasswordRegexId String
    base64EncodedRegex String
    (String) The regex expression rule for acceptable password encoded in base64
    errorMessage String
    Custom error message
    regex String
    The escaped regex expression rule for acceptable password
    tenantId String
    The AppID instance GUID
    appidPasswordRegexId string
    base64EncodedRegex string
    (String) The regex expression rule for acceptable password encoded in base64
    errorMessage string
    Custom error message
    regex string
    The escaped regex expression rule for acceptable password
    tenantId string
    The AppID instance GUID
    appid_password_regex_id str
    base64_encoded_regex str
    (String) The regex expression rule for acceptable password encoded in base64
    error_message str
    Custom error message
    regex str
    The escaped regex expression rule for acceptable password
    tenant_id str
    The AppID instance GUID
    appidPasswordRegexId String
    base64EncodedRegex String
    (String) The regex expression rule for acceptable password encoded in base64
    errorMessage String
    Custom error message
    regex String
    The escaped regex expression rule for acceptable password
    tenantId String
    The AppID instance GUID

    Import

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

    Syntax

    bash

    $ pulumi import ibm:index/appidPasswordRegex:AppidPasswordRegex rgx <tenant_id>
    

    Example

    bash

    $ pulumi import ibm:index/appidPasswordRegex:AppidPasswordRegex rgx 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