Skip to content

Commit 90ce8a3

Browse files
author
AWS
committed
Redshift Data API Service Update: Redshift Data API service now supports SQL parameterization.
1 parent 3cb1514 commit 90ce8a3

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Redshift Data API Service",
4+
"contributor": "",
5+
"description": "Redshift Data API service now supports SQL parameterization."
6+
}

services/redshiftdata/src/main/resources/codegen-resources/service-2.json

+43
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@
304304
"shape":"UUID",
305305
"documentation":"<p>The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. </p>"
306306
},
307+
"QueryParameters":{
308+
"shape":"SqlParametersList",
309+
"documentation":"<p>The parameters for the SQL statement.</p>"
310+
},
307311
"QueryString":{
308312
"shape":"StatementString",
309313
"documentation":"<p>The SQL statement text. </p>"
@@ -439,6 +443,10 @@
439443
"shape":"String",
440444
"documentation":"<p>The database user name. This parameter is required when authenticating using temporary credentials. </p>"
441445
},
446+
"Parameters":{
447+
"shape":"SqlParametersList",
448+
"documentation":"<p>The parameters for the SQL statement.</p>"
449+
},
442450
"SecretArn":{
443451
"shape":"SecretArn",
444452
"documentation":"<p>The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using AWS Secrets Manager. </p>"
@@ -777,6 +785,14 @@
777785
"max":1000,
778786
"min":0
779787
},
788+
"ParameterName":{
789+
"type":"string",
790+
"pattern":"^[0-9a-zA-Z_]+$"
791+
},
792+
"ParameterValue":{
793+
"type":"string",
794+
"min":1
795+
},
780796
"ResourceNotFoundException":{
781797
"type":"structure",
782798
"required":[
@@ -801,6 +817,29 @@
801817
"member":{"shape":"String"}
802818
},
803819
"SecretArn":{"type":"string"},
820+
"SqlParameter":{
821+
"type":"structure",
822+
"required":[
823+
"name",
824+
"value"
825+
],
826+
"members":{
827+
"name":{
828+
"shape":"ParameterName",
829+
"documentation":"<p>The name of the parameter.</p>"
830+
},
831+
"value":{
832+
"shape":"ParameterValue",
833+
"documentation":"<p>The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more inforation, see <a href=\"https://docs.aws.amazon.com/redshift/latest/dg/c_Supported_data_types.html\">Data types</a> in the <i>Amazon Redshift Database Developer Guide</i>. </p>"
834+
}
835+
},
836+
"documentation":"<p>A parameter used in a SQL statement.</p>"
837+
},
838+
"SqlParametersList":{
839+
"type":"list",
840+
"member":{"shape":"SqlParameter"},
841+
"min":1
842+
},
804843
"SqlRecords":{
805844
"type":"list",
806845
"member":{"shape":"FieldList"}
@@ -817,6 +856,10 @@
817856
"shape":"UUID",
818857
"documentation":"<p>The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. </p>"
819858
},
859+
"QueryParameters":{
860+
"shape":"SqlParametersList",
861+
"documentation":"<p>The parameters used in a SQL statement.</p>"
862+
},
820863
"QueryString":{
821864
"shape":"StatementString",
822865
"documentation":"<p>The SQL statement.</p>"

0 commit comments

Comments
 (0)