Class CfnObservabilityConfiguration
- All Implemented Interfaces:
IInspectable,ITaggable,IObservabilityConfigurationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnObservabilityConfiguration.static interfaceDescribes the configuration of the tracing feature within an AWS App Runner observability configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.apprunner.IObservabilityConfigurationRef
IObservabilityConfigurationRef.Jsii$Default, IObservabilityConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnObservabilityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnObservabilityConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnObservabilityConfiguration(software.constructs.Construct scope, String id) CfnObservabilityConfiguration(software.constructs.Construct scope, String id, CfnObservabilityConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionIt's set totruefor the configuration with the highestRevisionamong all configurations that share the sameObservabilityConfigurationName.The Amazon Resource Name (ARN) of this observability configuration.The revision of this observability configuration.A name for the observability configuration.A reference to a ObservabilityConfiguration resource.getTags()Tag Manager which manages the tags for this resource.A list of metadata items that you can associate with your observability configuration resource.The configuration of the tracing feature within this observability configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidA name for the observability configuration.voidsetTagsRaw(List<CfnTag> value) A list of metadata items that you can associate with your observability configuration resource.voidsetTraceConfiguration(IResolvable value) The configuration of the tracing feature within this observability configuration.voidThe configuration of the tracing feature within this observability configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnObservabilityConfiguration
protected CfnObservabilityConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnObservabilityConfiguration
protected CfnObservabilityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnObservabilityConfiguration
@Stability(Stable) public CfnObservabilityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnObservabilityConfigurationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnObservabilityConfiguration
@Stability(Stable) public CfnObservabilityConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrLatest
It's set totruefor the configuration with the highestRevisionamong all configurations that share the sameObservabilityConfigurationName.It's set to
falseotherwise. -
getAttrObservabilityConfigurationArn
The Amazon Resource Name (ARN) of this observability configuration. -
getAttrObservabilityConfigurationRevision
The revision of this observability configuration.It's unique among all the active configurations (
"Status": "ACTIVE") that share the sameObservabilityConfigurationName. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getObservabilityConfigurationRef
@Stability(Stable) @NotNull public ObservabilityConfigurationReference getObservabilityConfigurationRef()A reference to a ObservabilityConfiguration resource.- Specified by:
getObservabilityConfigurationRefin interfaceIObservabilityConfigurationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getObservabilityConfigurationName
A name for the observability configuration. -
setObservabilityConfigurationName
A name for the observability configuration. -
getTagsRaw
A list of metadata items that you can associate with your observability configuration resource. -
setTagsRaw
A list of metadata items that you can associate with your observability configuration resource. -
getTraceConfiguration
The configuration of the tracing feature within this observability configuration.Returns union: either
IResolvableorCfnObservabilityConfiguration.TraceConfigurationProperty -
setTraceConfiguration
The configuration of the tracing feature within this observability configuration. -
setTraceConfiguration
@Stability(Stable) public void setTraceConfiguration(@Nullable CfnObservabilityConfiguration.TraceConfigurationProperty value) The configuration of the tracing feature within this observability configuration.
-