Skip to main content

instrumentation_configurations

Creates, updates, deletes, gets or lists an instrumentation_configurations resource.

Overview

Nameinstrumentation_configurations
TypeResource
Idaws.application_signals.instrumentation_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringARN for the instrumentation configuration (pattern: <code>arn:[^:]+:application-signals:[^:]+:[0-9]{12}:instrumentationConfig/.+/[0-9a-f]{16}</code>)
attribute_filtersarrayAn array of attribute filter groups used to target specific instances. Each filter group must match all of its keys (AND), and multiple groups are OR-matched to decide whether an instance applies the instrumentation. Filters are evaluated client-side by the SDK.
capture_configurationobjectA union that defines what data to capture when the instrumentation point is hit. Specify CodeCapture for code-level capture settings.
created_atstring (date-time)The timestamp when this instrumentation configuration was created.
descriptionstringAn optional short description of the instrumentation configuration.
environmentstringThe environment where the service is running.
expires_atstring (date-time)The timestamp when this configuration expires.
instrumentation_typestringType of instrumentation configuration (BREAKPOINT, PROBE)
locationobjectA union that identifies the location to instrument. Specify a CodeLocation for code-level instrumentation.
location_hashstringThe stable hash derived from the location that uniquely identifies this instrumentation point within the service and environment.
servicestringThe service that this instrumentation configuration targets.
signal_typestringThe telemetry signal type for instrumentation. SNAPSHOT - Captures a snapshot of the instrumentation point. (SNAPSHOT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_instrumentation_configurationselectregionReturns the details of a single instrumentation configuration identified by service, environment, signal type, and location. Use this to audit or display configuration details.
list_instrumentation_configurationsselectregionReturns all active instrumentation configurations for a service and environment. SDKs use this operation to sync configurations and apply client-side filters locally. Include the previous SyncedAt value to perform incremental syncs. When no changes are detected, the response sets Changed to false and omits configuration details.
create_instrumentation_configurationinsertregion, InstrumentationType, SignalType, CaptureConfigurationCreates a dynamic instrumentation configuration for a specific code or endpoint location within a service and environment. Configurations are immutable after creation. For BREAKPOINT type configurations, they expire after 24 hours unless a shorter expiration is provided. For PROBE type configurations, they persist until explicitly deleted; an expiration cannot be set for PROBE configurations. If a configuration already exists for the same service, environment, signal type, and location, this operation returns a conflict instead of overwriting it. Use attribute filters and capture settings to control where the instrumentation runs and which data is collected.
delete_instrumentation_configurationdeleteregionDeletes the specified instrumentation configuration. SDKs remove the instrumentation during their next sync after the configuration is deleted or expires.
batch_delete_instrumentation_configurationsexecregion, DeletionTargetDeletes multiple instrumentation configurations in a single request. Supports two mutually exclusive selection methods: By scope: Delete all configurations matching a Service + Environment + InstrumentationType By ARN list: Delete specific configurations by providing a list of resource ARNs

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the details of a single instrumentation configuration identified by service, environment, signal type, and location. Use this to audit or display configuration details.

SELECT
arn,
attribute_filters,
capture_configuration,
created_at,
description,
environment,
expires_at,
instrumentation_type,
location,
location_hash,
service,
signal_type
FROM aws.application_signals.instrumentation_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a dynamic instrumentation configuration for a specific code or endpoint location within a service and environment. Configurations are immutable after creation. For BREAKPOINT type configurations, they expire after 24 hours unless a shorter expiration is provided. For PROBE type configurations, they persist until explicitly deleted; an expiration cannot be set for PROBE configurations. If a configuration already exists for the same service, environment, signal type, and location, this operation returns a conflict instead of overwriting it. Use attribute filters and capture settings to control where the instrumentation runs and which data is collected.

INSERT INTO aws.application_signals.instrumentation_configurations (
InstrumentationType,
Service,
Environment,
SignalType,
Location,
Description,
ExpiresAt,
AttributeFilters,
CaptureConfiguration,
Tags,
region
)
SELECT
'{{ InstrumentationType }}' /* required */,
'{{ Service }}',
'{{ Environment }}',
'{{ SignalType }}' /* required */,
'{{ Location }}',
'{{ Description }}',
'{{ ExpiresAt }}',
'{{ AttributeFilters }}',
'{{ CaptureConfiguration }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
attribute_filters,
capture_configuration,
created_at,
description,
environment,
expires_at,
instrumentation_type,
location,
location_hash,
service,
signal_type
;

DELETE examples

Deletes the specified instrumentation configuration. SDKs remove the instrumentation during their next sync after the configuration is deleted or expires.

DELETE FROM aws.application_signals.instrumentation_configurations
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Deletes multiple instrumentation configurations in a single request. Supports two mutually exclusive selection methods: By scope: Delete all configurations matching a Service + Environment + InstrumentationType By ARN list: Delete specific configurations by providing a list of resource ARNs

EXEC aws.application_signals.instrumentation_configurations.batch_delete_instrumentation_configurations
@region='{{ region }}' --required
@@json=
'{
"DeletionTarget": "{{ DeletionTarget }}"
}'
;