Skip to content

Commit e448898

Browse files
Added clusterVpcEndpoint field to GetVpcEndpointServiceName API response, returning the VPC connection endpoint for the cluster
1 parent 2703af2 commit e448898

File tree

6 files changed

+49
-1
lines changed

6 files changed

+49
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@
304304
"arn":{"shape":"ClusterArn"}
305305
}
306306
},
307+
"ClusterVpcEndpoint":{
308+
"type":"string",
309+
"pattern":"[a-zA-Z0-9.-]+"
310+
},
307311
"ConflictException":{
308312
"type":"structure",
309313
"required":["message"],
@@ -519,7 +523,8 @@
519523
"type":"structure",
520524
"required":["serviceName"],
521525
"members":{
522-
"serviceName":{"shape":"ServiceName"}
526+
"serviceName":{"shape":"ServiceName"},
527+
"clusterVpcEndpoint":{"shape":"ClusterVpcEndpoint"}
523528
}
524529
},
525530
"Integer":{

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@
109109
"ClusterList$member": null
110110
}
111111
},
112+
"ClusterVpcEndpoint": {
113+
"base": null,
114+
"refs": {
115+
"GetVpcEndpointServiceNameOutput$clusterVpcEndpoint": "<p>The VPC connection endpoint for the cluster.</p>"
116+
}
117+
},
112118
"ConflictException": {
113119
"base": "<p>The submitted action has conflicts.</p>",
114120
"refs": {}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@
334334
},
335335
"documentation":"<p>A summary of the properties of a cluster.</p>"
336336
},
337+
"ClusterVpcEndpoint":{
338+
"type":"string",
339+
"pattern":"[a-zA-Z0-9.-]+"
340+
},
337341
"ConflictException":{
338342
"type":"structure",
339343
"required":["message"],
@@ -667,6 +671,10 @@
667671
"serviceName":{
668672
"shape":"ServiceName",
669673
"documentation":"<p>The VPC endpoint service name.</p>"
674+
},
675+
"clusterVpcEndpoint":{
676+
"shape":"ClusterVpcEndpoint",
677+
"documentation":"<p>The VPC connection endpoint for the cluster.</p>"
670678
}
671679
}
672680
},

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
<property>Amazon.DSQL.Model.GetVpcEndpointServiceNameRequest.Identifier</property>
8787
<pattern>[a-z0-9]{26}</pattern>
8888
</property-value-rule>
89+
<property-value-rule>
90+
<property>Amazon.DSQL.Model.GetVpcEndpointServiceNameResponse.ClusterVpcEndpoint</property>
91+
<pattern>[a-zA-Z0-9.-]+</pattern>
92+
</property-value-rule>
8993
<property-value-rule>
9094
<property>Amazon.DSQL.Model.GetVpcEndpointServiceNameResponse.ServiceName</property>
9195
<min>1</min>

sdk/src/Services/DSQL/Generated/Model/GetVpcEndpointServiceNameResponse.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,27 @@ namespace Amazon.DSQL.Model
3434
/// </summary>
3535
public partial class GetVpcEndpointServiceNameResponse : AmazonWebServiceResponse
3636
{
37+
private string _clusterVpcEndpoint;
3738
private string _serviceName;
3839

40+
/// <summary>
41+
/// Gets and sets the property ClusterVpcEndpoint.
42+
/// <para>
43+
/// The VPC connection endpoint for the cluster.
44+
/// </para>
45+
/// </summary>
46+
public string ClusterVpcEndpoint
47+
{
48+
get { return this._clusterVpcEndpoint; }
49+
set { this._clusterVpcEndpoint = value; }
50+
}
51+
52+
// Check to see if ClusterVpcEndpoint property is set
53+
internal bool IsSetClusterVpcEndpoint()
54+
{
55+
return this._clusterVpcEndpoint != null;
56+
}
57+
3958
/// <summary>
4059
/// Gets and sets the property ServiceName.
4160
/// <para>

sdk/src/Services/DSQL/Generated/Model/Internal/MarshallTransformations/GetVpcEndpointServiceNameResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
5252
int targetDepth = context.CurrentDepth;
5353
while (context.ReadAtDepth(targetDepth, ref reader))
5454
{
55+
if (context.TestExpression("clusterVpcEndpoint", targetDepth))
56+
{
57+
var unmarshaller = StringUnmarshaller.Instance;
58+
response.ClusterVpcEndpoint = unmarshaller.Unmarshall(context, ref reader);
59+
continue;
60+
}
5561
if (context.TestExpression("serviceName", targetDepth))
5662
{
5763
var unmarshaller = StringUnmarshaller.Instance;

0 commit comments

Comments
 (0)