LogSubscriptionDestinationConfig

class aws_cdk.aws_logs.LogSubscriptionDestinationConfig(*, arn, role=None)

Bases: object

Properties returned by a Subscription destination.

Parameters:
  • arn (str) – The ARN of the subscription’s destination.

  • role (Optional[IRole]) – The role to assume to write log events to the destination. Default: No role assumed

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 import aws_iam as iam
from aws_cdk import aws_logs as logs

# role: iam.Role

log_subscription_destination_config = logs.LogSubscriptionDestinationConfig(
    arn="arn",

    # the properties below are optional
    role=role
)

Attributes

arn

The ARN of the subscription’s destination.

role

The role to assume to write log events to the destination.

Default:

No role assumed