Skip to content
v2.277.0

ServiceObservabilityConfigurationProperty Struct ​

Describes the observability configuration of an AWS App Runner service.

These are additional observability features, like tracing, that you choose to enable. They're configured in a separate resource that you associate with your service.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const serviceObservabilityConfigurationProperty: apprunner.CfnService.ServiceObservabilityConfigurationProperty = {
  observabilityEnabled: false,

  // the properties below are optional
  observabilityConfigurationArn: 'observabilityConfigurationArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apprunner as apprunner

service_observability_configuration_property = apprunner.CfnService.ServiceObservabilityConfigurationProperty(
    observability_enabled=False,

    # the properties below are optional
    observability_configuration_arn="observabilityConfigurationArn"
)
java
// 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.*;

ServiceObservabilityConfigurationProperty serviceObservabilityConfigurationProperty = ServiceObservabilityConfigurationProperty.builder()
        .observabilityEnabled(false)

        // the properties below are optional
        .observabilityConfigurationArn("observabilityConfigurationArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;

var serviceObservabilityConfigurationProperty = new ServiceObservabilityConfigurationProperty {
    ObservabilityEnabled = false,

    // the properties below are optional
    ObservabilityConfigurationArn = "observabilityConfigurationArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

serviceObservabilityConfigurationProperty := &ServiceObservabilityConfigurationProperty{
	ObservabilityEnabled: jsii.Boolean(false),

	// the properties below are optional
	ObservabilityConfigurationArn: jsii.String("observabilityConfigurationArn"),
}

Properties ​

observabilityConfigurationArnoptionalstringobservability_configuration_arnoptionalstrobservabilityConfigurationArnoptionalStringObservabilityConfigurationArnoptionalstringObservabilityConfigurationArnoptional*string#
The Amazon Resource Name (ARN) of the observability configuration that is associated with the service.
notes

Specified only when ObservabilityEnabled is true .

Specify an ARN with a name and a revision number to associate that revision. For example: arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3

Specify just the name to associate the latest revision. For example: arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing

observabilityEnabledboolean | IResolvableobservability_enabledtyping.Union[bool, IResolvable]observabilityEnabledBooleanObservabilityEnabledboolObservabilityEnabledinterface{}required#
When `true` , an observability configuration resource is associated with the service, and an `ObservabilityConfigurationArn` is specified.