Skip to content

Commit a187d65

Browse files
author
AWS
committed
AWS Cloud Control API Update: Added support for CloudFormation Hooks with Cloud Control API. The GetResourceRequestStatus API response now includes an optional HooksProgressEvent and HooksRequestToken parameter for Hooks Invocation Progress as part of resource operation with Cloud Control.
1 parent 168b2c5 commit a187d65

File tree

3 files changed

+110
-25
lines changed

3 files changed

+110
-25
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 Cloud Control API",
4+
"contributor": "",
5+
"description": "Added support for CloudFormation Hooks with Cloud Control API. The GetResourceRequestStatus API response now includes an optional HooksProgressEvent and HooksRequestToken parameter for Hooks Invocation Progress as part of resource operation with Cloud Control."
6+
}

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,7 +165,6 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
173169
{
174170
"conditions": [],
@@ -179,14 +175,16 @@
179175
},
180176
"type": "endpoint"
181177
}
182-
]
178+
],
179+
"type": "tree"
183180
},
184181
{
185182
"conditions": [],
186183
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187184
"type": "error"
188185
}
189-
]
186+
],
187+
"type": "tree"
190188
},
191189
{
192190
"conditions": [
@@ -200,14 +198,12 @@
200198
]
201199
}
202200
],
203-
"type": "tree",
204201
"rules": [
205202
{
206203
"conditions": [
207204
{
208205
"fn": "booleanEquals",
209206
"argv": [
210-
true,
211207
{
212208
"fn": "getAttr",
213209
"argv": [
@@ -216,11 +212,11 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
225221
{
226222
"conditions": [],
@@ -231,14 +227,16 @@
231227
},
232228
"type": "endpoint"
233229
}
234-
]
230+
],
231+
"type": "tree"
235232
},
236233
{
237234
"conditions": [],
238235
"error": "FIPS is enabled but this partition does not support FIPS",
239236
"type": "error"
240237
}
241-
]
238+
],
239+
"type": "tree"
242240
},
243241
{
244242
"conditions": [
@@ -252,7 +250,6 @@
252250
]
253251
}
254252
],
255-
"type": "tree",
256253
"rules": [
257254
{
258255
"conditions": [
@@ -272,7 +269,6 @@
272269
]
273270
}
274271
],
275-
"type": "tree",
276272
"rules": [
277273
{
278274
"conditions": [],
@@ -283,14 +279,16 @@
283279
},
284280
"type": "endpoint"
285281
}
286-
]
282+
],
283+
"type": "tree"
287284
},
288285
{
289286
"conditions": [],
290287
"error": "DualStack is enabled but this partition does not support DualStack",
291288
"type": "error"
292289
}
293-
]
290+
],
291+
"type": "tree"
294292
},
295293
{
296294
"conditions": [],
@@ -301,9 +299,11 @@
301299
},
302300
"type": "endpoint"
303301
}
304-
]
302+
],
303+
"type": "tree"
305304
}
306-
]
305+
],
306+
"type": "tree"
307307
},
308308
{
309309
"conditions": [],

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

Lines changed: 84 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"version":"2.0",
33
"metadata":{
44
"apiVersion":"2021-09-30",
5+
"auth":["aws.auth#sigv4"],
56
"endpointPrefix":"cloudcontrolapi",
67
"jsonVersion":"1.0",
78
"protocol":"json",
9+
"protocols":["json"],
810
"serviceAbbreviation":"CloudControlApi",
911
"serviceFullName":"AWS Cloud Control API",
1012
"serviceId":"CloudControl",
@@ -340,7 +342,7 @@
340342
},
341343
"ErrorMessage":{
342344
"type":"string",
343-
"max":1024,
345+
"max":2048,
344346
"min":1,
345347
"pattern":".+"
346348
},
@@ -403,6 +405,10 @@
403405
"ProgressEvent":{
404406
"shape":"ProgressEvent",
405407
"documentation":"<p>Represents the current status of the resource operation request.</p>"
408+
},
409+
"HooksProgressEvent":{
410+
"shape":"HooksProgressEvent",
411+
"documentation":"<p>Lists Hook invocations for the specified target in the request. This is a list since the same target can invoke multiple Hooks.</p>"
406412
}
407413
}
408414
},
@@ -412,6 +418,7 @@
412418
"NotUpdatable",
413419
"InvalidRequest",
414420
"AccessDenied",
421+
"UnauthorizedTaggingOperation",
415422
"InvalidCredentials",
416423
"AlreadyExists",
417424
"NotFound",
@@ -446,10 +453,76 @@
446453
},
447454
"HandlerNextToken":{
448455
"type":"string",
449-
"max":2048,
456+
"max":4096,
450457
"min":1,
451458
"pattern":".+"
452459
},
460+
"HookFailureMode":{
461+
"type":"string",
462+
"max":128,
463+
"min":1,
464+
"pattern":"[-A-Za-z_]+"
465+
},
466+
"HookInvocationPoint":{
467+
"type":"string",
468+
"max":128,
469+
"min":1,
470+
"pattern":"[-A-Za-z_]+"
471+
},
472+
"HookProgressEvent":{
473+
"type":"structure",
474+
"members":{
475+
"HookTypeName":{
476+
"shape":"TypeName",
477+
"documentation":"<p>The type name of the Hook being invoked.</p>"
478+
},
479+
"HookTypeVersionId":{
480+
"shape":"TypeVersionId",
481+
"documentation":"<p>The type version of the Hook being invoked.</p>"
482+
},
483+
"HookTypeArn":{
484+
"shape":"HookTypeArn",
485+
"documentation":"<p>The ARN of the Hook being invoked.</p>"
486+
},
487+
"InvocationPoint":{
488+
"shape":"HookInvocationPoint",
489+
"documentation":"<p>States whether the Hook is invoked before or after resource provisioning.</p>"
490+
},
491+
"HookStatus":{
492+
"shape":"HookStatus",
493+
"documentation":"<p>The status of the Hook invocation. The following are potential statuses:</p> <ul> <li> <p> <code>HOOK_PENDING</code>: The Hook was added to the invocation plan, but not yet invoked.</p> </li> <li> <p> <code>HOOK_IN_PROGRESS</code>: The Hook was invoked, but hasn't completed.</p> </li> <li> <p> <code>HOOK_COMPLETE_SUCCEEDED</code>: The Hook invocation is complete with a successful result.</p> </li> <li> <p> <code>HOOK_COMPLETE_FAILED</code>: The Hook invocation is complete with a failed result.</p> </li> <li> <p> <code>HOOK_FAILED</code>: The Hook invocation didn't complete successfully.</p> </li> </ul>"
494+
},
495+
"HookEventTime":{
496+
"shape":"Timestamp",
497+
"documentation":"<p>The time that the Hook invocation request initiated.</p>"
498+
},
499+
"HookStatusMessage":{
500+
"shape":"StatusMessage",
501+
"documentation":"<p>The message explaining the current Hook status.</p>"
502+
},
503+
"FailureMode":{
504+
"shape":"HookFailureMode",
505+
"documentation":"<p>The failure mode of the invocation. The following are the potential statuses:</p> <ul> <li> <p> <code>FAIL</code>: This will fail the Hook invocation and the request associated with it.</p> </li> <li> <p> <code>WARN</code>: This will fail the Hook invocation, but not the request associated with it.</p> </li> </ul>"
506+
}
507+
},
508+
"documentation":"<p>Represents the current status of applicable Hooks for a resource operation request. It contains list of Hook invocation information for the resource specified in the request since the same target can invoke multiple Hooks. For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html\">Managing resource operation requests with Amazon Web Services Cloud Control API </a>.</p>"
509+
},
510+
"HookStatus":{
511+
"type":"string",
512+
"max":128,
513+
"min":1,
514+
"pattern":"[-A-Za-z_]+"
515+
},
516+
"HookTypeArn":{
517+
"type":"string",
518+
"max":2048,
519+
"min":1,
520+
"pattern":"arn:aws.*:.+:.*:.*:.+"
521+
},
522+
"HooksProgressEvent":{
523+
"type":"list",
524+
"member":{"shape":"HookProgressEvent"}
525+
},
453526
"Identifier":{
454527
"type":"string",
455528
"max":1024,
@@ -615,7 +688,8 @@
615688
},
616689
"PatchDocument":{
617690
"type":"string",
618-
"max":65536,
691+
"documentation":"<p>Allow up to 256K length of Resource properties</p>",
692+
"max":262144,
619693
"min":1,
620694
"pattern":"[\\s\\S]*",
621695
"sensitive":true
@@ -643,6 +717,10 @@
643717
"shape":"RequestToken",
644718
"documentation":"<p>The unique token representing this resource operation request.</p> <p>Use the <code>RequestToken</code> with <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html\">GetResourceRequestStatus</a> to return the current status of a resource operation request.</p>"
645719
},
720+
"HooksRequestToken":{
721+
"shape":"RequestToken",
722+
"documentation":"<p>The unique token representing the Hooks operation for the request.</p>"
723+
},
646724
"Operation":{
647725
"shape":"Operation",
648726
"documentation":"<p>The resource operation type.</p>"
@@ -676,7 +754,8 @@
676754
},
677755
"Properties":{
678756
"type":"string",
679-
"max":65536,
757+
"documentation":"<p>Allow up to 256K length of Resource properties</p>",
758+
"max":262144,
680759
"min":1,
681760
"pattern":"[\\s\\S]*",
682761
"sensitive":true
@@ -772,7 +851,7 @@
772851
},
773852
"StatusMessage":{
774853
"type":"string",
775-
"max":1024,
854+
"max":2048,
776855
"min":0,
777856
"pattern":"[\\s\\S]*"
778857
},

0 commit comments

Comments
 (0)