# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins
import copy
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities
from . import outputs
from ._inputs import *

__all__ = ['NodeGroupArgs', 'NodeGroup']

@pulumi.input_type
class NodeGroupArgs:
    def __init__(__self__, *,
                 charge_type: pulumi.Input[builtins.str],
                 cluster_id: pulumi.Input[builtins.str],
                 node_count: pulumi.Input[builtins.int],
                 node_group_name: pulumi.Input[builtins.str],
                 node_group_type: pulumi.Input[builtins.str],
                 application_layouts: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupApplicationLayoutArgs']]]] = None,
                 charge_pre_config: Optional[pulumi.Input['NodeGroupChargePreConfigArgs']] = None,
                 data_disks: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupDataDiskArgs']]]] = None,
                 ecs_instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 system_disk: Optional[pulumi.Input['NodeGroupSystemDiskArgs']] = None,
                 target_disk_size: Optional[pulumi.Input[builtins.int]] = None,
                 with_public_ip: Optional[pulumi.Input[builtins.bool]] = None,
                 zone_id: Optional[pulumi.Input[builtins.str]] = None):
        """
        The set of arguments for constructing a NodeGroup resource.
        :param pulumi.Input[builtins.str] charge_type: 付费类型。PRE表示包月，POST表示按量计费。
        :param pulumi.Input[builtins.str] cluster_id: 集群ID。
        :param pulumi.Input[builtins.int] node_count: 节点数量。取值范围：1~1000。
        :param pulumi.Input[builtins.str] node_group_name: 节点组名称。
        :param pulumi.Input[builtins.str] node_group_type: 节点组类型。
        :param pulumi.Input['NodeGroupChargePreConfigArgs'] charge_pre_config: 包周期付费配置。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ecs_instance_types: ECS实例规格列表。当前修改仅支持单个实例规格。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] subnet_ids: 子网ID列表。
        :param pulumi.Input['NodeGroupSystemDiskArgs'] system_disk: 系统盘。
        :param pulumi.Input[builtins.int] target_disk_size: 待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        :param pulumi.Input[builtins.bool] with_public_ip: ECS是否附带公网IP。
        :param pulumi.Input[builtins.str] zone_id: zoneId，为空时默认复用集群的zoneId。
        """
        pulumi.set(__self__, "charge_type", charge_type)
        pulumi.set(__self__, "cluster_id", cluster_id)
        pulumi.set(__self__, "node_count", node_count)
        pulumi.set(__self__, "node_group_name", node_group_name)
        pulumi.set(__self__, "node_group_type", node_group_type)
        if application_layouts is not None:
            pulumi.set(__self__, "application_layouts", application_layouts)
        if charge_pre_config is not None:
            pulumi.set(__self__, "charge_pre_config", charge_pre_config)
        if data_disks is not None:
            pulumi.set(__self__, "data_disks", data_disks)
        if ecs_instance_types is not None:
            pulumi.set(__self__, "ecs_instance_types", ecs_instance_types)
        if subnet_ids is not None:
            pulumi.set(__self__, "subnet_ids", subnet_ids)
        if system_disk is not None:
            pulumi.set(__self__, "system_disk", system_disk)
        if target_disk_size is not None:
            pulumi.set(__self__, "target_disk_size", target_disk_size)
        if with_public_ip is not None:
            pulumi.set(__self__, "with_public_ip", with_public_ip)
        if zone_id is not None:
            pulumi.set(__self__, "zone_id", zone_id)

    @property
    @pulumi.getter(name="chargeType")
    def charge_type(self) -> pulumi.Input[builtins.str]:
        """
        付费类型。PRE表示包月，POST表示按量计费。
        """
        return pulumi.get(self, "charge_type")

    @charge_type.setter
    def charge_type(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "charge_type", value)

    @property
    @pulumi.getter(name="clusterId")
    def cluster_id(self) -> pulumi.Input[builtins.str]:
        """
        集群ID。
        """
        return pulumi.get(self, "cluster_id")

    @cluster_id.setter
    def cluster_id(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "cluster_id", value)

    @property
    @pulumi.getter(name="nodeCount")
    def node_count(self) -> pulumi.Input[builtins.int]:
        """
        节点数量。取值范围：1~1000。
        """
        return pulumi.get(self, "node_count")

    @node_count.setter
    def node_count(self, value: pulumi.Input[builtins.int]):
        pulumi.set(self, "node_count", value)

    @property
    @pulumi.getter(name="nodeGroupName")
    def node_group_name(self) -> pulumi.Input[builtins.str]:
        """
        节点组名称。
        """
        return pulumi.get(self, "node_group_name")

    @node_group_name.setter
    def node_group_name(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "node_group_name", value)

    @property
    @pulumi.getter(name="nodeGroupType")
    def node_group_type(self) -> pulumi.Input[builtins.str]:
        """
        节点组类型。
        """
        return pulumi.get(self, "node_group_type")

    @node_group_type.setter
    def node_group_type(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "node_group_type", value)

    @property
    @pulumi.getter(name="applicationLayouts")
    def application_layouts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupApplicationLayoutArgs']]]]:
        return pulumi.get(self, "application_layouts")

    @application_layouts.setter
    def application_layouts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupApplicationLayoutArgs']]]]):
        pulumi.set(self, "application_layouts", value)

    @property
    @pulumi.getter(name="chargePreConfig")
    def charge_pre_config(self) -> Optional[pulumi.Input['NodeGroupChargePreConfigArgs']]:
        """
        包周期付费配置。
        """
        return pulumi.get(self, "charge_pre_config")

    @charge_pre_config.setter
    def charge_pre_config(self, value: Optional[pulumi.Input['NodeGroupChargePreConfigArgs']]):
        pulumi.set(self, "charge_pre_config", value)

    @property
    @pulumi.getter(name="dataDisks")
    def data_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupDataDiskArgs']]]]:
        return pulumi.get(self, "data_disks")

    @data_disks.setter
    def data_disks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupDataDiskArgs']]]]):
        pulumi.set(self, "data_disks", value)

    @property
    @pulumi.getter(name="ecsInstanceTypes")
    def ecs_instance_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
        """
        ECS实例规格列表。当前修改仅支持单个实例规格。
        """
        return pulumi.get(self, "ecs_instance_types")

    @ecs_instance_types.setter
    def ecs_instance_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
        pulumi.set(self, "ecs_instance_types", value)

    @property
    @pulumi.getter(name="subnetIds")
    def subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
        """
        子网ID列表。
        """
        return pulumi.get(self, "subnet_ids")

    @subnet_ids.setter
    def subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
        pulumi.set(self, "subnet_ids", value)

    @property
    @pulumi.getter(name="systemDisk")
    def system_disk(self) -> Optional[pulumi.Input['NodeGroupSystemDiskArgs']]:
        """
        系统盘。
        """
        return pulumi.get(self, "system_disk")

    @system_disk.setter
    def system_disk(self, value: Optional[pulumi.Input['NodeGroupSystemDiskArgs']]):
        pulumi.set(self, "system_disk", value)

    @property
    @pulumi.getter(name="targetDiskSize")
    def target_disk_size(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        """
        return pulumi.get(self, "target_disk_size")

    @target_disk_size.setter
    def target_disk_size(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "target_disk_size", value)

    @property
    @pulumi.getter(name="withPublicIp")
    def with_public_ip(self) -> Optional[pulumi.Input[builtins.bool]]:
        """
        ECS是否附带公网IP。
        """
        return pulumi.get(self, "with_public_ip")

    @with_public_ip.setter
    def with_public_ip(self, value: Optional[pulumi.Input[builtins.bool]]):
        pulumi.set(self, "with_public_ip", value)

    @property
    @pulumi.getter(name="zoneId")
    def zone_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        zoneId，为空时默认复用集群的zoneId。
        """
        return pulumi.get(self, "zone_id")

    @zone_id.setter
    def zone_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "zone_id", value)


