CloudWatchLogsClient.create_delivery
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Creates a delivery . A delivery is a connection between a logical delivery source and a logical delivery destination that you have already created. Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed as Supported [V2 Permissions] in the table at Enabling logging from Amazon Web Services services. A delivery...
Install and imports
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
CreateDeliveryOutput,
S3DeliveryConfiguration,
)
Signature
async def create_delivery(
*,
delivery_source_name: str,
delivery_destination_arn: str,
record_fields: Sequence[str] | None = None,
field_delimiter: str | None = None,
s3_delivery_configuration: S3DeliveryConfiguration | None = None,
tags: dict[str, str] | None = None,
) -> CreateDeliveryOutput: ...
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) |
|---|---|---|
delivery_source_name |
Yes | The name of the delivery source to use for this delivery. |
delivery_destination_arn |
Yes | The ARN of the delivery destination to use for this delivery. |
record_fields |
No | The list of record fields to be delivered to the destination, in order. If the delivery's log source has mandatory fields, they must be included in this list. |
field_delimiter |
No | The field delimiter to use between record fields when the final output format of a delivery is in Plain , W3C , or Raw format. |
s3_delivery_configuration |
No | This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket. |
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
CreateDeliveryOutput.
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 |
DeliveryOutput | None |
Always present | DeliveryOutput |
| 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.
Related types
CreateDeliveryOutput, S3DeliveryConfiguration
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:
AccessDeniedError, ConflictError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.