Skip to content

CloudWatchLogsClient.put_delivery_destination

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

Model summary (excerpt): Creates or updates a logical delivery destination . A delivery destination is an Amazon Web Services resource that represents an Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, and Firehose are supported as logs delivery destinations and X-Ray as the trace delivery destination. To configure logs delivery between a supported Amazon Web Services service and a...

Install and imports

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

Signature

async def put_delivery_destination(
    *,
    name: str,
    output_format: OutputFormat | None = None,
    delivery_destination_configuration: DeliveryDestinationConfiguration | None = None,
    delivery_destination_type: DeliveryDestinationType | None = None,
    role_arn: str | None = None,
    tags: dict[str, str] | None = None,
) -> PutDeliveryDestinationOutput: ...

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 destination. This name must be unique for all delivery destinations in your account.
output_format No The format for the logs that this delivery destination will receive.
delivery_destination_configuration No A structure that contains the ARN of the Amazon Web Services resource that will receive the logs. deliveryDestinationConfiguration is required for CloudWatch Logs, Amazon S3, Firehose log delivery destinations and not required for X-Ray trace delivery destinations. deliveryDestinationType is needed for X-Ray trace delivery destinations but not required for other logs delivery destinations.
delivery_destination_type No The type of delivery destination. This parameter specifies the target service where log data will be delivered. Valid values include: S3 - Amazon S3 for long-term storage and analytics CWL - CloudWatch Logs for centralized log management FH - Amazon Kinesis Data Firehose for real-time data streaming XRAY - Amazon Web Services X-Ray for distributed tracing and application monitoring The...
role_arn No The ARN of an IAM role in your account that CloudWatch Logs assumes to deliver to this delivery destination. The trust policy of the role must allow CloudWatch Logs to assume it. This parameter is supported only for X-Ray trace delivery destinations.
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

Output

PutDeliveryDestinationOutput.

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_destination DeliveryDestinationOutput | None Always present DeliveryDestinationOutput

| 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.

DeliveryDestinationConfiguration, DeliveryDestinationType, OutputFormat, PutDeliveryDestinationOutput

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