com.pulumi.aws.lambda.inputs.FunctionTracingConfigArgs 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.lambda.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 FunctionTracingConfigArgs extends com.pulumi.resources.ResourceArgs {
public static final FunctionTracingConfigArgs Empty = new FunctionTracingConfigArgs();
/**
* Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `Active`. If `PassThrough`, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If `Active`, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
*
*/
@Import(name="mode", required=true)
private Output mode;
/**
* @return Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `Active`. If `PassThrough`, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If `Active`, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
*
*/
public Output mode() {
return this.mode;
}
private FunctionTracingConfigArgs() {}
private FunctionTracingConfigArgs(FunctionTracingConfigArgs $) {
this.mode = $.mode;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionTracingConfigArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private FunctionTracingConfigArgs $;
public Builder() {
$ = new FunctionTracingConfigArgs();
}
public Builder(FunctionTracingConfigArgs defaults) {
$ = new FunctionTracingConfigArgs(Objects.requireNonNull(defaults));
}
/**
* @param mode Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `Active`. If `PassThrough`, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If `Active`, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
*
* @return builder
*
*/
public Builder mode(Output mode) {
$.mode = mode;
return this;
}
/**
* @param mode Whether to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `Active`. If `PassThrough`, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If `Active`, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
*
* @return builder
*
*/
public Builder mode(String mode) {
return mode(Output.of(mode));
}
public FunctionTracingConfigArgs build() {
if ($.mode == null) {
throw new MissingRequiredPropertyException("FunctionTracingConfigArgs", "mode");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy