XRayLogsDelivery

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

Bases: object

(experimental) Delivers vended logs to AWS X-Ray.

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

x_ray_logs_delivery = logs.XRayLogsDelivery(
    mandatory_fields=["mandatoryFields"],
    provided_fields=["providedFields"]
)

(experimental) Creates a new X-Ray delivery.

Parameters:
  • 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 X-Ray Destination to a source resource for the purposes of log delivery and creates a delivery source, a delivery destination, and a connection between them.

Parameters:
  • scope (IConstruct)

  • log_type (str)

  • source_resource_arn (str)

Stability:

experimental

Return type:

ILogsDeliveryConfig