mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 23:59:27 -05:00
fix(cloudformation): forward Firehose processing and logging configuration (#6277)
* feat(firehose): store and echo CloudWatchLoggingOptions on S3 destinations
CreateDeliveryStream and UpdateDestination silently dropped CloudWatchLoggingOptions because the S3 destination model had no such member. The block is now stored and echoed on both ExtendedS3DestinationDescription and S3DestinationDescription, defaulting to {"Enabled": false} when omitted, as real AWS does. UpdateDestination merges it member-wise, so an update naming only Enabled keeps the stored log group and stream.
* fix(cloudformation): forward Firehose processing and logging configuration
FirehoseCfnProvisioner now reads RoleARN, ErrorOutputPrefix, CloudWatchLoggingOptions and, for the extended S3 destination only, ProcessingConfiguration, resolving intrinsics before handing them to the service. A Lambda transform declared in a template therefore runs on delivery and is echoed by DescribeDeliveryStream, as on AWS. An omitted member stays null so an UpdateStack keeps the stored value, and an unreadable block fails the resource with ValidationError.
* test(cloudformation): cover a stack Firehose stream's Lambda transform end to end
A stack-created extended S3 stream now reads back its role, error prefix, logging options and
Lambda processor, runs that processor on delivery, and picks up a new function on UpdateStack.
* docs(firehose): describe logging options and the CloudFormation members applied
Document how CloudWatchLoggingOptions is stored, defaulted and merged on the S3 destinations, and note which DeliveryStream properties the CloudFormation provisioner applies.
* fix(cloudformation): validate a Firehose stream's forwarded destination like CreateDeliveryStream
The provisioner now runs the same wire-shape validation CreateDeliveryStream applies, so a bad processor or CompressionFormat fails the resource instead of being stored. A structured destination member present as anything but an object also fails rather than being silently dropped.
* docs(cloudformation): name every Firehose property the provisioner applies
* fix(firehose): validate CloudWatchLoggingOptions names against AWS constraints
LogGroupName and LogStreamName are now checked against AWS's 512-character bound and their modeled patterns, reporting both rules when both fail, as probed against real AWS.
* chore: retrigger CI after a transient npm publish race
native arm64 / sdk-test-node ran npm install between the publication of @aws-sdk/lib-storage 3.1156.0 and @aws-sdk/client-s3 3.1156.0, and failed with ERESOLVE.
* test(firehose): share the delivery and Lambda transform helpers in FirehoseRequests
Moves encode, putRecordBatch, firstKey and the record-id driven Lambda transform answer out of CloudFormationFirehoseIntegrationTest and FirehoseLambdaTransformIntegrationTest into one testing fixture both now use.
* fix(firehose): require both log names when CloudWatch logging is enabled
With Enabled true, a missing or empty LogGroupName or LogStreamName is now refused with AWS's InvalidArgumentException, group before stream, on the merged result for UpdateDestination and ahead of the other semantic checks, as probed against real AWS.
* fix(firehose): fill the defaults on a Redshift destination's S3 backup
Create and describe now apply the S3 defaults, including CloudWatchLoggingOptions Enabled false, to a Redshift destination's backup configuration as well as its intermediate one, so persisted streams heal on read.
This commit is contained in:
1 parent
ba353021e1
commit
deeb3b3075
15 files changed
+814
-98
No files matched your search
+37
-1
@@ -1,8 +1,12 @@
|
||||
package io.github.hectorvent.floci.services.cloudformation.provisioners;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.services.cloudformation.model.StackResource;
|
||||
import io.github.hectorvent.floci.services.firehose.FirehoseService;
|
||||
import io.github.hectorvent.floci.services.firehose.S3DestinationValidator;
|
||||
import io.github.hectorvent.floci.services.firehose.model.DeliveryStreamDescription;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
|
||||
@@ -16,6 +20,7 @@ import java.util.Set;
|
||||
@ApplicationScoped
|
||||
public class FirehoseCfnProvisioner implements CfnResourceProvisioner {
|
||||
|
||||
private static final ObjectMapper MAPPER = new ObjectMapper();
|
||||
private static final int DELIVERY_STREAM_NAME_MAX_LENGTH = 64;
|
||||
private static final int DEFAULT_BUFFER_SIZE_MB = 5;
|
||||
private static final int DEFAULT_BUFFER_INTERVAL_SECONDS = 300;
|
||||
@@ -37,7 +42,8 @@ public class FirehoseCfnProvisioner implements CfnResourceProvisioner {
|
||||
r.getLogicalId(), DELIVERY_STREAM_NAME_MAX_LENGTH, false);
|
||||
|
||||
DeliveryStreamDescription.S3Destination s3 = null;
|
||||
JsonNode s3Node = props != null && props.has("ExtendedS3DestinationConfiguration")
|
||||
boolean extended = props != null && props.has("ExtendedS3DestinationConfiguration");
|
||||
JsonNode s3Node = extended
|
||||
? props.get("ExtendedS3DestinationConfiguration")
|
||||
: (props != null ? props.get("S3DestinationConfiguration") : null);
|
||||
if (s3Node != null && !s3Node.isNull()) {
|
||||
@@ -48,6 +54,15 @@ public class FirehoseCfnProvisioner implements CfnResourceProvisioner {
|
||||
);
|
||||
s3.setBucketArn(blankToNull(ctx.engine().resolve(s3Node.path("BucketARN"))));
|
||||
s3.setPrefix(blankToNull(ctx.engine().resolve(s3Node.path("Prefix"))));
|
||||
s3.setRoleArn(blankToNull(ctx.engine().resolve(s3Node.path("RoleARN"))));
|
||||
s3.setErrorOutputPrefix(blankToNull(ctx.engine().resolve(s3Node.path("ErrorOutputPrefix"))));
|
||||
s3.setCloudWatchLoggingOptions(structured(s3Node, "CloudWatchLoggingOptions",
|
||||
DeliveryStreamDescription.CloudWatchLoggingOptions.class, ctx));
|
||||
// Only the extended shape models a processor, so the legacy one carries none, as on the API path.
|
||||
if (extended) {
|
||||
s3.setProcessingConfiguration(structured(s3Node, "ProcessingConfiguration",
|
||||
DeliveryStreamDescription.ProcessingConfiguration.class, ctx));
|
||||
}
|
||||
if (s3Node.has("BufferingHints")) {
|
||||
JsonNode hints = s3Node.get("BufferingHints");
|
||||
DeliveryStreamDescription.BufferingHints bufferingHints = new DeliveryStreamDescription.BufferingHints();
|
||||
@@ -56,6 +71,8 @@ public class FirehoseCfnProvisioner implements CfnResourceProvisioner {
|
||||
parseIntProp(hints, "IntervalInSeconds", ctx, DEFAULT_BUFFER_INTERVAL_SECONDS));
|
||||
s3.setBufferingHints(bufferingHints);
|
||||
}
|
||||
S3DestinationValidator.validateWireShape(s3,
|
||||
extended ? "extendedS3DestinationConfiguration" : "s3DestinationConfiguration");
|
||||
}
|
||||
|
||||
List<DeliveryStreamDescription.Tag> tags = new ArrayList<>();
|
||||
@@ -125,6 +142,25 @@ public class FirehoseCfnProvisioner implements CfnResourceProvisioner {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A structured destination member with its intrinsics resolved, read into the type
|
||||
* CreateDeliveryStream reads it into. Null when the template leaves it out or AWS::NoValue
|
||||
* drops it, which on an update keeps the stored value, as UpdateDestination does. A member
|
||||
* present as anything but an object fails the resource, as CloudFormation rejects it.
|
||||
*/
|
||||
private static <T> T structured(JsonNode destination, String name, Class<T> type, ProvisionContext ctx) {
|
||||
JsonNode resolved = ctx.engine().resolveNodeOmittingNoValue(destination.get(name));
|
||||
if (resolved == null || resolved.isMissingNode()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return MAPPER.treeToValue(resolved, type);
|
||||
} catch (JsonProcessingException e) {
|
||||
throw new AwsException("ValidationError",
|
||||
"AWS::KinesisFirehose::DeliveryStream has an invalid " + name + ": " + e.getOriginalMessage(), 400);
|
||||
}
|
||||
}
|
||||
|
||||
private static String blankToNull(String value) {
|
||||
return value == null || value.isBlank() ? null : value;
|
||||
}
|
||||
|
||||
@@ -406,8 +406,11 @@ public class FirehoseService implements ResourceProvider {
|
||||
"Delivery stream " + name + " already exists.", 409);
|
||||
}
|
||||
|
||||
validateLogging(null, s3Config);
|
||||
validateBufferingHints(s3Config);
|
||||
if (redshift != null) {
|
||||
validateLogging(null, redshift.getS3());
|
||||
validateLogging(null, redshift.getS3Backup());
|
||||
validateBufferingHints(redshift.getS3());
|
||||
validateBufferingHints(redshift.getS3Backup());
|
||||
}
|
||||
@@ -486,6 +489,7 @@ public class FirehoseService implements ResourceProvider {
|
||||
throw new AwsException("InvalidArgumentException",
|
||||
"The delivery stream " + name + " has a Redshift destination; use RedshiftDestinationUpdate.", 400);
|
||||
}
|
||||
validateLogging(destination.getExtendedS3DestinationDescription(), update);
|
||||
validateBufferingHints(update);
|
||||
S3Destination current = destination.getExtendedS3DestinationDescription();
|
||||
if (current == null) {
|
||||
@@ -533,6 +537,8 @@ public class FirehoseService implements ResourceProvider {
|
||||
throw new AwsException("InvalidArgumentException",
|
||||
"S3BackupMode is Enabled but no S3 backup configuration is set.", 400);
|
||||
}
|
||||
validateLogging(current.getS3(), update.getS3());
|
||||
validateLogging(current.getS3Backup(), update.getS3Backup());
|
||||
validateBufferingHints(update.getS3());
|
||||
validateBufferingHints(update.getS3Backup());
|
||||
if (update.getS3Backup() != null && current.getS3Backup() == null) {
|
||||
@@ -665,6 +671,29 @@ public class FirehoseService implements ResourceProvider {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Once logging is on, both names are required, checked on the merged result for an update
|
||||
* (probed 2026-10-23). An update without a logging block leaves the stored one as it was.
|
||||
*/
|
||||
private static void validateLogging(S3Destination stored, S3Destination update) {
|
||||
if (update == null || update.getCloudWatchLoggingOptions() == null) {
|
||||
return;
|
||||
}
|
||||
DeliveryStreamDescription.CloudWatchLoggingOptions effective = mergeLogging(
|
||||
stored == null ? null : stored.getCloudWatchLoggingOptions(), update.getCloudWatchLoggingOptions());
|
||||
if (!Boolean.TRUE.equals(effective.getEnabled())) {
|
||||
return;
|
||||
}
|
||||
if (effective.getLogGroupName() == null || effective.getLogGroupName().isEmpty()) {
|
||||
throw new AwsException("InvalidArgumentException",
|
||||
"CloudWatch Log Group Name is required if CloudWatch Logging is enabled", 400);
|
||||
}
|
||||
if (effective.getLogStreamName() == null || effective.getLogStreamName().isEmpty()) {
|
||||
throw new AwsException("InvalidArgumentException",
|
||||
"CloudWatch Log Stream Name is required if CloudWatch Logging is enabled", 400);
|
||||
}
|
||||
}
|
||||
|
||||
private static void mergeDestination(S3Destination current, S3Destination update) {
|
||||
if (update.getRoleArn() != null) current.setRoleArn(update.getRoleArn());
|
||||
if (update.getBucketArn() != null) current.setBucketArn(update.getBucketArn());
|
||||
@@ -676,6 +705,10 @@ public class FirehoseService implements ResourceProvider {
|
||||
if (update.getBufferingHints() != null) current.setBufferingHints(update.getBufferingHints());
|
||||
if (update.getEncryptionConfiguration() != null) current.setEncryptionConfiguration(update.getEncryptionConfiguration());
|
||||
if (update.getS3BackupMode() != null) current.setS3BackupMode(update.getS3BackupMode());
|
||||
if (update.getCloudWatchLoggingOptions() != null) {
|
||||
current.setCloudWatchLoggingOptions(mergeLogging(
|
||||
current.getCloudWatchLoggingOptions(), update.getCloudWatchLoggingOptions()));
|
||||
}
|
||||
// Replaced whole, not merged member-wise: an update carrying only
|
||||
// {"Enabled": false} leaves Processors empty on real AWS, where the same shape
|
||||
// preserves the conversion block's members (probed 2026-09-10).
|
||||
@@ -714,6 +747,23 @@ public class FirehoseService implements ResourceProvider {
|
||||
return merged;
|
||||
}
|
||||
|
||||
/**
|
||||
* Member-wise, like the conversion block: an update carrying only {"Enabled": false} keeps the
|
||||
* stored group and stream, and one naming only a group keeps Enabled (probed 2026-10-22).
|
||||
*/
|
||||
private static DeliveryStreamDescription.CloudWatchLoggingOptions mergeLogging(
|
||||
DeliveryStreamDescription.CloudWatchLoggingOptions current,
|
||||
DeliveryStreamDescription.CloudWatchLoggingOptions update) {
|
||||
if (current == null) {
|
||||
return update;
|
||||
}
|
||||
DeliveryStreamDescription.CloudWatchLoggingOptions merged = new DeliveryStreamDescription.CloudWatchLoggingOptions();
|
||||
merged.setEnabled(update.getEnabled() != null ? update.getEnabled() : current.getEnabled());
|
||||
merged.setLogGroupName(update.getLogGroupName() != null ? update.getLogGroupName() : current.getLogGroupName());
|
||||
merged.setLogStreamName(update.getLogStreamName() != null ? update.getLogStreamName() : current.getLogStreamName());
|
||||
return merged;
|
||||
}
|
||||
|
||||
/**
|
||||
* SchemaConfiguration merges a member at a time as well, so an update naming only
|
||||
* a new TableName keeps the stored role, database and region (probed). Replacing
|
||||
@@ -827,9 +877,7 @@ public class FirehoseService implements ResourceProvider {
|
||||
.orElseThrow(() -> new AwsException("ResourceNotFoundException",
|
||||
"Delivery stream not found: " + streamName, 400));
|
||||
// Normalizes streams persisted before required output members existed.
|
||||
if (stream.s3Destination() != null) {
|
||||
stream.s3Destination().applyDefaults();
|
||||
}
|
||||
stream.applyDefaults();
|
||||
return stream;
|
||||
}
|
||||
|
||||
|
||||
+42
-2
@@ -3,6 +3,7 @@ package io.github.hectorvent.floci.services.firehose;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.SmithyValidationErrors;
|
||||
import io.github.hectorvent.floci.services.firehose.model.DeliveryStreamDescription;
|
||||
import io.github.hectorvent.floci.services.firehose.model.DeliveryStreamDescription.CloudWatchLoggingOptions;
|
||||
import io.github.hectorvent.floci.services.firehose.model.DeliveryStreamDescription.OpenXJsonSerDe;
|
||||
import io.github.hectorvent.floci.services.firehose.model.DeliveryStreamDescription.OrcSerDe;
|
||||
import io.github.hectorvent.floci.services.firehose.model.DeliveryStreamDescription.ParquetSerDe;
|
||||
@@ -37,7 +38,7 @@ import java.util.regex.Pattern;
|
||||
* Smithy layer does (probe 2026-09-07: both ParquetSerDe bounds violated at
|
||||
* once report "2 validation errors detected: ...; ...").
|
||||
*/
|
||||
final class S3DestinationValidator {
|
||||
public final class S3DestinationValidator {
|
||||
|
||||
/** Listed in the order AWS prints it, which is neither declaration order nor alphabetical. */
|
||||
private static final String ENUM_VALUE_SET = "[ZIP, HADOOP_SNAPPY, Snappy, GZIP, UNCOMPRESSED]";
|
||||
@@ -76,9 +77,15 @@ final class S3DestinationValidator {
|
||||
private static final String NOT_BLANK_PATTERN = "^(?!\\s*$).+";
|
||||
private static final Pattern NOT_BLANK = Pattern.compile(NOT_BLANK_PATTERN);
|
||||
|
||||
private static final int LOG_NAME_MAX_LENGTH = 512;
|
||||
private static final String LOG_GROUP_NAME_REGEX = "[\\.\\-_/#A-Za-z0-9]*";
|
||||
private static final Pattern LOG_GROUP_NAME = Pattern.compile(LOG_GROUP_NAME_REGEX);
|
||||
private static final String LOG_STREAM_NAME_REGEX = "[^:*]*";
|
||||
private static final Pattern LOG_STREAM_NAME = Pattern.compile(LOG_STREAM_NAME_REGEX);
|
||||
|
||||
private S3DestinationValidator() {}
|
||||
|
||||
static void validateWireShape(S3Destination config, String shapeName) {
|
||||
public static void validateWireShape(S3Destination config, String shapeName) {
|
||||
if (config == null) {
|
||||
return;
|
||||
}
|
||||
@@ -110,12 +117,45 @@ final class S3DestinationValidator {
|
||||
// violations sit in more than one of them.
|
||||
collectOpenXMappingViolations(config, shapeName, violations);
|
||||
collectSchemaViolations(config, shapeName, violations);
|
||||
collectLoggingViolations(config, shapeName, violations);
|
||||
collectProcessingViolations(config, shapeName, violations);
|
||||
if (!violations.isEmpty()) {
|
||||
throw constraintViolations(violations);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Both log names are bounded at 512 characters and carry a pattern. Unlike
|
||||
* FileExtension, an overlong name with a bad character reports both rules, the
|
||||
* length one first, and the group's violations precede the stream's (probed
|
||||
* 2026-10-22, where AWS also printed them before any processingConfiguration one).
|
||||
*/
|
||||
private static void collectLoggingViolations(S3Destination config, String shapeName,
|
||||
List<String> violations) {
|
||||
CloudWatchLoggingOptions logging = config.getCloudWatchLoggingOptions();
|
||||
if (logging == null) {
|
||||
return;
|
||||
}
|
||||
collectLogName(logging.getLogGroupName(), shapeName, "cloudWatchLoggingOptions.logGroupName",
|
||||
LOG_GROUP_NAME, LOG_GROUP_NAME_REGEX, violations);
|
||||
collectLogName(logging.getLogStreamName(), shapeName, "cloudWatchLoggingOptions.logStreamName",
|
||||
LOG_STREAM_NAME, LOG_STREAM_NAME_REGEX, violations);
|
||||
}
|
||||
|
||||
private static void collectLogName(String value, String shapeName, String member, Pattern pattern,
|
||||
String regex, List<String> violations) {
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
if (value.length() > LOG_NAME_MAX_LENGTH) {
|
||||
violations.add(violation(shapeName, member,
|
||||
"Member must have length less than or equal to " + LOG_NAME_MAX_LENGTH));
|
||||
}
|
||||
if (!pattern.matcher(value).matches()) {
|
||||
violations.add(violation(shapeName, member, "Member must satisfy regular expression pattern: " + regex));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Every SchemaConfiguration string is a 1 to 1024 character value without
|
||||
* whitespace, and unlike the collection members each broken rule is its own
|
||||
|
||||
+57
-6
@@ -66,13 +66,8 @@ public class DeliveryStreamDescription {
|
||||
this.deliveryStreamARN = arn;
|
||||
this.deliveryStreamStatus = DeliveryStreamStatus.ACTIVE;
|
||||
this.createTimestamp = Instant.now();
|
||||
if (s3 != null) {
|
||||
s3.applyDefaults();
|
||||
}
|
||||
if (redshift != null && redshift.getS3() != null) {
|
||||
redshift.getS3().applyDefaults();
|
||||
}
|
||||
this.destinations = List.of(redshift != null ? new Destination(redshift) : new Destination(s3));
|
||||
applyDefaults();
|
||||
this.deliveryStreamEncryptionConfiguration = DeliveryStreamEncryptionConfiguration.disabled();
|
||||
if (kinesisStreamSource != null) {
|
||||
this.source = new Source(kinesisStreamSource);
|
||||
@@ -170,6 +165,24 @@ public class DeliveryStreamDescription {
|
||||
return first.getExtendedS3DestinationDescription();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fills the AWS defaults on every S3 configuration the stream describes: its S3 destination, or
|
||||
* a Redshift destination's intermediate and backup configurations.
|
||||
*/
|
||||
public final void applyDefaults() {
|
||||
S3Destination s3 = s3Destination();
|
||||
if (s3 != null) {
|
||||
s3.applyDefaults();
|
||||
}
|
||||
if (destinations == null || destinations.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
RedshiftDestination redshift = destinations.get(0).getRedshiftDestinationDescription();
|
||||
if (redshift != null && redshift.getS3Backup() != null) {
|
||||
redshift.getS3Backup().applyDefaults();
|
||||
}
|
||||
}
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@@ -247,6 +260,8 @@ public class DeliveryStreamDescription {
|
||||
private DataFormatConversionConfiguration dataFormatConversionConfiguration;
|
||||
@JsonProperty("ProcessingConfiguration")
|
||||
private ProcessingConfiguration processingConfiguration;
|
||||
@JsonProperty("CloudWatchLoggingOptions")
|
||||
private CloudWatchLoggingOptions cloudWatchLoggingOptions;
|
||||
|
||||
public S3Destination() {}
|
||||
public String getRoleArn() { return roleArn; }
|
||||
@@ -282,6 +297,8 @@ public class DeliveryStreamDescription {
|
||||
public void setProcessingConfiguration(ProcessingConfiguration processingConfiguration) {
|
||||
this.processingConfiguration = processingConfiguration;
|
||||
}
|
||||
public CloudWatchLoggingOptions getCloudWatchLoggingOptions() { return cloudWatchLoggingOptions; }
|
||||
public void setCloudWatchLoggingOptions(CloudWatchLoggingOptions options) { this.cloudWatchLoggingOptions = options; }
|
||||
|
||||
/**
|
||||
* True when a transformation applies to deliveries: the configuration is present
|
||||
@@ -356,6 +373,14 @@ public class DeliveryStreamDescription {
|
||||
if (processingConfiguration != null && processingConfiguration.getEnabled() == null) {
|
||||
processingConfiguration.setEnabled(false);
|
||||
}
|
||||
// AWS describes a destination that never configured logging as {"Enabled": false},
|
||||
// and an omitted Enabled as false (probed 2026-10-22).
|
||||
if (cloudWatchLoggingOptions == null) {
|
||||
cloudWatchLoggingOptions = new CloudWatchLoggingOptions();
|
||||
}
|
||||
if (cloudWatchLoggingOptions.getEnabled() == null) {
|
||||
cloudWatchLoggingOptions.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -436,6 +461,7 @@ public class DeliveryStreamDescription {
|
||||
view.compressionFormat = compressionFormat;
|
||||
view.bufferingHints = bufferingHints;
|
||||
view.encryptionConfiguration = encryptionConfiguration;
|
||||
view.cloudWatchLoggingOptions = cloudWatchLoggingOptions;
|
||||
return view;
|
||||
}
|
||||
|
||||
@@ -469,6 +495,31 @@ public class DeliveryStreamDescription {
|
||||
public void setProcessors(List<Processor> processors) { this.processors = processors; }
|
||||
}
|
||||
|
||||
/**
|
||||
* Stored and echoed as AWS models it. Floci writes no delivery error logs to the named
|
||||
* group. UpdateDestination merges it a member at a time (probed).
|
||||
*/
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public static class CloudWatchLoggingOptions {
|
||||
@JsonProperty("Enabled")
|
||||
private Boolean enabled;
|
||||
@JsonProperty("LogGroupName")
|
||||
private String logGroupName;
|
||||
@JsonProperty("LogStreamName")
|
||||
private String logStreamName;
|
||||
|
||||
public CloudWatchLoggingOptions() {}
|
||||
|
||||
public Boolean getEnabled() { return enabled; }
|
||||
public void setEnabled(Boolean enabled) { this.enabled = enabled; }
|
||||
public String getLogGroupName() { return logGroupName; }
|
||||
public void setLogGroupName(String logGroupName) { this.logGroupName = logGroupName; }
|
||||
public String getLogStreamName() { return logStreamName; }
|
||||
public void setLogStreamName(String logStreamName) { this.logStreamName = logStreamName; }
|
||||
}
|
||||
|
||||
@RegisterForReflection
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
|
||||
Reference in new issue
Block a user