CfnDestinationProps

class aws_cdk.aws_logs.CfnDestinationProps(*, destination_name, role_arn, target_arn, destination_policy=None)

Bases: object

Properties for defining a CfnDestination.

Parameters:
  • destination_name (str) – The name of the destination.

  • role_arn (str) – The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.

  • target_arn (str) – The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).

  • destination_policy (Optional[str]) – An IAM policy document that governs which AWS accounts can create subscription filters against this destination.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html

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_logs as logs

cfn_destination_props = logs.CfnDestinationProps(
    destination_name="destinationName",
    role_arn="roleArn",
    target_arn="targetArn",

    # the properties below are optional
    destination_policy="destinationPolicy"
)

Attributes

destination_name

The name of the destination.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationname

destination_policy

An IAM policy document that governs which AWS accounts can create subscription filters against this destination.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationpolicy

role_arn

The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-rolearn

target_arn

The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-targetarn