Class CfnObservabilityConfiguration.Builder

java.lang.Object
software.amazon.awscdk.services.apprunner.CfnObservabilityConfiguration.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnObservabilityConfiguration>
Enclosing class:
CfnObservabilityConfiguration

@Stability(Stable) public static final class CfnObservabilityConfiguration.Builder extends Object implements software.amazon.jsii.Builder<CfnObservabilityConfiguration>
A fluent builder for CfnObservabilityConfiguration.
  • Method Details

    • create

      @Stability(Stable) public static CfnObservabilityConfiguration.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnObservabilityConfiguration.Builder.
    • observabilityConfigurationName

      @Stability(Stable) public CfnObservabilityConfiguration.Builder observabilityConfigurationName(String observabilityConfigurationName)
      A name for the observability configuration.

      When you use it for the first time in an AWS Region , App Runner creates revision number 1 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.

      Parameters:
      observabilityConfigurationName - A name for the observability configuration. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnObservabilityConfiguration.Builder tags(List<? extends CfnTag> tags)
      A list of metadata items that you can associate with your observability configuration resource.

      A tag is a key-value pair.

      Parameters:
      tags - A list of metadata items that you can associate with your observability configuration resource. This parameter is required.
      Returns:
      this
    • traceConfiguration

      @Stability(Stable) public CfnObservabilityConfiguration.Builder traceConfiguration(CfnObservabilityConfiguration.TraceConfigurationProperty traceConfiguration)
      The configuration of the tracing feature within this observability configuration.

      If you don't specify it, App Runner doesn't enable tracing.

      Parameters:
      traceConfiguration - The configuration of the tracing feature within this observability configuration. This parameter is required.
      Returns:
      this
    • traceConfiguration

      @Stability(Stable) public CfnObservabilityConfiguration.Builder traceConfiguration(IResolvable traceConfiguration)
      The configuration of the tracing feature within this observability configuration.

      If you don't specify it, App Runner doesn't enable tracing.

      Parameters:
      traceConfiguration - The configuration of the tracing feature within this observability configuration. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnObservabilityConfiguration build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnObservabilityConfiguration>
      Returns:
      a newly built instance of CfnObservabilityConfiguration.