Environment
This class encapsulates and extends the ROS resource type ALIYUN::ARMS::Environment
, which is used to create an environment.
Initializers
import ros_cdk_arms
ros_cdk_arms.Environment(
scope: Construct,
id: str,
bind_resource_id: typing.Union[str, IResolvable],
environment_name: typing.Union[str, IResolvable],
environment_sub_type: typing.Union[str, IResolvable],
environment_type: typing.Union[str, IResolvable],
delete_prom_instance: typing.Union[bool, IResolvable] = None,
fee_package: typing.Union[str, IResolvable] = None,
grafana_workspace_id: typing.Union[str, IResolvable] = None,
managed_type: typing.Union[str, IResolvable] = None,
prometheus_instance_id: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
enable_resource_property_constraint: bool = None
)
Name | Type | Description |
---|---|---|
scope |
ros_cdk_core.Construct |
No description. |
id |
str |
No description. |
bind_resource_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property bindResourceId: The ID of the resource bound to the environment, such as the container ID or VPC ID. |
environment_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property environmentName: The name of the environment. |
environment_sub_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property environmentSubType: The subtype of the environment. |
environment_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property environmentType: The type of the environment. |
delete_prom_instance |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property deletePromInstance: Cascade delete Prometheus instance. |
fee_package |
typing.Union[str, ros_cdk_core.IResolvable] |
Property feePackage: The payable resource plan. |
grafana_workspace_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property grafanaWorkspaceId: The ID of the grafana workspace bound to the environment. |
managed_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property managedType: Specifies whether agents or exporters are managed. |
prometheus_instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property prometheusInstanceId: The ID of the Prometheus instance. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: The ID of the resource group. |
tags |
typing.List[TagsProperty] |
Property tags: Tags of Environment. |
enable_resource_property_constraint |
bool |
No description. |
scope
Required
- Type: ros_cdk_core.Construct
id
Required
- Type: str
bind_resource_id
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property bindResourceId: The ID of the resource bound to the environment, such as the container ID or VPC ID.
For a Cloud environment, specify the region ID.
environment_name
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property environmentName: The name of the environment.
environment_sub_type
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property environmentSubType: The subtype of the environment.
Valid values: One: CS type environment ACK: CS type environment ECS: ECS type environment Cloud: cloud service
environment_type
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property environmentType: The type of the environment.
Valid values: CS: ACK ECS: ECS Cloud: cloud service
delete_prom_instance
Optional
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property deletePromInstance: Cascade delete Prometheus instance.
Default value: true.
fee_package
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property feePackage: The payable resource plan.
Valid values: If the EnvironmentType parameter is set to CS, set the value to CS_Basic or CS_Pro. Default value: CS_Basic. Otherwise, leave the parameter empty.
grafana_workspace_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property grafanaWorkspaceId: The ID of the grafana workspace bound to the environment.
When passing space, the default share grafana is used.
managed_type
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property managedType: Specifies whether agents or exporters are managed.
Valid values: none: No. By default, no managed agents or exporters are provided for ACK clusters. agent: Agents are managed. By default, managed agents are provided for ASK clusters, ACS clusters, and ACK One clusters. agent-exporter: Agents and exporters are managed. By default, managed agents and exporters are provided for cloud services.
prometheus_instance_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property prometheusInstanceId: The ID of the Prometheus instance.
If no Prometheus instance is created, call the InitEnvironment operation to initialize a storage instance.
resource_group_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: The ID of the resource group.
tags
Optional
- Type: typing.List[TagsProperty]
Property tags: Tags of Environment.
enable_resource_property_constraint
Optional
- Type: bool
Methods
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition |
No description. |
add_count |
No description. |
add_dependency |
No description. |
add_resource_desc |
No description. |
apply_removal_policy |
No description. |
get_att |
No description. |
set_metadata |
No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
Name | Description |
---|---|
is_construct |
Return whether the given object is a Construct. |
is_construct
import ros_cdk_arms
ros_cdk_arms.Environment.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
Name | Type | Description |
---|---|---|
node |
ros_cdk_core.ConstructNode |
The construct tree node associated with this construct. |
ref |
str |
No description. |
stack |
ros_cdk_core.Stack |
The stack in which this resource is defined. |
resource |
ros_cdk_core.RosResource |
No description. |
attr_environment_id |
ros_cdk_core.IResolvable |
Attribute EnvironmentId: The id of the environment. |
attr_environment_name |
ros_cdk_core.IResolvable |
Attribute EnvironmentName: The name of the environment. |
attr_environment_sub_type |
ros_cdk_core.IResolvable |
Attribute EnvironmentSubType: The subtype of the environment. |
attr_environment_type |
ros_cdk_core.IResolvable |
Attribute EnvironmentType: The type of the environment. |
attr_fee_package |
ros_cdk_core.IResolvable |
Attribute FeePackage: The payable resource plan. |
attr_grafana_workspace_id |
ros_cdk_core.IResolvable |
Attribute GrafanaWorkspaceId: The ID of the grafana workspace bound to the environment. |
attr_managed_type |
ros_cdk_core.IResolvable |
Attribute ManagedType: Specifies whether agents or exporters are managed. |
attr_prometheus_instance_id |
ros_cdk_core.IResolvable |
Attribute PrometheusInstanceId: The ID of the Prometheus instance. |
attr_resource_group_id |
ros_cdk_core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group. |
node
Required
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
ref
Required
ref: str
- Type: str
stack
Required
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resource
Optional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_environment_id
Required
attr_environment_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute EnvironmentId: The id of the environment.
attr_environment_name
Required
attr_environment_name: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute EnvironmentName: The name of the environment.
attr_environment_sub_type
Required
attr_environment_sub_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute EnvironmentSubType: The subtype of the environment.
attr_environment_type
Required
attr_environment_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute EnvironmentType: The type of the environment.
attr_fee_package
Required
attr_fee_package: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute FeePackage: The payable resource plan.
attr_grafana_workspace_id
Required
attr_grafana_workspace_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute GrafanaWorkspaceId: The ID of the grafana workspace bound to the environment.
attr_managed_type
Required
attr_managed_type: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ManagedType: Specifies whether agents or exporters are managed.
attr_prometheus_instance_id
Required
attr_prometheus_instance_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute PrometheusInstanceId: The ID of the Prometheus instance.
attr_resource_group_id
Required
attr_resource_group_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ResourceGroupId: The ID of the resource group.