import * as core from "@terrascript/core"; export interface EbsConfigArgs extends core.SchemaArgs { iops?: number | core.NumberOut; size: number | core.NumberOut; type: string | core.StringOut; volumesPerInstance?: number | core.NumberOut; } export class EbsConfig extends core.Schema { @core.attr(Number) public iops?: number | core.NumberOut; @core.attr(Number) public size!: number | core.NumberOut; @core.attr(String) public type!: string | core.StringOut; @core.attr(Number) public volumesPerInstance?: number | core.NumberOut; } export interface InstanceGroupArgs extends core.ResourceArgs { /** * (Optional) The autoscaling policy document. This is a JSON formatted string. See [EMR Auto Scaling]( * https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-automatic-scaling.html) */ autoscalingPolicy?: string | core.StringOut; /** * (Optional) If set, the bid price for each EC2 instance in the instance group, expressed in USD. By s * etting this attribute, the instance group is being declared as a Spot Instance, and will implicitly * create a Spot request. Leave this blank to use On-Demand Instances. */ bidPrice?: string | core.StringOut; clusterId: string | core.StringOut; /** * (Optional) A JSON string for supplying list of configurations specific to the EMR instance group. No * te that this can only be changed when using EMR release 5.21 or later. */ configurationsJson?: string | core.StringOut; ebsConfig?: core.Array | core.ArrayOut; ebsOptimized?: boolean | core.BooleanOut; instanceCount?: number | core.NumberOut; instanceType: string | core.StringOut; name?: string | core.StringOut; } export class InstanceGroup extends core.Resource { /** * (Optional) The autoscaling policy document. This is a JSON formatted string. See [EMR Auto Scaling]( * https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-automatic-scaling.html) */ @core.attr(String) public autoscalingPolicy?: string | core.StringOut; /** * (Optional) If set, the bid price for each EC2 instance in the instance group, expressed in USD. By s * etting this attribute, the instance group is being declared as a Spot Instance, and will implicitly * create a Spot request. Leave this blank to use On-Demand Instances. */ @core.attr(String) public bidPrice?: string | core.StringOut; @core.attr(String) public clusterId!: string | core.StringOut; /** * (Optional) A JSON string for supplying list of configurations specific to the EMR instance group. No * te that this can only be changed when using EMR release 5.21 or later. */ @core.attr(String) public configurationsJson?: string | core.StringOut; @core.attr(EbsConfig, { computed: true, kind: "array" }) public ebsConfig?: core.Array | core.ArrayOut; @core.attr(Boolean) public ebsOptimized?: boolean | core.BooleanOut; /** * The EMR Instance ID */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; @core.attr(Number, { computed: true }) public instanceCount?: number | core.NumberOut; @core.attr(String) public instanceType!: string | core.StringOut; @core.attr(String) public name?: string | core.StringOut; @core.attr(Number, { computed: true }) public runningInstanceCount!: number | core.NumberOut; @core.attr(String, { computed: true }) public status!: string | core.StringOut; constructor(name: string, args?: InstanceGroupArgs) { super(name, "aws_emr_instance_group", args); } public override getNamespace(): string { return "aws_emr"; } }