Skip to content

Commit

Permalink
feat(client-elasticache): Add v2 smoke tests and smithy smokeTests tr…
Browse files Browse the repository at this point in the history
…ait for SDK testing.
  • Loading branch information
awstools committed Jun 27, 2024
1 parent 1cc4de9 commit d3a5651
Showing 1 changed file with 82 additions and 69 deletions.
151 changes: 82 additions & 69 deletions codegen/sdk-codegen/aws-models/elasticache.json
Original file line number Diff line number Diff line change
Expand Up @@ -4749,21 +4749,21 @@
"smithy.api#documentation": "<p>Creates a copy of an entire cluster or replication group at a specific moment in\n time.</p>\n <note>\n <p>This operation is valid for Redis only.</p>\n </note>",
"smithy.api#examples": [
{
"title": "CreateSnapshot - NonClustered Redis, no read-replicas",
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only one node.",
"title": "CreateSnapshot - NonClustered Redis, 2 read-replicas",
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only three nodes, primary and two read-replicas. CacheClusterId must be a specific node in the cluster.",
"input": {
"CacheClusterId": "onenoderedis",
"SnapshotName": "snapshot-1"
"CacheClusterId": "threenoderedis-001",
"SnapshotName": "snapshot-2"
},
"output": {
"Snapshot": {
"Engine": "redis",
"CacheParameterGroupName": "default.redis3.2",
"VpcId": "vpc-73c3cd17",
"CacheClusterId": "onenoderedis",
"CacheClusterId": "threenoderedis-001",
"SnapshotRetentionLimit": 1,
"NumCacheNodes": 1,
"SnapshotName": "snapshot-1",
"SnapshotName": "snapshot-2",
"CacheClusterCreateTime": "2017-02-03T15:43:36.278Z",
"AutoMinorVersionUpgrade": true,
"PreferredAvailabilityZone": "us-west-2c",
Expand All @@ -4786,21 +4786,21 @@
}
},
{
"title": "CreateSnapshot - NonClustered Redis, 2 read-replicas",
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only three nodes, primary and two read-replicas. CacheClusterId must be a specific node in the cluster.",
"title": "CreateSnapshot - NonClustered Redis, no read-replicas",
"documentation": "Creates a snapshot of a non-clustered Redis cluster that has only one node.",
"input": {
"CacheClusterId": "threenoderedis-001",
"SnapshotName": "snapshot-2"
"CacheClusterId": "onenoderedis",
"SnapshotName": "snapshot-1"
},
"output": {
"Snapshot": {
"Engine": "redis",
"CacheParameterGroupName": "default.redis3.2",
"VpcId": "vpc-73c3cd17",
"CacheClusterId": "threenoderedis-001",
"CacheClusterId": "onenoderedis",
"SnapshotRetentionLimit": 1,
"NumCacheNodes": 1,
"SnapshotName": "snapshot-2",
"SnapshotName": "snapshot-1",
"CacheClusterCreateTime": "2017-02-03T15:43:36.278Z",
"AutoMinorVersionUpgrade": true,
"PreferredAvailabilityZone": "us-west-2c",
Expand Down Expand Up @@ -6128,14 +6128,39 @@
"smithy.api#examples": [
{
"title": "DescribeCacheClusters",
"documentation": "Lists the details for up to 50 cache clusters.",
"documentation": "Lists the details for the cache cluster my-mem-cluster.",
"input": {
"CacheClusterId": "my-mem-cluster"
"CacheClusterId": "my-mem-cluster",
"ShowCacheNodeInfo": true
},
"output": {
"CacheClusters": [
{
"Engine": "memcached",
"CacheNodes": [
{
"CacheNodeId": "0001",
"Endpoint": {
"Port": 11211,
"Address": "my-mem-cluster.ameaqx.0001.use1.cache.amazonaws.com"
},
"CacheNodeStatus": "available",
"ParameterGroupStatus": "in-sync",
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
"CustomerAvailabilityZone": "us-east-1b"
},
{
"CacheNodeId": "0002",
"Endpoint": {
"Port": 11211,
"Address": "my-mem-cluster.ameaqx.0002.use1.cache.amazonaws.com"
},
"CacheNodeStatus": "available",
"ParameterGroupStatus": "in-sync",
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
"CustomerAvailabilityZone": "us-east-1a"
}
],
"CacheParameterGroup": {
"CacheNodeIdsToReboot": [],
"CacheParameterGroupName": "default.memcached1.4",
Expand All @@ -6145,7 +6170,7 @@
"PreferredAvailabilityZone": "Multiple",
"ConfigurationEndpoint": {
"Port": 11211,
"Address": "my-mem-cluster.abcdef.cfg.use1.cache.amazonaws.com"
"Address": "my-mem-cluster.ameaqx.cfg.use1.cache.amazonaws.com"
},
"CacheSecurityGroups": [],
"CacheClusterCreateTime": "2016-12-21T21:59:43.794Z",
Expand All @@ -6164,39 +6189,14 @@
},
{
"title": "DescribeCacheClusters",
"documentation": "Lists the details for the cache cluster my-mem-cluster.",
"documentation": "Lists the details for up to 50 cache clusters.",
"input": {
"CacheClusterId": "my-mem-cluster",
"ShowCacheNodeInfo": true
"CacheClusterId": "my-mem-cluster"
},
"output": {
"CacheClusters": [
{
"Engine": "memcached",
"CacheNodes": [
{
"CacheNodeId": "0001",
"Endpoint": {
"Port": 11211,
"Address": "my-mem-cluster.ameaqx.0001.use1.cache.amazonaws.com"
},
"CacheNodeStatus": "available",
"ParameterGroupStatus": "in-sync",
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
"CustomerAvailabilityZone": "us-east-1b"
},
{
"CacheNodeId": "0002",
"Endpoint": {
"Port": 11211,
"Address": "my-mem-cluster.ameaqx.0002.use1.cache.amazonaws.com"
},
"CacheNodeStatus": "available",
"ParameterGroupStatus": "in-sync",
"CacheNodeCreateTime": "2016-12-21T21:59:43.794Z",
"CustomerAvailabilityZone": "us-east-1a"
}
],
"CacheParameterGroup": {
"CacheNodeIdsToReboot": [],
"CacheParameterGroupName": "default.memcached1.4",
Expand All @@ -6206,7 +6206,7 @@
"PreferredAvailabilityZone": "Multiple",
"ConfigurationEndpoint": {
"Port": 11211,
"Address": "my-mem-cluster.ameaqx.cfg.use1.cache.amazonaws.com"
"Address": "my-mem-cluster.abcdef.cfg.use1.cache.amazonaws.com"
},
"CacheSecurityGroups": [],
"CacheClusterCreateTime": "2016-12-21T21:59:43.794Z",
Expand Down Expand Up @@ -8128,7 +8128,20 @@
"outputToken": "Marker",
"items": "Events",
"pageSize": "MaxRecords"
}
},
"smithy.test#smokeTests": [
{
"id": "DescribeEventsSuccess",
"params": {},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.elasticache#DescribeEventsMessage": {
Expand Down Expand Up @@ -8554,6 +8567,21 @@
"traits": {
"smithy.api#documentation": "<p>Lists available reserved cache node offerings.</p>",
"smithy.api#examples": [
{
"title": "DescribeReseredCacheNodeOfferings",
"documentation": "Lists available reserved cache node offerings for cache.r3.large nodes with a 3 year commitment.",
"input": {
"ReservedCacheNodesOfferingId": "",
"CacheNodeType": "cache.r3.large",
"Duration": "3",
"OfferingType": "Light Utilization",
"MaxRecords": 25
},
"output": {
"Marker": "",
"ReservedCacheNodesOfferings": []
}
},
{
"title": "DescribeReseredCacheNodeOfferings",
"documentation": "Lists available reserved cache node offerings.",
Expand Down Expand Up @@ -8821,21 +8849,6 @@
]
}
},
{
"title": "DescribeReseredCacheNodeOfferings",
"documentation": "Lists available reserved cache node offerings for cache.r3.large nodes with a 3 year commitment.",
"input": {
"ReservedCacheNodesOfferingId": "",
"CacheNodeType": "cache.r3.large",
"Duration": "3",
"OfferingType": "Light Utilization",
"MaxRecords": 25
},
"output": {
"Marker": "",
"ReservedCacheNodesOfferings": []
}
},
{
"title": "DescribeReseredCacheNodeOfferings",
"documentation": "Lists available reserved cache node offerings.",
Expand Down Expand Up @@ -10837,6 +10850,16 @@
"traits": {
"smithy.api#documentation": "<p>Lists all available node types that you can scale your Redis cluster's or replication\n group's current node type.</p>\n <p>When you use the <code>ModifyCacheCluster</code> or\n <code>ModifyReplicationGroup</code> operations to scale your cluster or replication\n group, the value of the <code>CacheNodeType</code> parameter must be one of the node\n types returned by this operation.</p>",
"smithy.api#examples": [
{
"title": "ListAllowedNodeTypeModifications",
"documentation": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.",
"input": {
"CacheClusterId": "mycluster"
},
"output": {
"ScaleUpModifications": []
}
},
{
"title": "ListAllowedNodeTypeModifications",
"documentation": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.",
Expand All @@ -10855,16 +10878,6 @@
"cache.r3.xlarge"
]
}
},
{
"title": "ListAllowedNodeTypeModifications",
"documentation": "Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.",
"input": {
"CacheClusterId": "mycluster"
},
"output": {
"ScaleUpModifications": []
}
}
]
}
Expand Down

0 comments on commit d3a5651

Please sign in to comment.