pub struct CreateObservabilityConfiguration { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateObservabilityConfiguration
.
Create an App Runner observability configuration resource. App Runner requires this resource when you create or update 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 calling this action multiple times using the same ObservabilityConfigurationName
. The call returns incremental ObservabilityConfigurationRevision
values. When you create 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 action 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.
Implementations§
source§impl CreateObservabilityConfiguration
impl CreateObservabilityConfiguration
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateObservabilityConfiguration, AwsResponseRetryClassifier>, SdkError<CreateObservabilityConfigurationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateObservabilityConfiguration, AwsResponseRetryClassifier>, SdkError<CreateObservabilityConfigurationError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateObservabilityConfigurationOutput, SdkError<CreateObservabilityConfigurationError>>
pub async fn send(
self
) -> Result<CreateObservabilityConfigurationOutput, SdkError<CreateObservabilityConfigurationError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn observability_configuration_name(self, input: impl Into<String>) -> Self
pub fn observability_configuration_name(self, input: impl Into<String>) -> Self
A name for the observability configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number 1
of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
The name DefaultConfiguration
is reserved. You can't use it to create a new observability configuration, and you can't create a revision of it.
When you want to use your own observability configuration for your App Runner service, create a configuration with a different name, and then provide it when you create or update your service.
sourcepub fn set_observability_configuration_name(self, input: Option<String>) -> Self
pub fn set_observability_configuration_name(self, input: Option<String>) -> Self
A name for the observability configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number 1
of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.
The name DefaultConfiguration
is reserved. You can't use it to create a new observability configuration, and you can't create a revision of it.
When you want to use your own observability configuration for your App Runner service, create a configuration with a different name, and then provide it when you create or update your service.
sourcepub fn trace_configuration(self, input: TraceConfiguration) -> Self
pub fn trace_configuration(self, input: TraceConfiguration) -> Self
The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.
sourcepub fn set_trace_configuration(self, input: Option<TraceConfiguration>) -> Self
pub fn set_trace_configuration(self, input: Option<TraceConfiguration>) -> Self
The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.
A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.
Trait Implementations§
source§impl Clone for CreateObservabilityConfiguration
impl Clone for CreateObservabilityConfiguration
source§fn clone(&self) -> CreateObservabilityConfiguration
fn clone(&self) -> CreateObservabilityConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more