alicloud.eflo.Er
Explore with Pulumi AI
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)
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:
- Er
Name string - Lingjun HUB name
- Master
Zone stringId - Primary zone
- Description string
- Description.
- Resource
Group stringId - The ID of the resource group instance.
- Dictionary<string, string>
- Label List
- Er
Name string - Lingjun HUB name
- Master
Zone stringId - Primary zone
- Description string
- Description.
- Resource
Group stringId - The ID of the resource group instance.
- map[string]string
- Label List
- er
Name String - Lingjun HUB name
- master
Zone StringId - Primary zone
- description String
- Description.
- resource
Group StringId - The ID of the resource group instance.
- Map<String,String>
- Label List
- er
Name string - Lingjun HUB name
- master
Zone stringId - Primary zone
- description string
- Description.
- resource
Group stringId - The ID of the resource group instance.
- {[key: string]: string}
- Label List
- er_
name str - Lingjun HUB name
- master_
zone_ strid - Primary zone
- description str
- Description.
- resource_
group_ strid - The ID of the resource group instance.
- Mapping[str, str]
- Label List
- er
Name String - Lingjun HUB name
- master
Zone StringId - Primary zone
- description String
- Description.
- resource
Group StringId - The ID of the resource group instance.
- Map<String>
- Label List
Outputs
All input properties are implicitly available as output properties. Additionally, the Er resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - region information
- Status string
- Status
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - region information
- Status string
- Status
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - region information
- status String
- Status
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id 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
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id 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.
- Create
Time string - The creation time of the resource
- Description string
- Description.
- Er
Name string - Lingjun HUB name
- Master
Zone stringId - Primary zone
- Region
Id string - region information
- Resource
Group stringId - The ID of the resource group instance.
- Status string
- Status
- Dictionary<string, string>
- Label List
- Create
Time string - The creation time of the resource
- Description string
- Description.
- Er
Name string - Lingjun HUB name
- Master
Zone stringId - Primary zone
- Region
Id string - region information
- Resource
Group stringId - The ID of the resource group instance.
- Status string
- Status
- map[string]string
- Label List
- create
Time String - The creation time of the resource
- description String
- Description.
- er
Name String - Lingjun HUB name
- master
Zone StringId - Primary zone
- region
Id String - region information
- resource
Group StringId - The ID of the resource group instance.
- status String
- Status
- Map<String,String>
- Label List
- create
Time string - The creation time of the resource
- description string
- Description.
- er
Name string - Lingjun HUB name
- master
Zone stringId - Primary zone
- region
Id string - region information
- resource
Group stringId - The ID of the resource group instance.
- status string
- Status
- {[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_ strid - Primary zone
- region_
id str - region information
- resource_
group_ strid - The ID of the resource group instance.
- status str
- Status
- Mapping[str, str]
- Label List
- create
Time String - The creation time of the resource
- description String
- Description.
- er
Name String - Lingjun HUB name
- master
Zone StringId - Primary zone
- region
Id String - region information
- resource
Group StringId - The ID of the resource group instance.
- status String
- Status
- 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.