Skip to content

Commit 2c0f362

Browse files
author
AWS
committed
AWS CloudFormation Update: This release adds a new API, ListHookResults, that allows retrieving CloudFormation Hooks invocation results for hooks invoked during a create change set operation or Cloud Control API operation
1 parent a8e3ea8 commit 2c0f362

File tree

2 files changed

+129
-0
lines changed

2 files changed

+129
-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 CloudFormation",
4+
"contributor": "",
5+
"description": "This release adds a new API, ListHookResults, that allows retrieving CloudFormation Hooks invocation results for hooks invoked during a create change set operation or Cloud Control API operation"
6+
}

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

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,22 @@
790790
},
791791
"documentation":"<p>Lists your generated templates in this Region.</p>"
792792
},
793+
"ListHookResults":{
794+
"name":"ListHookResults",
795+
"http":{
796+
"method":"POST",
797+
"requestUri":"/"
798+
},
799+
"input":{"shape":"ListHookResultsInput"},
800+
"output":{
801+
"shape":"ListHookResultsOutput",
802+
"resultWrapper":"ListHookResultsResult"
803+
},
804+
"errors":[
805+
{"shape":"HookResultNotFoundException"}
806+
],
807+
"documentation":"<p>Returns summaries of invoked Hooks when a change set or Cloud Control API operation target is provided.</p>"
808+
},
793809
"ListImports":{
794810
"name":"ListImports",
795811
"http":{
@@ -3807,6 +3823,62 @@
38073823
"type":"string",
38083824
"enum":["PRE_PROVISION"]
38093825
},
3826+
"HookResultId":{
3827+
"type":"string",
3828+
"max":1600,
3829+
"min":1,
3830+
"pattern":"[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
3831+
},
3832+
"HookResultNotFoundException":{
3833+
"type":"structure",
3834+
"members":{
3835+
},
3836+
"documentation":"<p>The specified target doesn't have any requested Hook invocations.</p>",
3837+
"error":{
3838+
"code":"HookResultNotFound",
3839+
"httpStatusCode":404,
3840+
"senderFault":true
3841+
},
3842+
"exception":true
3843+
},
3844+
"HookResultSummaries":{
3845+
"type":"list",
3846+
"member":{"shape":"HookResultSummary"}
3847+
},
3848+
"HookResultSummary":{
3849+
"type":"structure",
3850+
"members":{
3851+
"InvocationPoint":{
3852+
"shape":"HookInvocationPoint",
3853+
"documentation":"<p>The exact point in the provisioning logic where the Hook runs.</p>"
3854+
},
3855+
"FailureMode":{
3856+
"shape":"HookFailureMode",
3857+
"documentation":"<p>The failure mode of the invocation. The following are potential modes:</p> <ul> <li> <p> <code>FAIL</code>: If the hook invocation returns a failure, then the requested target operation should fail.</p> </li> <li> <p> <code>WARN</code>: If the hook invocation returns a failure, then the requested target operation should warn.</p> </li> </ul>"
3858+
},
3859+
"TypeName":{
3860+
"shape":"HookTypeName",
3861+
"documentation":"<p>The type name of the Hook being invoked.</p>"
3862+
},
3863+
"TypeVersionId":{
3864+
"shape":"HookTypeVersionId",
3865+
"documentation":"<p>The version of the Hook being invoked.</p>"
3866+
},
3867+
"TypeConfigurationVersionId":{
3868+
"shape":"HookTypeConfigurationVersionId",
3869+
"documentation":"<p>The version of the Hook type configuration.</p>"
3870+
},
3871+
"Status":{
3872+
"shape":"HookStatus",
3873+
"documentation":"<p>The state of the Hook invocation.</p>"
3874+
},
3875+
"HookStatusReason":{
3876+
"shape":"HookStatusReason",
3877+
"documentation":"<p>A description of the Hook results status. For example, if the Hook result is in a <code>FAILED</code> state, this may contain additional information for the <code>FAILED</code> state.</p>"
3878+
}
3879+
},
3880+
"documentation":"<p>Describes a Hook invocation, its status, and the reason for its status.</p>"
3881+
},
38103882
"HookStatus":{
38113883
"type":"string",
38123884
"enum":[
@@ -4077,6 +4149,57 @@
40774149
}
40784150
}
40794151
},
4152+
"ListHookResultsInput":{
4153+
"type":"structure",
4154+
"required":[
4155+
"TargetType",
4156+
"TargetId"
4157+
],
4158+
"members":{
4159+
"TargetType":{
4160+
"shape":"ListHookResultsTargetType",
4161+
"documentation":"<p>The type of operation being targeted by the Hook.</p>"
4162+
},
4163+
"TargetId":{
4164+
"shape":"HookResultId",
4165+
"documentation":"<p>The logical ID of the target the operation is acting on by the Hook. If the target is a change set, it's the ARN of the change set.</p> <p>If the target is a Cloud Control API operation, this will be the <code>HookRequestToken</code> returned by the Cloud Control API operation request. For more information on the <code>HookRequestToken</code>, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_ProgressEvent.html\">ProgressEvent</a>.</p>"
4166+
},
4167+
"NextToken":{
4168+
"shape":"NextToken",
4169+
"documentation":"<p>A string that identifies the next page of events that you want to retrieve.</p>"
4170+
}
4171+
}
4172+
},
4173+
"ListHookResultsOutput":{
4174+
"type":"structure",
4175+
"members":{
4176+
"TargetType":{
4177+
"shape":"ListHookResultsTargetType",
4178+
"documentation":"<p>The type of operation being targeted by the Hook.</p>"
4179+
},
4180+
"TargetId":{
4181+
"shape":"HookResultId",
4182+
"documentation":"<p>The logical ID of the target the operation is acting on by the Hook. If the target is a change set, it's the ARN of the change set.</p> <p>If the target is a Cloud Control API operation, this will be the <code>HooksRequestToken</code> returned by the Cloud Control API operation request. For more information on the <code>HooksRequestToken</code>, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_ProgressEvent.html\">ProgressEvent</a>.</p>"
4183+
},
4184+
"HookResults":{
4185+
"shape":"HookResultSummaries",
4186+
"documentation":"<p>A list of <code>HookResultSummary</code> structures that provides the status and Hook status reason for each Hook invocation for the specified target.</p>"
4187+
},
4188+
"NextToken":{
4189+
"shape":"NextToken",
4190+
"documentation":"<p>Pagination token, <code>null</code> or empty if no more results.</p>"
4191+
}
4192+
}
4193+
},
4194+
"ListHookResultsTargetType":{
4195+
"type":"string",
4196+
"enum":[
4197+
"CHANGE_SET",
4198+
"STACK",
4199+
"RESOURCE",
4200+
"CLOUD_CONTROL"
4201+
]
4202+
},
40804203
"ListImportsInput":{
40814204
"type":"structure",
40824205
"required":["ExportName"],

0 commit comments

Comments
 (0)