alicloud.arms.Environment
Explore with Pulumi AI
Provides a ARMS Environment resource. The arms environment.
For information about ARMS Environment and how to use it, see What is Environment.
NOTE: Available since v1.212.0.
Create Environment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);
@overload
def Environment(resource_name: str,
args: EnvironmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Environment(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_sub_type: Optional[str] = None,
environment_type: Optional[str] = None,
aliyun_lang: Optional[str] = None,
bind_resource_id: Optional[str] = None,
drop_metrics: Optional[str] = None,
environment_name: Optional[str] = None,
managed_type: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)
public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: alicloud:arms:Environment
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 EnvironmentArgs
- 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 EnvironmentArgs
- 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 EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentArgs
- 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 environmentResource = new AliCloud.Arms.Environment("environmentResource", new()
{
EnvironmentSubType = "string",
EnvironmentType = "string",
AliyunLang = "string",
BindResourceId = "string",
DropMetrics = "string",
EnvironmentName = "string",
ManagedType = "string",
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := arms.NewEnvironment(ctx, "environmentResource", &arms.EnvironmentArgs{
EnvironmentSubType: pulumi.String("string"),
EnvironmentType: pulumi.String("string"),
AliyunLang: pulumi.String("string"),
BindResourceId: pulumi.String("string"),
DropMetrics: pulumi.String("string"),
EnvironmentName: pulumi.String("string"),
ManagedType: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var environmentResource = new Environment("environmentResource", EnvironmentArgs.builder()
.environmentSubType("string")
.environmentType("string")
.aliyunLang("string")
.bindResourceId("string")
.dropMetrics("string")
.environmentName("string")
.managedType("string")
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.build());
environment_resource = alicloud.arms.Environment("environmentResource",
environment_sub_type="string",
environment_type="string",
aliyun_lang="string",
bind_resource_id="string",
drop_metrics="string",
environment_name="string",
managed_type="string",
resource_group_id="string",
tags={
"string": "string",
})
const environmentResource = new alicloud.arms.Environment("environmentResource", {
environmentSubType: "string",
environmentType: "string",
aliyunLang: "string",
bindResourceId: "string",
dropMetrics: "string",
environmentName: "string",
managedType: "string",
resourceGroupId: "string",
tags: {
string: "string",
},
});
type: alicloud:arms:Environment
properties:
aliyunLang: string
bindResourceId: string
dropMetrics: string
environmentName: string
environmentSubType: string
environmentType: string
managedType: string
resourceGroupId: string
tags:
string: string
Environment 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 Environment resource accepts the following input properties:
- Environment
Sub stringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- Environment
Type string - Type of environment.
- Aliyun
Lang string - The locale. The default is Chinese zh | en.
- Bind
Resource stringId - The id or vpcId of the bound container instance.
- Drop
Metrics string - List of abandoned indicators.
- Environment
Name string - The name of the resource.
- Managed
Type string - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- Resource
Group stringId - The ID of the resource group.
- Dictionary<string, string>
- The tag of the resource.
- Environment
Sub stringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- Environment
Type string - Type of environment.
- Aliyun
Lang string - The locale. The default is Chinese zh | en.
- Bind
Resource stringId - The id or vpcId of the bound container instance.
- Drop
Metrics string - List of abandoned indicators.
- Environment
Name string - The name of the resource.
- Managed
Type string - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- Resource
Group stringId - The ID of the resource group.
- map[string]string
- The tag of the resource.
- environment
Sub StringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment
Type String - Type of environment.
- aliyun
Lang String - The locale. The default is Chinese zh | en.
- bind
Resource StringId - The id or vpcId of the bound container instance.
- drop
Metrics String - List of abandoned indicators.
- environment
Name String - The name of the resource.
- managed
Type String - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource
Group StringId - The ID of the resource group.
- Map<String,String>
- The tag of the resource.
- environment
Sub stringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment
Type string - Type of environment.
- aliyun
Lang string - The locale. The default is Chinese zh | en.
- bind
Resource stringId - The id or vpcId of the bound container instance.
- drop
Metrics string - List of abandoned indicators.
- environment
Name string - The name of the resource.
- managed
Type string - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource
Group stringId - The ID of the resource group.
- {[key: string]: string}
- The tag of the resource.
- environment_
sub_ strtype - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment_
type str - Type of environment.
- aliyun_
lang str - The locale. The default is Chinese zh | en.
- bind_
resource_ strid - The id or vpcId of the bound container instance.
- drop_
metrics str - List of abandoned indicators.
- environment_
name str - The name of the resource.
- managed_
type str - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource_
group_ strid - The ID of the resource group.
- Mapping[str, str]
- The tag of the resource.
- environment
Sub StringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment
Type String - Type of environment.
- aliyun
Lang String - The locale. The default is Chinese zh | en.
- bind
Resource StringId - The id or vpcId of the bound container instance.
- drop
Metrics String - List of abandoned indicators.
- environment
Name String - The name of the resource.
- managed
Type String - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource
Group StringId - The ID of the resource group.
- Map<String>
- The tag of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:
- Environment
Id string - The first ID of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Environment
Id string - The first ID of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- environment
Id String - The first ID of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- environment
Id string - The first ID of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- environment_
id str - The first ID of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- environment
Id String - The first ID of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Environment Resource
Get an existing Environment 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?: EnvironmentState, opts?: CustomResourceOptions): Environment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aliyun_lang: Optional[str] = None,
bind_resource_id: Optional[str] = None,
drop_metrics: Optional[str] = None,
environment_id: Optional[str] = None,
environment_name: Optional[str] = None,
environment_sub_type: Optional[str] = None,
environment_type: Optional[str] = None,
managed_type: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Environment
func GetEnvironment(ctx *Context, name string, id IDInput, state *EnvironmentState, opts ...ResourceOption) (*Environment, error)
public static Environment Get(string name, Input<string> id, EnvironmentState? state, CustomResourceOptions? opts = null)
public static Environment get(String name, Output<String> id, EnvironmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Aliyun
Lang string - The locale. The default is Chinese zh | en.
- Bind
Resource stringId - The id or vpcId of the bound container instance.
- Drop
Metrics string - List of abandoned indicators.
- Environment
Id string - The first ID of the resource.
- Environment
Name string - The name of the resource.
- Environment
Sub stringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- Environment
Type string - Type of environment.
- Managed
Type string - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- Resource
Group stringId - The ID of the resource group.
- Dictionary<string, string>
- The tag of the resource.
- Aliyun
Lang string - The locale. The default is Chinese zh | en.
- Bind
Resource stringId - The id or vpcId of the bound container instance.
- Drop
Metrics string - List of abandoned indicators.
- Environment
Id string - The first ID of the resource.
- Environment
Name string - The name of the resource.
- Environment
Sub stringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- Environment
Type string - Type of environment.
- Managed
Type string - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- Resource
Group stringId - The ID of the resource group.
- map[string]string
- The tag of the resource.
- aliyun
Lang String - The locale. The default is Chinese zh | en.
- bind
Resource StringId - The id or vpcId of the bound container instance.
- drop
Metrics String - List of abandoned indicators.
- environment
Id String - The first ID of the resource.
- environment
Name String - The name of the resource.
- environment
Sub StringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment
Type String - Type of environment.
- managed
Type String - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource
Group StringId - The ID of the resource group.
- Map<String,String>
- The tag of the resource.
- aliyun
Lang string - The locale. The default is Chinese zh | en.
- bind
Resource stringId - The id or vpcId of the bound container instance.
- drop
Metrics string - List of abandoned indicators.
- environment
Id string - The first ID of the resource.
- environment
Name string - The name of the resource.
- environment
Sub stringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment
Type string - Type of environment.
- managed
Type string - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource
Group stringId - The ID of the resource group.
- {[key: string]: string}
- The tag of the resource.
- aliyun_
lang str - The locale. The default is Chinese zh | en.
- bind_
resource_ strid - The id or vpcId of the bound container instance.
- drop_
metrics str - List of abandoned indicators.
- environment_
id str - The first ID of the resource.
- environment_
name str - The name of the resource.
- environment_
sub_ strtype - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment_
type str - Type of environment.
- managed_
type str - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource_
group_ strid - The ID of the resource group.
- Mapping[str, str]
- The tag of the resource.
- aliyun
Lang String - The locale. The default is Chinese zh | en.
- bind
Resource StringId - The id or vpcId of the bound container instance.
- drop
Metrics String - List of abandoned indicators.
- environment
Id String - The first ID of the resource.
- environment
Name String - The name of the resource.
- environment
Sub StringType - Subtype of environment:
- Type of CS: ACK is currently supported. ManagedKubernetes, Kubernetes, ExternalKubernetes, and One are also supported.
- Type of ECS: currently supports ECS.
- Type of Cloud: currently supports Cloud.
- environment
Type String - Type of environment.
- managed
Type String - Hosting type:
- none: unmanaged. The default value of the ACK cluster.
- agent: Managed agent (including ksm). Default values of ASK, ACS, and Acone clusters.
- agent-exproter: Managed agent and exporter. The default value of the cloud service type.
- resource
Group StringId - The ID of the resource group.
- Map<String>
- The tag of the resource.
Import
ARMS Environment can be imported using the id, e.g.
$ pulumi import alicloud:arms/environment:Environment 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.