LogGroupLogsDelivery
- class aws_cdk.mixins_preview.aws_logs.LogGroupLogsDelivery(log_group, *, output_format=None, mandatory_fields=None, provided_fields=None)
Bases:
object(experimental) Delivers vended logs to a CloudWatch Log Group.
- 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 # log_group_ref: interfaces_logs.ILogGroupRef log_group_logs_delivery = logs.LogGroupLogsDelivery(log_group_ref, mandatory_fields=["mandatoryFields"], output_format="outputFormat", provided_fields=["providedFields"] )
(experimental) Creates a new log group delivery.
- Parameters:
log_group (
ILogGroupRef) –The CloudWatch Logs log group reference.
output_format (
Optional[str]) – (experimental) Format of the logs that are sent to the delivery destination specified.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 fieldsprovided_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 Log Group 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: