Class ObservabilityConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apprunner.alpha.ObservabilityConfiguration
All Implemented Interfaces:
IResource, IObservabilityConfiguration, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:17.939Z") @Stability(Experimental) public class ObservabilityConfiguration extends Resource implements IObservabilityConfiguration
(experimental) The App Runner Observability configuration.

Example:

 ObservabilityConfiguration observabilityConfiguration = ObservabilityConfiguration.Builder.create(this, "ObservabilityConfiguration")
         .observabilityConfigurationName("MyObservabilityConfiguration")
         .traceConfigurationVendor(TraceConfigurationVendor.AWSXRAY)
         .build();
 Service.Builder.create(this, "DemoService")
         .source(Source.fromEcrPublic(EcrPublicProps.builder()
                 .imageConfiguration(ImageConfiguration.builder().port(8000).build())
                 .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
                 .build()))
         .observabilityConfiguration(observabilityConfiguration)
         .build();
 
  • Constructor Details

    • ObservabilityConfiguration

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

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

      @Stability(Experimental) public ObservabilityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ObservabilityConfigurationProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromArn

      @Stability(Experimental) @NotNull public static IObservabilityConfiguration fromArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String observabilityConfigurationArn)
      (experimental) Imports an App Runner Observability Configuration from its ARN.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      observabilityConfigurationArn - This parameter is required.
    • fromObservabilityConfigurationAttributes

      @Stability(Experimental) @NotNull public static IObservabilityConfiguration fromObservabilityConfigurationAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ObservabilityConfigurationAttributes attrs)
      (experimental) Imports an App Runner Observability Configuration from attributes.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getObservabilityConfigurationArn

      @Stability(Experimental) @NotNull public String getObservabilityConfigurationArn()
      (experimental) The ARN of the Observability configuration.
      Specified by:
      getObservabilityConfigurationArn in interface IObservabilityConfiguration
    • getObservabilityConfigurationName

      @Stability(Experimental) @NotNull public String getObservabilityConfigurationName()
      (experimental) The name of the Observability configuration.
      Specified by:
      getObservabilityConfigurationName in interface IObservabilityConfiguration
    • getObservabilityConfigurationRevision

      @Stability(Experimental) @NotNull public Number getObservabilityConfigurationRevision()
      (experimental) The revision of the Observability configuration.
      Specified by:
      getObservabilityConfigurationRevision in interface IObservabilityConfiguration