Class CfnObservabilityConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnObservabilityConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnObservabilityConfigurationProps>
- Enclosing interface:
CfnObservabilityConfigurationProps
@Stability(Stable)
public static final class CfnObservabilityConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnObservabilityConfigurationProps>
A builder for
CfnObservabilityConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.observabilityConfigurationName
(String observabilityConfigurationName) Sets the value ofCfnObservabilityConfigurationProps.getObservabilityConfigurationName()
Sets the value ofCfnObservabilityConfigurationProps.getTags()
traceConfiguration
(IResolvable traceConfiguration) Sets the value ofCfnObservabilityConfigurationProps.getTraceConfiguration()
traceConfiguration
(CfnObservabilityConfiguration.TraceConfigurationProperty traceConfiguration) Sets the value ofCfnObservabilityConfigurationProps.getTraceConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
observabilityConfigurationName
@Stability(Stable) public CfnObservabilityConfigurationProps.Builder observabilityConfigurationName(String observabilityConfigurationName) Sets the value ofCfnObservabilityConfigurationProps.getObservabilityConfigurationName()
- Parameters:
observabilityConfigurationName
- A name for the observability configuration. When you use it for the first time in an AWS Region , App Runner creates revision number1
of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.The name
DefaultConfiguration
is reserved. You can't use it to create a new observability configuration, and you can't create a revision of it.When you want to use your own observability configuration for your App Runner service, create a configuration with a different name , and then provide it when you create or update your service.
If you don't specify a name, AWS CloudFormation generates a name for your observability configuration.
- Returns:
this
-
tags
@Stability(Stable) public CfnObservabilityConfigurationProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnObservabilityConfigurationProps.getTags()
- Parameters:
tags
- A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.- Returns:
this
-
traceConfiguration
@Stability(Stable) public CfnObservabilityConfigurationProps.Builder traceConfiguration(CfnObservabilityConfiguration.TraceConfigurationProperty traceConfiguration) Sets the value ofCfnObservabilityConfigurationProps.getTraceConfiguration()
- Parameters:
traceConfiguration
- The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.- Returns:
this
-
traceConfiguration
@Stability(Stable) public CfnObservabilityConfigurationProps.Builder traceConfiguration(IResolvable traceConfiguration) Sets the value ofCfnObservabilityConfigurationProps.getTraceConfiguration()
- Parameters:
traceConfiguration
- The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnObservabilityConfigurationProps>
- Returns:
- a new instance of
CfnObservabilityConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-