Class CfnObservabilityConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.apprunner.CfnObservabilityConfiguration
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:57.541Z") @Stability(Stable) public class CfnObservabilityConfiguration extends CfnResource implements IInspectable, ITaggable
Specify an AWS App Runner observability configuration by using the AWS::AppRunner::ObservabilityConfiguration resource in an AWS CloudFormation template.

The AWS::AppRunner::ObservabilityConfiguration resource is an AWS App Runner resource type that specifies an App Runner observability configuration.

App Runner requires this resource when you specify App Runner services and you want to enable non-default observability features. You can share an observability configuration across multiple services.

Create multiple revisions of a configuration by specifying this resource multiple times using the same ObservabilityConfigurationName . App Runner creates multiple resources with incremental ObservabilityConfigurationRevision values. When you specify a service and configure an observability configuration resource, the service uses the latest active revision of the observability configuration by default. You can optionally configure the service to use a specific revision.

The observability configuration resource is designed to configure multiple features (currently one feature, tracing). This resource takes optional parameters that describe the configuration of these features (currently one parameter, TraceConfiguration ). If you don't specify a feature parameter, App Runner doesn't enable the feature.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apprunner.*;
 CfnObservabilityConfiguration cfnObservabilityConfiguration = CfnObservabilityConfiguration.Builder.create(this, "MyCfnObservabilityConfiguration")
         .observabilityConfigurationName("observabilityConfigurationName")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .traceConfiguration(TraceConfigurationProperty.builder()
                 .vendor("vendor")
                 .build())
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnObservabilityConfiguration

      protected CfnObservabilityConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnObservabilityConfiguration

      protected CfnObservabilityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnObservabilityConfiguration

      @Stability(Stable) public CfnObservabilityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnObservabilityConfigurationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnObservabilityConfiguration

      @Stability(Stable) public CfnObservabilityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrLatest

      @Stability(Stable) @NotNull public IResolvable getAttrLatest()
      It's set to true for the configuration with the highest Revision among all configurations that share the same ObservabilityConfigurationName .

      It's set to false otherwise.

    • getAttrObservabilityConfigurationArn

      @Stability(Stable) @NotNull public String getAttrObservabilityConfigurationArn()
      The Amazon Resource Name (ARN) of this observability configuration.
    • getAttrObservabilityConfigurationRevision

      @Stability(Stable) @NotNull public Number getAttrObservabilityConfigurationRevision()
      The revision of this observability configuration.

      It's unique among all the active configurations ( "Status": "ACTIVE" ) that share the same ObservabilityConfigurationName .

    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getObservabilityConfigurationName

      @Stability(Stable) @Nullable public String getObservabilityConfigurationName()
      A name for the observability configuration.
    • setObservabilityConfigurationName

      @Stability(Stable) public void setObservabilityConfigurationName(@Nullable String value)
      A name for the observability configuration.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      A list of metadata items that you can associate with your observability configuration resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      A list of metadata items that you can associate with your observability configuration resource.
    • getTraceConfiguration

      @Stability(Stable) @Nullable public Object getTraceConfiguration()
      The configuration of the tracing feature within this observability configuration.
    • setTraceConfiguration

      @Stability(Stable) public void setTraceConfiguration(@Nullable IResolvable value)
      The configuration of the tracing feature within this observability configuration.
    • setTraceConfiguration

      @Stability(Stable) public void setTraceConfiguration(@Nullable CfnObservabilityConfiguration.TraceConfigurationProperty value)
      The configuration of the tracing feature within this observability configuration.