com.pulumi.aws.appsync.outputs.GraphQLApiEnhancedMetricsConfig 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.appsync.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GraphQLApiEnhancedMetricsConfig {
/**
* @return How data source metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_DATA_SOURCE_METRICS`, `PER_DATA_SOURCE_METRICS`
*
*/
private String dataSourceLevelMetricsBehavior;
/**
* @return How operation metrics will be emitted to CloudWatch. Valid values: `ENABLED`, `DISABLED`
*
*/
private String operationLevelMetricsConfig;
/**
* @return How resolver metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_RESOLVER_METRICS`, `PER_RESOLVER_METRICS`
*
*/
private String resolverLevelMetricsBehavior;
private GraphQLApiEnhancedMetricsConfig() {}
/**
* @return How data source metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_DATA_SOURCE_METRICS`, `PER_DATA_SOURCE_METRICS`
*
*/
public String dataSourceLevelMetricsBehavior() {
return this.dataSourceLevelMetricsBehavior;
}
/**
* @return How operation metrics will be emitted to CloudWatch. Valid values: `ENABLED`, `DISABLED`
*
*/
public String operationLevelMetricsConfig() {
return this.operationLevelMetricsConfig;
}
/**
* @return How resolver metrics will be emitted to CloudWatch. Valid values: `FULL_REQUEST_RESOLVER_METRICS`, `PER_RESOLVER_METRICS`
*
*/
public String resolverLevelMetricsBehavior() {
return this.resolverLevelMetricsBehavior;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GraphQLApiEnhancedMetricsConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dataSourceLevelMetricsBehavior;
private String operationLevelMetricsConfig;
private String resolverLevelMetricsBehavior;
public Builder() {}
public Builder(GraphQLApiEnhancedMetricsConfig defaults) {
Objects.requireNonNull(defaults);
this.dataSourceLevelMetricsBehavior = defaults.dataSourceLevelMetricsBehavior;
this.operationLevelMetricsConfig = defaults.operationLevelMetricsConfig;
this.resolverLevelMetricsBehavior = defaults.resolverLevelMetricsBehavior;
}
@CustomType.Setter
public Builder dataSourceLevelMetricsBehavior(String dataSourceLevelMetricsBehavior) {
if (dataSourceLevelMetricsBehavior == null) {
throw new MissingRequiredPropertyException("GraphQLApiEnhancedMetricsConfig", "dataSourceLevelMetricsBehavior");
}
this.dataSourceLevelMetricsBehavior = dataSourceLevelMetricsBehavior;
return this;
}
@CustomType.Setter
public Builder operationLevelMetricsConfig(String operationLevelMetricsConfig) {
if (operationLevelMetricsConfig == null) {
throw new MissingRequiredPropertyException("GraphQLApiEnhancedMetricsConfig", "operationLevelMetricsConfig");
}
this.operationLevelMetricsConfig = operationLevelMetricsConfig;
return this;
}
@CustomType.Setter
public Builder resolverLevelMetricsBehavior(String resolverLevelMetricsBehavior) {
if (resolverLevelMetricsBehavior == null) {
throw new MissingRequiredPropertyException("GraphQLApiEnhancedMetricsConfig", "resolverLevelMetricsBehavior");
}
this.resolverLevelMetricsBehavior = resolverLevelMetricsBehavior;
return this;
}
public GraphQLApiEnhancedMetricsConfig build() {
final var _resultValue = new GraphQLApiEnhancedMetricsConfig();
_resultValue.dataSourceLevelMetricsBehavior = dataSourceLevelMetricsBehavior;
_resultValue.operationLevelMetricsConfig = operationLevelMetricsConfig;
_resultValue.resolverLevelMetricsBehavior = resolverLevelMetricsBehavior;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy