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.
import aws_cdk.aws_iam as iam
import aws_cdk.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.

Return type

str

role

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

Default

No role assumed

Return type

Optional[IRole]