diff --git a/python/rpdk/java/templates/generate/HandlerWrapper.java b/python/rpdk/java/templates/generate/HandlerWrapper.java index 8b40bbb4..116b9635 100644 --- a/python/rpdk/java/templates/generate/HandlerWrapper.java +++ b/python/rpdk/java/templates/generate/HandlerWrapper.java @@ -183,6 +183,7 @@ public Map provideResourceDefinedTags(final {{ pojo_name}} resou .nextToken(request.getNextToken()) .region(request.getRegion()) .awsPartition(PartitionMetadata.of(Region.of(request.getRegion())).id()) + .maxResults(request.getMaxResults()) .build(); } diff --git a/src/main/java/software/amazon/cloudformation/proxy/HandlerRequest.java b/src/main/java/software/amazon/cloudformation/proxy/HandlerRequest.java index 54ca30b7..05581a85 100644 --- a/src/main/java/software/amazon/cloudformation/proxy/HandlerRequest.java +++ b/src/main/java/software/amazon/cloudformation/proxy/HandlerRequest.java @@ -29,6 +29,7 @@ public class HandlerRequest { private String awsAccountId; private String bearerToken; private String nextToken; + private int maxResults; private String region; private String resourceType; private String resourceTypeVersion; diff --git a/src/main/java/software/amazon/cloudformation/proxy/ResourceHandlerRequest.java b/src/main/java/software/amazon/cloudformation/proxy/ResourceHandlerRequest.java index 6e98442d..3a76d22a 100644 --- a/src/main/java/software/amazon/cloudformation/proxy/ResourceHandlerRequest.java +++ b/src/main/java/software/amazon/cloudformation/proxy/ResourceHandlerRequest.java @@ -51,4 +51,5 @@ public class ResourceHandlerRequest { private Map creationPolicy; private String region; private String stackId; + private int maxResults; }