Skip to content

Commit

Permalink
feat(client-timestream-influxdb): Timestream for InfluxDB now support…
Browse files Browse the repository at this point in the history
…s compute scaling and deployment type conversion. This release adds the DbInstanceType and DeploymentType parameters to the UpdateDbInstance API.
  • Loading branch information
awstools committed Sep 3, 2024
1 parent 3ac8b18 commit 4e6cb80
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface CreateDbInstanceCommandOutput extends CreateDbInstanceOutput, _
* // id: "STRING_VALUE", // required
* // name: "STRING_VALUE", // required
* // arn: "STRING_VALUE", // required
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED",
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED" || "UPDATING_DEPLOYMENT_TYPE" || "UPDATING_INSTANCE_TYPE",
* // endpoint: "STRING_VALUE",
* // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge",
* // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface DeleteDbInstanceCommandOutput extends DeleteDbInstanceOutput, _
* // id: "STRING_VALUE", // required
* // name: "STRING_VALUE", // required
* // arn: "STRING_VALUE", // required
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED",
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED" || "UPDATING_DEPLOYMENT_TYPE" || "UPDATING_INSTANCE_TYPE",
* // endpoint: "STRING_VALUE",
* // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge",
* // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface GetDbInstanceCommandOutput extends GetDbInstanceOutput, __Metad
* // id: "STRING_VALUE", // required
* // name: "STRING_VALUE", // required
* // arn: "STRING_VALUE", // required
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED",
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED" || "UPDATING_DEPLOYMENT_TYPE" || "UPDATING_INSTANCE_TYPE",
* // endpoint: "STRING_VALUE",
* // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge",
* // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface ListDbInstancesCommandOutput extends ListDbInstancesOutput, __M
* // id: "STRING_VALUE", // required
* // name: "STRING_VALUE", // required
* // arn: "STRING_VALUE", // required
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED",
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED" || "UPDATING_DEPLOYMENT_TYPE" || "UPDATING_INSTANCE_TYPE",
* // endpoint: "STRING_VALUE",
* // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge",
* // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ export interface UpdateDbInstanceCommandOutput extends UpdateDbInstanceOutput, _
* },
* },
* dbParameterGroupIdentifier: "STRING_VALUE",
* dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge",
* deploymentType: "SINGLE_AZ" || "WITH_MULTIAZ_STANDBY",
* };
* const command = new UpdateDbInstanceCommand(input);
* const response = await client.send(command);
* // { // UpdateDbInstanceOutput
* // id: "STRING_VALUE", // required
* // name: "STRING_VALUE", // required
* // arn: "STRING_VALUE", // required
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED",
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "MODIFYING" || "UPDATING" || "DELETED" || "FAILED" || "UPDATING_DEPLOYMENT_TYPE" || "UPDATING_INSTANCE_TYPE",
* // endpoint: "STRING_VALUE",
* // dbInstanceType: "db.influx.medium" || "db.influx.large" || "db.influx.xlarge" || "db.influx.2xlarge" || "db.influx.4xlarge" || "db.influx.8xlarge" || "db.influx.12xlarge" || "db.influx.16xlarge",
* // dbStorageType: "InfluxIOIncludedT1" || "InfluxIOIncludedT2" || "InfluxIOIncludedT3",
Expand Down
14 changes: 14 additions & 0 deletions clients/client-timestream-influxdb/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ export const Status = {
FAILED: "FAILED",
MODIFYING: "MODIFYING",
UPDATING: "UPDATING",
UPDATING_DEPLOYMENT_TYPE: "UPDATING_DEPLOYMENT_TYPE",
UPDATING_INSTANCE_TYPE: "UPDATING_INSTANCE_TYPE",
} as const;

/**
Expand Down Expand Up @@ -865,6 +867,18 @@ export interface UpdateDbInstanceInput {
* @public
*/
dbParameterGroupIdentifier?: string;

/**
* <p>The Timestream for InfluxDB DB instance type to run InfluxDB on.</p>
* @public
*/
dbInstanceType?: DbInstanceType;

/**
* <p>Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.</p>
* @public
*/
deploymentType?: DeploymentType;
}

/**
Expand Down
33 changes: 31 additions & 2 deletions codegen/sdk-codegen/aws-models/timestream-influxdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@
"min": 2,
"max": 64
},
"smithy.api#pattern": "^[^_][^\"]*$"
"smithy.api#pattern": "^[^_\"][^\"]*$"
}
},
"com.amazonaws.timestreaminfluxdb#ConflictException": {
Expand Down Expand Up @@ -2232,7 +2232,12 @@
}
},
"com.amazonaws.timestreaminfluxdb#NextToken": {
"type": "string"
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1
}
}
},
"com.amazonaws.timestreaminfluxdb#Organization": {
"type": "string",
Expand Down Expand Up @@ -2414,6 +2419,18 @@
"traits": {
"smithy.api#enumValue": "FAILED"
}
},
"UPDATING_DEPLOYMENT_TYPE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "UPDATING_DEPLOYMENT_TYPE"
}
},
"UPDATING_INSTANCE_TYPE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "UPDATING_INSTANCE_TYPE"
}
}
}
},
Expand Down Expand Up @@ -2628,6 +2645,18 @@
"traits": {
"smithy.api#documentation": "<p>The id of the DB parameter group to assign to your DB instance. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.</p>"
}
},
"dbInstanceType": {
"target": "com.amazonaws.timestreaminfluxdb#DbInstanceType",
"traits": {
"smithy.api#documentation": "<p>The Timestream for InfluxDB DB instance type to run InfluxDB on.</p>"
}
},
"deploymentType": {
"target": "com.amazonaws.timestreaminfluxdb#DeploymentType",
"traits": {
"smithy.api#documentation": "<p>Specifies whether the DB instance will be deployed as a standalone instance or with a Multi-AZ standby for high availability.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 4e6cb80

Please sign in to comment.