Skip to content

PutAwsServiceEventRequest

Source code in docs_src/capo_appmonetization/types/put_aws_service_event_request.py
class PutAwsServiceEventRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app."""
    client_token: NotRequired["capo_appmonetization.types.client_token.ClientToken"]
    """A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error."""
    user_id: "capo_appmonetization.types.user_id.UserId"
    """An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value."""
    service: "capo_appmonetization.types.service_name.ServiceName"
    """The AWS service name that emitted the usage event."""
    operation: "capo_appmonetization.types.operation_name.OperationName"
    """The AWS operation (API action) that produced the usage event."""
    quantity: NotRequired["capo_appmonetization.types.quantity.Quantity"]
    """A non-negative decimal quantity represented as a string (for example, "1500" or "12.5")."""
    timestamp: "capo_appmonetization.types.timestamp.Timestamp"
    """The time the event occurred, as an ISO-8601 date-time in UTC (for example, "2026-07-26T15:04:05Z")."""
    aws_region: NotRequired["capo_appmonetization.types.region.Region"]
    """The AWS Region in which the event occurred."""
    properties: NotRequired[
        "capo_appmonetization.types.event_properties.EventProperties"
    ]
    """The key/value properties carried on a usage event. Property values can be referenced by metric filters and grouping."""
    scope: "capo_appmonetization.types.request_scope.RequestScope"
    """The environment of the app that this operation applies to. Specify live to use the live app, or sandbox to use the app's isolated test environment."""

app_id instance-attribute

app_id: AppId

The ID of the app.

aws_region instance-attribute

aws_region: NotRequired[Region]

The AWS Region in which the event occurred.

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.

operation instance-attribute

operation: OperationName

The AWS operation (API action) that produced the usage event.

properties instance-attribute

properties: NotRequired[EventProperties]

The key/value properties carried on a usage event. Property values can be referenced by metric filters and grouping.

quantity instance-attribute

quantity: NotRequired[Quantity]

A non-negative decimal quantity represented as a string (for example, "1500" or "12.5").

scope instance-attribute

scope: RequestScope

The environment of the app that this operation applies to. Specify live to use the live app, or sandbox to use the app's isolated test environment.

service instance-attribute

service: ServiceName

The AWS service name that emitted the usage event.

timestamp instance-attribute

timestamp: Timestamp

The time the event occurred, as an ISO-8601 date-time in UTC (for example, "2026-07-26T15:04:05Z").

user_id instance-attribute

user_id: UserId

An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value.