import * as core from "@terrascript/core"; export interface ScalingConfigArgs extends core.SchemaArgs { desiredSize: number | core.NumberOut; maxSize: number | core.NumberOut; minSize: number | core.NumberOut; } export class ScalingConfig extends core.Schema { @core.attr(Number, { computed: true }) public desiredSize!: number | core.NumberOut; @core.attr(Number, { computed: true }) public maxSize!: number | core.NumberOut; @core.attr(Number, { computed: true }) public minSize!: number | core.NumberOut; } export interface AutoscalingGroupsArgs extends core.SchemaArgs { name: string | core.StringOut; } export class AutoscalingGroups extends core.Schema { @core.attr(String, { computed: true }) public name!: string | core.StringOut; } export interface ResourcesArgs extends core.SchemaArgs { autoscalingGroups: | core.Array | core.ArrayOut; remoteAccessSecurityGroupId: string | core.StringOut; } export class Resources extends core.Schema { @core.attr(AutoscalingGroups, { computed: true, kind: "array" }) public autoscalingGroups!: | core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public remoteAccessSecurityGroupId!: string | core.StringOut; } export interface TaintsArgs extends core.SchemaArgs { effect: string | core.StringOut; key: string | core.StringOut; value: string | core.StringOut; } export class Taints extends core.Schema { @core.attr(String, { computed: true }) public effect!: string | core.StringOut; @core.attr(String, { computed: true }) public key!: string | core.StringOut; @core.attr(String, { computed: true }) public value!: string | core.StringOut; } export interface RemoteAccessArgs extends core.SchemaArgs { ec2SshKey: string | core.StringOut; sourceSecurityGroupIds: core.Array | core.ArrayOut; } export class RemoteAccess extends core.Schema { @core.attr(String, { computed: true }) public ec2SshKey!: string | core.StringOut; @core.attr(String, { computed: true, kind: "array" }) public sourceSecurityGroupIds!: | core.Array | core.ArrayOut; } export interface DsNodeGroupArgs { /** * (Required) The name of the cluster. */ clusterName: string | core.StringOut; /** * (Required) The name of the node group. */ nodeGroupName: string | core.StringOut; /** * Key-value map of resource tags. */ tags?: core.Map | core.MapOut; } export class DsNodeGroup extends core.Data { /** * Type of Amazon Machine Image (AMI) associated with the EKS Node Group. */ @core.attr(String, { computed: true }) public amiType!: string | core.StringOut; /** * Amazon Resource Name (ARN) of the EKS Node Group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The name of the cluster. */ @core.attr(String) public clusterName!: string | core.StringOut; /** * Disk size in GiB for worker nodes. */ @core.attr(Number, { computed: true }) public diskSize!: number | core.NumberOut; /** * EKS Cluster name and EKS Node Group name separated by a colon (`:`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Set of instance types associated with the EKS Node Group. */ @core.attr(String, { computed: true, kind: "array" }) public instanceTypes!: core.Array | core.ArrayOut; /** * Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by thi * s argument. Other Kubernetes labels applied to the EKS Node Group will not be managed. */ @core.attr(String, { computed: true, kind: "map" }) public labels!: core.Map | core.MapOut; /** * (Required) The name of the node group. */ @core.attr(String) public nodeGroupName!: string | core.StringOut; @core.attr(String, { computed: true }) public nodeRoleArn!: string | core.StringOut; @core.attr(String, { computed: true }) public releaseVersion!: string | core.StringOut; /** * Configuration block with remote access settings. */ @core.attr(RemoteAccess, { computed: true, kind: "array" }) public remoteAccess!: core.Array | core.ArrayOut; /** * List of objects containing information about underlying resources. */ @core.attr(Resources, { computed: true, kind: "array" }) public resources!: core.Array | core.ArrayOut; /** * Configuration block with scaling settings. */ @core.attr(ScalingConfig, { computed: true, kind: "array" }) public scalingConfig!: | core.Array | core.ArrayOut; /** * Status of the EKS Node Group. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; @core.attr(String, { computed: true, kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; /** * Key-value map of resource tags. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * List of objects containing information about taints applied to the nodes in the EKS Node Group. */ @core.attr(Taints, { computed: true, kind: "array" }) public taints!: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public version!: string | core.StringOut; constructor(name: string, args?: DsNodeGroupArgs) { super(name, "aws_eks_node_group", args); } public override getNamespace(): string { return "aws_eks"; } }