Skip to content

Commit d46ad82

Browse files
Added GetClusterEndpointService API. The new API allows retrieving endpoint service name specific to a cluster.
1 parent 4342b8b commit d46ad82

18 files changed

+883
-3
lines changed

docgenerator/AWSSDKDocSamples/DSQL.GeneratedSamples.extra.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,25 @@
9595
</example>
9696
</value>
9797
</doc>
98+
<doc>
99+
<members>
100+
<member name="M:Amazon.DSQL.IAmazonDSQL.GetVpcEndpointServiceName(Amazon.DSQL.Model.GetVpcEndpointServiceNameRequest)" />
101+
<member name="M:Amazon.DSQL.AmazonDSQLClient.GetVpcEndpointServiceName(Amazon.DSQL.Model.GetVpcEndpointServiceNameRequest)" />
102+
<member name="T:Amazon.DSQL.Model.GetVpcEndpointServiceNameRequest" />
103+
<member name="T:Amazon.DSQL.Model.GetVpcEndpointServiceNameResponse" />
104+
</members>
105+
<value>
106+
<example>
107+
<para>
108+
109+
</para>
110+
<code
111+
title="Get VPC Endpoint Service Name"
112+
source=".\AWSSDKDocSamples\DSQL\DSQL.GeneratedSamples.cs"
113+
region="example-1" />
114+
</example>
115+
</value>
116+
</doc>
98117
<doc>
99118
<members>
100119
<member name="M:Amazon.DSQL.IAmazonDSQL.ListClusters(Amazon.DSQL.Model.ListClustersRequest)" />

docgenerator/AWSSDKDocSamples/DSQL/DSQL.GeneratedSamples.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ public void DSQLGetCluster()
9292
#endregion
9393
}
9494

