
com.pulumi.aws.fis.outputs.ExperimentTemplateLogConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.fis.outputs;
import com.pulumi.aws.fis.outputs.ExperimentTemplateLogConfigurationCloudwatchLogsConfiguration;
import com.pulumi.aws.fis.outputs.ExperimentTemplateLogConfigurationS3Configuration;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ExperimentTemplateLogConfiguration {
/**
* @return The configuration for experiment logging to Amazon CloudWatch Logs. See below.
*
*/
private @Nullable ExperimentTemplateLogConfigurationCloudwatchLogsConfiguration cloudwatchLogsConfiguration;
/**
* @return The schema version. See [documentation](https://docs.aws.amazon.com/fis/latest/userguide/monitoring-logging.html#experiment-log-schema) for the list of schema versions.
*
*/
private Integer logSchemaVersion;
/**
* @return The configuration for experiment logging to Amazon S3. See below.
*
*/
private @Nullable ExperimentTemplateLogConfigurationS3Configuration s3Configuration;
private ExperimentTemplateLogConfiguration() {}
/**
* @return The configuration for experiment logging to Amazon CloudWatch Logs. See below.
*
*/
public Optional cloudwatchLogsConfiguration() {
return Optional.ofNullable(this.cloudwatchLogsConfiguration);
}
/**
* @return The schema version. See [documentation](https://docs.aws.amazon.com/fis/latest/userguide/monitoring-logging.html#experiment-log-schema) for the list of schema versions.
*
*/
public Integer logSchemaVersion() {
return this.logSchemaVersion;
}
/**
* @return The configuration for experiment logging to Amazon S3. See below.
*
*/
public Optional s3Configuration() {
return Optional.ofNullable(this.s3Configuration);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ExperimentTemplateLogConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ExperimentTemplateLogConfigurationCloudwatchLogsConfiguration cloudwatchLogsConfiguration;
private Integer logSchemaVersion;
private @Nullable ExperimentTemplateLogConfigurationS3Configuration s3Configuration;
public Builder() {}
public Builder(ExperimentTemplateLogConfiguration defaults) {
Objects.requireNonNull(defaults);
this.cloudwatchLogsConfiguration = defaults.cloudwatchLogsConfiguration;
this.logSchemaVersion = defaults.logSchemaVersion;
this.s3Configuration = defaults.s3Configuration;
}
@CustomType.Setter
public Builder cloudwatchLogsConfiguration(@Nullable ExperimentTemplateLogConfigurationCloudwatchLogsConfiguration cloudwatchLogsConfiguration) {
this.cloudwatchLogsConfiguration = cloudwatchLogsConfiguration;
return this;
}
@CustomType.Setter
public Builder logSchemaVersion(Integer logSchemaVersion) {
if (logSchemaVersion == null) {
throw new MissingRequiredPropertyException("ExperimentTemplateLogConfiguration", "logSchemaVersion");
}
this.logSchemaVersion = logSchemaVersion;
return this;
}
@CustomType.Setter
public Builder s3Configuration(@Nullable ExperimentTemplateLogConfigurationS3Configuration s3Configuration) {
this.s3Configuration = s3Configuration;
return this;
}
public ExperimentTemplateLogConfiguration build() {
final var _resultValue = new ExperimentTemplateLogConfiguration();
_resultValue.cloudwatchLogsConfiguration = cloudwatchLogsConfiguration;
_resultValue.logSchemaVersion = logSchemaVersion;
_resultValue.s3Configuration = s3Configuration;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy