Skip to content

Commit

Permalink
feat(client-neptune): This release makes following few changes. db-cl…
Browse files Browse the repository at this point in the history
…uster-identifier is now a required parameter of create-db-instance. describe-db-cluster will now return PendingModifiedValues and GlobalClusterIdentifier fields in the response.
  • Loading branch information
awstools committed Mar 20, 2023
1 parent ba24447 commit 1824352
Show file tree
Hide file tree
Showing 16 changed files with 656 additions and 1,742 deletions.
1 change: 0 additions & 1 deletion clients/client-neptune/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ languages Apache TinkerPop Gremlin and SPARQL, allowing you to easily build quer
efficiently navigate highly connected datasets. Neptune powers graph use cases such as
recommendation engines, fraud detection, knowledge graphs, drug discovery, and network
security.</p>

<p>This interface reference for Amazon Neptune contains documentation for a programming or
command line interface you can use to manage Amazon Neptune. Note that Amazon Neptune is
asynchronous, which means that some interfaces might require techniques such as polling or
Expand Down
20 changes: 4 additions & 16 deletions clients/client-neptune/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,27 +67,15 @@
"typedoc": "0.23.23",
"typescript": "~4.9.5"
},
"engines": {
"node": ">=14.0.0"
},
"typesVersions": {
"<4.0": {
"dist-types/*": [
"dist-types/ts3.4/*"
]
}
},
"files": [
"dist-*"
],
"engines": { "node": ">=14.0.0" },
"typesVersions": { "<4.0": { "dist-types/*": ["dist-types/ts3.4/*"] } },
"files": ["dist-*"],
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"browser": {
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
},
"browser": { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" },
"react-native": {
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
},
Expand Down
10 changes: 0 additions & 10 deletions clients/client-neptune/src/Neptune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ import { NeptuneClient } from "./NeptuneClient";
* efficiently navigate highly connected datasets. Neptune powers graph use cases such as
* recommendation engines, fraud detection, knowledge graphs, drug discovery, and network
* security.</p>
*
* <p>This interface reference for Amazon Neptune contains documentation for a programming or
* command line interface you can use to manage Amazon Neptune. Note that Amazon Neptune is
* asynchronous, which means that some interfaces might require techniques such as polling or
Expand Down Expand Up @@ -791,15 +790,13 @@ export class Neptune extends NeptuneClient {

/**
* <p>Creates a new DB parameter group.</p>
*
* <p>A DB parameter group is initially created with the default parameters for the database
* engine used by the DB instance. To provide custom values for any of the parameters, you must
* modify the group after creating it using <i>ModifyDBParameterGroup</i>. Once
* you've created a DB parameter group, you need to associate it with your DB instance using
* <i>ModifyDBInstance</i>. When you associate a new DB parameter group with a
* running DB instance, you need to reboot the DB instance without failover for the new DB
* parameter group and associated settings to take effect.</p>
*
* <important>
* <p>After you create a DB parameter group, you should wait at least 5 minutes before
* creating your first DB instance that uses that DB parameter group as the default parameter
Expand Down Expand Up @@ -927,7 +924,6 @@ export class Neptune extends NeptuneClient {
* capability, and read-only secondary clusters that receive data from the
* primary cluster through high-speed replication performed by the Neptune
* storage subsystem.</p>
*
* <p>You can create a global database that is initially empty, and then
* add a primary cluster and secondary clusters to it, or you can specify
* an existing Neptune cluster during the create operation to become the
Expand Down Expand Up @@ -966,7 +962,6 @@ export class Neptune extends NeptuneClient {
* <p>The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a
* DB cluster, all automated backups for that DB cluster are deleted and can't be recovered.
* Manual DB cluster snapshots of the specified DB cluster are not deleted.</p>
*
* <p>Note that the DB Cluster cannot be deleted if deletion protection is enabled. To
* delete it, you must first set its <code>DeletionProtection</code> field to
* <code>False</code>.</p>
Expand Down Expand Up @@ -1385,7 +1380,6 @@ export class Neptune extends NeptuneClient {
/**
* <p>Returns information about provisioned DB clusters, and supports
* pagination.</p>
*
* <note>
* <p>This operation can also return information for Amazon RDS clusters
* and Amazon DocDB clusters.</p>
Expand Down Expand Up @@ -1528,7 +1522,6 @@ export class Neptune extends NeptuneClient {

/**
* <p>Returns information about provisioned instances, and supports pagination.</p>
*
* <note>
* <p>This operation can also return information for Amazon RDS instances
* and Amazon DocDB instances.</p>
Expand Down Expand Up @@ -2013,7 +2006,6 @@ export class Neptune extends NeptuneClient {
* words, the role of the current primary DB cluster and the selected
* target secondary DB cluster are switched. The selected secondary DB cluster
* assumes full read/write capabilities for the Neptune global database.</p>
*
* <note>
* <p>This action applies <b>only</b> to
* Neptune global databases. This action is only intended for use on healthy
Expand Down Expand Up @@ -2153,7 +2145,6 @@ export class Neptune extends NeptuneClient {
* parameter, submit a list of the following: <code>ParameterName</code>,
* <code>ParameterValue</code>, and <code>ApplyMethod</code>. A maximum of 20 parameters can be
* modified in a single request.</p>
*
* <note>
* <p>Changes to dynamic parameters are applied immediately. Changes to static parameters
* require a reboot without failover to the DB cluster associated with the parameter group
Expand Down Expand Up @@ -2829,7 +2820,6 @@ export class Neptune extends NeptuneClient {
* <p>Stops an Amazon Neptune DB cluster. When you stop a DB cluster, Neptune
* retains the DB cluster's metadata, including its endpoints and DB parameter
* groups.</p>
*
* <p>Neptune also retains the transaction logs so you can do a point-in-time
* restore if necessary.</p>
*/
Expand Down
1 change: 0 additions & 1 deletion clients/client-neptune/src/NeptuneClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ export interface NeptuneClientResolvedConfig extends NeptuneClientResolvedConfig
* efficiently navigate highly connected datasets. Neptune powers graph use cases such as
* recommendation engines, fraud detection, knowledge graphs, drug discovery, and network
* security.</p>
*
* <p>This interface reference for Amazon Neptune contains documentation for a programming or
* command line interface you can use to manage Amazon Neptune. Note that Amazon Neptune is
* asynchronous, which means that some interfaces might require techniques such as polling or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ export interface CreateDBParameterGroupCommandOutput extends CreateDBParameterGr

/**
* <p>Creates a new DB parameter group.</p>
*
* <p>A DB parameter group is initially created with the default parameters for the database
* engine used by the DB instance. To provide custom values for any of the parameters, you must
* modify the group after creating it using <i>ModifyDBParameterGroup</i>. Once
* you've created a DB parameter group, you need to associate it with your DB instance using
* <i>ModifyDBInstance</i>. When you associate a new DB parameter group with a
* running DB instance, you need to reboot the DB instance without failover for the new DB
* parameter group and associated settings to take effect.</p>
*
* <important>
* <p>After you create a DB parameter group, you should wait at least 5 minutes before
* creating your first DB instance that uses that DB parameter group as the default parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export interface CreateGlobalClusterCommandOutput extends CreateGlobalClusterRes
* capability, and read-only secondary clusters that receive data from the
* primary cluster through high-speed replication performed by the Neptune
* storage subsystem.</p>
*
* <p>You can create a global database that is initially empty, and then
* add a primary cluster and secondary clusters to it, or you can specify
* an existing Neptune cluster during the create operation to become the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M
* <p>The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a
* DB cluster, all automated backups for that DB cluster are deleted and can't be recovered.
* Manual DB cluster snapshots of the specified DB cluster are not deleted.</p>
*
* <p>Note that the DB Cluster cannot be deleted if deletion protection is enabled. To
* delete it, you must first set its <code>DeletionProtection</code> field to
* <code>False</code>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export interface DescribeDBClustersCommandOutput extends DBClusterMessage, __Met
/**
* <p>Returns information about provisioned DB clusters, and supports
* pagination.</p>
*
* <note>
* <p>This operation can also return information for Amazon RDS clusters
* and Amazon DocDB clusters.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export interface DescribeDBInstancesCommandOutput extends DBInstanceMessage, __M

/**
* <p>Returns information about provisioned instances, and supports pagination.</p>
*
* <note>
* <p>This operation can also return information for Amazon RDS instances
* and Amazon DocDB instances.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export interface FailoverGlobalClusterCommandOutput extends FailoverGlobalCluste
* words, the role of the current primary DB cluster and the selected
* target secondary DB cluster are switched. The selected secondary DB cluster
* assumes full read/write capabilities for the Neptune global database.</p>
*
* <note>
* <p>This action applies <b>only</b> to
* Neptune global databases. This action is only intended for use on healthy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export interface ModifyDBClusterParameterGroupCommandOutput
* parameter, submit a list of the following: <code>ParameterName</code>,
* <code>ParameterValue</code>, and <code>ApplyMethod</code>. A maximum of 20 parameters can be
* modified in a single request.</p>
*
* <note>
* <p>Changes to dynamic parameters are applied immediately. Changes to static parameters
* require a reboot without failover to the DB cluster associated with the parameter group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export interface StopDBClusterCommandOutput extends StopDBClusterResult, __Metad
* <p>Stops an Amazon Neptune DB cluster. When you stop a DB cluster, Neptune
* retains the DB cluster's metadata, including its endpoints and DB parameter
* groups.</p>
*
* <p>Neptune also retains the transaction logs so you can do a point-in-time
* restore if necessary.</p>
* @example
Expand Down
42 changes: 20 additions & 22 deletions clients/client-neptune/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/neptune.json */

const u="required",
v="fn",
w="argv",
x="ref";
const a="PartitionResult",
const s="required",
t="fn",
u="argv",
v="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e="getAttr",
f="stringEquals",
g={[u]:false,"type":"String"},
h={[u]:true,"default":false,"type":"Boolean"},
i={[x]:"Region"},
j={[x]:"Endpoint"},
k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]},
l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]},
m={},
n={[v]:"booleanEquals",[w]:[true,{[v]:e,[w]:[{[x]:a},"supportsFIPS"]}]},
o={[x]:a},
p={[v]:"booleanEquals",[w]:[true,{[v]:e,[w]:[o,"supportsDualStack"]}]},
q={"url":"https://rds.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}},
r=[j],
s=[k],
t=[l];
const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[v]:"aws.partition",[w]:[i],assign:a}],type:b,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]}]},{conditions:[k,l],type:b,rules:[{conditions:[n,p],type:b,rules:[{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:s,type:b,rules:[{conditions:[n],type:b,rules:[{type:b,rules:[{conditions:[{[v]:f,[w]:[i,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:["aws-us-gov",{[v]:e,[w]:[o,"name"]}]}],endpoint:q,type:d},{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:t,type:b,rules:[{conditions:[p],type:b,rules:[{endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:q,type:d}]}]};
e="PartitionResult",
f="getAttr",
g={[s]:false,"type":"String"},
h={[s]:true,"default":false,"type":"Boolean"},
i={[v]:"Endpoint"},
j={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]},
k={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]},
l={},
m={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[{[v]:e},"supportsFIPS"]}]},
n={[v]:e},
o={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[n,"supportsDualStack"]}]},
p=[j],
q=[k],
r=[{[v]:"Region"}];
const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[t]:a,[u]:[i]}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{type:b,rules:[{conditions:[{[t]:a,[u]:r}],type:b,rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:e}],type:b,rules:[{conditions:[j,k],type:b,rules:[{conditions:[m,o],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:f,[u]:[n,"name"]}]}],endpoint:{url:"https://rds.{Region}.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[o],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://rds.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 1824352

Please sign in to comment.