1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eflo
  5. Er
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

alicloud.eflo.Er

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

    Provides a Eflo Er resource.

    For information about Eflo Er and how to use it, see What is Er.

    NOTE: Available since v1.258.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.resourcemanager.getResourceGroups({});
    const defaultEr = new alicloud.eflo.Er("default", {
        erName: "er-example-tf",
        masterZoneId: "cn-hangzhou-a",
        description: "example",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.resourcemanager.get_resource_groups()
    default_er = alicloud.eflo.Er("default",
        er_name="er-example-tf",
        master_zone_id="cn-hangzhou-a",
        description="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = eflo.NewEr(ctx, "default", &eflo.ErArgs{
    			ErName:       pulumi.String("er-example-tf"),
    			MasterZoneId: pulumi.String("cn-hangzhou-a"),
    			Description:  pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultEr = new AliCloud.Eflo.Er("default", new()
        {
            ErName = "er-example-tf",
            MasterZoneId = "cn-hangzhou-a",
            Description = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.eflo.Er;
    import com.pulumi.alicloud.eflo.ErArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .build());
    
            var defaultEr = new Er("defaultEr", ErArgs.builder()
                .erName("er-example-tf")
                .masterZoneId("cn-hangzhou-a")
                .description("example")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultEr:
        type: alicloud:eflo:Er
        name: default
        properties:
          erName: er-example-tf
          masterZoneId: cn-hangzhou-a
          description: example
    variables:
      default:
        fn::invoke:
          function: alicloud:resourcemanager:getResourceGroups
          arguments: {}
    

    Create Er Resource

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

    Constructor syntax

    new Er(name: string, args: ErArgs, opts?: CustomResourceOptions);
    @overload
    def Er(resource_name: str,
           args: ErArgs,
           opts: Optional[ResourceOptions] = None)
    
    @overload
    def Er(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           er_name: Optional[str] = None,
           master_zone_id: Optional[str] = None,
           description: Optional[str] = None,
           resource_group_id: Optional[str] = None,
           tags: Optional[Mapping[str, str]] = None)
    func NewEr(ctx *Context, name string, args ErArgs, opts ...ResourceOption) (*Er, error)
    public Er(string name, ErArgs args, CustomResourceOptions? opts = null)
    public Er(String name, ErArgs args)
    public Er(String name, ErArgs args, CustomResourceOptions options)
    
    type: alicloud:eflo:Er
    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 ErArgs
    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 ErArgs
    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 ErArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ErArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ErArgs
    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 alicloudErResource = new AliCloud.Eflo.Er("alicloudErResource", new()
    {
        ErName = "string",
        MasterZoneId = "string",
        Description = "string",
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := eflo.NewEr(ctx, "alicloudErResource", &eflo.ErArgs{
    	ErName:          pulumi.String("string"),
    	MasterZoneId:    pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	ResourceGroupId: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var alicloudErResource = new com.pulumi.alicloud.eflo.Er("alicloudErResource", com.pulumi.alicloud.eflo.ErArgs.builder()
        .erName("string")
        .masterZoneId("string")
        .description("string")
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .build());
    
    alicloud_er_resource = alicloud.eflo.Er("alicloudErResource",
        er_name="string",
        master_zone_id="string",
        description="string",
        resource_group_id="string",
        tags={
            "string": "string",
        })
    
    const alicloudErResource = new alicloud.eflo.Er("alicloudErResource", {
        erName: "string",
        masterZoneId: "string",
        description: "string",
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
    });
    
    type: alicloud:eflo:Er
    properties:
        description: string
        erName: string
        masterZoneId: string
        resourceGroupId: string
        tags:
            string: string
    

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

    ErName string
    Lingjun HUB name
    MasterZoneId string
    Primary zone
    Description string
    Description.
    ResourceGroupId string
    The ID of the resource group instance.
    Tags Dictionary<string, string>
    Label List
    ErName string
    Lingjun HUB name
    MasterZoneId string
    Primary zone
    Description string
    Description.
    ResourceGroupId string
    The ID of the resource group instance.
    Tags map[string]string
    Label List
    erName String
    Lingjun HUB name
    masterZoneId String
    Primary zone
    description String
    Description.
    resourceGroupId String
    The ID of the resource group instance.
    tags Map<String,String>
    Label List
    erName string
    Lingjun HUB name
    masterZoneId string
    Primary zone
    description string
    Description.
    resourceGroupId string
    The ID of the resource group instance.
    tags {[key: string]: string}
    Label List
    er_name str
    Lingjun HUB name
    master_zone_id str
    Primary zone
    description str
    Description.
    resource_group_id str
    The ID of the resource group instance.
    tags Mapping[str, str]
    Label List
    erName String
    Lingjun HUB name
    masterZoneId String
    Primary zone
    description String
    Description.
    resourceGroupId String
    The ID of the resource group instance.
    tags Map<String>
    Label List

    Outputs

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

    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    region information
    Status string
    Status
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    region information
    Status string
    Status
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    region information
    status String
    Status
    createTime string
    The creation time of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    regionId string
    region information
    status string
    Status
    create_time str
    The creation time of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    region_id str
    region information
    status str
    Status
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    region information
    status String
    Status

    Look up Existing Er Resource

    Get an existing Er 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?: ErState, opts?: CustomResourceOptions): Er
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            er_name: Optional[str] = None,
            master_zone_id: Optional[str] = None,
            region_id: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> Er
    func GetEr(ctx *Context, name string, id IDInput, state *ErState, opts ...ResourceOption) (*Er, error)
    public static Er Get(string name, Input<string> id, ErState? state, CustomResourceOptions? opts = null)
    public static Er get(String name, Output<String> id, ErState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:eflo:Er    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:
    CreateTime string
    The creation time of the resource
    Description string
    Description.
    ErName string
    Lingjun HUB name
    MasterZoneId string
    Primary zone
    RegionId string
    region information
    ResourceGroupId string
    The ID of the resource group instance.
    Status string
    Status
    Tags Dictionary<string, string>
    Label List
    CreateTime string
    The creation time of the resource
    Description string
    Description.
    ErName string
    Lingjun HUB name
    MasterZoneId string
    Primary zone
    RegionId string
    region information
    ResourceGroupId string
    The ID of the resource group instance.
    Status string
    Status
    Tags map[string]string
    Label List
    createTime String
    The creation time of the resource
    description String
    Description.
    erName String
    Lingjun HUB name
    masterZoneId String
    Primary zone
    regionId String
    region information
    resourceGroupId String
    The ID of the resource group instance.
    status String
    Status
    tags Map<String,String>
    Label List
    createTime string
    The creation time of the resource
    description string
    Description.
    erName string
    Lingjun HUB name
    masterZoneId string
    Primary zone
    regionId string
    region information
    resourceGroupId string
    The ID of the resource group instance.
    status string
    Status
    tags {[key: string]: string}
    Label List
    create_time str
    The creation time of the resource
    description str
    Description.
    er_name str
    Lingjun HUB name
    master_zone_id str
    Primary zone
    region_id str
    region information
    resource_group_id str
    The ID of the resource group instance.
    status str
    Status
    tags Mapping[str, str]
    Label List
    createTime String
    The creation time of the resource
    description String
    Description.
    erName String
    Lingjun HUB name
    masterZoneId String
    Primary zone
    regionId String
    region information
    resourceGroupId String
    The ID of the resource group instance.
    status String
    Status
    tags Map<String>
    Label List

    Import

    Eflo Er can be imported using the id, e.g.

    $ pulumi import alicloud:eflo/er:Er example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.85.0 published on Tuesday, Sep 9, 2025 by Pulumi