Skip to content

Commit c07c4c4

Browse files
author
AWS
committed
Amazon DataZone Update: Add new skipDeletionCheck to DeleteDomain. Add new skipDeletionCheck to DeleteProject which also automatically deletes dependent objects
1 parent 4553e96 commit c07c4c4

File tree

3 files changed

+96
-20
lines changed

3 files changed

+96
-20
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": "Amazon DataZone",
4+
"contributor": "",
5+
"description": "Add new skipDeletionCheck to DeleteDomain. Add new skipDeletionCheck to DeleteProject which also automatically deletes dependent objects"
6+
}

services/datazone/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
]
3434
}
3535
],
36-
"type": "tree",
3736
"rules": [
3837
{
3938
"conditions": [
@@ -61,7 +60,8 @@
6160
},
6261
"type": "endpoint"
6362
}
64-
]
63+
],
64+
"type": "tree"
6565
},
6666
{
6767
"conditions": [
@@ -74,7 +74,6 @@
7474
]
7575
}
7676
],
77-
"type": "tree",
7877
"rules": [
7978
{
8079
"conditions": [
@@ -88,7 +87,6 @@
8887
"assign": "PartitionResult"
8988
}
9089
],
91-
"type": "tree",
9290
"rules": [
9391
{
9492
"conditions": [
@@ -108,7 +106,6 @@
108106
]
109107
}
110108
],
111-
"type": "tree",
112109
"rules": [
113110
{
114111
"conditions": [
@@ -122,14 +119,12 @@
122119
]
123120
}
124121
],
125-
"type": "tree",
126122
"rules": [
127123
{
128124
"conditions": [
129125
{
130126
"fn": "booleanEquals",
131127
"argv": [
132-
true,
133128
{
134129
"fn": "getAttr",
135130
"argv": [
@@ -138,11 +133,11 @@
138133
},
139134
"supportsFIPS"
140135
]
141-
}
136+
},
137+
true
142138
]
143139
}
144140
],
145-
"type": "tree",
146141
"rules": [
147142
{
148143
"conditions": [],
@@ -153,14 +148,16 @@
153148
},
154149
"type": "endpoint"
155150
}
156-
]
151+
],
152+
"type": "tree"
157153
},
158154
{
159155
"conditions": [],
160156
"error": "FIPS is enabled but this partition does not support FIPS",
161157
"type": "error"
162158
}
163-
]
159+
],
160+
"type": "tree"
164161
},
165162
{
166163
"conditions": [],
@@ -171,7 +168,8 @@
171168
},
172169
"type": "endpoint"
173170
}
174-
]
171+
],
172+
"type": "tree"
175173
},
176174
{
177175
"conditions": [
@@ -185,14 +183,12 @@
185183
]
186184
}
187185
],
188-
"type": "tree",
189186
"rules": [
190187
{
191188
"conditions": [
192189
{
193190
"fn": "booleanEquals",
194191
"argv": [
195-
true,
196192
{
197193
"fn": "getAttr",
198194
"argv": [
@@ -201,11 +197,11 @@
201197
},
202198
"supportsFIPS"
203199
]
204-
}
200+
},
201+
true
205202
]
206203
}
207204
],
208-
"type": "tree",
209205
"rules": [
210206
{
211207
"conditions": [],
@@ -216,14 +212,16 @@
216212
},
217213
"type": "endpoint"
218214
}
219-
]
215+
],
216+
"type": "tree"
220217
},
221218
{
222219
"conditions": [],
223220
"error": "FIPS is enabled but this partition does not support FIPS",
224221
"type": "error"
225222
}
226-
]
223+
],
224+
"type": "tree"
227225
},
228226
{
229227
"conditions": [],
@@ -234,9 +232,11 @@
234232
},
235233
"type": "endpoint"
236234
}
237-
]
235+
],
236+
"type": "tree"
238237
}
239-
]
238+
],
239+
"type": "tree"
240240
},
241241
{
242242
"conditions": [],

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

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,6 +4047,10 @@
40474047
"shape":"DomainId",
40484048
"documentation":"<p>The identifier of the Amazon DataZone domain in which the project was created.</p>"
40494049
},
4050+
"failureReasons":{
4051+
"shape":"FailureReasons",
4052+
"documentation":"<p>Reasons for failed project deletion</p>"
4053+
},
40504054
"glossaryTerms":{
40514055
"shape":"GlossaryTerms",
40524056
"documentation":"<p>The glossary terms that can be used in the project.</p>"
@@ -4062,6 +4066,10 @@
40624066
"name":{
40634067
"shape":"ProjectName",
40644068
"documentation":"<p>The name of the project.</p>"
4069+
},
4070+
"projectStatus":{
4071+
"shape":"ProjectStatus",
4072+
"documentation":"<p>Status of the project</p>"
40654073
}
40664074
}
40674075
},
@@ -5092,6 +5100,12 @@
50925100
"documentation":"<p>The identifier of the Amazon Web Services domain that is to be deleted.</p>",
50935101
"location":"uri",
50945102
"locationName":"identifier"
5103+
},
5104+
"skipDeletionCheck":{
5105+
"shape":"Boolean",
5106+
"documentation":"<p>Optional flag to delete all child entities within the domain</p>",
5107+
"location":"querystring",
5108+
"locationName":"skipDeletionCheck"
50955109
}
50965110
}
50975111
},
@@ -5295,6 +5309,12 @@
52955309
"documentation":"<p>The identifier of the project that is to be deleted.</p>",
52965310
"location":"uri",
52975311
"locationName":"identifier"
5312+
},
5313+
"skipDeletionCheck":{
5314+
"shape":"Boolean",
5315+
"documentation":"<p>Optional flag to asynchronously delete child entities within the project</p>",
5316+
"location":"querystring",
5317+
"locationName":"skipDeletionCheck"
52985318
}
52995319
}
53005320
},
@@ -5984,6 +6004,10 @@
59846004
},
59856005
"documentation":"<p>Specifies the error message that is returned if the operation cannot be successfully completed.</p>"
59866006
},
6007+
"FailureReasons":{
6008+
"type":"list",
6009+
"member":{"shape":"ProjectDeletionError"}
6010+
},
59876011
"Filter":{
59886012
"type":"structure",
59896013
"required":[
@@ -7523,6 +7547,10 @@
75237547
"shape":"DomainId",
75247548
"documentation":"<p>The ID of the Amazon DataZone domain in which the project exists.</p>"
75257549
},
7550+
"failureReasons":{
7551+
"shape":"FailureReasons",
7552+
"documentation":"<p>Reasons for failed project deletion</p>"
7553+
},
75267554
"glossaryTerms":{
75277555
"shape":"GlossaryTerms",
75287556
"documentation":"<p>The business glossary terms that can be used in the project.</p>"
@@ -7538,6 +7566,10 @@
75387566
"name":{
75397567
"shape":"ProjectName",
75407568
"documentation":"<p>The name of the project.</p>"
7569+
},
7570+
"projectStatus":{
7571+
"shape":"ProjectStatus",
7572+
"documentation":"<p>Status of the project</p>"
75417573
}
75427574
}
75437575
},
@@ -9603,6 +9635,20 @@
96039635
},
96049636
"documentation":"<p>The configuration of the prediction.</p>"
96059637
},
9638+
"ProjectDeletionError":{
9639+
"type":"structure",
9640+
"members":{
9641+
"code":{
9642+
"shape":"String",
9643+
"documentation":"<p>Project Deletion Error Code</p>"
9644+
},
9645+
"message":{
9646+
"shape":"String",
9647+
"documentation":"<p>Project Deletion Error Message</p>"
9648+
}
9649+
},
9650+
"documentation":"<p>Error that occurred during project deletion</p>"
9651+
},
96069652
"ProjectId":{
96079653
"type":"string",
96089654
"pattern":"^[a-zA-Z0-9_-]{1,36}$"
@@ -9636,6 +9682,14 @@
96369682
"pattern":"^[\\w -]+$",
96379683
"sensitive":true
96389684
},
9685+
"ProjectStatus":{
9686+
"type":"string",
9687+
"enum":[
9688+
"ACTIVE",
9689+
"DELETING",
9690+
"DELETE_FAILED"
9691+
]
9692+
},
96399693
"ProjectSummaries":{
96409694
"type":"list",
96419695
"member":{"shape":"ProjectSummary"}
@@ -9665,6 +9719,10 @@
96659719
"shape":"DomainId",
96669720
"documentation":"<p>The identifier of a Amazon DataZone domain where the project exists.</p>"
96679721
},
9722+
"failureReasons":{
9723+
"shape":"FailureReasons",
9724+
"documentation":"<p>Reasons for failed project deletion</p>"
9725+
},
96689726
"id":{
96699727
"shape":"ProjectId",
96709728
"documentation":"<p>The identifier of a project.</p>"
@@ -9673,6 +9731,10 @@
96739731
"shape":"ProjectName",
96749732
"documentation":"<p>The name of a project.</p>"
96759733
},
9734+
"projectStatus":{
9735+
"shape":"ProjectStatus",
9736+
"documentation":"<p>Status of the project</p>"
9737+
},
96769738
"updatedAt":{
96779739
"shape":"SyntheticTimestamp_date_time",
96789740
"documentation":"<p>The timestamp of when the project was updated.</p>"
@@ -12427,6 +12489,10 @@
1242712489
"shape":"DomainId",
1242812490
"documentation":"<p>The identifier of the Amazon DataZone domain in which a project is updated.</p>"
1242912491
},
12492+
"failureReasons":{
12493+
"shape":"FailureReasons",
12494+
"documentation":"<p>Reasons for failed project deletion</p>"
12495+
},
1243012496
"glossaryTerms":{
1243112497
"shape":"GlossaryTerms",
1243212498
"documentation":"<p>The glossary terms of the project that are to be updated.</p>"
@@ -12442,6 +12508,10 @@
1244212508
"name":{
1244312509
"shape":"ProjectName",
1244412510
"documentation":"<p>The name of the project that is to be updated.</p>"
12511+
},
12512+
"projectStatus":{
12513+
"shape":"ProjectStatus",
12514+
"documentation":"<p>Status of the project</p>"
1244512515
}
1244612516
}
1244712517
},

0 commit comments

Comments
 (0)