1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ram
  5. AccountAlias
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ram.AccountAlias

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    Import

    RAM Account Alias can be imported using the id, e.g.

    $ pulumi import alicloud:ram/accountAlias:AccountAlias example <id>
    

    Create AccountAlias Resource

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

    Constructor syntax

    new AccountAlias(name: string, args: AccountAliasArgs, opts?: CustomResourceOptions);
    @overload
    def AccountAlias(resource_name: str,
                     args: AccountAliasArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountAlias(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_alias: Optional[str] = None)
    func NewAccountAlias(ctx *Context, name string, args AccountAliasArgs, opts ...ResourceOption) (*AccountAlias, error)
    public AccountAlias(string name, AccountAliasArgs args, CustomResourceOptions? opts = null)
    public AccountAlias(String name, AccountAliasArgs args)
    public AccountAlias(String name, AccountAliasArgs args, CustomResourceOptions options)
    
    type: alicloud:ram:AccountAlias
    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 AccountAliasArgs
    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 AccountAliasArgs
    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 AccountAliasArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountAliasArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountAliasArgs
    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 accountAliasResource = new AliCloud.Ram.AccountAlias("accountAliasResource", new()
    {
        Alias = "string",
    });
    
    example, err := ram.NewAccountAlias(ctx, "accountAliasResource", &ram.AccountAliasArgs{
    	AccountAlias: pulumi.String("string"),
    })
    
    var accountAliasResource = new AccountAlias("accountAliasResource", AccountAliasArgs.builder()
        .accountAlias("string")
        .build());
    
    account_alias_resource = alicloud.ram.AccountAlias("accountAliasResource", account_alias="string")
    
    const accountAliasResource = new alicloud.ram.AccountAlias("accountAliasResource", {accountAlias: "string"});
    
    type: alicloud:ram:AccountAlias
    properties:
        accountAlias: string
    

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

    Alias string
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    AccountAlias string
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    accountAlias String
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    accountAlias string
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    account_alias str
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    accountAlias String
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountAlias 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 AccountAlias Resource

    Get an existing AccountAlias 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?: AccountAliasState, opts?: CustomResourceOptions): AccountAlias
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_alias: Optional[str] = None) -> AccountAlias
    func GetAccountAlias(ctx *Context, name string, id IDInput, state *AccountAliasState, opts ...ResourceOption) (*AccountAlias, error)
    public static AccountAlias Get(string name, Input<string> id, AccountAliasState? state, CustomResourceOptions? opts = null)
    public static AccountAlias get(String name, Output<String> id, AccountAliasState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:ram:AccountAlias    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:
    Alias string
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    AccountAlias string
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    accountAlias String
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    accountAlias string
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    account_alias str
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).
    accountAlias String
    The alias of the account. It can be 3 to 32 characters in length and can contain lowercase letters, digits, and dashes (-).

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi