Show / Hide Table of Contents

Class CrossAccountDestination

A new CloudWatch Logs Destination for use in cross-account scenarios

CrossAccountDestinations are used to subscribe a Kinesis stream in a different account to a CloudWatch Subscription.

Consumers will hardly ever need to use this class. Instead, directly subscribe a Kinesis stream using the integration class in the @aws-cdk/aws-logs-destinations package; if necessary, a CrossAccountDestination will be created automatically.

AWS::Logs::Destination

Synopsis

Constructors

constructor(scope, id, props)

Constructs a new instance of the CrossAccountDestination class

Properties

destinationArn

The ARN of this CrossAccountDestination object

destinationName

The name of this CrossAccountDestination object

policyDocument

Policy object of this CrossAccountDestination object

Methods

addToPolicy(statement)
bind(_scope, _sourceLogGroup)

Constructors

constructor(scope, id, props)

Constructs a new instance of the CrossAccountDestination class

Declaration
constructor(scope: cdk.Construct, id: string, props: CrossAccountDestinationProps);
Parameters
scope cdk.Construct
id string
props CrossAccountDestinationProps

Properties

destinationArn

The ARN of this CrossAccountDestination object

Declaration
readonly destinationArn: string;
Property Value

string

destinationName

The name of this CrossAccountDestination object

Declaration
readonly destinationName: string;
Property Value

string

policyDocument

Policy object of this CrossAccountDestination object

Declaration
readonly policyDocument: iam.PolicyDocument;
Property Value

iam.PolicyDocument

Methods

addToPolicy(statement)

Declaration
addToPolicy(statement: iam.PolicyStatement): void;
Parameters
statement iam.PolicyStatement
Returns

void

bind(_scope, _sourceLogGroup)

Declaration
bind(_scope: Construct, _sourceLogGroup: ILogGroup): LogSubscriptionDestinationConfig;
Parameters
_scope Construct
_sourceLogGroup ILogGroup
Returns

LogSubscriptionDestinationConfig

Back to top Generated by DocFX