Skip to content

CloudWatchLogsClient.put_delivery_source

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): Creates or updates a logical delivery source . A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, Firehose or X-Ray for sending traces. To configure logs delivery between a delivery destination and an Amazon Web Services service that is supported as a delivery source, you must do the...

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
    PutDeliverySourceOutput,
)

Signature

async def put_delivery_source(
    *,
    name: str,
    resource_arn: str,
    log_type: str,
    tags: dict[str, str] | None = None,
    delivery_source_configuration: dict[str, str] | None = None,
) -> PutDeliverySourceOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes A name for this delivery source. This name must be unique for all delivery sources in your account.
resource_arn Yes The ARN of the Amazon Web Services resource that is generating and sending logs. For example, arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 For the SECURITY_FINDING_LOGS logType, use a wildcard ARN for the hub resource. For Amazon Web Services Security Hub CSPM, use arn:aws:securityhub:us-east-1:111122223333:hub/* and for Amazon Web Services...
log_type Yes Defines the type of log that the source is sending. For Amazon Web Services Amplify, the valid values are ACCESS_LOGS and WAF_LOGS . For Application Load Balancer, the valid values are ALB_ACCESS_LOGS , ALB_CONNECTION_LOGS , and ALB_HEALTH_CHECK_LOGS . For Amazon Bedrock AgentCore Gateway, the valid values are APPLICATION_LOGS and TRACES . For Amazon Bedrock AgentCore Identity, the valid...
tags No An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources
delivery_source_configuration No A map of key-value pairs to configure the delivery source. Both keys and values must be between 1 and 255 characters in length. For example, {"samplingRate": "50"} .

Output

PutDeliverySourceOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
delivery_source DeliverySourceOutput | None Always present DeliverySourceOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

PutDeliverySourceOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudwatch_logs.exceptions:

ConflictError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model