com.pulumi.aws.cloudtrail.inputs.TrailInsightSelectorArgs 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.cloudtrail.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 TrailInsightSelectorArgs extends com.pulumi.resources.ResourceArgs {
public static final TrailInsightSelectorArgs Empty = new TrailInsightSelectorArgs();
/**
* Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*
*/
@Import(name="insightType", required=true)
private Output insightType;
/**
* @return Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*
*/
public Output insightType() {
return this.insightType;
}
private TrailInsightSelectorArgs() {}
private TrailInsightSelectorArgs(TrailInsightSelectorArgs $) {
this.insightType = $.insightType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TrailInsightSelectorArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private TrailInsightSelectorArgs $;
public Builder() {
$ = new TrailInsightSelectorArgs();
}
public Builder(TrailInsightSelectorArgs defaults) {
$ = new TrailInsightSelectorArgs(Objects.requireNonNull(defaults));
}
/**
* @param insightType Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*
* @return builder
*
*/
public Builder insightType(Output insightType) {
$.insightType = insightType;
return this;
}
/**
* @param insightType Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`.
*
* @return builder
*
*/
public Builder insightType(String insightType) {
return insightType(Output.of(insightType));
}
public TrailInsightSelectorArgs build() {
if ($.insightType == null) {
throw new MissingRequiredPropertyException("TrailInsightSelectorArgs", "insightType");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy