
com.pulumi.aws.wafregional.outputs.WebAclLoggingConfiguration 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.wafregional.outputs;
import com.pulumi.aws.wafregional.outputs.WebAclLoggingConfigurationRedactedFields;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebAclLoggingConfiguration {
/**
* @return Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream
*
*/
private String logDestination;
/**
* @return Configuration block containing parts of the request that you want redacted from the logs. Detailed below.
*
*/
private @Nullable WebAclLoggingConfigurationRedactedFields redactedFields;
private WebAclLoggingConfiguration() {}
/**
* @return Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream
*
*/
public String logDestination() {
return this.logDestination;
}
/**
* @return Configuration block containing parts of the request that you want redacted from the logs. Detailed below.
*
*/
public Optional redactedFields() {
return Optional.ofNullable(this.redactedFields);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclLoggingConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String logDestination;
private @Nullable WebAclLoggingConfigurationRedactedFields redactedFields;
public Builder() {}
public Builder(WebAclLoggingConfiguration defaults) {
Objects.requireNonNull(defaults);
this.logDestination = defaults.logDestination;
this.redactedFields = defaults.redactedFields;
}
@CustomType.Setter
public Builder logDestination(String logDestination) {
if (logDestination == null) {
throw new MissingRequiredPropertyException("WebAclLoggingConfiguration", "logDestination");
}
this.logDestination = logDestination;
return this;
}
@CustomType.Setter
public Builder redactedFields(@Nullable WebAclLoggingConfigurationRedactedFields redactedFields) {
this.redactedFields = redactedFields;
return this;
}
public WebAclLoggingConfiguration build() {
final var _resultValue = new WebAclLoggingConfiguration();
_resultValue.logDestination = logDestination;
_resultValue.redactedFields = redactedFields;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy