/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppRunner { namespace Model { /** *

Describes the observability configuration of an 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.

See Also:

AWS * API Reference

*/ class ServiceObservabilityConfiguration { public: AWS_APPRUNNER_API ServiceObservabilityConfiguration(); AWS_APPRUNNER_API ServiceObservabilityConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_APPRUNNER_API ServiceObservabilityConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

When true, an observability configuration resource is associated * with the service, and an ObservabilityConfigurationArn is * specified.

*/ inline bool GetObservabilityEnabled() const{ return m_observabilityEnabled; } /** *

When true, an observability configuration resource is associated * with the service, and an ObservabilityConfigurationArn is * specified.

*/ inline bool ObservabilityEnabledHasBeenSet() const { return m_observabilityEnabledHasBeenSet; } /** *

When true, an observability configuration resource is associated * with the service, and an ObservabilityConfigurationArn is * specified.

*/ inline void SetObservabilityEnabled(bool value) { m_observabilityEnabledHasBeenSet = true; m_observabilityEnabled = value; } /** *

When true, an observability configuration resource is associated * with the service, and an ObservabilityConfigurationArn is * specified.

*/ inline ServiceObservabilityConfiguration& WithObservabilityEnabled(bool value) { SetObservabilityEnabled(value); return *this;} /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline const Aws::String& GetObservabilityConfigurationArn() const{ return m_observabilityConfigurationArn; } /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline bool ObservabilityConfigurationArnHasBeenSet() const { return m_observabilityConfigurationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline void SetObservabilityConfigurationArn(const Aws::String& value) { m_observabilityConfigurationArnHasBeenSet = true; m_observabilityConfigurationArn = value; } /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline void SetObservabilityConfigurationArn(Aws::String&& value) { m_observabilityConfigurationArnHasBeenSet = true; m_observabilityConfigurationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline void SetObservabilityConfigurationArn(const char* value) { m_observabilityConfigurationArnHasBeenSet = true; m_observabilityConfigurationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline ServiceObservabilityConfiguration& WithObservabilityConfigurationArn(const Aws::String& value) { SetObservabilityConfigurationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline ServiceObservabilityConfiguration& WithObservabilityConfigurationArn(Aws::String&& value) { SetObservabilityConfigurationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the observability configuration that is * associated with the service. 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 *

*/ inline ServiceObservabilityConfiguration& WithObservabilityConfigurationArn(const char* value) { SetObservabilityConfigurationArn(value); return *this;} private: bool m_observabilityEnabled; bool m_observabilityEnabledHasBeenSet = false; Aws::String m_observabilityConfigurationArn; bool m_observabilityConfigurationArnHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws