com.pulumi.aws.elasticache.inputs.ReplicationGroupLogDeliveryConfigurationArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.elasticache.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class ReplicationGroupLogDeliveryConfigurationArgs extends com.pulumi.resources.ResourceArgs {
public static final ReplicationGroupLogDeliveryConfigurationArgs Empty = new ReplicationGroupLogDeliveryConfigurationArgs();
/**
* Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource.
*
*/
@Import(name="destination", required=true)
private Output destination;
/**
* @return Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource.
*
*/
public Output destination() {
return this.destination;
}
/**
* For CloudWatch Logs use `cloudwatch-logs` or for Kinesis Data Firehose use `kinesis-firehose`.
*
*/
@Import(name="destinationType", required=true)
private Output destinationType;
/**
* @return For CloudWatch Logs use `cloudwatch-logs` or for Kinesis Data Firehose use `kinesis-firehose`.
*
*/
public Output destinationType() {
return this.destinationType;
}
/**
* Valid values are `json` or `text`
*
*/
@Import(name="logFormat", required=true)
private Output logFormat;
/**
* @return Valid values are `json` or `text`
*
*/
public Output logFormat() {
return this.logFormat;
}
/**
* Valid values are `slow-log` or `engine-log`. Max 1 of each.
*
*/
@Import(name="logType", required=true)
private Output logType;
/**
* @return Valid values are `slow-log` or `engine-log`. Max 1 of each.
*
*/
public Output logType() {
return this.logType;
}
private ReplicationGroupLogDeliveryConfigurationArgs() {}
private ReplicationGroupLogDeliveryConfigurationArgs(ReplicationGroupLogDeliveryConfigurationArgs $) {
this.destination = $.destination;
this.destinationType = $.destinationType;
this.logFormat = $.logFormat;
this.logType = $.logType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReplicationGroupLogDeliveryConfigurationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ReplicationGroupLogDeliveryConfigurationArgs $;
public Builder() {
$ = new ReplicationGroupLogDeliveryConfigurationArgs();
}
public Builder(ReplicationGroupLogDeliveryConfigurationArgs defaults) {
$ = new ReplicationGroupLogDeliveryConfigurationArgs(Objects.requireNonNull(defaults));
}
/**
* @param destination Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource.
*
* @return builder
*
*/
public Builder destination(Output destination) {
$.destination = destination;
return this;
}
/**
* @param destination Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource.
*
* @return builder
*
*/
public Builder destination(String destination) {
return destination(Output.of(destination));
}
/**
* @param destinationType For CloudWatch Logs use `cloudwatch-logs` or for Kinesis Data Firehose use `kinesis-firehose`.
*
* @return builder
*
*/
public Builder destinationType(Output destinationType) {
$.destinationType = destinationType;
return this;
}
/**
* @param destinationType For CloudWatch Logs use `cloudwatch-logs` or for Kinesis Data Firehose use `kinesis-firehose`.
*
* @return builder
*
*/
public Builder destinationType(String destinationType) {
return destinationType(Output.of(destinationType));
}
/**
* @param logFormat Valid values are `json` or `text`
*
* @return builder
*
*/
public Builder logFormat(Output logFormat) {
$.logFormat = logFormat;
return this;
}
/**
* @param logFormat Valid values are `json` or `text`
*
* @return builder
*
*/
public Builder logFormat(String logFormat) {
return logFormat(Output.of(logFormat));
}
/**
* @param logType Valid values are `slow-log` or `engine-log`. Max 1 of each.
*
* @return builder
*
*/
public Builder logType(Output logType) {
$.logType = logType;
return this;
}
/**
* @param logType Valid values are `slow-log` or `engine-log`. Max 1 of each.
*
* @return builder
*
*/
public Builder logType(String logType) {
return logType(Output.of(logType));
}
public ReplicationGroupLogDeliveryConfigurationArgs build() {
if ($.destination == null) {
throw new MissingRequiredPropertyException("ReplicationGroupLogDeliveryConfigurationArgs", "destination");
}
if ($.destinationType == null) {
throw new MissingRequiredPropertyException("ReplicationGroupLogDeliveryConfigurationArgs", "destinationType");
}
if ($.logFormat == null) {
throw new MissingRequiredPropertyException("ReplicationGroupLogDeliveryConfigurationArgs", "logFormat");
}
if ($.logType == null) {
throw new MissingRequiredPropertyException("ReplicationGroupLogDeliveryConfigurationArgs", "logType");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy