CrossAccountDestinationProps

class aws_cdk.aws_logs.CrossAccountDestinationProps(*, destination_name=None, role, target_arn)

Bases: object

Properties for a CrossAccountDestination.

Parameters
  • destination_name (Optional[str]) – The name of the log destination. Default: Automatically generated

  • role (IRole) – The role to assume that grants permissions to write to ‘target’. The role must be assumable by ‘logs.{REGION}.amazonaws.com’.

  • target_arn (str) – The log destination target’s ARN.

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 is of type Role

cross_account_destination_props = logs.CrossAccountDestinationProps(
    role=role,
    target_arn="targetArn",

    # the properties below are optional
    destination_name="destinationName"
)

Attributes

destination_name

The name of the log destination.

Default

Automatically generated

Return type

Optional[str]

role

The role to assume that grants permissions to write to ‘target’.

The role must be assumable by ‘logs.{REGION}.amazonaws.com’.

Return type

IRole

target_arn

The log destination target’s ARN.

Return type

str