mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
feat(ses): add SES V2 configuration set event destination operations (#1079)
* feat(ses): add SES V2 configuration set event destination operations Implement CreateConfigurationSetEventDestination, GetConfigurationSetEventDestinations, UpdateConfigurationSetEventDestination, and DeleteConfigurationSetEventDestination on the SES V2 REST JSON API. Event destinations are stored on the configuration set; validation and error messages mirror the real AWS SESv2 responses. Includes REST integration, service unit, and AWS SDK compatibility tests. * fix(ses): return defensive copy from event destination getter and preserve order on update GetConfigurationSetEventDestinations now returns an unmodifiable copy so callers cannot mutate stored state outside the service. UpdateConfigurationSetEventDestination replaces the destination in place (by index) instead of remove+add, keeping the list order stable when a configuration set has multiple event destinations.
This commit is contained in:
1 parent
2581837881
commit
bd6ec2d5c6
14 files changed
+1190
-2
No files matched your search
@@ -7,6 +7,7 @@ import io.github.hectorvent.floci.services.ses.model.BulkEmailEntry;
|
||||
import io.github.hectorvent.floci.services.ses.model.BulkEmailEntryResult;
|
||||
import io.github.hectorvent.floci.services.ses.model.ConfigurationSet;
|
||||
import io.github.hectorvent.floci.services.ses.model.EmailTemplate;
|
||||
import io.github.hectorvent.floci.services.ses.model.EventDestination;
|
||||
import io.github.hectorvent.floci.services.ses.model.Identity;
|
||||
import io.github.hectorvent.floci.services.ses.model.SuppressedDestination;
|
||||
import io.github.hectorvent.floci.services.ses.model.Tag;
|
||||
@@ -651,6 +652,95 @@ public class SesController {
|
||||
}
|
||||
}
|
||||
|
||||
// ──────────────── Configuration Set Event Destinations ────────────────
|
||||
|
||||
@POST
|
||||
@Path("/configuration-sets/{configurationSetName}/event-destinations")
|
||||
public Response createConfigurationSetEventDestination(@Context HttpHeaders headers,
|
||||
@PathParam("configurationSetName") String configurationSetName,
|
||||
String body) {
|
||||
String region = regionResolver.resolveRegion(headers);
|
||||
try {
|
||||
JsonNode request = objectMapper.readTree(body);
|
||||
String edName = request.path("EventDestinationName").asText(null);
|
||||
if (edName == null || edName.isBlank()) {
|
||||
throw new AwsException("BadRequestException", "EventDestinationName is required.", 400);
|
||||
}
|
||||
JsonNode edNode = request.path("EventDestination");
|
||||
if (!edNode.isObject()) {
|
||||
throw new AwsException("BadRequestException", "EventDestination is required.", 400);
|
||||
}
|
||||
EventDestination dest = objectMapper.treeToValue(edNode, EventDestination.class);
|
||||
sesService.createConfigurationSetEventDestination(configurationSetName, edName, dest, region);
|
||||
LOG.infov("SES V2 CreateConfigurationSetEventDestination: {0} on {1}", edName, configurationSetName);
|
||||
return Response.ok(objectMapper.createObjectNode()).build();
|
||||
} catch (AwsException e) {
|
||||
throw remapV1Exception(e);
|
||||
} catch (Exception e) {
|
||||
throw new AwsException("BadRequestException", e.getMessage(), 400);
|
||||
}
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/configuration-sets/{configurationSetName}/event-destinations")
|
||||
public Response getConfigurationSetEventDestinations(@Context HttpHeaders headers,
|
||||
@PathParam("configurationSetName") String configurationSetName) {
|
||||
String region = regionResolver.resolveRegion(headers);
|
||||
try {
|
||||
List<EventDestination> dests =
|
||||
sesService.getConfigurationSetEventDestinations(configurationSetName, region);
|
||||
ObjectNode result = objectMapper.createObjectNode();
|
||||
ArrayNode arr = result.putArray("EventDestinations");
|
||||
for (EventDestination ed : dests) {
|
||||
arr.add(objectMapper.valueToTree(ed));
|
||||
}
|
||||
return Response.ok(result).build();
|
||||
} catch (AwsException e) {
|
||||
throw remapV1Exception(e);
|
||||
}
|
||||
}
|
||||
|
||||
@PUT
|
||||
@Path("/configuration-sets/{configurationSetName}/event-destinations/{eventDestinationName}")
|
||||
public Response updateConfigurationSetEventDestination(@Context HttpHeaders headers,
|
||||
@PathParam("configurationSetName") String configurationSetName,
|
||||
@PathParam("eventDestinationName") String eventDestinationName,
|
||||
String body) {
|
||||
String region = regionResolver.resolveRegion(headers);
|
||||
try {
|
||||
JsonNode request = objectMapper.readTree(body);
|
||||
JsonNode edNode = request.path("EventDestination");
|
||||
if (!edNode.isObject()) {
|
||||
throw new AwsException("BadRequestException", "EventDestination is required.", 400);
|
||||
}
|
||||
EventDestination dest = objectMapper.treeToValue(edNode, EventDestination.class);
|
||||
sesService.updateConfigurationSetEventDestination(configurationSetName, eventDestinationName, dest, region);
|
||||
LOG.infov("SES V2 UpdateConfigurationSetEventDestination: {0} on {1}",
|
||||
eventDestinationName, configurationSetName);
|
||||
return Response.ok(objectMapper.createObjectNode()).build();
|
||||
} catch (AwsException e) {
|
||||
throw remapV1Exception(e);
|
||||
} catch (Exception e) {
|
||||
throw new AwsException("BadRequestException", e.getMessage(), 400);
|
||||
}
|
||||
}
|
||||
|
||||
@DELETE
|
||||
@Path("/configuration-sets/{configurationSetName}/event-destinations/{eventDestinationName}")
|
||||
public Response deleteConfigurationSetEventDestination(@Context HttpHeaders headers,
|
||||
@PathParam("configurationSetName") String configurationSetName,
|
||||
@PathParam("eventDestinationName") String eventDestinationName) {
|
||||
String region = regionResolver.resolveRegion(headers);
|
||||
try {
|
||||
sesService.deleteConfigurationSetEventDestination(configurationSetName, eventDestinationName, region);
|
||||
LOG.infov("SES V2 DeleteConfigurationSetEventDestination: {0} on {1}",
|
||||
eventDestinationName, configurationSetName);
|
||||
return Response.ok(objectMapper.createObjectNode()).build();
|
||||
} catch (AwsException e) {
|
||||
throw remapV1Exception(e);
|
||||
}
|
||||
}
|
||||
|
||||
// ──────────────────────────── Account ────────────────────────────
|
||||
|
||||
@GET
|
||||
|
||||
@@ -9,6 +9,7 @@ import io.github.hectorvent.floci.services.ses.model.BulkEmailEntry;
|
||||
import io.github.hectorvent.floci.services.ses.model.BulkEmailEntryResult;
|
||||
import io.github.hectorvent.floci.services.ses.model.ConfigurationSet;
|
||||
import io.github.hectorvent.floci.services.ses.model.EmailTemplate;
|
||||
import io.github.hectorvent.floci.services.ses.model.EventDestination;
|
||||
import io.github.hectorvent.floci.services.ses.model.Identity;
|
||||
import io.github.hectorvent.floci.services.ses.model.SentEmail;
|
||||
import io.github.hectorvent.floci.services.ses.model.SuppressedDestination;
|
||||
@@ -453,7 +454,7 @@ public class SesService {
|
||||
public ConfigurationSet getConfigurationSet(String name, String region) {
|
||||
return configSetStore.get(configSetKey(region, name))
|
||||
.orElseThrow(() -> new AwsException("ConfigurationSetDoesNotExist",
|
||||
"Configuration set " + name + " does not exist.", 400));
|
||||
"Configuration set <" + name + "> does not exist.", 400));
|
||||
}
|
||||
|
||||
public List<ConfigurationSet> listConfigurationSets(String region) {
|
||||
@@ -470,7 +471,7 @@ public class SesService {
|
||||
String key = configSetKey(region, name);
|
||||
if (configSetStore.get(key).isEmpty()) {
|
||||
throw new AwsException("ConfigurationSetDoesNotExist",
|
||||
"Configuration set " + name + " does not exist.", 400);
|
||||
"Configuration set <" + name + "> does not exist.", 400);
|
||||
}
|
||||
configSetStore.delete(key);
|
||||
LOG.infov("Deleted SES configuration set: {0} in region {1}", name, region);
|
||||
@@ -495,6 +496,150 @@ public class SesService {
|
||||
}
|
||||
}
|
||||
|
||||
private static final Pattern EVENT_DESTINATION_NAME_CHARS = Pattern.compile("^[A-Za-z0-9_-]+$");
|
||||
|
||||
private static final int MAX_EVENT_DESTINATION_NAME_LENGTH = 64;
|
||||
|
||||
private static final List<String> VALID_EVENT_TYPES = List.of(
|
||||
"SEND", "REJECT", "BOUNCE", "COMPLAINT", "DELIVERY", "OPEN", "CLICK",
|
||||
"RENDERING_FAILURE", "DELIVERY_DELAY", "SUBSCRIPTION");
|
||||
|
||||
public void createConfigurationSetEventDestination(String configSetName, String eventDestinationName,
|
||||
EventDestination dest, String region) {
|
||||
validateEventDestinationName(eventDestinationName);
|
||||
validateEventDestination(dest);
|
||||
ConfigurationSet cs = getConfigurationSet(configSetName, region);
|
||||
if (indexOfEventDestination(cs.getEventDestinations(), eventDestinationName) >= 0) {
|
||||
throw new AwsException("AlreadyExists",
|
||||
"An event destination with name <" + eventDestinationName
|
||||
+ "> already exists for configuration set <" + configSetName + ">.", 400);
|
||||
}
|
||||
dest.setName(eventDestinationName);
|
||||
cs.getEventDestinations().add(dest);
|
||||
configSetStore.put(configSetKey(region, configSetName), cs);
|
||||
LOG.infov("Created SES event destination {0} on configuration set {1} in region {2}",
|
||||
eventDestinationName, configSetName, region);
|
||||
}
|
||||
|
||||
public List<EventDestination> getConfigurationSetEventDestinations(String configSetName, String region) {
|
||||
return List.copyOf(getConfigurationSet(configSetName, region).getEventDestinations());
|
||||
}
|
||||
|
||||
public void updateConfigurationSetEventDestination(String configSetName, String eventDestinationName,
|
||||
EventDestination dest, String region) {
|
||||
validateEventDestinationName(eventDestinationName);
|
||||
validateEventDestination(dest);
|
||||
ConfigurationSet cs = getConfigurationSet(configSetName, region);
|
||||
int index = indexOfEventDestination(cs.getEventDestinations(), eventDestinationName);
|
||||
if (index < 0) {
|
||||
throw new AwsException("NotFoundException",
|
||||
"An event destination with name <" + eventDestinationName
|
||||
+ "> does not exist for configuration set <" + configSetName + ">.", 404);
|
||||
}
|
||||
dest.setName(eventDestinationName);
|
||||
cs.getEventDestinations().set(index, dest);
|
||||
configSetStore.put(configSetKey(region, configSetName), cs);
|
||||
LOG.infov("Updated SES event destination {0} on configuration set {1} in region {2}",
|
||||
eventDestinationName, configSetName, region);
|
||||
}
|
||||
|
||||
public void deleteConfigurationSetEventDestination(String configSetName, String eventDestinationName,
|
||||
String region) {
|
||||
validateEventDestinationName(eventDestinationName);
|
||||
ConfigurationSet cs = getConfigurationSet(configSetName, region);
|
||||
boolean removed = cs.getEventDestinations().removeIf(ed -> eventDestinationName.equals(ed.getName()));
|
||||
if (!removed) {
|
||||
throw new AwsException("NotFoundException",
|
||||
"An event destination with name <" + eventDestinationName
|
||||
+ "> does not exist for configuration set <" + configSetName + ">.", 404);
|
||||
}
|
||||
configSetStore.put(configSetKey(region, configSetName), cs);
|
||||
LOG.infov("Deleted SES event destination {0} on configuration set {1} in region {2}",
|
||||
eventDestinationName, configSetName, region);
|
||||
}
|
||||
|
||||
private static int indexOfEventDestination(List<EventDestination> destinations, String name) {
|
||||
for (int i = 0; i < destinations.size(); i++) {
|
||||
if (name != null && name.equals(destinations.get(i).getName())) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void validateEventDestinationName(String name) {
|
||||
if (name == null || name.isBlank()) {
|
||||
throw new AwsException("InvalidParameterValue", "EventDestinationName is required.", 400);
|
||||
}
|
||||
if (!EVENT_DESTINATION_NAME_CHARS.matcher(name).matches()) {
|
||||
throw new AwsException("InvalidParameterValue",
|
||||
"Invalid event destination name <" + name + ">: only alphanumeric ASCII characters, "
|
||||
+ "'_', and '-' are allowed.", 400);
|
||||
}
|
||||
if (name.length() > MAX_EVENT_DESTINATION_NAME_LENGTH) {
|
||||
throw new AwsException("InvalidParameterValue",
|
||||
"Event destination name cannot exceed 64 characters.", 400);
|
||||
}
|
||||
}
|
||||
|
||||
static void validateEventDestination(EventDestination dest) {
|
||||
if (dest == null) {
|
||||
throw new AwsException("InvalidParameterValue", "EventDestination is required.", 400);
|
||||
}
|
||||
List<String> types = dest.getMatchingEventTypes();
|
||||
if (types == null || types.isEmpty()) {
|
||||
throw new AwsException("InvalidParameterValue", "At least one event type must be specified.", 400);
|
||||
}
|
||||
for (String t : types) {
|
||||
if (t == null || !VALID_EVENT_TYPES.contains(t)) {
|
||||
throw new AwsException("InvalidParameterValue",
|
||||
"Invalid event type: " + t + ". Valid values are " + VALID_EVENT_TYPES + ".", 400);
|
||||
}
|
||||
}
|
||||
int destinationCount = countDestinations(dest);
|
||||
if (destinationCount == 0) {
|
||||
throw new AwsException("InvalidParameterValue", "Event destination is not provided.", 400);
|
||||
}
|
||||
if (destinationCount > 1) {
|
||||
throw new AwsException("InvalidParameterValue",
|
||||
"Please provide only one destination with each request. Either a Firehose Destination "
|
||||
+ "or a Cloudwatch Destination or an SNS Destination or an EventBridge Destination.", 400);
|
||||
}
|
||||
if (dest.getCloudWatchDestination() != null
|
||||
&& (dest.getCloudWatchDestination().getDimensionConfigurations() == null
|
||||
|| dest.getCloudWatchDestination().getDimensionConfigurations().isEmpty())) {
|
||||
throw new AwsException("InvalidParameterValue",
|
||||
"CloudWatch metrics dimension configuration list cannot be empty.", 400);
|
||||
}
|
||||
if (dest.getPinpointDestination() != null
|
||||
&& (dest.getPinpointDestination().getApplicationArn() == null
|
||||
|| dest.getPinpointDestination().getApplicationArn().isBlank())) {
|
||||
throw new AwsException("InvalidParameterValue",
|
||||
"Invalid Pinpoint application ARN provided: "
|
||||
+ dest.getPinpointDestination().getApplicationArn() + ".", 400);
|
||||
}
|
||||
}
|
||||
|
||||
private static int countDestinations(EventDestination dest) {
|
||||
int count = 0;
|
||||
if (dest.getSnsDestination() != null) {
|
||||
count++;
|
||||
}
|
||||
if (dest.getCloudWatchDestination() != null) {
|
||||
count++;
|
||||
}
|
||||
if (dest.getKinesisFirehoseDestination() != null) {
|
||||
count++;
|
||||
}
|
||||
if (dest.getEventBridgeDestination() != null) {
|
||||
count++;
|
||||
}
|
||||
if (dest.getPinpointDestination() != null) {
|
||||
count++;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
public List<Tag> listResourceTags(String arn, String region) {
|
||||
ResourceRef ref = parseSesArn(arn);
|
||||
return switch (ref.type()) {
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class CloudWatchDestination {
|
||||
|
||||
@JsonProperty("DimensionConfigurations")
|
||||
private List<CloudWatchDimensionConfiguration> dimensionConfigurations = new ArrayList<>();
|
||||
|
||||
public CloudWatchDestination() {}
|
||||
|
||||
public List<CloudWatchDimensionConfiguration> getDimensionConfigurations() { return dimensionConfigurations; }
|
||||
public void setDimensionConfigurations(List<CloudWatchDimensionConfiguration> dimensionConfigurations) {
|
||||
this.dimensionConfigurations = dimensionConfigurations != null ? dimensionConfigurations : new ArrayList<>();
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class CloudWatchDimensionConfiguration {
|
||||
|
||||
@JsonProperty("DimensionName")
|
||||
private String dimensionName;
|
||||
|
||||
@JsonProperty("DimensionValueSource")
|
||||
private String dimensionValueSource;
|
||||
|
||||
@JsonProperty("DefaultDimensionValue")
|
||||
private String defaultDimensionValue;
|
||||
|
||||
public CloudWatchDimensionConfiguration() {}
|
||||
|
||||
public String getDimensionName() { return dimensionName; }
|
||||
public void setDimensionName(String dimensionName) { this.dimensionName = dimensionName; }
|
||||
|
||||
public String getDimensionValueSource() { return dimensionValueSource; }
|
||||
public void setDimensionValueSource(String dimensionValueSource) { this.dimensionValueSource = dimensionValueSource; }
|
||||
|
||||
public String getDefaultDimensionValue() { return defaultDimensionValue; }
|
||||
public void setDefaultDimensionValue(String defaultDimensionValue) { this.defaultDimensionValue = defaultDimensionValue; }
|
||||
}
|
||||
@@ -21,6 +21,9 @@ public class ConfigurationSet {
|
||||
@JsonProperty("Tags")
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
@JsonProperty("EventDestinations")
|
||||
private List<EventDestination> eventDestinations = new ArrayList<>();
|
||||
|
||||
public ConfigurationSet() {}
|
||||
|
||||
public ConfigurationSet(String name) {
|
||||
@@ -36,4 +39,9 @@ public class ConfigurationSet {
|
||||
|
||||
public List<Tag> getTags() { return tags; }
|
||||
public void setTags(List<Tag> tags) { this.tags = tags != null ? tags : new ArrayList<>(); }
|
||||
|
||||
public List<EventDestination> getEventDestinations() { return eventDestinations; }
|
||||
public void setEventDestinations(List<EventDestination> eventDestinations) {
|
||||
this.eventDestinations = eventDestinations != null ? eventDestinations : new ArrayList<>();
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class EventBridgeDestination {
|
||||
|
||||
@JsonProperty("EventBusArn")
|
||||
private String eventBusArn;
|
||||
|
||||
public EventBridgeDestination() {}
|
||||
|
||||
public String getEventBusArn() { return eventBusArn; }
|
||||
public void setEventBusArn(String eventBusArn) { this.eventBusArn = eventBusArn; }
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class EventDestination {
|
||||
|
||||
@JsonProperty("Name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("Enabled")
|
||||
private boolean enabled;
|
||||
|
||||
@JsonProperty("MatchingEventTypes")
|
||||
private List<String> matchingEventTypes = new ArrayList<>();
|
||||
|
||||
@JsonProperty("SnsDestination")
|
||||
private SnsDestination snsDestination;
|
||||
|
||||
@JsonProperty("CloudWatchDestination")
|
||||
private CloudWatchDestination cloudWatchDestination;
|
||||
|
||||
@JsonProperty("KinesisFirehoseDestination")
|
||||
private KinesisFirehoseDestination kinesisFirehoseDestination;
|
||||
|
||||
@JsonProperty("EventBridgeDestination")
|
||||
private EventBridgeDestination eventBridgeDestination;
|
||||
|
||||
@JsonProperty("PinpointDestination")
|
||||
private PinpointDestination pinpointDestination;
|
||||
|
||||
public EventDestination() {}
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public boolean isEnabled() { return enabled; }
|
||||
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
||||
|
||||
public List<String> getMatchingEventTypes() { return matchingEventTypes; }
|
||||
public void setMatchingEventTypes(List<String> matchingEventTypes) {
|
||||
this.matchingEventTypes = matchingEventTypes != null ? matchingEventTypes : new ArrayList<>();
|
||||
}
|
||||
|
||||
public SnsDestination getSnsDestination() { return snsDestination; }
|
||||
public void setSnsDestination(SnsDestination snsDestination) { this.snsDestination = snsDestination; }
|
||||
|
||||
public CloudWatchDestination getCloudWatchDestination() { return cloudWatchDestination; }
|
||||
public void setCloudWatchDestination(CloudWatchDestination cloudWatchDestination) { this.cloudWatchDestination = cloudWatchDestination; }
|
||||
|
||||
public KinesisFirehoseDestination getKinesisFirehoseDestination() { return kinesisFirehoseDestination; }
|
||||
public void setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination) { this.kinesisFirehoseDestination = kinesisFirehoseDestination; }
|
||||
|
||||
public EventBridgeDestination getEventBridgeDestination() { return eventBridgeDestination; }
|
||||
public void setEventBridgeDestination(EventBridgeDestination eventBridgeDestination) { this.eventBridgeDestination = eventBridgeDestination; }
|
||||
|
||||
public PinpointDestination getPinpointDestination() { return pinpointDestination; }
|
||||
public void setPinpointDestination(PinpointDestination pinpointDestination) { this.pinpointDestination = pinpointDestination; }
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class KinesisFirehoseDestination {
|
||||
|
||||
@JsonProperty("IamRoleArn")
|
||||
private String iamRoleArn;
|
||||
|
||||
@JsonProperty("DeliveryStreamArn")
|
||||
private String deliveryStreamArn;
|
||||
|
||||
public KinesisFirehoseDestination() {}
|
||||
|
||||
public String getIamRoleArn() { return iamRoleArn; }
|
||||
public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; }
|
||||
|
||||
public String getDeliveryStreamArn() { return deliveryStreamArn; }
|
||||
public void setDeliveryStreamArn(String deliveryStreamArn) { this.deliveryStreamArn = deliveryStreamArn; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class PinpointDestination {
|
||||
|
||||
@JsonProperty("ApplicationArn")
|
||||
private String applicationArn;
|
||||
|
||||
public PinpointDestination() {}
|
||||
|
||||
public String getApplicationArn() { return applicationArn; }
|
||||
public void setApplicationArn(String applicationArn) { this.applicationArn = applicationArn; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package io.github.hectorvent.floci.services.ses.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class SnsDestination {
|
||||
|
||||
@JsonProperty("TopicArn")
|
||||
private String topicArn;
|
||||
|
||||
public SnsDestination() {}
|
||||
|
||||
public String getTopicArn() { return topicArn; }
|
||||
public void setTopicArn(String topicArn) { this.topicArn = topicArn; }
|
||||
}
|
||||
Reference in new issue
Block a user