AutoMerge is generally available

Generated at:

Manage AWS Integrations

Replace an AWS log-group instrumentation policy

put/api/aws-log-group-instrumentation-policies/{integrationId}

Restricted to organization administrators and full-permission API tokens. The integration determines the dataset. Changes apply on the next discovery. UI writes require dash0.com/version: zero confirms first creation, while a positive revision updates an active policy. UI writes cannot restore deleted policies. API tokens may omit the revision. The dash0.com/origin label is stored by the first write that sets it. While the policy exists, a different origin returns 409 with error type origin_conflict. After deletion, the next write may set a new origin.

Path parameters 1

integrationIdrequired
stringformat "uuid"
bash
Sample requestcurl --request PUT 'https://api.eu-west-1.aws.dash0.com/api/aws-log-group-instrumentation-policies/123e4567-e89b-42d3-a456-426614174000' \
  --header "Authorization: Bearer ${DASH0_AUTH_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "apiVersion": "dash0.com/v1alpha1",
  "kind": "Dash0AwsLogGroupInstrumentationPolicy",
  "metadata": {},
  "spec": {
    "rules": [
      {
        "conditions": [
          {
            "key": "dash0.cloud.tags.Environment",
            "operator": "is"
          }
        ]
      }
    ]
  }
}'

Request body required

object
AwsLogGroupPolicyApiVersionrequired
"dash0.com/v1alpha1"
"Dash0AwsLogGroupInstrumentationPolicy"

Responses

The stored policy.

object
AwsLogGroupPolicyApiVersionrequired
"dash0.com/v1alpha1"
"Dash0AwsLogGroupInstrumentationPolicy"