Skip to content

Commit

Permalink
feat(client-emr): This release introduces additional optional paramet…
Browse files Browse the repository at this point in the history
…er "Throughput" to VolumeSpecification to enable user to configure throughput for gp3 ebs volumes.
  • Loading branch information
awstools committed Jun 29, 2022
1 parent 4ec076d commit e9259f0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
15 changes: 10 additions & 5 deletions clients/client-emr/src/models/models_0.ts
Expand Up @@ -17,7 +17,7 @@ export enum InstanceFleetType {
}

/**
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will be
* <p>EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are
* requested for the EBS volume attached to an EC2 instance in the cluster.</p>
*/
export interface VolumeSpecification {
Expand All @@ -36,6 +36,11 @@ export interface VolumeSpecification {
* type is EBS-optimized, the minimum value is 10.</p>
*/
SizeInGB: number | undefined;

/**
* <p>The throughput, in mebibyte per second (MiB/s). This optional parameter can be a number from 125 - 1000 and is valid only for gp3 volumes.</p>
*/
Throughput?: number;
}

export namespace VolumeSpecification {
Expand All @@ -49,17 +54,17 @@ export namespace VolumeSpecification {

/**
* <p>Configuration of requested EBS block device associated with the instance group with
* count of volumes that will be associated to every instance.</p>
* count of volumes that are associated to every instance.</p>
*/
export interface EbsBlockDeviceConfig {
/**
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will be
* <p>EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are
* requested for the EBS volume attached to an EC2 instance in the cluster.</p>
*/
VolumeSpecification: VolumeSpecification | undefined;

/**
* <p>Number of EBS volumes with a specific volume configuration that will be associated with
* <p>Number of EBS volumes with a specific volume configuration that are associated with
* every instance in the instance group</p>
*/
VolumesPerInstance?: number;
Expand Down Expand Up @@ -3465,7 +3470,7 @@ export namespace DescribeStudioOutput {
*/
export interface EbsBlockDevice {
/**
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will be
* <p>EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are
* requested for the EBS volume attached to an EC2 instance in the cluster.</p>
*/
VolumeSpecification?: VolumeSpecification;
Expand Down
2 changes: 2 additions & 0 deletions clients/client-emr/src/protocols/Aws_json1_1.ts
Expand Up @@ -4909,6 +4909,7 @@ const serializeAws_json1_1VolumeSpecification = (input: VolumeSpecification, con
return {
...(input.Iops !== undefined && input.Iops !== null && { Iops: input.Iops }),
...(input.SizeInGB !== undefined && input.SizeInGB !== null && { SizeInGB: input.SizeInGB }),
...(input.Throughput !== undefined && input.Throughput !== null && { Throughput: input.Throughput }),
...(input.VolumeType !== undefined && input.VolumeType !== null && { VolumeType: input.VolumeType }),
};
};
Expand Down Expand Up @@ -7037,6 +7038,7 @@ const deserializeAws_json1_1VolumeSpecification = (output: any, context: __Serde
return {
Iops: __expectInt32(output.Iops),
SizeInGB: __expectInt32(output.SizeInGB),
Throughput: __expectInt32(output.Throughput),
VolumeType: __expectString(output.VolumeType),
} as any;
};
Expand Down
25 changes: 20 additions & 5 deletions codegen/sdk-codegen/aws-models/emr.json
Expand Up @@ -2238,7 +2238,7 @@
"VolumeSpecification": {
"target": "com.amazonaws.emr#VolumeSpecification",
"traits": {
"smithy.api#documentation": "<p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will be\n requested for the EBS volume attached to an EC2 instance in the cluster.</p>"
"smithy.api#documentation": "<p>EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are\n requested for the EBS volume attached to an EC2 instance in the cluster.</p>"
}
},
"Device": {
Expand All @@ -2258,19 +2258,19 @@
"VolumeSpecification": {
"target": "com.amazonaws.emr#VolumeSpecification",
"traits": {
"smithy.api#documentation": "<p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will be\n requested for the EBS volume attached to an EC2 instance in the cluster.</p>",
"smithy.api#documentation": "<p>EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are\n requested for the EBS volume attached to an EC2 instance in the cluster.</p>",
"smithy.api#required": {}
}
},
"VolumesPerInstance": {
"target": "com.amazonaws.emr#Integer",
"traits": {
"smithy.api#documentation": "<p>Number of EBS volumes with a specific volume configuration that will be associated with\n every instance in the instance group</p>"
"smithy.api#documentation": "<p>Number of EBS volumes with a specific volume configuration that are associated with\n every instance in the instance group</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Configuration of requested EBS block device associated with the instance group with\n count of volumes that will be associated to every instance.</p>"
"smithy.api#documentation": "<p>Configuration of requested EBS block device associated with the instance group with\n count of volumes that are associated to every instance.</p>"
}
},
"com.amazonaws.emr#EbsBlockDeviceConfigList": {
Expand Down Expand Up @@ -7936,6 +7936,15 @@
"smithy.api#documentation": "<p> Input to the <a>TerminateJobFlows</a> operation. </p>"
}
},
"com.amazonaws.emr#ThroughputVal": {
"type": "integer",
"traits": {
"smithy.api#box": {},
"smithy.api#range": {
"min": 0
}
}
},
"com.amazonaws.emr#Unit": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -8187,10 +8196,16 @@
"smithy.api#documentation": "<p>The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume\n type is EBS-optimized, the minimum value is 10.</p>",
"smithy.api#required": {}
}
},
"Throughput": {
"target": "com.amazonaws.emr#ThroughputVal",
"traits": {
"smithy.api#documentation": "<p>The throughput, in mebibyte per second (MiB/s). This optional parameter can be a number from 125 - 1000 and is valid only for gp3 volumes.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will be\n requested for the EBS volume attached to an EC2 instance in the cluster.</p>"
"smithy.api#documentation": "<p>EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are\n requested for the EBS volume attached to an EC2 instance in the cluster.</p>"
}
},
"com.amazonaws.emr#WholeNumber": {
Expand Down

0 comments on commit e9259f0

Please sign in to comment.