Class CfnObservabilityConfiguration
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::AppRunner::ObservabilityConfiguration.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnObservabilityConfiguration(Construct scope, String id) Create a newAWS::AppRunner::ObservabilityConfiguration.CfnObservabilityConfiguration(Construct scope, String id, CfnObservabilityConfigurationProps props) Create a newAWS::AppRunner::ObservabilityConfiguration.protectedCfnObservabilityConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnObservabilityConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
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.getTags()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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @Nullable CfnObservabilityConfigurationProps props) Create a newAWS::AppRunner::ObservabilityConfiguration.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnObservabilityConfiguration
@Stability(Stable) public CfnObservabilityConfiguration(@NotNull Construct scope, @NotNull String id) Create a newAWS::AppRunner::ObservabilityConfiguration.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
A list of metadata items that you can associate with your observability configuration resource.A tag is a key-value pair.
-
getObservabilityConfigurationName
A name for the observability configuration.When you use it for the first time in an AWS Region , App Runner creates revision number
1of 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.
-
setObservabilityConfigurationName
A name for the observability configuration.When you use it for the first time in an AWS Region , App Runner creates revision number
1of 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.
-
getTraceConfiguration
The configuration of the tracing feature within this observability configuration.If you don't specify it, App Runner doesn't enable tracing.
-
setTraceConfiguration
@Stability(Stable) public void setTraceConfiguration(@Nullable CfnObservabilityConfiguration.TraceConfigurationProperty value) The configuration of the tracing feature within this observability configuration.If you don't specify it, App Runner doesn't enable tracing.
-
setTraceConfiguration
The configuration of the tracing feature within this observability configuration.If you don't specify it, App Runner doesn't enable tracing.
-