Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected ProgressEvent<ResourceModel, CallbackContext> handleRequest(
final Logger logger) {

ResourceModel resourceModel = request.getDesiredResourceState();
logger.log(String.format("Creating the resource version for the type %s", resourceModel.getTypeName()));
return ProgressEvent.progress(resourceModel, callbackContext)
.then(progress ->
proxy.initiate("AWS-CloudFormation-ResourceVersion::Create", proxyClient, resourceModel, callbackContext)
Expand All @@ -39,7 +40,7 @@ protected ProgressEvent<ResourceModel, CallbackContext> handleRequest(
model.getTypeName(), model.getArn()));
throw new CfnInternalFailureException();
}
logger.log(String.format("Fetching the TypeVersionArn [%s] from the DescribeTypeRegistrationResponse [%s]", describeTypeRegistrationResponse.typeVersionArn(), describeTypeRegistrationResponse));
logger.log(String.format("Fetching the TypeVersionArn [%s] from the DescribeTypeRegistrationResponse [%s] with the registration token [%s]", describeTypeRegistrationResponse.typeVersionArn(), describeTypeRegistrationResponse, cc.getRegistrationToken()));
model.setArn(describeTypeRegistrationResponse.typeVersionArn());
return ProgressEvent.progress(model, cc);
}
Expand All @@ -53,7 +54,7 @@ ProgressEvent<ResourceModel, CallbackContext> stabilizeOnCreate(ProgressEvent<Re
AmazonWebServicesClientProxy proxy,
ProxyClient<CloudFormationClient> proxyClient) {

this.logger.log("Stabilizing Registration: " + progress.getCallbackContext().getRegistrationToken());
this.logger.log(String.format("Stabilizing Registration for the Arn [%s] with registration token [%s]",progress.getResourceModel().getArn(), progress.getCallbackContext().getRegistrationToken()));
String registrationToken = progress.getCallbackContext().getRegistrationToken();
return proxy.initiate("stabilize", proxyClient, progress.getResourceModel(), progress.getCallbackContext())
.translateToServiceRequest(m ->
Expand Down