Skip to content

Commit

Permalink
feat(client-opensearch): This release adds support for gp3 EBS (Elast…
Browse files Browse the repository at this point in the history
…ic Block Store) storage.
  • Loading branch information
awstools committed Jul 28, 2022
1 parent 3bb625d commit 66d0dda
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
13 changes: 12 additions & 1 deletion clients/client-opensearch/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ export interface DomainEndpointOptions {

export enum VolumeType {
gp2 = "gp2",
gp3 = "gp3",
io1 = "io1",
standard = "standard",
}
Expand All @@ -1229,9 +1230,14 @@ export interface EBSOptions {
VolumeSize?: number;

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

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

/**
Expand Down Expand Up @@ -2961,6 +2967,10 @@ export interface StorageTypeLimit {
* Maximum amount of Iops that is applicable for given the storage type. Can be empty if not applicable.
* <li>MinimumIops</li>
* Minimum amount of Iops that is applicable for given the storage type. Can be empty if not applicable.
* <li>MaximumThroughput</li>
* Maximum amount of Throughput that is applicable for given the storage type. Can be empty if not applicable.
* <li>MinimumThroughput</li>
* Minimum amount of Throughput that is applicable for given the storage type. Can be empty if not applicable.
* </ol>
* </p>
*/
Expand Down Expand Up @@ -3007,6 +3017,7 @@ export interface StorageType {
* <ol>
* <li>standard</li>
* <li>gp2</li>
* <li>gp3</li>
* <li>io1</li>
* </ol>
* See
Expand Down
2 changes: 2 additions & 0 deletions clients/client-opensearch/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4188,6 +4188,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 @@ -4899,6 +4900,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
24 changes: 20 additions & 4 deletions codegen/sdk-codegen/aws-models/opensearch.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@
"input": {
"target": "com.amazonaws.opensearch#AddTagsRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.opensearch#BaseException"
Expand Down Expand Up @@ -3504,7 +3507,13 @@
"Iops": {
"target": "com.amazonaws.opensearch#IntegerClass",
"traits": {
"smithy.api#documentation": "<p>The IOPD for a Provisioned IOPS EBS volume (SSD).</p>"
"smithy.api#documentation": "<p>The IOPS for Provisioned IOPS And GP3 EBS volume (SSD).</p>"
}
},
"Throughput": {
"target": "com.amazonaws.opensearch#IntegerClass",
"traits": {
"smithy.api#documentation": "<p>The Throughput for GP3 EBS volume (SSD).</p>"
}
}
},
Expand Down Expand Up @@ -5920,6 +5929,9 @@
"input": {
"target": "com.amazonaws.opensearch#RemoveTagsRequest"
},
"output": {
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.opensearch#BaseException"
Expand Down Expand Up @@ -6596,7 +6608,7 @@
"com.amazonaws.opensearch#StorageSubTypeName": {
"type": "string",
"traits": {
"smithy.api#documentation": "<p>\n Sub-type of the given storage type.\n List of available sub-storage options:\n \"instance\" storageType has no storageSubType.\n \"ebs\" storageType has the following valid storageSubTypes:\n <ol>\n <li>standard</li>\n <li>gp2</li>\n <li>io1</li>\n </ol>\n See\n <code>\n <a>VolumeType</a>\n </code>\n for more information regarding each EBS storage option.\n </p>"
"smithy.api#documentation": "<p>\n Sub-type of the given storage type.\n List of available sub-storage options:\n \"instance\" storageType has no storageSubType.\n \"ebs\" storageType has the following valid storageSubTypes:\n <ol>\n <li>standard</li>\n <li>gp2</li>\n <li>gp3</li>\n <li>io1</li>\n </ol>\n See\n <code>\n <a>VolumeType</a>\n </code>\n for more information regarding each EBS storage option.\n </p>"
}
},
"com.amazonaws.opensearch#StorageType": {
Expand Down Expand Up @@ -6625,7 +6637,7 @@
"LimitName": {
"target": "com.amazonaws.opensearch#LimitName",
"traits": {
"smithy.api#documentation": "<p>\n Name of storage limits that are applicable for the given storage type.\n If\n <code>\n <a>StorageType</a>\n </code>\n is \"ebs\", the following storage options are applicable:\n <ol>\n <li>MinimumVolumeSize</li>\n Minimum amount of volume size that is applicable for the given storage type. Can be empty if not applicable.\n <li>MaximumVolumeSize</li>\n Maximum amount of volume size that is applicable for the given storage type. Can be empty if not applicable.\n <li>MaximumIops</li>\n Maximum amount of Iops that is applicable for given the storage type. Can be empty if not applicable.\n <li>MinimumIops</li>\n Minimum amount of Iops that is applicable for given the storage type. Can be empty if not applicable.\n </ol>\n </p>"
"smithy.api#documentation": "<p>\n Name of storage limits that are applicable for the given storage type.\n If\n <code>\n <a>StorageType</a>\n </code>\n is \"ebs\", the following storage options are applicable:\n <ol>\n <li>MinimumVolumeSize</li>\n Minimum amount of volume size that is applicable for the given storage type. Can be empty if not applicable.\n <li>MaximumVolumeSize</li>\n Maximum amount of volume size that is applicable for the given storage type. Can be empty if not applicable.\n <li>MaximumIops</li>\n Maximum amount of Iops that is applicable for given the storage type. Can be empty if not applicable.\n <li>MinimumIops</li>\n Minimum amount of Iops that is applicable for given the storage type. Can be empty if not applicable.\n <li>MaximumThroughput</li>\n Maximum amount of Throughput that is applicable for given the storage type. Can be empty if not applicable.\n <li>MinimumThroughput</li>\n Minimum amount of Throughput that is applicable for given the storage type. Can be empty if not applicable.\n </ol>\n </p>"
}
},
"LimitValues": {
Expand Down Expand Up @@ -7388,7 +7400,7 @@
"com.amazonaws.opensearch#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/opensearch-service/latest/developerguide/opensearch-createupdatedomains.html#opensearch-createdomain-configure-ebs\" target=\"_blank\">Configuring EBS-based Storage</a> for more information.\n </p>",
"smithy.api#documentation": "<p>The type of EBS volume, standard, gp2, gp3 or io1. See <a href=\"http://docs.aws.amazon.com/opensearch-service/latest/developerguide/opensearch-createupdatedomains.html#opensearch-createdomain-configure-ebs\" target=\"_blank\">Configuring EBS-based Storage</a> for more information.\n </p>",
"smithy.api#enum": [
{
"value": "standard",
Expand All @@ -7401,6 +7413,10 @@
{
"value": "io1",
"name": "io1"
},
{
"value": "gp3",
"name": "gp3"
}
]
}
Expand Down

0 comments on commit 66d0dda

Please sign in to comment.