Skip to content

Commit 60660d2

Browse files
author
AWS
committed
Amazon DataZone Update: Adding QueryGraph operation to DataZone SDK
1 parent 1941555 commit 60660d2

3 files changed

Lines changed: 272 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon DataZone",
4+
"contributor": "",
5+
"description": "Adding QueryGraph operation to DataZone SDK"
6+
}

services/datazone/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@
192192
"limit_key": "maxResults",
193193
"result_key": "items"
194194
},
195+
"QueryGraph": {
196+
"input_token": "nextToken",
197+
"output_token": "nextToken",
198+
"limit_key": "maxResults",
199+
"result_key": "items"
200+
},
195201
"Search": {
196202
"input_token": "nextToken",
197203
"output_token": "nextToken",

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

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,6 +2863,24 @@
28632863
"documentation":"<p>Writes the configuration for the specified environment blueprint in Amazon DataZone.</p>",
28642864
"idempotent":true
28652865
},
2866+
"QueryGraph":{
2867+
"name":"QueryGraph",
2868+
"http":{
2869+
"method":"POST",
2870+
"requestUri":"/v2/domains/{domainIdentifier}/graph/query",
2871+
"responseCode":200
2872+
},
2873+
"input":{"shape":"QueryGraphInput"},
2874+
"output":{"shape":"QueryGraphOutput"},
2875+
"errors":[
2876+
{"shape":"InternalServerException"},
2877+
{"shape":"AccessDeniedException"},
2878+
{"shape":"ThrottlingException"},
2879+
{"shape":"ValidationException"},
2880+
{"shape":"UnauthorizedException"}
2881+
],
2882+
"documentation":"<p>Queries entities in the graph store.</p>"
2883+
},
28662884
"RejectPredictions":{
28672885
"name":"RejectPredictions",
28682886
"http":{
@@ -4064,6 +4082,16 @@
40644082
},
40654083
"documentation":"<p>The details of the policy grant.</p>"
40664084
},
4085+
"AdditionalAttributes":{
4086+
"type":"structure",
4087+
"members":{
4088+
"formNames":{
4089+
"shape":"FormNameList",
4090+
"documentation":"<p>Names of forms on the query entity that can be requested in the response.</p>"
4091+
}
4092+
},
4093+
"documentation":"<p>Additional details on the queried entity that can be requested in the response.</p>"
4094+
},
40674095
"AggregationAttributeDisplayValue":{"type":"string"},
40684096
"AggregationAttributeValue":{"type":"string"},
40694097
"AggregationDisplayValue":{
@@ -10871,6 +10899,30 @@
1087110899
"type":"list",
1087210900
"member":{"shape":"OwnerPropertiesOutput"}
1087310901
},
10902+
"EntityPattern":{
10903+
"type":"structure",
10904+
"required":[
10905+
"entityType",
10906+
"identifier"
10907+
],
10908+
"members":{
10909+
"entityType":{
10910+
"shape":"GraphEntityType",
10911+
"documentation":"<p>The type of entity to be matched during the graph query.</p>"
10912+
},
10913+
"identifier":{
10914+
"shape":"EntityPatternIdentifierString",
10915+
"documentation":"<p>The identifier of the root entity to start traversal from during the graph query.</p>"
10916+
},
10917+
"filters":{"shape":"FilterClause"}
10918+
},
10919+
"documentation":"<p>The pattern describing the entities to be matched during the graph query.</p>"
10920+
},
10921+
"EntityPatternIdentifierString":{
10922+
"type":"string",
10923+
"max":2086,
10924+
"min":1
10925+
},
1087410926
"EntityType":{
1087510927
"type":"string",
1087610928
"enum":[
@@ -11688,6 +11740,12 @@
1168811740
"min":1,
1168911741
"pattern":"(?![0-9_])\\w+$|^_\\w*[a-zA-Z0-9]\\w*"
1169011742
},
11743+
"FormNameList":{
11744+
"type":"list",
11745+
"member":{"shape":"FormName"},
11746+
"max":10,
11747+
"min":1
11748+
},
1169111749
"FormOutput":{
1169211750
"type":"structure",
1169311751
"required":["formName"],
@@ -15358,6 +15416,10 @@
1535815416
"documentation":"<p>The details of a listing for which a subscription is to be granted.</p>",
1535915417
"union":true
1536015418
},
15419+
"GraphEntityType":{
15420+
"type":"string",
15421+
"enum":["LINEAGE_NODE"]
15422+
},
1536115423
"GreaterThanExpression":{
1536215424
"type":"structure",
1536315425
"required":[
@@ -15952,6 +16014,81 @@
1595216014
"max":2086,
1595316015
"min":1
1595416016
},
16017+
"LineageNodeIds":{
16018+
"type":"list",
16019+
"member":{"shape":"LineageNodeId"}
16020+
},
16021+
"LineageNodeItem":{
16022+
"type":"structure",
16023+
"required":[
16024+
"domainId",
16025+
"id",
16026+
"typeName"
16027+
],
16028+
"members":{
16029+
"domainId":{
16030+
"shape":"DomainId",
16031+
"documentation":"<p>The ID of the domain of the data lineage node.</p>"
16032+
},
16033+
"name":{
16034+
"shape":"String",
16035+
"documentation":"<p>The name of the data lineage node.</p>"
16036+
},
16037+
"description":{
16038+
"shape":"String",
16039+
"documentation":"<p>The description of the data lineage node.</p>"
16040+
},
16041+
"createdAt":{
16042+
"shape":"CreatedAt",
16043+
"documentation":"<p>The timestamp at which the data lineage node was created.</p>"
16044+
},
16045+
"createdBy":{
16046+
"shape":"CreatedBy",
16047+
"documentation":"<p>The user who created the data lineage node.</p>"
16048+
},
16049+
"updatedAt":{
16050+
"shape":"UpdatedAt",
16051+
"documentation":"<p>The timestamp at which the data lineage node was updated.</p>"
16052+
},
16053+
"updatedBy":{
16054+
"shape":"UpdatedBy",
16055+
"documentation":"<p>The user who updated the data lineage node.</p>"
16056+
},
16057+
"id":{
16058+
"shape":"LineageNodeId",
16059+
"documentation":"<p>The ID of the data lineage node.</p>"
16060+
},
16061+
"typeName":{
16062+
"shape":"String",
16063+
"documentation":"<p>The name of the type of the data lineage node.</p>"
16064+
},
16065+
"typeRevision":{
16066+
"shape":"Revision",
16067+
"documentation":"<p>The type of the revision of the data lineage node.</p>"
16068+
},
16069+
"sourceIdentifier":{
16070+
"shape":"String",
16071+
"documentation":"<p>The alternate ID of the data lineage node.</p>"
16072+
},
16073+
"eventTimestamp":{
16074+
"shape":"Timestamp",
16075+
"documentation":"<p>The event timestamp of the data lineage node.</p>"
16076+
},
16077+
"formsOutput":{
16078+
"shape":"FormOutputList",
16079+
"documentation":"<p>The forms included in the additional attributes of a data lineage node.</p>"
16080+
},
16081+
"upstreamLineageNodeIds":{
16082+
"shape":"LineageNodeIds",
16083+
"documentation":"<p>The IDs of the upstream data lineage nodes.</p>"
16084+
},
16085+
"downstreamLineageNodeIds":{
16086+
"shape":"LineageNodeIds",
16087+
"documentation":"<p>The IDs of the downstream data lineage nodes.</p>"
16088+
}
16089+
},
16090+
"documentation":"<p>The summary and output forms of a LineageNode</p>"
16091+
},
1595516092
"LineageNodeReference":{
1595616093
"type":"structure",
1595716094
"members":{
@@ -18328,6 +18465,27 @@
1832818465
"USE_ASSET_TYPE"
1832918466
]
1833018467
},
18468+
"MatchClause":{
18469+
"type":"structure",
18470+
"members":{
18471+
"relationPattern":{
18472+
"shape":"RelationPattern",
18473+
"documentation":"<p>The pattern describing the query's relational traversal.</p>"
18474+
},
18475+
"entityPattern":{
18476+
"shape":"EntityPattern",
18477+
"documentation":"<p>The pattern describing the entities for the query to traverse.</p>"
18478+
}
18479+
},
18480+
"documentation":"<p>A clause to match a query pattern</p>",
18481+
"union":true
18482+
},
18483+
"MatchClauses":{
18484+
"type":"list",
18485+
"member":{"shape":"MatchClause"},
18486+
"max":2,
18487+
"min":2
18488+
},
1833118489
"MatchCriteria":{
1833218490
"type":"list",
1833318491
"member":{"shape":"String"},
@@ -19812,6 +19970,54 @@
1981219970
}
1981319971
}
1981419972
},
19973+
"QueryGraphInput":{
19974+
"type":"structure",
19975+
"required":[
19976+
"domainIdentifier",
19977+
"match"
19978+
],
19979+
"members":{
19980+
"domainIdentifier":{
19981+
"shape":"DomainId",
19982+
"documentation":"<p>The identifier of the Amazon DataZone domain.</p>",
19983+
"location":"uri",
19984+
"locationName":"domainIdentifier"
19985+
},
19986+
"match":{
19987+
"shape":"MatchClauses",
19988+
"documentation":"<p>List of query match clauses.</p>"
19989+
},
19990+
"maxResults":{
19991+
"shape":"MaxResults",
19992+
"documentation":"<p>The maximum number of entities to return in a single call to <code>QueryGraph</code>. When the number of entities to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>QueryGraph</code> to list the next set of entities.</p>",
19993+
"location":"querystring",
19994+
"locationName":"maxResults"
19995+
},
19996+
"nextToken":{
19997+
"shape":"PaginationToken",
19998+
"documentation":"<p>When the number of entities is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of entities, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>QueryGraph</code> to list the next set of entities.</p>",
19999+
"location":"querystring",
20000+
"locationName":"nextToken"
20001+
},
20002+
"additionalAttributes":{
20003+
"shape":"AdditionalAttributes",
20004+
"documentation":"<p>Additional details on the queried entity that can be requested in the response.</p>"
20005+
}
20006+
}
20007+
},
20008+
"QueryGraphOutput":{
20009+
"type":"structure",
20010+
"members":{
20011+
"items":{
20012+
"shape":"ResultItemList",
20013+
"documentation":"<p>The results of the <code>QueryGraph</code> action.</p>"
20014+
},
20015+
"nextToken":{
20016+
"shape":"PaginationToken",
20017+
"documentation":"<p>When the number of entities is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of entities, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>QueryGraph</code> to list the next set of entities.</p>"
20018+
}
20019+
}
20020+
},
1981520021
"RecommendationConfiguration":{
1981620022
"type":"structure",
1981720023
"members":{
@@ -20405,6 +20611,45 @@
2040520611
"max":1,
2040620612
"min":1
2040720613
},
20614+
"RelationDirection":{
20615+
"type":"string",
20616+
"enum":[
20617+
"IN",
20618+
"OUT"
20619+
]
20620+
},
20621+
"RelationPattern":{
20622+
"type":"structure",
20623+
"required":[
20624+
"relationType",
20625+
"relationDirection"
20626+
],
20627+
"members":{
20628+
"relationType":{
20629+
"shape":"RelationType",
20630+
"documentation":"<p>The type of relation to query.</p>"
20631+
},
20632+
"relationDirection":{
20633+
"shape":"RelationDirection",
20634+
"documentation":"<p>The direction to query.</p>"
20635+
},
20636+
"maxPathLength":{
20637+
"shape":"RelationPatternMaxPathLengthInteger",
20638+
"documentation":"<p>The number of hops to query.</p>"
20639+
}
20640+
},
20641+
"documentation":"<p>The pattern describing the query's relational traversal.</p>"
20642+
},
20643+
"RelationPatternMaxPathLengthInteger":{
20644+
"type":"integer",
20645+
"box":true,
20646+
"max":5,
20647+
"min":1
20648+
},
20649+
"RelationType":{
20650+
"type":"string",
20651+
"enum":["LINEAGE"]
20652+
},
2040820653
"RelationalFilterConfiguration":{
2040920654
"type":"structure",
2041020655
"required":["databaseName"],
@@ -20649,6 +20894,21 @@
2064920894
"max":25,
2065020895
"min":0
2065120896
},
20897+
"ResultItem":{
20898+
"type":"structure",
20899+
"members":{
20900+
"lineageNode":{
20901+
"shape":"LineageNodeItem",
20902+
"documentation":"<p>Resulting data lineage node from the query.</p>"
20903+
}
20904+
},
20905+
"documentation":"<p>Resulting entity from the query.</p>",
20906+
"union":true
20907+
},
20908+
"ResultItemList":{
20909+
"type":"list",
20910+
"member":{"shape":"ResultItem"}
20911+
},
2065220912
"Revision":{
2065320913
"type":"string",
2065420914
"max":64,

0 commit comments

Comments
 (0)