Skip to content

Commit

Permalink
feat(client-elasticsearch-service): This release adds support for gp3…
Browse files Browse the repository at this point in the history
… EBS (Elastic Block Store) storage.
  • Loading branch information
awstools committed Jul 28, 2022
1 parent 3710b44 commit 3bb625d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
14 changes: 12 additions & 2 deletions clients/client-elasticsearch-service/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export interface DomainEndpointOptions {
CustomEndpointCertificateArn?: string;
}

export type VolumeType = "gp2" | "io1" | "standard";
export type VolumeType = "gp2" | "gp3" | "io1" | "standard";

/**
* <p>Options to enable, disable, and specify the properties of EBS storage volumes. For more information, see <a href="http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs" target="_blank"> Configuring EBS-based Storage</a>.</p>
Expand All @@ -885,9 +885,14 @@ export interface EBSOptions {
VolumeSize?: number;

/**
* <p>Specifies the IOPD for a Provisioned IOPS EBS volume (SSD).</p>
* <p>Specifies the IOPS for Provisioned IOPS And GP3 EBS volume (SSD).</p>
*/
Iops?: number;

/**
* <p>Specifies the Throughput for GP3 EBS volume (SSD).</p>
*/
Throughput?: number;
}

/**
Expand Down Expand Up @@ -2425,6 +2430,10 @@ export interface StorageTypeLimit {
* Maximum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.
* <li>MinimumIops</li>
* Minimum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.
* <li>MaximumThroughput</li>
* Maximum amount of Throughput that is applicable for given storage type.It can be empty if it is not applicable.
* <li>MinimumThroughput</li>
* Minimum amount of Throughput that is applicable for given storage type.It can be empty if it is not applicable.
* </ol>
* </p>
*/
Expand Down Expand Up @@ -2469,6 +2478,7 @@ export interface StorageType {
* <ol>
* <li>standard</li>
* <li>gp2</li>
* <li>gp3</li>
* <li>io1</li>
* </ol>
* Refer <code><a>VolumeType</a></code> for more information regarding above EBS storage options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4280,6 +4280,7 @@ const serializeAws_restJson1EBSOptions = (input: EBSOptions, context: __SerdeCon
return {
...(input.EBSEnabled != null && { EBSEnabled: input.EBSEnabled }),
...(input.Iops != null && { Iops: input.Iops }),
...(input.Throughput != null && { Throughput: input.Throughput }),
...(input.VolumeSize != null && { VolumeSize: input.VolumeSize }),
...(input.VolumeType != null && { VolumeType: input.VolumeType }),
};
Expand Down Expand Up @@ -4839,6 +4840,7 @@ const deserializeAws_restJson1EBSOptions = (output: any, context: __SerdeContext
return {
EBSEnabled: __expectBoolean(output.EBSEnabled),
Iops: __expectInt32(output.Iops),
Throughput: __expectInt32(output.Throughput),
VolumeSize: __expectInt32(output.VolumeSize),
VolumeType: __expectString(output.VolumeType),
} as any;
Expand Down
30 changes: 26 additions & 4 deletions codegen/sdk-codegen/aws-models/elasticsearch-service.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@
"input": {
"target": "com.amazonaws.elasticsearchservice#AddTagsRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.elasticsearchservice#BaseException"
Expand Down Expand Up @@ -1613,6 +1616,12 @@
},
"com.amazonaws.elasticsearchservice#DeleteElasticsearchServiceRole": {
"type": "operation",
"input": {
"target": "smithy.api#Unit"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.elasticsearchservice#BaseException"
Expand Down Expand Up @@ -3141,7 +3150,13 @@
"Iops": {
"target": "com.amazonaws.elasticsearchservice#IntegerClass",
"traits": {
"smithy.api#documentation": "<p>Specifies the IOPD for a Provisioned IOPS EBS volume (SSD).</p>"
"smithy.api#documentation": "<p>Specifies the IOPS for Provisioned IOPS And GP3 EBS volume (SSD).</p>"
}
},
"Throughput": {
"target": "com.amazonaws.elasticsearchservice#IntegerClass",
"traits": {
"smithy.api#documentation": "<p>Specifies the Throughput for GP3 EBS volume (SSD).</p>"
}
}
},
Expand Down Expand Up @@ -5748,6 +5763,9 @@
"input": {
"target": "com.amazonaws.elasticsearchservice#RemoveTagsRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.elasticsearchservice#BaseException"
Expand Down Expand Up @@ -6413,7 +6431,7 @@
"com.amazonaws.elasticsearchservice#StorageSubTypeName": {
"type": "string",
"traits": {
"smithy.api#documentation": "<p>\n SubType of the given storage type.\n List of available sub-storage options:\n For \"instance\" storageType we wont have any storageSubType,\n in case of \"ebs\" storageType we will have following valid storageSubTypes\n <ol>\n <li>standard</li>\n <li>gp2</li>\n <li>io1</li>\n </ol>\n Refer <code><a>VolumeType</a></code> for more information regarding above EBS storage options.\n </p>"
"smithy.api#documentation": "<p>\n SubType of the given storage type.\n List of available sub-storage options:\n For \"instance\" storageType we wont have any storageSubType,\n in case of \"ebs\" storageType we will have following valid storageSubTypes\n <ol>\n <li>standard</li>\n <li>gp2</li>\n <li>gp3</li>\n <li>io1</li>\n </ol>\n Refer <code><a>VolumeType</a></code> for more information regarding above EBS storage options.\n </p>"
}
},
"com.amazonaws.elasticsearchservice#StorageType": {
Expand Down Expand Up @@ -6442,7 +6460,7 @@
"LimitName": {
"target": "com.amazonaws.elasticsearchservice#LimitName",
"traits": {
"smithy.api#documentation": "<p>\n Name of storage limits that are applicable for given storage type.\n If\n <code>\n <a>StorageType</a>\n </code>\n is ebs, following storage options are applicable\n <ol>\n <li>MinimumVolumeSize</li>\n Minimum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MaximumVolumeSize</li>\n Maximum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MaximumIops</li>\n Maximum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MinimumIops</li>\n Minimum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.\n </ol>\n </p>"
"smithy.api#documentation": "<p>\n Name of storage limits that are applicable for given storage type.\n If\n <code>\n <a>StorageType</a>\n </code>\n is ebs, following storage options are applicable\n <ol>\n <li>MinimumVolumeSize</li>\n Minimum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MaximumVolumeSize</li>\n Maximum amount of volume size that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MaximumIops</li>\n Maximum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MinimumIops</li>\n Minimum amount of Iops that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MaximumThroughput</li>\n Maximum amount of Throughput that is applicable for given storage type.It can be empty if it is not applicable.\n <li>MinimumThroughput</li>\n Minimum amount of Throughput that is applicable for given storage type.It can be empty if it is not applicable.\n </ol>\n </p>"
}
},
"LimitValues": {
Expand Down Expand Up @@ -7151,7 +7169,7 @@
"com.amazonaws.elasticsearchservice#VolumeType": {
"type": "string",
"traits": {
"smithy.api#documentation": "<p> The type of EBS volume, standard, gp2, or io1. See <a href=\"http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs\" target=\"_blank\">Configuring EBS-based Storage</a>for more information.</p>",
"smithy.api#documentation": "<p> The type of EBS volume, standard, gp2, gp3 or io1. See <a href=\"http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs\" target=\"_blank\">Configuring EBS-based Storage</a>for more information.</p>",
"smithy.api#enum": [
{
"value": "standard",
Expand All @@ -7164,6 +7182,10 @@
{
"value": "io1",
"name": "io1"
},
{
"value": "gp3",
"name": "gp3"
}
]
}
Expand Down

0 comments on commit 3bb625d

Please sign in to comment.