@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.594Z") @Stability(value=Stable) public class CfnObservabilityConfiguration extends CfnResource implements IInspectable
Specify an AWS App Runner observability configuration by using the AWS::AppRunner::ObservabilityConfiguration resource in an AWS CloudFormation template.
The AWS::AppRunner::ObservabilityConfiguration resource is an AWS App Runner resource type that specifies an App Runner observability configuration.
App Runner requires this resource when you specify 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 specifying this resource multiple times using the same ObservabilityConfigurationName . App Runner creates multiple resources with incremental ObservabilityConfigurationRevision values. When you specify 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 resource 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.
Example:
// 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.*;
CfnObservabilityConfiguration cfnObservabilityConfiguration = CfnObservabilityConfiguration.Builder.create(this, "MyCfnObservabilityConfiguration")
.observabilityConfigurationName("observabilityConfigurationName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.traceConfiguration(TraceConfigurationProperty.builder()
.vendor("vendor")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnObservabilityConfiguration.Builder
A fluent builder for
CfnObservabilityConfiguration. |
static interface |
CfnObservabilityConfiguration.TraceConfigurationProperty
Describes the configuration of the tracing feature within an AWS App Runner observability configuration.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnObservabilityConfiguration(software.constructs.Construct scope,
String id)
Create a new `AWS::AppRunner::ObservabilityConfiguration`.
|
|
CfnObservabilityConfiguration(software.constructs.Construct scope,
String id,
CfnObservabilityConfigurationProps props)
Create a new `AWS::AppRunner::ObservabilityConfiguration`.
|
protected |
CfnObservabilityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnObservabilityConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IResolvable |
getAttrLatest()
It's set to `true` for the configuration with the highest `Revision` among all configurations that share the same `ObservabilityConfigurationName` .
|
String |
getAttrObservabilityConfigurationArn()
The Amazon Resource Name (ARN) of this observability configuration.
|
Number |
getAttrObservabilityConfigurationRevision()
The revision of this observability configuration.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getObservabilityConfigurationName()
A name for the observability configuration.
|
TagManager |
getTags()
A list of metadata items that you can associate with your observability configuration resource.
|
Object |
getTraceConfiguration()
The configuration of the tracing feature within this observability configuration.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setObservabilityConfigurationName(String value)
A name for the observability configuration.
|
void |
setTraceConfiguration(CfnObservabilityConfiguration.TraceConfigurationProperty value)
The configuration of the tracing feature within this observability configuration.
|
void |
setTraceConfiguration(IResolvable value)
The configuration of the tracing feature within this observability configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnObservabilityConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnObservabilityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnObservabilityConfiguration(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnObservabilityConfigurationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnObservabilityConfiguration(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public IResolvable getAttrLatest()
It's set to false otherwise.
@Stability(value=Stable) @NotNull public String getAttrObservabilityConfigurationArn()
@Stability(value=Stable) @NotNull public Number getAttrObservabilityConfigurationRevision()
It's unique among all the active configurations ( "Status": "ACTIVE" ) that share the same ObservabilityConfigurationName .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
A tag is a key-value pair.
@Stability(value=Stable) @Nullable public String getObservabilityConfigurationName()
When you use it for the first time in an AWS 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
DefaultConfigurationis 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.
If you don't specify a name, AWS CloudFormation generates a name for your observability configuration.
@Stability(value=Stable)
public void setObservabilityConfigurationName(@Nullable
String value)
When you use it for the first time in an AWS 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
DefaultConfigurationis 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.
If you don't specify a name, AWS CloudFormation generates a name for your observability configuration.
@Stability(value=Stable) @Nullable public Object getTraceConfiguration()
If you don't specify it, App Runner doesn't enable tracing.
@Stability(value=Stable)
public void setTraceConfiguration(@Nullable
CfnObservabilityConfiguration.TraceConfigurationProperty value)
If you don't specify it, App Runner doesn't enable tracing.
@Stability(value=Stable)
public void setTraceConfiguration(@Nullable
IResolvable value)
If you don't specify it, App Runner doesn't enable tracing.
Copyright © 2022. All rights reserved.