Skip to content

AccessLogSubscription

Source: src/AWS/VpcLattice/AccessLogSubscription.ts

An Amazon VPC Lattice access log subscription — delivers per-request access logs for a service network or lattice service to CloudWatch Logs, Kinesis Data Firehose, or S3.

Log a Service Network to CloudWatch

const logs = yield* AccessLogSubscription("NetworkLogs", {
resourceIdentifier: network.serviceNetworkId,
destinationArn: logGroup.logGroupArn,
});

Log a Service to S3

const logs = yield* AccessLogSubscription("ServiceLogs", {
resourceIdentifier: service.serviceId,
destinationArn: bucket.bucketArn,
});