DestinationLogsDelivery

class aws_cdk.mixins_preview.aws_logs.DestinationLogsDelivery(destination, *, mandatory_fields=None, provided_fields=None)

Bases: object

(experimental) Delivers vended logs to a CfnDeliveryDestination specified by an arn.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import aws_logs as logs
from aws_cdk.interfaces import aws_logs as interfaces_logs

# delivery_destination_ref: interfaces_logs.IDeliveryDestinationRef

destination_logs_delivery = logs.DestinationLogsDelivery(delivery_destination_ref,
    mandatory_fields=["mandatoryFields"],
    provided_fields=["providedFields"]
)
Parameters:
  • destination (IDeliveryDestinationRef)

  • mandatory_fields (Optional[Sequence[str]]) – (experimental) Any recordFields that a mandatory to be included in a log delivery of a certain log type. Default: - log type has no mandatory fields

  • provided_fields (Optional[Sequence[str]]) – (experimental) RecordFields the user has defined to be used in log delivery.

Stability:

experimental

Methods

bind(scope, log_type, source_resource_arn)

(experimental) Binds Delivery Destination to a source resource for the purposes of log delivery and creates a delivery source and a connection between the source and the destination.

Parameters:
  • scope (IConstruct)

  • log_type (str)

  • source_resource_arn (str)

Stability:

experimental

Return type:

ILogsDeliveryConfig