Skip to content
Merged
Show file tree
Hide file tree
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 @@ -261,6 +261,7 @@ public void processRequest(final InputStream inputStream, final OutputStream out
if (resourceHandlerRequest != null) {
resourceHandlerRequest.setPreviousResourceTags(getPreviousResourceTags(request));
resourceHandlerRequest.setStackId(getStackId(request));
resourceHandlerRequest.setSnapshotRequested(request.getSnapshotRequested());
}

this.metricsPublisherProxy.publishInvocationMetric(Instant.now(), request.getAction());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ public class HandlerRequest<ResourceT, CallbackT> {
private RequestData<ResourceT> requestData;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should this be in request data instead? seems relatedto the actual request and not cloudformation metadata related info

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, but TBH I don't really understand the distinction here anyways. Like, why are providerCredentials, providerLogGroupName, and logicalResourceId part of requestData while callbackContext, accountId, bearerToken, and action are not?

private String stackId;
private CallbackT callbackContext;
private Boolean snapshotRequested;
private RequestContext<CallbackT> requestContext;
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class ResourceHandlerRequest<T> {
private String awsPartition;
private String logicalResourceIdentifier;
private String nextToken;
private Boolean snapshotRequested;
private String region;
private String stackId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected ResourceHandlerRequest<Model> transform(final HandlerRequest<Model, St
return ResourceHandlerRequest.<Model>builder().desiredResourceState(desiredResourceState)
.previousResourceState(previousResourceState).desiredResourceTags(getDesiredResourceTags(request))
.systemTags(systemTags).logicalResourceIdentifier(request.getRequestData().getLogicalResourceId())
.nextToken(request.getNextToken()).build();
.nextToken(request.getNextToken()).snapshotRequested(request.getSnapshotRequested()).build();
}

@Override
Expand Down