Class CfnService.ServiceObservabilityConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.ServiceObservabilityConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ServiceObservabilityConfigurationProperty>
- Enclosing interface:
CfnService.ServiceObservabilityConfigurationProperty
@Stability(Stable)
public static final class CfnService.ServiceObservabilityConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ServiceObservabilityConfigurationProperty>
A builder for
CfnService.ServiceObservabilityConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.observabilityConfigurationArn
(String observabilityConfigurationArn) observabilityEnabled
(Boolean observabilityEnabled) observabilityEnabled
(IResolvable observabilityEnabled)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
observabilityEnabled
@Stability(Stable) public CfnService.ServiceObservabilityConfigurationProperty.Builder observabilityEnabled(Boolean observabilityEnabled) - Parameters:
observabilityEnabled
- Whentrue
, an observability configuration resource is associated with the service, and anObservabilityConfigurationArn
is specified. This parameter is required.- Returns:
this
-
observabilityEnabled
@Stability(Stable) public CfnService.ServiceObservabilityConfigurationProperty.Builder observabilityEnabled(IResolvable observabilityEnabled) - Parameters:
observabilityEnabled
- Whentrue
, an observability configuration resource is associated with the service, and anObservabilityConfigurationArn
is specified. This parameter is required.- Returns:
this
-
observabilityConfigurationArn
@Stability(Stable) public CfnService.ServiceObservabilityConfigurationProperty.Builder observabilityConfigurationArn(String observabilityConfigurationArn) Sets the value ofCfnService.ServiceObservabilityConfigurationProperty.getObservabilityConfigurationArn()
- Parameters:
observabilityConfigurationArn
- The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified only whenObservabilityEnabled
istrue
.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
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.ServiceObservabilityConfigurationProperty>
- Returns:
- a new instance of
CfnService.ServiceObservabilityConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-