Skip to content

Commit ef49ac5

Browse files
author
AWS
committed
AWS Glue Update: This release adds support for creating and updating Glue Data Catalog Views.
1 parent 3bbf19d commit ef49ac5

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Glue",
4+
"contributor": "",
5+
"description": "This release adds support for creating and updating Glue Data Catalog Views."
6+
}

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

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20530,6 +20530,10 @@
2053020530
"TargetTable":{
2053120531
"shape":"TableIdentifier",
2053220532
"documentation":"<p>A <code>TableIdentifier</code> structure that describes a target table for resource linking.</p>"
20533+
},
20534+
"ViewDefinition":{
20535+
"shape":"ViewDefinitionInput",
20536+
"documentation":"<p>A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.</p>"
2053320537
}
2053420538
},
2053520539
"documentation":"<p>A structure used to define a table.</p>"
@@ -22091,6 +22095,14 @@
2209122095
"VersionId":{
2209222096
"shape":"VersionString",
2209322097
"documentation":"<p>The version ID at which to update the table contents. </p>"
22098+
},
22099+
"ViewUpdateAction":{
22100+
"shape":"ViewUpdateAction",
22101+
"documentation":"<p>The operation to be performed when updating the view.</p>"
22102+
},
22103+
"Force":{
22104+
"shape":"Boolean",
22105+
"documentation":"<p>A flag that can be set to true to ignore matching storage descriptor and subobject matching requirements.</p>"
2209422106
}
2209522107
}
2209622108
},
@@ -22369,6 +22381,28 @@
2236922381
},
2237022382
"documentation":"<p>A structure containing details for representations.</p>"
2237122383
},
22384+
"ViewDefinitionInput":{
22385+
"type":"structure",
22386+
"members":{
22387+
"IsProtected":{
22388+
"shape":"NullableBoolean",
22389+
"documentation":"<p>You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.</p>"
22390+
},
22391+
"Definer":{
22392+
"shape":"ArnString",
22393+
"documentation":"<p>The definer of a view in SQL.</p>"
22394+
},
22395+
"Representations":{
22396+
"shape":"ViewRepresentationInputList",
22397+
"documentation":"<p>A list of structures that contains the dialect of the view, and the query that defines the view.</p>"
22398+
},
22399+
"SubObjects":{
22400+
"shape":"ViewSubObjectsList",
22401+
"documentation":"<p>A list of base table ARNs that make up the view.</p>"
22402+
}
22403+
},
22404+
"documentation":"<p>A structure containing details for creating or updating an Glue view.</p>"
22405+
},
2237222406
"ViewDialect":{
2237322407
"type":"string",
2237422408
"enum":[
@@ -22401,13 +22435,49 @@
2240122435
"shape":"ViewTextString",
2240222436
"documentation":"<p>The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform <code>ViewOriginalText</code> to <code>ViewExpandedText</code>. For example:</p> <ul> <li> <p>Fully qualified identifiers: <code>SELECT * from table1 -&gt; SELECT * from db1.table1</code> </p> </li> </ul>"
2240322437
},
22438+
"ValidationConnection":{
22439+
"shape":"NameString",
22440+
"documentation":"<p>The name of the connection to be used to validate the specific representation of the view.</p>"
22441+
},
2240422442
"IsStale":{
2240522443
"shape":"NullableBoolean",
2240622444
"documentation":"<p>Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.</p>"
2240722445
}
2240822446
},
2240922447
"documentation":"<p>A structure that contains the dialect of the view, and the query that defines the view.</p>"
2241022448
},
22449+
"ViewRepresentationInput":{
22450+
"type":"structure",
22451+
"members":{
22452+
"Dialect":{
22453+
"shape":"ViewDialect",
22454+
"documentation":"<p>A parameter that specifies the engine type of a specific representation.</p>"
22455+
},
22456+
"DialectVersion":{
22457+
"shape":"ViewDialectVersionString",
22458+
"documentation":"<p>A parameter that specifies the version of the engine of a specific representation.</p>"
22459+
},
22460+
"ViewOriginalText":{
22461+
"shape":"ViewTextString",
22462+
"documentation":"<p>A string that represents the original SQL query that describes the view.</p>"
22463+
},
22464+
"ValidationConnection":{
22465+
"shape":"NameString",
22466+
"documentation":"<p>The name of the connection to be used to validate the specific representation of the view.</p>"
22467+
},
22468+
"ViewExpandedText":{
22469+
"shape":"ViewTextString",
22470+
"documentation":"<p>A string that represents the SQL query that describes the view with expanded resource ARNs</p>"
22471+
}
22472+
},
22473+
"documentation":"<p>A structure containing details of a representation to update or create a Lake Formation view.</p>"
22474+
},
22475+
"ViewRepresentationInputList":{
22476+
"type":"list",
22477+
"member":{"shape":"ViewRepresentationInput"},
22478+
"max":10,
22479+
"min":1
22480+
},
2241122481
"ViewRepresentationList":{
2241222482
"type":"list",
2241322483
"member":{"shape":"ViewRepresentation"},
@@ -22424,6 +22494,15 @@
2242422494
"type":"string",
2242522495
"max":409600
2242622496
},
22497+
"ViewUpdateAction":{
22498+
"type":"string",
22499+
"enum":[
22500+
"ADD",
22501+
"REPLACE",
22502+
"ADD_OR_REPLACE",
22503+
"DROP"
22504+
]
22505+
},
2242722506
"WorkerType":{
2242822507
"type":"string",
2242922508
"enum":[

0 commit comments

Comments
 (0)