95+
public void DSQLGetVpcEndpointServiceName()
96+
{
97+
#region example-1
98+
99+
var client = new AmazonDSQLClient();
100+
var response = client.GetVpcEndpointServiceName(new GetVpcEndpointServiceNameRequest
101+
{
102+
Identifier = "kiqenqglxyl2snyvkvnj2c3s2e"
103+
});
104+
105+
106+
#endregion
107+
}
108+
95109
public void DSQLListClusters()
96110
{
97111
#region example-1

generator/ServiceModels/dsql/dsql-2018-05-10.api.json

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,23 @@
103103
{"shape":"ResourceNotFoundException"}
104104
]
105105
},
106+
"GetVpcEndpointServiceName":{
107+
"name":"GetVpcEndpointServiceName",
108+
"http":{
109+
"method":"GET",
110+
"requestUri":"/clusters/{identifier}/vpc-endpoint-service-name",
111+
"responseCode":200
112+
},
113+
"input":{"shape":"GetVpcEndpointServiceNameInput"},
114+
"output":{"shape":"GetVpcEndpointServiceNameOutput"},
115+
"errors":[
116+
{"shape":"ThrottlingException"},
117+
{"shape":"ValidationException"},
118+
{"shape":"AccessDeniedException"},
119+
{"shape":"InternalServerException"},
120+
{"shape":"ResourceNotFoundException"}
121+
]
122+
},
106123
"ListClusters":{
107124
"name":"ListClusters",
108125
"http":{
@@ -222,7 +239,10 @@
222239
"member":{"shape":"ClusterArn"}
223240
},
224241
"ClusterCreationTime":{"type":"timestamp"},
225-
"ClusterId":{"type":"string"},
242+
"ClusterId":{
243+
"type":"string",
244+
"pattern":"[a-z0-9]{26}"
245+
},
226246
"ClusterList":{
227247
"type":"list",
228248
"member":{"shape":"ClusterSummary"}
@@ -404,6 +424,24 @@
404424
"linkedClusterArns":{"shape":"ClusterArnList"}
405425
}
406426
},
427+
"GetVpcEndpointServiceNameInput":{
428+
"type":"structure",
429+
"required":["identifier"],
430+
"members":{
431+
"identifier":{
432+
"shape":"ClusterId",
433+
"location":"uri",
434+
"locationName":"identifier"
435+
}
436+
}
437+
},
438+
"GetVpcEndpointServiceNameOutput":{
439+
"type":"structure",
440+
"required":["serviceName"],
441+
"members":{
442+
"serviceName":{"shape":"ServiceName"}
443+
}
444+
},
407445
"Integer":{
408446
"type":"integer",
409447
"box":true
@@ -505,6 +543,12 @@
505543
},
506544
"exception":true
507545
},
546+
"ServiceName":{
547+
"type":"string",
548+
"max":128,
549+
"min":1,
550+
"pattern":"com\\.amazonaws\\.[a-z0-9-]+\\.dsql-[a-f0-9]{6}"
551+
},
508552
"ServiceQuotaExceededException":{
509553
"type":"structure",
510554
"required":[

generator/ServiceModels/dsql/dsql-2018-05-10.docs.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"DeleteCluster": "<p>Deletes a cluster in Amazon Aurora DSQL.</p>",
88
"DeleteMultiRegionClusters": "<p>Deletes a multi-Region cluster in Amazon Aurora DSQL.</p>",
99
"GetCluster": "<p>Retrieves information about a cluster.</p>",
10+
"GetVpcEndpointServiceName": "<p>Retrieves the VPC endpoint service name.</p>",
1011
"ListClusters": "<p>Retrieves information about a list of clusters.</p>",
1112
"ListTagsForResource": "<p>Lists all of the tags for a resource.</p>",
1213
"TagResource": "<p>Tags a resource with a map of key and value pairs.</p>",
@@ -75,6 +76,7 @@
7576
"DeleteClusterOutput$identifier": "<p>The ID of the deleted cluster.</p>",
7677
"GetClusterInput$identifier": "<p>The ID of the cluster to retrieve.</p>",
7778
"GetClusterOutput$identifier": "<p>The ID of the retrieved cluster.</p>",
79+
"GetVpcEndpointServiceNameInput$identifier": "<p>The ID of the cluster to retrieve.</p>",
7880
"UpdateClusterInput$identifier": "<p>The ID of the cluster you want to update.</p>",
7981
"UpdateClusterOutput$identifier": "<p>The ID of the cluster to update.</p>"
8082
}
@@ -168,6 +170,16 @@
168170
"refs": {
169171
}
170172
},
173+
"GetVpcEndpointServiceNameInput": {
174+
"base": null,
175+
"refs": {
176+
}
177+
},
178+
"GetVpcEndpointServiceNameOutput": {
179+
"base": null,
180+
"refs": {
181+
}
182+
},
171183
"Integer": {
172184
"base": null,
173185
"refs": {
@@ -240,6 +252,12 @@
240252
"refs": {
241253
}
242254
},
255+
"ServiceName": {
256+
"base": "<p>VPC Endpoint Service name for a Cluster</p>",
257+
"refs": {
258+
"GetVpcEndpointServiceNameOutput$serviceName": "<p>The VPC endpoint service name.</p>"
259+
}
260+
},
243261
"ServiceQuotaExceededException": {
244262
"base": "<p>The service limit was exceeded.</p>",
245263
"refs": {

generator/ServiceModels/dsql/dsql-2018-05-10.examples.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@
6262
"title": "Get Cluster"
6363
}
6464
],
65+
"GetVpcEndpointServiceName": [
66+
{
67+
"input": {
68+
"identifier": "kiqenqglxyl2snyvkvnj2c3s2e"
69+
},
70+
"id": "example-1",
71+
"title": "Get VPC Endpoint Service Name"
72+
}
73+
],
6574
"ListClusters": [
6675
{
6776
"input": {

generator/ServiceModels/dsql/dsql-2018-05-10.normal.json

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@
108108
],
109109
"documentation":"<p>Retrieves information about a cluster.</p>"
110110
},
111+
"GetVpcEndpointServiceName":{
112+
"name":"GetVpcEndpointServiceName",
113+
"http":{
114+
"method":"GET",
115+
"requestUri":"/clusters/{identifier}/vpc-endpoint-service-name",
116+
"responseCode":200
117+
},
118+
"input":{"shape":"GetVpcEndpointServiceNameInput"},
119+
"output":{"shape":"GetVpcEndpointServiceNameOutput"},
120+
"errors":[
121+
{"shape":"ThrottlingException"},
122+
{"shape":"ValidationException"},
123+
{"shape":"AccessDeniedException"},
124+
{"shape":"InternalServerException"},
125+
{"shape":"ResourceNotFoundException"}
126+
],
127+
"documentation":"<p>Retrieves the VPC endpoint service name.</p>"
128+
},
111129
"ListClusters":{
112130
"name":"ListClusters",
113131
"http":{
@@ -244,7 +262,8 @@
244262
},
245263
"ClusterId":{
246264
"type":"string",
247-
"documentation":"<p>The ID of the cluster</p>"
265+
"documentation":"<p>The ID of the cluster</p>",
266+
"pattern":"[a-z0-9]{26}"
248267
},
249268
"ClusterList":{
250269
"type":"list",
@@ -524,6 +543,28 @@
524543
},
525544
"documentation":"<p>Output Mixin</p>"
526545
},
546+
"GetVpcEndpointServiceNameInput":{
547+
"type":"structure",
548+
"required":["identifier"],
549+
"members":{
550+
"identifier":{
551+
"shape":"ClusterId",
552+
"documentation":"<p>The ID of the cluster to retrieve.</p>",
553+
"location":"uri",
554+
"locationName":"identifier"
555+
}
556+
}
557+
},
558+
"GetVpcEndpointServiceNameOutput":{
559+
"type":"structure",
560+
"required":["serviceName"],
561+
"members":{
562+
"serviceName":{
563+
"shape":"ServiceName",
564+
"documentation":"<p>The VPC endpoint service name.</p>"
565+
}
566+
}
567+
},
527568
"Integer":{
528569
"type":"integer",
529570
"box":true
@@ -659,6 +700,13 @@
659700
},
660701
"exception":true
661702
},
703+
"ServiceName":{
704+
"type":"string",
705+
"documentation":"<p>VPC Endpoint Service name for a Cluster</p>",
706+
"max":128,
707+
"min":1,
708+
"pattern":"com\\.amazonaws\\.[a-z0-9-]+\\.dsql-[a-f0-9]{6}"
709+
},
662710
"ServiceQuotaExceededException":{
663711
"type":"structure",
664712
"required":[

generator/ServiceModels/dsql/dsql-2018-05-10.smoke2.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,24 @@
44
"id" : "GetClusterNotFound",
55
"operationName" : "GetCluster",
66
"input" : {
7-
"identifier" : "someIdentifier"
7+
"identifier" : "ruabtlcu6nqjdl6k6jjcug67ta"
8+
},
9+
"expectation" : {
10+
"failure" : {
11+
"errorId" : "ResourceNotFoundException"
12+
}
13+
},
14+
"config" : {
15+
"region" : "us-east-1",
16+
"useFips" : false,
17+
"useDualstack" : false,
18+
"useAccountIdRouting" : true
19+
}
20+
}, {
21+
"id" : "GetVpcEndpointServiceNameNotFound",
22+
"operationName" : "GetVpcEndpointServiceName",
23+
"input" : {
24+
"identifier" : "ruabtlcu6nqjdl6k6jjcug67ta"
825
},
926
"expectation" : {
1027
"failure" : {

sdk/code-analysis/ServiceAnalysis/DSQL/Generated/PropertyValueRules.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<max>128</max>
77
<pattern>[!-~]+</pattern>
88
</property-value-rule>
9+
<property-value-rule>
10+
<property>Amazon.DSQL.Model.CreateClusterResponse.Identifier</property>
11+
<pattern>[a-z0-9]{26}</pattern>
12+
</property-value-rule>
913
<property-value-rule>
1014
<property>Amazon.DSQL.Model.CreateMultiRegionClustersRequest.ClientToken</property>
1115
<min>1</min>
@@ -23,17 +27,43 @@
2327
<max>128</max>
2428
<pattern>[!-~]+</pattern>
2529
</property-value-rule>
30+
<property-value-rule>
31+
<property>Amazon.DSQL.Model.DeleteClusterRequest.Identifier</property>
32+
<pattern>[a-z0-9]{26}</pattern>
33+
</property-value-rule>
34+
<property-value-rule>
35+
<property>Amazon.DSQL.Model.DeleteClusterResponse.Identifier</property>
36+
<pattern>[a-z0-9]{26}</pattern>
37+
</property-value-rule>
2638
<property-value-rule>
2739
<property>Amazon.DSQL.Model.DeleteMultiRegionClustersRequest.ClientToken</property>
2840
<min>1</min>
2941
<max>128</max>
3042
<pattern>[!-~]+</pattern>
3143
</property-value-rule>
44+
<property-value-rule>
45+
<property>Amazon.DSQL.Model.GetClusterRequest.Identifier</property>
46+
<pattern>[a-z0-9]{26}</pattern>
47+
</property-value-rule>
48+
<property-value-rule>
49+
<property>Amazon.DSQL.Model.GetClusterResponse.Identifier</property>
50+
<pattern>[a-z0-9]{26}</pattern>
51+
</property-value-rule>
3252
<property-value-rule>
3353
<property>Amazon.DSQL.Model.GetClusterResponse.WitnessRegion</property>
3454
<min>0</min>
3555
<max>20</max>
3656
</property-value-rule>
57+
<property-value-rule>
58+
<property>Amazon.DSQL.Model.GetVpcEndpointServiceNameRequest.Identifier</property>
59+
<pattern>[a-z0-9]{26}</pattern>
60+
</property-value-rule>
61+
<property-value-rule>
62+
<property>Amazon.DSQL.Model.GetVpcEndpointServiceNameResponse.ServiceName</property>
63+
<min>1</min>
64+
<max>128</max>
65+
<pattern>com\.amazonaws\.[a-z0-9-]+\.dsql-[a-f0-9]{6}</pattern>
66+
</property-value-rule>
3767
<property-value-rule>
3868
<property>Amazon.DSQL.Model.ListClustersRequest.MaxResults</property>
3969
<min>1</min>
@@ -63,9 +93,21 @@
6393
<max>128</max>
6494
<pattern>[!-~]+</pattern>
6595
</property-value-rule>
96+
<property-value-rule>
97+
<property>Amazon.DSQL.Model.UpdateClusterRequest.Identifier</property>
98+
<pattern>[a-z0-9]{26}</pattern>
99+
</property-value-rule>
100+
<property-value-rule>
101+
<property>Amazon.DSQL.Model.UpdateClusterResponse.Identifier</property>
102+
<pattern>[a-z0-9]{26}</pattern>
103+
</property-value-rule>
66104
<property-value-rule>
67105
<property>Amazon.DSQL.Model.UpdateClusterResponse.WitnessRegion</property>
68106
<min>0</min>
69107
<max>20</max>
70108
</property-value-rule>
109+
<property-value-rule>
110+
<property>Amazon.DSQL.Model.ClusterSummary.Identifier</property>
111+
<pattern>[a-z0-9]{26}</pattern>
112+
</property-value-rule>
71113
</property-value-rules>

0 commit comments

Comments
 (0)