From 3b91e1187d5d7b15d337a9403ec327edc4cbb1b3 Mon Sep 17 00:00:00 2001 From: Akif Rafique <40856908+AkifRafique@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:43:53 -0700 Subject: [PATCH] add maxresults parameter support (#443) --- python/rpdk/java/templates/generate/HandlerWrapper.java | 1 + .../software/amazon/cloudformation/proxy/HandlerRequest.java | 1 + .../amazon/cloudformation/proxy/ResourceHandlerRequest.java | 1 + 3 files changed, 3 insertions(+) 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; }