@pulumi.input_type
class _NodeGroupState:
    def __init__(__self__, *,
                 application_layouts: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupApplicationLayoutArgs']]]] = None,
                 charge_pre_config: Optional[pulumi.Input['NodeGroupChargePreConfigArgs']] = None,
                 charge_type: Optional[pulumi.Input[builtins.str]] = None,
                 cluster_id: Optional[pulumi.Input[builtins.str]] = None,
                 created_time: Optional[pulumi.Input[builtins.int]] = None,
                 data_disks: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupDataDiskArgs']]]] = None,
                 ecs_instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 layout_component_names: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 node_count: Optional[pulumi.Input[builtins.int]] = None,
                 node_group_id: Optional[pulumi.Input[builtins.str]] = None,
                 node_group_name: Optional[pulumi.Input[builtins.str]] = None,
                 node_group_state: Optional[pulumi.Input[builtins.str]] = None,
                 node_group_type: Optional[pulumi.Input[builtins.str]] = None,
                 nodes: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupNodeArgs']]]] = None,
                 subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 system_disk: Optional[pulumi.Input['NodeGroupSystemDiskArgs']] = None,
                 target_disk_size: Optional[pulumi.Input[builtins.int]] = None,
                 terminate_time: Optional[pulumi.Input[builtins.str]] = None,
                 with_public_ip: Optional[pulumi.Input[builtins.bool]] = None,
                 zone_id: Optional[pulumi.Input[builtins.str]] = None):
        """
        Input properties used for looking up and filtering NodeGroup resources.
        :param pulumi.Input['NodeGroupChargePreConfigArgs'] charge_pre_config: 包周期付费配置。
        :param pulumi.Input[builtins.str] charge_type: 付费类型。PRE表示包月，POST表示按量计费。
        :param pulumi.Input[builtins.str] cluster_id: 集群ID。
        :param pulumi.Input[builtins.int] created_time: 创建时间。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ecs_instance_types: ECS实例规格列表。当前修改仅支持单个实例规格。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] layout_component_names: 返回的节点组组件的自定义配置参数列表。
        :param pulumi.Input[builtins.int] node_count: 节点数量。取值范围：1~1000。
        :param pulumi.Input[builtins.str] node_group_id: 节点组ID。
        :param pulumi.Input[builtins.str] node_group_name: 节点组名称。
        :param pulumi.Input[builtins.str] node_group_state: 节点组状态。RUNNING：运行中。EXTENDING：扩容中。REDUCING：缩容中。DISK_EXTENDING：磁盘扩容中。MODIFYING：变配中。
        :param pulumi.Input[builtins.str] node_group_type: 节点组类型。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] subnet_ids: 子网ID列表。
        :param pulumi.Input['NodeGroupSystemDiskArgs'] system_disk: 系统盘。
        :param pulumi.Input[builtins.int] target_disk_size: 待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        :param pulumi.Input[builtins.str] terminate_time: 集群终止时间。
        :param pulumi.Input[builtins.bool] with_public_ip: ECS是否附带公网IP。
        :param pulumi.Input[builtins.str] zone_id: zoneId，为空时默认复用集群的zoneId。
        """
        if application_layouts is not None:
            pulumi.set(__self__, "application_layouts", application_layouts)
        if charge_pre_config is not None:
            pulumi.set(__self__, "charge_pre_config", charge_pre_config)
        if charge_type is not None:
            pulumi.set(__self__, "charge_type", charge_type)
        if cluster_id is not None:
            pulumi.set(__self__, "cluster_id", cluster_id)
        if created_time is not None:
            pulumi.set(__self__, "created_time", created_time)
        if data_disks is not None:
            pulumi.set(__self__, "data_disks", data_disks)
        if ecs_instance_types is not None:
            pulumi.set(__self__, "ecs_instance_types", ecs_instance_types)
        if layout_component_names is not None:
            pulumi.set(__self__, "layout_component_names", layout_component_names)
        if node_count is not None:
            pulumi.set(__self__, "node_count", node_count)
        if node_group_id is not None:
            pulumi.set(__self__, "node_group_id", node_group_id)
        if node_group_name is not None:
            pulumi.set(__self__, "node_group_name", node_group_name)
        if node_group_state is not None:
            pulumi.set(__self__, "node_group_state", node_group_state)
        if node_group_type is not None:
            pulumi.set(__self__, "node_group_type", node_group_type)
        if nodes is not None:
            pulumi.set(__self__, "nodes", nodes)
        if subnet_ids is not None:
            pulumi.set(__self__, "subnet_ids", subnet_ids)
        if system_disk is not None:
            pulumi.set(__self__, "system_disk", system_disk)
        if target_disk_size is not None:
            pulumi.set(__self__, "target_disk_size", target_disk_size)
        if terminate_time is not None:
            pulumi.set(__self__, "terminate_time", terminate_time)
        if with_public_ip is not None:
            pulumi.set(__self__, "with_public_ip", with_public_ip)
        if zone_id is not None:
            pulumi.set(__self__, "zone_id", zone_id)

    @property
    @pulumi.getter(name="applicationLayouts")
    def application_layouts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupApplicationLayoutArgs']]]]:
        return pulumi.get(self, "application_layouts")

    @application_layouts.setter
    def application_layouts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupApplicationLayoutArgs']]]]):
        pulumi.set(self, "application_layouts", value)

    @property
    @pulumi.getter(name="chargePreConfig")
    def charge_pre_config(self) -> Optional[pulumi.Input['NodeGroupChargePreConfigArgs']]:
        """
        包周期付费配置。
        """
        return pulumi.get(self, "charge_pre_config")

    @charge_pre_config.setter
    def charge_pre_config(self, value: Optional[pulumi.Input['NodeGroupChargePreConfigArgs']]):
        pulumi.set(self, "charge_pre_config", value)

    @property
    @pulumi.getter(name="chargeType")
    def charge_type(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        付费类型。PRE表示包月，POST表示按量计费。
        """
        return pulumi.get(self, "charge_type")

    @charge_type.setter
    def charge_type(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "charge_type", value)

    @property
    @pulumi.getter(name="clusterId")
    def cluster_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        集群ID。
        """
        return pulumi.get(self, "cluster_id")

    @cluster_id.setter
    def cluster_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "cluster_id", value)

    @property
    @pulumi.getter(name="createdTime")
    def created_time(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        创建时间。
        """
        return pulumi.get(self, "created_time")

    @created_time.setter
    def created_time(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "created_time", value)

    @property
    @pulumi.getter(name="dataDisks")
    def data_disks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupDataDiskArgs']]]]:
        return pulumi.get(self, "data_disks")

    @data_disks.setter
    def data_disks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupDataDiskArgs']]]]):
        pulumi.set(self, "data_disks", value)

    @property
    @pulumi.getter(name="ecsInstanceTypes")
    def ecs_instance_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
        """
        ECS实例规格列表。当前修改仅支持单个实例规格。
        """
        return pulumi.get(self, "ecs_instance_types")

    @ecs_instance_types.setter
    def ecs_instance_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
        pulumi.set(self, "ecs_instance_types", value)

    @property
    @pulumi.getter(name="layoutComponentNames")
    def layout_component_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
        """
        返回的节点组组件的自定义配置参数列表。
        """
        return pulumi.get(self, "layout_component_names")

    @layout_component_names.setter
    def layout_component_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
        pulumi.set(self, "layout_component_names", value)

    @property
    @pulumi.getter(name="nodeCount")
    def node_count(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        节点数量。取值范围：1~1000。
        """
        return pulumi.get(self, "node_count")

    @node_count.setter
    def node_count(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "node_count", value)

    @property
    @pulumi.getter(name="nodeGroupId")
    def node_group_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        节点组ID。
        """
        return pulumi.get(self, "node_group_id")

    @node_group_id.setter
    def node_group_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "node_group_id", value)

    @property
    @pulumi.getter(name="nodeGroupName")
    def node_group_name(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        节点组名称。
        """
        return pulumi.get(self, "node_group_name")

    @node_group_name.setter
    def node_group_name(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "node_group_name", value)

    @property
    @pulumi.getter(name="nodeGroupState")
    def node_group_state(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        节点组状态。RUNNING：运行中。EXTENDING：扩容中。REDUCING：缩容中。DISK_EXTENDING：磁盘扩容中。MODIFYING：变配中。
        """
        return pulumi.get(self, "node_group_state")

    @node_group_state.setter
    def node_group_state(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "node_group_state", value)

    @property
    @pulumi.getter(name="nodeGroupType")
    def node_group_type(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        节点组类型。
        """
        return pulumi.get(self, "node_group_type")

    @node_group_type.setter
    def node_group_type(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "node_group_type", value)

    @property
    @pulumi.getter
    def nodes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupNodeArgs']]]]:
        return pulumi.get(self, "nodes")

    @nodes.setter
    def nodes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NodeGroupNodeArgs']]]]):
        pulumi.set(self, "nodes", value)

    @property
    @pulumi.getter(name="subnetIds")
    def subnet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
        """
        子网ID列表。
        """
        return pulumi.get(self, "subnet_ids")

    @subnet_ids.setter
    def subnet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
        pulumi.set(self, "subnet_ids", value)

    @property
    @pulumi.getter(name="systemDisk")
    def system_disk(self) -> Optional[pulumi.Input['NodeGroupSystemDiskArgs']]:
        """
        系统盘。
        """
        return pulumi.get(self, "system_disk")

    @system_disk.setter
    def system_disk(self, value: Optional[pulumi.Input['NodeGroupSystemDiskArgs']]):
        pulumi.set(self, "system_disk", value)

    @property
    @pulumi.getter(name="targetDiskSize")
    def target_disk_size(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        """
        return pulumi.get(self, "target_disk_size")

    @target_disk_size.setter
    def target_disk_size(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "target_disk_size", value)

    @property
    @pulumi.getter(name="terminateTime")
    def terminate_time(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        集群终止时间。
        """
        return pulumi.get(self, "terminate_time")

    @terminate_time.setter
    def terminate_time(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "terminate_time", value)

    @property
    @pulumi.getter(name="withPublicIp")
    def with_public_ip(self) -> Optional[pulumi.Input[builtins.bool]]:
        """
        ECS是否附带公网IP。
        """
        return pulumi.get(self, "with_public_ip")

    @with_public_ip.setter
    def with_public_ip(self, value: Optional[pulumi.Input[builtins.bool]]):
        pulumi.set(self, "with_public_ip", value)

    @property
    @pulumi.getter(name="zoneId")
    def zone_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        zoneId，为空时默认复用集群的zoneId。
        """
        return pulumi.get(self, "zone_id")

    @zone_id.setter
    def zone_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "zone_id", value)


@pulumi.type_token("bytepluscc:emr/nodeGroup:NodeGroup")
class NodeGroup(pulumi.CustomResource):
    @overload
    def __init__(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 application_layouts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupApplicationLayoutArgs', 'NodeGroupApplicationLayoutArgsDict']]]]] = None,
                 charge_pre_config: Optional[pulumi.Input[Union['NodeGroupChargePreConfigArgs', 'NodeGroupChargePreConfigArgsDict']]] = None,
                 charge_type: Optional[pulumi.Input[builtins.str]] = None,
                 cluster_id: Optional[pulumi.Input[builtins.str]] = None,
                 data_disks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupDataDiskArgs', 'NodeGroupDataDiskArgsDict']]]]] = None,
                 ecs_instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 node_count: Optional[pulumi.Input[builtins.int]] = None,
                 node_group_name: Optional[pulumi.Input[builtins.str]] = None,
                 node_group_type: Optional[pulumi.Input[builtins.str]] = None,
                 subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 system_disk: Optional[pulumi.Input[Union['NodeGroupSystemDiskArgs', 'NodeGroupSystemDiskArgsDict']]] = None,
                 target_disk_size: Optional[pulumi.Input[builtins.int]] = None,
                 with_public_ip: Optional[pulumi.Input[builtins.bool]] = None,
                 zone_id: Optional[pulumi.Input[builtins.str]] = None,
                 __props__=None):
        """
        E-MapReduce集群由多个不同类型的实例节点组成，包括主实例节点（Master）、核心实例节点（Core）和计算实例节点（Task）。不同实例节点上部署的服务进程不同，负责完成的任务也不同。

        ## Import

        ```sh
        $ pulumi import bytepluscc:emr/nodeGroup:NodeGroup example "cluster_id|node_group_id"
        ```

        :param str resource_name: The name of the resource.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[Union['NodeGroupChargePreConfigArgs', 'NodeGroupChargePreConfigArgsDict']] charge_pre_config: 包周期付费配置。
        :param pulumi.Input[builtins.str] charge_type: 付费类型。PRE表示包月，POST表示按量计费。
        :param pulumi.Input[builtins.str] cluster_id: 集群ID。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ecs_instance_types: ECS实例规格列表。当前修改仅支持单个实例规格。
        :param pulumi.Input[builtins.int] node_count: 节点数量。取值范围：1~1000。
        :param pulumi.Input[builtins.str] node_group_name: 节点组名称。
        :param pulumi.Input[builtins.str] node_group_type: 节点组类型。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] subnet_ids: 子网ID列表。
        :param pulumi.Input[Union['NodeGroupSystemDiskArgs', 'NodeGroupSystemDiskArgsDict']] system_disk: 系统盘。
        :param pulumi.Input[builtins.int] target_disk_size: 待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        :param pulumi.Input[builtins.bool] with_public_ip: ECS是否附带公网IP。
        :param pulumi.Input[builtins.str] zone_id: zoneId，为空时默认复用集群的zoneId。
        """
        ...
    @overload
    def __init__(__self__,
                 resource_name: str,
                 args: NodeGroupArgs,
                 opts: Optional[pulumi.ResourceOptions] = None):
        """
        E-MapReduce集群由多个不同类型的实例节点组成，包括主实例节点（Master）、核心实例节点（Core）和计算实例节点（Task）。不同实例节点上部署的服务进程不同，负责完成的任务也不同。

        ## Import

        ```sh
        $ pulumi import bytepluscc:emr/nodeGroup:NodeGroup example "cluster_id|node_group_id"
        ```

        :param str resource_name: The name of the resource.
        :param NodeGroupArgs args: The arguments to use to populate this resource's properties.
        :param pulumi.ResourceOptions opts: Options for the resource.
        """
        ...
    def __init__(__self__, resource_name: str, *args, **kwargs):
        resource_args, opts = _utilities.get_resource_args_opts(NodeGroupArgs, pulumi.ResourceOptions, *args, **kwargs)
        if resource_args is not None:
            __self__._internal_init(resource_name, opts, **resource_args.__dict__)
        else:
            __self__._internal_init(resource_name, *args, **kwargs)

    def _internal_init(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 application_layouts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupApplicationLayoutArgs', 'NodeGroupApplicationLayoutArgsDict']]]]] = None,
                 charge_pre_config: Optional[pulumi.Input[Union['NodeGroupChargePreConfigArgs', 'NodeGroupChargePreConfigArgsDict']]] = None,
                 charge_type: Optional[pulumi.Input[builtins.str]] = None,
                 cluster_id: Optional[pulumi.Input[builtins.str]] = None,
                 data_disks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupDataDiskArgs', 'NodeGroupDataDiskArgsDict']]]]] = None,
                 ecs_instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 node_count: Optional[pulumi.Input[builtins.int]] = None,
                 node_group_name: Optional[pulumi.Input[builtins.str]] = None,
                 node_group_type: Optional[pulumi.Input[builtins.str]] = None,
                 subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
                 system_disk: Optional[pulumi.Input[Union['NodeGroupSystemDiskArgs', 'NodeGroupSystemDiskArgsDict']]] = None,
                 target_disk_size: Optional[pulumi.Input[builtins.int]] = None,
                 with_public_ip: Optional[pulumi.Input[builtins.bool]] = None,
                 zone_id: Optional[pulumi.Input[builtins.str]] = None,
                 __props__=None):
        opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
        if not isinstance(opts, pulumi.ResourceOptions):
            raise TypeError('Expected resource options to be a ResourceOptions instance')
        if opts.id is None:
            if __props__ is not None:
                raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
            __props__ = NodeGroupArgs.__new__(NodeGroupArgs)

            __props__.__dict__["application_layouts"] = application_layouts
            __props__.__dict__["charge_pre_config"] = charge_pre_config
            if charge_type is None and not opts.urn:
                raise TypeError("Missing required property 'charge_type'")
            __props__.__dict__["charge_type"] = charge_type
            if cluster_id is None and not opts.urn:
                raise TypeError("Missing required property 'cluster_id'")
            __props__.__dict__["cluster_id"] = cluster_id
            __props__.__dict__["data_disks"] = data_disks
            __props__.__dict__["ecs_instance_types"] = ecs_instance_types
            if node_count is None and not opts.urn:
                raise TypeError("Missing required property 'node_count'")
            __props__.__dict__["node_count"] = node_count
            if node_group_name is None and not opts.urn:
                raise TypeError("Missing required property 'node_group_name'")
            __props__.__dict__["node_group_name"] = node_group_name
            if node_group_type is None and not opts.urn:
                raise TypeError("Missing required property 'node_group_type'")
            __props__.__dict__["node_group_type"] = node_group_type
            __props__.__dict__["subnet_ids"] = subnet_ids
            __props__.__dict__["system_disk"] = system_disk
            __props__.__dict__["target_disk_size"] = target_disk_size
            __props__.__dict__["with_public_ip"] = with_public_ip
            __props__.__dict__["zone_id"] = zone_id
            __props__.__dict__["created_time"] = None
            __props__.__dict__["layout_component_names"] = None
            __props__.__dict__["node_group_id"] = None
            __props__.__dict__["node_group_state"] = None
            __props__.__dict__["nodes"] = None
            __props__.__dict__["terminate_time"] = None
        super(NodeGroup, __self__).__init__(
            'bytepluscc:emr/nodeGroup:NodeGroup',
            resource_name,
            __props__,
            opts)

    @staticmethod
    def get(resource_name: str,
            id: pulumi.Input[str],
            opts: Optional[pulumi.ResourceOptions] = None,
            application_layouts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupApplicationLayoutArgs', 'NodeGroupApplicationLayoutArgsDict']]]]] = None,
            charge_pre_config: Optional[pulumi.Input[Union['NodeGroupChargePreConfigArgs', 'NodeGroupChargePreConfigArgsDict']]] = None,
            charge_type: Optional[pulumi.Input[builtins.str]] = None,
            cluster_id: Optional[pulumi.Input[builtins.str]] = None,
            created_time: Optional[pulumi.Input[builtins.int]] = None,
            data_disks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupDataDiskArgs', 'NodeGroupDataDiskArgsDict']]]]] = None,
            ecs_instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
            layout_component_names: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
            node_count: Optional[pulumi.Input[builtins.int]] = None,
            node_group_id: Optional[pulumi.Input[builtins.str]] = None,
            node_group_name: Optional[pulumi.Input[builtins.str]] = None,
            node_group_state: Optional[pulumi.Input[builtins.str]] = None,
            node_group_type: Optional[pulumi.Input[builtins.str]] = None,
            nodes: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NodeGroupNodeArgs', 'NodeGroupNodeArgsDict']]]]] = None,
            subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
            system_disk: Optional[pulumi.Input[Union['NodeGroupSystemDiskArgs', 'NodeGroupSystemDiskArgsDict']]] = None,
            target_disk_size: Optional[pulumi.Input[builtins.int]] = None,
            terminate_time: Optional[pulumi.Input[builtins.str]] = None,
            with_public_ip: Optional[pulumi.Input[builtins.bool]] = None,
            zone_id: Optional[pulumi.Input[builtins.str]] = None) -> 'NodeGroup':
        """
        Get an existing NodeGroup resource's state with the given name, id, and optional extra
        properties used to qualify the lookup.

        :param str resource_name: The unique name of the resulting resource.
        :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[Union['NodeGroupChargePreConfigArgs', 'NodeGroupChargePreConfigArgsDict']] charge_pre_config: 包周期付费配置。
        :param pulumi.Input[builtins.str] charge_type: 付费类型。PRE表示包月，POST表示按量计费。
        :param pulumi.Input[builtins.str] cluster_id: 集群ID。
        :param pulumi.Input[builtins.int] created_time: 创建时间。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ecs_instance_types: ECS实例规格列表。当前修改仅支持单个实例规格。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] layout_component_names: 返回的节点组组件的自定义配置参数列表。
        :param pulumi.Input[builtins.int] node_count: 节点数量。取值范围：1~1000。
        :param pulumi.Input[builtins.str] node_group_id: 节点组ID。
        :param pulumi.Input[builtins.str] node_group_name: 节点组名称。
        :param pulumi.Input[builtins.str] node_group_state: 节点组状态。RUNNING：运行中。EXTENDING：扩容中。REDUCING：缩容中。DISK_EXTENDING：磁盘扩容中。MODIFYING：变配中。
        :param pulumi.Input[builtins.str] node_group_type: 节点组类型。
        :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] subnet_ids: 子网ID列表。
        :param pulumi.Input[Union['NodeGroupSystemDiskArgs', 'NodeGroupSystemDiskArgsDict']] system_disk: 系统盘。
        :param pulumi.Input[builtins.int] target_disk_size: 待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        :param pulumi.Input[builtins.str] terminate_time: 集群终止时间。
        :param pulumi.Input[builtins.bool] with_public_ip: ECS是否附带公网IP。
        :param pulumi.Input[builtins.str] zone_id: zoneId，为空时默认复用集群的zoneId。
        """
        opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))

        __props__ = _NodeGroupState.__new__(_NodeGroupState)

        __props__.__dict__["application_layouts"] = application_layouts
        __props__.__dict__["charge_pre_config"] = charge_pre_config
        __props__.__dict__["charge_type"] = charge_type
        __props__.__dict__["cluster_id"] = cluster_id
        __props__.__dict__["created_time"] = created_time
        __props__.__dict__["data_disks"] = data_disks
        __props__.__dict__["ecs_instance_types"] = ecs_instance_types
        __props__.__dict__["layout_component_names"] = layout_component_names
        __props__.__dict__["node_count"] = node_count
        __props__.__dict__["node_group_id"] = node_group_id
        __props__.__dict__["node_group_name"] = node_group_name
        __props__.__dict__["node_group_state"] = node_group_state
        __props__.__dict__["node_group_type"] = node_group_type
        __props__.__dict__["nodes"] = nodes
        __props__.__dict__["subnet_ids"] = subnet_ids
        __props__.__dict__["system_disk"] = system_disk
        __props__.__dict__["target_disk_size"] = target_disk_size
        __props__.__dict__["terminate_time"] = terminate_time
        __props__.__dict__["with_public_ip"] = with_public_ip
        __props__.__dict__["zone_id"] = zone_id
        return NodeGroup(resource_name, opts=opts, __props__=__props__)

    @property
    @pulumi.getter(name="applicationLayouts")
    def application_layouts(self) -> pulumi.Output[Sequence['outputs.NodeGroupApplicationLayout']]:
        return pulumi.get(self, "application_layouts")

    @property
    @pulumi.getter(name="chargePreConfig")
    def charge_pre_config(self) -> pulumi.Output['outputs.NodeGroupChargePreConfig']:
        """
        包周期付费配置。
        """
        return pulumi.get(self, "charge_pre_config")

    @property
    @pulumi.getter(name="chargeType")
    def charge_type(self) -> pulumi.Output[builtins.str]:
        """
        付费类型。PRE表示包月，POST表示按量计费。
        """
        return pulumi.get(self, "charge_type")

    @property
    @pulumi.getter(name="clusterId")
    def cluster_id(self) -> pulumi.Output[builtins.str]:
        """
        集群ID。
        """
        return pulumi.get(self, "cluster_id")

    @property
    @pulumi.getter(name="createdTime")
    def created_time(self) -> pulumi.Output[builtins.int]:
        """
        创建时间。
        """
        return pulumi.get(self, "created_time")

    @property
    @pulumi.getter(name="dataDisks")
    def data_disks(self) -> pulumi.Output[Sequence['outputs.NodeGroupDataDisk']]:
        return pulumi.get(self, "data_disks")

    @property
    @pulumi.getter(name="ecsInstanceTypes")
    def ecs_instance_types(self) -> pulumi.Output[Sequence[builtins.str]]:
        """
        ECS实例规格列表。当前修改仅支持单个实例规格。
        """
        return pulumi.get(self, "ecs_instance_types")

    @property
    @pulumi.getter(name="layoutComponentNames")
    def layout_component_names(self) -> pulumi.Output[Sequence[builtins.str]]:
        """
        返回的节点组组件的自定义配置参数列表。
        """
        return pulumi.get(self, "layout_component_names")

    @property
    @pulumi.getter(name="nodeCount")
    def node_count(self) -> pulumi.Output[builtins.int]:
        """
        节点数量。取值范围：1~1000。
        """
        return pulumi.get(self, "node_count")

    @property
    @pulumi.getter(name="nodeGroupId")
    def node_group_id(self) -> pulumi.Output[builtins.str]:
        """
        节点组ID。
        """
        return pulumi.get(self, "node_group_id")

    @property
    @pulumi.getter(name="nodeGroupName")
    def node_group_name(self) -> pulumi.Output[builtins.str]:
        """
        节点组名称。
        """
        return pulumi.get(self, "node_group_name")

    @property
    @pulumi.getter(name="nodeGroupState")
    def node_group_state(self) -> pulumi.Output[builtins.str]:
        """
        节点组状态。RUNNING：运行中。EXTENDING：扩容中。REDUCING：缩容中。DISK_EXTENDING：磁盘扩容中。MODIFYING：变配中。
        """
        return pulumi.get(self, "node_group_state")

    @property
    @pulumi.getter(name="nodeGroupType")
    def node_group_type(self) -> pulumi.Output[builtins.str]:
        """
        节点组类型。
        """
        return pulumi.get(self, "node_group_type")

    @property
    @pulumi.getter
    def nodes(self) -> pulumi.Output[Sequence['outputs.NodeGroupNode']]:
        return pulumi.get(self, "nodes")

    @property
    @pulumi.getter(name="subnetIds")
    def subnet_ids(self) -> pulumi.Output[Sequence[builtins.str]]:
        """
        子网ID列表。
        """
        return pulumi.get(self, "subnet_ids")

    @property
    @pulumi.getter(name="systemDisk")
    def system_disk(self) -> pulumi.Output['outputs.NodeGroupSystemDisk']:
        """
        系统盘。
        """
        return pulumi.get(self, "system_disk")

    @property
    @pulumi.getter(name="targetDiskSize")
    def target_disk_size(self) -> pulumi.Output[builtins.int]:
        """
        待扩容的目标磁盘大小，最小60GB，最大2048GB，单位GB。
        """
        return pulumi.get(self, "target_disk_size")

    @property
    @pulumi.getter(name="terminateTime")
    def terminate_time(self) -> pulumi.Output[builtins.str]:
        """
        集群终止时间。
        """
        return pulumi.get(self, "terminate_time")

    @property
    @pulumi.getter(name="withPublicIp")
    def with_public_ip(self) -> pulumi.Output[builtins.bool]:
        """
        ECS是否附带公网IP。
        """
        return pulumi.get(self, "with_public_ip")

    @property
    @pulumi.getter(name="zoneId")
    def zone_id(self) -> pulumi.Output[builtins.str]:
        """
        zoneId，为空时默认复用集群的zoneId。
        """
        return pulumi.get(self, "zone_id")

