Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-logs

Package Overview
Dependencies
Maintainers
4
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-logs - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0

8

lib/cross-account-destination.d.ts
import iam = require('@aws-cdk/aws-iam');
import cdk = require('@aws-cdk/cdk');
import { LogGroupRef } from './log-group';
import { ILogGroup } from './log-group';
import { ILogSubscriptionDestination, LogSubscriptionDestination } from './subscription-filter';

@@ -50,5 +50,5 @@ export interface CrossAccountDestinationProps {

private readonly resource;
constructor(parent: cdk.Construct, id: string, props: CrossAccountDestinationProps);
constructor(scope: cdk.Construct, id: string, props: CrossAccountDestinationProps);
addToPolicy(statement: iam.PolicyStatement): void;
logSubscriptionDestination(_sourceLogGroup: LogGroupRef): LogSubscriptionDestination;
logSubscriptionDestination(_sourceLogGroup: ILogGroup): LogSubscriptionDestination;
/**

@@ -61,3 +61,3 @@ * Generate a unique Destination name in case the user didn't supply one

*/
private stringifiedPolicyDocument;
private lazyStringifiedPolicyDocument;
}

@@ -17,4 +17,4 @@ "use strict";

class CrossAccountDestination extends cdk.Construct {
constructor(parent, id, props) {
super(parent, id);
constructor(scope, id, props) {
super(scope, id);
/**

@@ -25,7 +25,7 @@ * Policy object of this CrossAccountDestination object

// In the underlying model, the name is not optional, but we make it so anyway.
const destinationName = props.destinationName || new cdk.Token(() => this.generateUniqueName());
const destinationName = props.destinationName || new cdk.Token(() => this.generateUniqueName()).toString();
this.resource = new logs_generated_1.CfnDestination(this, 'Resource', {
destinationName,
// Must be stringified policy
destinationPolicy: new cdk.Token(() => this.stringifiedPolicyDocument()),
destinationPolicy: this.lazyStringifiedPolicyDocument(),
roleArn: props.role.roleArn,

@@ -54,7 +54,7 @@ targetArn: props.targetArn

*/
stringifiedPolicyDocument() {
return this.policyDocument.isEmpty ? '' : cdk.CloudFormationJSON.stringify(cdk.resolve(this.policyDocument));
lazyStringifiedPolicyDocument() {
return new cdk.Token(() => this.policyDocument.isEmpty ? '' : this.node.stringifyJson(this.policyDocument)).toString();
}
}
exports.CrossAccountDestination = CrossAccountDestination;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3Jvc3MtYWNjb3VudC1kZXN0aW5hdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNyb3NzLWFjY291bnQtZGVzdGluYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx3Q0FBeUM7QUFDekMsb0NBQXFDO0FBRXJDLHFEQUFrRDtBQXdCbEQ7Ozs7Ozs7OztHQVNHO0FBQ0gsTUFBYSx1QkFBd0IsU0FBUSxHQUFHLENBQUMsU0FBUztJQXFCeEQsWUFBWSxNQUFxQixFQUFFLEVBQVUsRUFBRSxLQUFtQztRQUNoRixLQUFLLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBckJwQjs7V0FFRztRQUNhLG1CQUFjLEdBQXVCLElBQUksR0FBRyxDQUFDLGNBQWMsRUFBRSxDQUFDO1FBb0I1RSwrRUFBK0U7UUFDL0UsTUFBTSxlQUFlLEdBQUcsS0FBSyxDQUFDLGVBQWUsSUFBSSxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLENBQUMsSUFBSSxDQUFDLGtCQUFrQixFQUFFLENBQUMsQ0FBQztRQUVoRyxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksK0JBQWMsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ25ELGVBQWU7WUFDZiw2QkFBNkI7WUFDN0IsaUJBQWlCLEVBQUUsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyx5QkFBeUIsRUFBRSxDQUFDO1lBQ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NvdXJjZUxvZ0dyb3VwOiBJTG9nR3JvdXApOiBMb2dTdWJzY3JpcHRpb25EZXN0aW5hdGlvbiB7XG4gICAgcmV0dXJuIHsgYXJuOiB0aGlzLmRlc3RpbmF0aW9uQXJuIH07XG4gIH1cblxuICAvKipcbiAgICogR2VuZXJhdGUgYSB1bmlxdWUgRGVzdGluYXRpb24gbmFtZSBpbiBjYXNlIHRoZSB1c2VyIGRpZG4ndCBzdXBwbHkgb25lXG4gICAqL1xuICBwcml2YXRlIGdlbmVyYXRlVW5pcXVlTmFtZSgpOiBzdHJpbmcge1xuICAgIC8vIENvbWJpbmF0aW9uIG9mIHN0YWNrIG5hbWUgYW5kIExvZ2ljYWxJRCwgd2hpY2ggYXJlIGd1YXJhbnRlZWQgdG8gYmUgdW5pcXVlLlxuICAgIGNvbnN0IHN0YWNrID0gY2RrLlN0YWNrLmZpbmQodGhpcyk7XG4gICAgcmV0dXJuIHN0YWNrLm5hbWUgKyAnLScgKyB0aGlzLnJlc291cmNlLmxvZ2ljYWxJZDtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZXR1cm4gYSBzdHJpbmdpZmllZCBKU09OIHZlcnNpb24gb2YgdGhlIFBvbGljeURvY3VtZW50XG4gICAqL1xuICBwcml2YXRlIGxhenlTdHJpbmdpZmllZFBvbGljeURvY3VtZW50KCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIG5ldyBjZGsuVG9rZW4oKCkgPT4gdGhpcy5wb2xpY3lEb2N1bWVudC5pc0VtcHR5ID8gJycgOiB0aGlzLm5vZGUuc3RyaW5naWZ5SnNvbih0aGlzLnBvbGljeURvY3VtZW50KSkudG9TdHJpbmcoKTtcbiAgfVxufVxuIl19

@@ -8,6 +8,67 @@ import cloudwatch = require('@aws-cdk/aws-cloudwatch');

import { ILogSubscriptionDestination, SubscriptionFilter } from './subscription-filter';
export interface ILogGroup extends cdk.IConstruct {
/**
* The ARN of this log group
*/
readonly logGroupArn: string;
/**
* The name of this log group
*/
readonly logGroupName: string;
/**
* Create a new Log Stream for this Log Group
*
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the LogStream
*/
newStream(scope: cdk.Construct, id: string, props?: NewLogStreamProps): LogStream;
/**
* Create a new Subscription Filter on this Log Group
*
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the SubscriptionFilter
*/
newSubscriptionFilter(scope: cdk.Construct, id: string, props: NewSubscriptionFilterProps): SubscriptionFilter;
/**
* Create a new Metric Filter on this Log Group
*
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the MetricFilter
*/
newMetricFilter(scope: cdk.Construct, id: string, props: NewMetricFilterProps): MetricFilter;
/**
* Export this LogGroup
*/
export(): LogGroupImportProps;
/**
* Extract a metric from structured log events in the LogGroup
*
* Creates a MetricFilter on this LogGroup that will extract the value
* of the indicated JSON field in all records where it occurs.
*
* The metric will be available in CloudWatch Metrics under the
* indicated namespace and name.
*
* @param jsonField JSON field to extract (example: '$.myfield')
* @param metricNamespace Namespace to emit the metric under
* @param metricName Name to emit the metric under
* @returns A Metric object representing the extracted metric
*/
extractMetric(jsonField: string, metricNamespace: string, metricName: string): cloudwatch.Metric;
/**
* Give permissions to write to create and write to streams in this log group
*/
grantWrite(principal?: iam.IPrincipal): void;
/**
* Give the indicated permissions on this log group and all streams
*/
grant(principal?: iam.IPrincipal, ...actions: string[]): void;
}
/**
* Properties for importing a LogGroup
*/
export interface LogGroupRefProps {
export interface LogGroupImportProps {
logGroupArn: string;

@@ -18,8 +79,4 @@ }

*/
export declare abstract class LogGroupRef extends cdk.Construct {
export declare abstract class LogGroupBase extends cdk.Construct implements ILogGroup {
/**
* Import an existing LogGroup
*/
static import(parent: cdk.Construct, id: string, props: LogGroupRefProps): LogGroupRef;
/**
* The ARN of this log group

@@ -35,28 +92,25 @@ */

*
* @param parent Parent construct
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the LogStream
*/
newStream(parent: cdk.Construct, id: string, props?: NewLogStreamProps): LogStream;
newStream(scope: cdk.Construct, id: string, props?: NewLogStreamProps): LogStream;
/**
* Create a new Subscription Filter on this Log Group
*
* @param parent Parent construct
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the SubscriptionFilter
*/
newSubscriptionFilter(parent: cdk.Construct, id: string, props: NewSubscriptionFilterProps): SubscriptionFilter;
newSubscriptionFilter(scope: cdk.Construct, id: string, props: NewSubscriptionFilterProps): SubscriptionFilter;
/**
* Create a new Metric Filter on this Log Group
*
* @param parent Parent construct
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the MetricFilter
*/
newMetricFilter(parent: cdk.Construct, id: string, props: NewMetricFilterProps): MetricFilter;
newMetricFilter(scope: cdk.Construct, id: string, props: NewMetricFilterProps): MetricFilter;
abstract export(): LogGroupImportProps;
/**
* Export this LogGroup
*/
export(): LogGroupRefProps;
/**
* Extract a metric from structured log events in the LogGroup

@@ -118,4 +172,8 @@ *

*/
export declare class LogGroup extends LogGroupRef {
export declare class LogGroup extends LogGroupBase {
/**
* Import an existing LogGroup
*/
static import(scope: cdk.Construct, id: string, props: LogGroupImportProps): ILogGroup;
/**
* The ARN of this log group

@@ -128,3 +186,7 @@ */

readonly logGroupName: string;
constructor(parent: cdk.Construct, id: string, props?: LogGroupProps);
constructor(scope: cdk.Construct, id: string, props?: LogGroupProps);
/**
* Export this LogGroup
*/
export(): LogGroupImportProps;
}

@@ -131,0 +193,0 @@ /**

@@ -14,18 +14,12 @@ "use strict";

*/
class LogGroupRef extends cdk.Construct {
class LogGroupBase extends cdk.Construct {
/**
* Import an existing LogGroup
*/
static import(parent, id, props) {
return new ImportedLogGroup(parent, id, props);
}
/**
* Create a new Log Stream for this Log Group
*
* @param parent Parent construct
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the LogStream
*/
newStream(parent, id, props = {}) {
return new log_stream_1.LogStream(parent, id, Object.assign({ logGroup: this }, props));
newStream(scope, id, props = {}) {
return new log_stream_1.LogStream(scope, id, Object.assign({ logGroup: this }, props));
}

@@ -35,8 +29,8 @@ /**

*
* @param parent Parent construct
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the SubscriptionFilter
*/
newSubscriptionFilter(parent, id, props) {
return new subscription_filter_1.SubscriptionFilter(parent, id, Object.assign({ logGroup: this }, props));
newSubscriptionFilter(scope, id, props) {
return new subscription_filter_1.SubscriptionFilter(scope, id, Object.assign({ logGroup: this }, props));
}

@@ -46,18 +40,10 @@ /**

*
* @param parent Parent construct
* @param scope Parent construct
* @param id Unique identifier for the construct in its parent
* @param props Properties for creating the MetricFilter
*/
newMetricFilter(parent, id, props) {
return new metric_filter_1.MetricFilter(parent, id, Object.assign({ logGroup: this }, props));
newMetricFilter(scope, id, props) {
return new metric_filter_1.MetricFilter(scope, id, Object.assign({ logGroup: this }, props));
}
/**
* Export this LogGroup
*/
export() {
return {
logGroupArn: new cdk.Output(this, 'LogGroupArn', { value: this.logGroupArn }).makeImportValue().toString()
};
}
/**
* Extract a metric from structured log events in the LogGroup

@@ -106,9 +92,15 @@ *

}
exports.LogGroupRef = LogGroupRef;
exports.LogGroupBase = LogGroupBase;
/**
* Define a CloudWatch Log Group
*/
class LogGroup extends LogGroupRef {
constructor(parent, id, props = {}) {
super(parent, id);
class LogGroup extends LogGroupBase {
/**
* Import an existing LogGroup
*/
static import(scope, id, props) {
return new ImportedLogGroup(scope, id, props);
}
constructor(scope, id, props = {}) {
super(scope, id);
let retentionInDays = props.retentionDays;

@@ -134,2 +126,10 @@ if (retentionInDays === undefined) {

}
/**
* Export this LogGroup
*/
export() {
return {
logGroupArn: new cdk.Output(this, 'LogGroupArn', { value: this.logGroupArn }).makeImportValue().toString()
};
}
}

@@ -140,9 +140,16 @@ exports.LogGroup = LogGroup;

*/
class ImportedLogGroup extends LogGroupRef {
constructor(parent, id, props) {
super(parent, id);
class ImportedLogGroup extends LogGroupBase {
constructor(scope, id, props) {
super(scope, id);
this.props = props;
this.logGroupArn = props.logGroupArn;
this.logGroupName = cdk.ArnUtils.resourceNameComponent(props.logGroupArn, ':');
this.logGroupName = cdk.Stack.find(this).parseArn(props.logGroupArn, ':').resourceName;
}
/**
* Export this LogGroup
*/
export() {
return this.props;
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nLWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibG9nLWdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsc0RBQXVEO0FBQ3ZELHdDQUF5QztBQUN6QyxvQ0FBcUM7QUFDckMsNkNBQXlDO0FBQ3pDLHFEQUErQztBQUMvQyxtREFBK0M7QUFDL0MsdUNBQTBEO0FBQzFELCtEQUF3RjtBQVN4Rjs7R0FFRztBQUNILE1BQXNCLFdBQVksU0FBUSxHQUFHLENBQUMsU0FBUztJQUNyRDs7T0FFRztJQUNJLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBcUIsRUFBRSxFQUFVLEVBQUUsS0FBdUI7UUFDN0UsT0FBTyxJQUFJLGdCQUFnQixDQUFDLE1BQU0sRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDakQsQ0FBQztJQVlEOzs7Ozs7T0FNRztJQUNJLFNBQVMsQ0FBQyxNQUFxQixFQUFFLEVBQVUsRUFBRSxRQUEyQixFQUFFO1FBQy9FLE9BQU8sSUFBSSxzQkFBUyxDQUFDLE1BQU0sRUFBRSxFQUFFLGtCQUM3QixRQUFRLEVBQUUsSUFBSSxJQUNYLEtBQUssRUFDUixDQUFDO0lBQ0wsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLHFCQUFxQixDQUFDLE1BQXFCLEVBQUUsRUFBVSxFQUFFLEtBQWlDO1FBQy9GLE9BQU8sSUFBSSx3Q0FBa0IsQ0FBQyxNQUFNLEVBQUUsRUFBR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3IgdGhlIG1ldHJpYy5cbiAgICpcbiAgICogQ2FuIGVpdGhlciBiZSBhIGxpdGVyYWwgbnVtYmVyICh0eXBpY2FsbHkgXCIxXCIpLCBvciB0aGUgbmFtZSBvZiBhIGZpZWxkIGluIHRoZSBzdHJ1Y3R1cmVcbiAgICogdG8gdGFrZSB0aGUgdmFsdWUgZnJvbSB0aGUgbWF0Y2hlZCBldmVudC4gSWYgeW91IGFyZSB1c2luZyBhIGZpZWxkIHZhbHVlLCB0aGUgZmllbGRcbiAgICogdmFsdWUgbXVzdCBoYXZlIGJlZW4gbWF0Y2hlZCB1c2luZyB0aGUgcGF0dGVybi5cbiAgICpcbiAgICogSWYgeW91IHdhbnQgdG8gc3BlY2lmeSBhIGZpZWxkIGZyb20gYSBtYXRjaGVkIEpTT04gc3RydWN0dXJlLCB1c2UgJyQuZmllbGROYW1lJyxcbiAgICogYW5kIG1ha2Ugc3VyZSB0aGUgZmllbGQgaXMgaW4gdGhlIHBhdHRlcm4gKGlmIG9ubHkgYXMgJyQuZmllbGROYW1lID0gKicpLlxuICAgKlxuICAgKiBJZiB5b3Ugd2FudCB0byBzcGVjaWZ5IGEgZmllbGQgZnJvbSBhIG1hdGNoZWQgc3BhY2UtZGVsaW1pdGVkIHN0cnVjdHVyZSxcbiAgICogdXNlICckZmllbGROYW1lJy5cbiAgICpcbiAgICogQGRlZmF1bHQgXCIxXCJcbiAgICovXG4gIG1ldHJpY1ZhbHVlPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgdmFsdWUgdG8gZW1pdCBpZiB0aGUgcGF0dGVybiBkb2VzIG5vdCBtYXRjaCBhIHBhcnRpY3VsYXIgZXZlbnQuXG4gICAqXG4gICAqIEBkZWZhdWx0IE5vIG1ldHJpYyBlbWl0dGVkLlxuICAgKi9cbiAgZGVmYXVsdFZhbHVlPzogbnVtYmVyO1xufVxuIl19
import cdk = require('@aws-cdk/cdk');
import { LogGroupRef } from './log-group';
/**
* Properties for importing a LogStream
*/
export interface LogStreamRefProps {
logStreamName: string;
}
/**
* A Log Stream in a Log Group
*/
export declare abstract class LogStreamRef extends cdk.Construct {
import { ILogGroup } from './log-group';
export interface ILogStream extends cdk.IConstruct {
/**
* Import an existing LogGroup
*/
static import(parent: cdk.Construct, id: string, props: LogStreamRefProps): LogStreamRef;
/**
* The name of this log stream
*/
abstract readonly logStreamName: string;
readonly logStreamName: string;
/**
* Export this LogStream
*/
export(): LogStreamRefProps;
export(): LogStreamImportProps;
}
/**
* Properties for importing a LogStream
*/
export interface LogStreamImportProps {
logStreamName: string;
}
/**
* Properties for a LogStream

@@ -33,3 +26,3 @@ */

*/
logGroup: LogGroupRef;
logGroup: ILogGroup;
/**

@@ -59,8 +52,16 @@ * The name of the log stream to create.

*/
export declare class LogStream extends LogStreamRef {
export declare class LogStream extends cdk.Construct implements ILogStream {
/**
* Import an existing LogGroup
*/
static import(scope: cdk.Construct, id: string, props: LogStreamImportProps): ILogStream;
/**
* The name of this log stream
*/
readonly logStreamName: string;
constructor(parent: cdk.Construct, id: string, props: LogStreamProps);
constructor(scope: cdk.Construct, id: string, props: LogStreamProps);
/**
* Export this LogStream
*/
export(): LogStreamImportProps;
}

@@ -6,27 +6,13 @@ "use strict";

/**
* A Log Stream in a Log Group
* Define a Log Stream in a Log Group
*/
class LogStreamRef extends cdk.Construct {
class LogStream extends cdk.Construct {
/**
* Import an existing LogGroup
*/
static import(parent, id, props) {
return new ImportedLogStream(parent, id, props);
static import(scope, id, props) {
return new ImportedLogStream(scope, id, props);
}
/**
* Export this LogStream
*/
export() {
return {
logStreamName: new cdk.Output(this, 'LogStreamName', { value: this.logStreamName }).makeImportValue().toString()
};
}
}
exports.LogStreamRef = LogStreamRef;
/**
* Define a Log Stream in a Log Group
*/
class LogStream extends LogStreamRef {
constructor(parent, id, props) {
super(parent, id);
constructor(scope, id, props) {
super(scope, id);
const resource = new logs_generated_1.CfnLogStream(this, 'Resource', {

@@ -41,2 +27,10 @@ logGroupName: props.logGroup.logGroupName,

}
/**
* Export this LogStream
*/
export() {
return {
logStreamName: new cdk.Output(this, 'LogStreamName', { value: this.logStreamName }).makeImportValue().toString()
};
}
}

@@ -47,8 +41,12 @@ exports.LogStream = LogStream;

*/
class ImportedLogStream extends LogStreamRef {
constructor(parent, id, props) {
super(parent, id);
class ImportedLogStream extends cdk.Construct {
constructor(scope, id, props) {
super(scope, id);
this.props = props;
this.logStreamName = props.logStreamName;
}
export() {
return this.props;
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nLXN0cmVhbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxvZy1zdHJlYW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBcUM7QUFFckMscURBQWdEO0FBU2hEOztHQUVHO0FBQ0gsTUFBc0IsWUFBYSxTQUFRLEdBQUcsQ0FBQyxTQUFTO0lBQ3REOztPQUVHO0lBQ0ksTUFBTSxDQUFDLE1BQU0sQ0FBQyxNQUFxQixFQUFFLEVBQVUsRUFBRSxLQUF3QjtRQUM5RSxPQUFPLElBQUksaUJBQWlCLENBQUMsTUFBTSxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUNsRCxDQUFDO0lBT0Q7O09BRUc7SUFDSSxNQUFNO1FBQ1gsT0FBTztZQUNMLGFBQWEsRUFBRSxJQUFJLEdBQUcsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLGVBQWUsRUFBRSxFQUFFLEtBQUssRUFBRSxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUMsQ0FBQyxlQUFlLEVBQUUsQ0FBQyxRQUFRLEVBQUU7U0FDakgsQ0FBQztJQUNKLENBQUM7Q0FDRjtBQXJCRCxvQ0FxQkM7QUFrQ0Q7O0dBRUc7QUFDSCxNQUFhLFNBQVUsU0FBUSxZQUFZO0lBTXpDLFlBQVksTUFBcUIsRUFBRSxFQUFVLEV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b3J0KCkge1xuICAgIHJldHVybiB0aGlzLnByb3BzO1xuICB9XG59XG4iXX0=

@@ -10,3 +10,3 @@ import cdk = require('@aws-cdk/cdk');

*/
destinationName: string | cdk.Token;
destinationName: string;
/**

@@ -16,3 +16,3 @@ * ``AWS::Logs::Destination.DestinationPolicy``

*/
destinationPolicy: string | cdk.Token;
destinationPolicy: string;
/**

@@ -22,3 +22,3 @@ * ``AWS::Logs::Destination.RoleArn``

*/
roleArn: string | cdk.Token;
roleArn: string;
/**

@@ -28,3 +28,3 @@ * ``AWS::Logs::Destination.TargetArn``

*/
targetArn: string | cdk.Token;
targetArn: string;
}

@@ -47,7 +47,7 @@ /**

*
* @param parent the ``cdk.Construct`` this ``CfnDestination`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``CfnDestination``
* @param scope scope in which this resource is defined
* @param id scoped id of the resource
* @param props resource properties
*/
constructor(parent: cdk.Construct, name: string, properties: CfnDestinationProps);
constructor(scope: cdk.Construct, id: string, props: CfnDestinationProps);
readonly propertyOverrides: CfnDestinationProps;

@@ -58,56 +58,2 @@ protected renderProperties(properties: any): {

}
export declare namespace cloudformation {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html
*/
interface DestinationResourceProps {
/**
* ``AWS::Logs::Destination.DestinationName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationname
*/
destinationName: string | cdk.Token;
/**
* ``AWS::Logs::Destination.DestinationPolicy``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationpolicy
*/
destinationPolicy: string | cdk.Token;
/**
* ``AWS::Logs::Destination.RoleArn``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-rolearn
*/
roleArn: string | cdk.Token;
/**
* ``AWS::Logs::Destination.TargetArn``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-targetarn
*/
targetArn: string | cdk.Token;
}
/**
* @deprecated "cloudformation.DestinationResource" will be deprecated in a future release in favor of "CfnDestination" (see https://github.com/awslabs/aws-cdk/issues/878)
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html
*/
class DestinationResource extends cdk.Resource {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly resourceTypeName = "AWS::Logs::Destination";
/**
* @cloudformation_attribute Arn
*/
readonly destinationArn: string;
readonly destinationName: string;
/**
* Creates a new ``AWS::Logs::Destination``.
*
* @param parent the ``cdk.Construct`` this ``DestinationResource`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``DestinationResource``
*/
constructor(parent: cdk.Construct, name: string, properties: DestinationResourceProps);
readonly propertyOverrides: DestinationResourceProps;
protected renderProperties(properties: any): {
[key: string]: any;
};
}
}
/**

@@ -121,3 +67,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html

*/
logGroupName?: string | cdk.Token;
logGroupName?: string;
/**

@@ -145,7 +91,7 @@ * ``AWS::Logs::LogGroup.RetentionInDays``

*
* @param parent the ``cdk.Construct`` this ``CfnLogGroup`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``CfnLogGroup``
* @param scope scope in which this resource is defined
* @param id scoped id of the resource
* @param props resource properties
*/
constructor(parent: cdk.Construct, name: string, properties?: CfnLogGroupProps);
constructor(scope: cdk.Construct, id: string, props?: CfnLogGroupProps);
readonly propertyOverrides: CfnLogGroupProps;

@@ -156,46 +102,2 @@ protected renderProperties(properties: any): {

}
export declare namespace cloudformation {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html
*/
interface LogGroupResourceProps {
/**
* ``AWS::Logs::LogGroup.LogGroupName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-cwl-loggroup-loggroupname
*/
logGroupName?: string | cdk.Token;
/**
* ``AWS::Logs::LogGroup.RetentionInDays``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-cwl-loggroup-retentionindays
*/
retentionInDays?: number | cdk.Token;
}
/**
* @deprecated "cloudformation.LogGroupResource" will be deprecated in a future release in favor of "CfnLogGroup" (see https://github.com/awslabs/aws-cdk/issues/878)
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html
*/
class LogGroupResource extends cdk.Resource {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly resourceTypeName = "AWS::Logs::LogGroup";
/**
* @cloudformation_attribute Arn
*/
readonly logGroupArn: string;
readonly logGroupName: string;
/**
* Creates a new ``AWS::Logs::LogGroup``.
*
* @param parent the ``cdk.Construct`` this ``LogGroupResource`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``LogGroupResource``
*/
constructor(parent: cdk.Construct, name: string, properties?: LogGroupResourceProps);
readonly propertyOverrides: LogGroupResourceProps;
protected renderProperties(properties: any): {
[key: string]: any;
};
}
}
/**

@@ -209,3 +111,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html

*/
logGroupName: string | cdk.Token;
logGroupName: string;
/**

@@ -215,3 +117,3 @@ * ``AWS::Logs::LogStream.LogStreamName``

*/
logStreamName?: string | cdk.Token;
logStreamName?: string;
}

@@ -230,7 +132,7 @@ /**

*
* @param parent the ``cdk.Construct`` this ``CfnLogStream`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``CfnLogStream``
* @param scope scope in which this resource is defined
* @param id scoped id of the resource
* @param props resource properties
*/
constructor(parent: cdk.Construct, name: string, properties: CfnLogStreamProps);
constructor(scope: cdk.Construct, id: string, props: CfnLogStreamProps);
readonly propertyOverrides: CfnLogStreamProps;

@@ -241,42 +143,2 @@ protected renderProperties(properties: any): {

}
export declare namespace cloudformation {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html
*/
interface LogStreamResourceProps {
/**
* ``AWS::Logs::LogStream.LogGroupName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname
*/
logGroupName: string | cdk.Token;
/**
* ``AWS::Logs::LogStream.LogStreamName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname
*/
logStreamName?: string | cdk.Token;
}
/**
* @deprecated "cloudformation.LogStreamResource" will be deprecated in a future release in favor of "CfnLogStream" (see https://github.com/awslabs/aws-cdk/issues/878)
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html
*/
class LogStreamResource extends cdk.Resource {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly resourceTypeName = "AWS::Logs::LogStream";
readonly logStreamName: string;
/**
* Creates a new ``AWS::Logs::LogStream``.
*
* @param parent the ``cdk.Construct`` this ``LogStreamResource`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``LogStreamResource``
*/
constructor(parent: cdk.Construct, name: string, properties: LogStreamResourceProps);
readonly propertyOverrides: LogStreamResourceProps;
protected renderProperties(properties: any): {
[key: string]: any;
};
}
}
/**

@@ -290,3 +152,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html

*/
filterPattern: string | cdk.Token;
filterPattern: string;
/**

@@ -296,3 +158,3 @@ * ``AWS::Logs::MetricFilter.LogGroupName``

*/
logGroupName: string | cdk.Token;
logGroupName: string;
/**

@@ -316,7 +178,7 @@ * ``AWS::Logs::MetricFilter.MetricTransformations``

*
* @param parent the ``cdk.Construct`` this ``CfnMetricFilter`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``CfnMetricFilter``
* @param scope scope in which this resource is defined
* @param id scoped id of the resource
* @param props resource properties
*/
constructor(parent: cdk.Construct, name: string, properties: CfnMetricFilterProps);
constructor(scope: cdk.Construct, id: string, props: CfnMetricFilterProps);
readonly propertyOverrides: CfnMetricFilterProps;

@@ -341,3 +203,3 @@ protected renderProperties(properties: any): {

*/
metricName: string | cdk.Token;
metricName: string;
/**

@@ -347,3 +209,3 @@ * ``CfnMetricFilter.MetricTransformationProperty.MetricNamespace``

*/
metricNamespace: string | cdk.Token;
metricNamespace: string;
/**

@@ -353,77 +215,5 @@ * ``CfnMetricFilter.MetricTransformationProperty.MetricValue``

*/
metricValue: string | cdk.Token;
metricValue: string;
}
}
export declare namespace cloudformation {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html
*/
interface MetricFilterResourceProps {
/**
* ``AWS::Logs::MetricFilter.FilterPattern``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-filterpattern
*/
filterPattern: string | cdk.Token;
/**
* ``AWS::Logs::MetricFilter.LogGroupName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-loggroupname
*/
logGroupName: string | cdk.Token;
/**
* ``AWS::Logs::MetricFilter.MetricTransformations``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-cwl-metricfilter-metrictransformations
*/
metricTransformations: Array<MetricFilterResource.MetricTransformationProperty | cdk.Token> | cdk.Token;
}
/**
* @deprecated "cloudformation.MetricFilterResource" will be deprecated in a future release in favor of "CfnMetricFilter" (see https://github.com/awslabs/aws-cdk/issues/878)
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html
*/
class MetricFilterResource extends cdk.Resource {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly resourceTypeName = "AWS::Logs::MetricFilter";
readonly metricFilterName: string;
/**
* Creates a new ``AWS::Logs::MetricFilter``.
*
* @param parent the ``cdk.Construct`` this ``MetricFilterResource`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``MetricFilterResource``
*/
constructor(parent: cdk.Construct, name: string, properties: MetricFilterResourceProps);
readonly propertyOverrides: MetricFilterResourceProps;
protected renderProperties(properties: any): {
[key: string]: any;
};
}
namespace MetricFilterResource {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html
*/
interface MetricTransformationProperty {
/**
* ``MetricFilterResource.MetricTransformationProperty.DefaultValue``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-defaultvalue
*/
defaultValue?: number | cdk.Token;
/**
* ``MetricFilterResource.MetricTransformationProperty.MetricName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricname
*/
metricName: string | cdk.Token;
/**
* ``MetricFilterResource.MetricTransformationProperty.MetricNamespace``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricnamespace
*/
metricNamespace: string | cdk.Token;
/**
* ``MetricFilterResource.MetricTransformationProperty.MetricValue``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-cwl-metricfilter-metrictransformation-metricvalue
*/
metricValue: string | cdk.Token;
}
}
}
/**

@@ -437,3 +227,3 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html

*/
destinationArn: string | cdk.Token;
destinationArn: string;
/**

@@ -443,3 +233,3 @@ * ``AWS::Logs::SubscriptionFilter.FilterPattern``

*/
filterPattern: string | cdk.Token;
filterPattern: string;
/**

@@ -449,3 +239,3 @@ * ``AWS::Logs::SubscriptionFilter.LogGroupName``

*/
logGroupName: string | cdk.Token;
logGroupName: string;
/**

@@ -455,3 +245,3 @@ * ``AWS::Logs::SubscriptionFilter.RoleArn``

*/
roleArn?: string | cdk.Token;
roleArn?: string;
}

@@ -470,7 +260,7 @@ /**

*
* @param parent the ``cdk.Construct`` this ``CfnSubscriptionFilter`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``CfnSubscriptionFilter``
* @param scope scope in which this resource is defined
* @param id scoped id of the resource
* @param props resource properties
*/
constructor(parent: cdk.Construct, name: string, properties: CfnSubscriptionFilterProps);
constructor(scope: cdk.Construct, id: string, props: CfnSubscriptionFilterProps);
readonly propertyOverrides: CfnSubscriptionFilterProps;

@@ -481,51 +271,1 @@ protected renderProperties(properties: any): {

}
export declare namespace cloudformation {
/**
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html
*/
interface SubscriptionFilterResourceProps {
/**
* ``AWS::Logs::SubscriptionFilter.DestinationArn``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-destinationarn
*/
destinationArn: string | cdk.Token;
/**
* ``AWS::Logs::SubscriptionFilter.FilterPattern``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-filterpattern
*/
filterPattern: string | cdk.Token;
/**
* ``AWS::Logs::SubscriptionFilter.LogGroupName``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-loggroupname
*/
logGroupName: string | cdk.Token;
/**
* ``AWS::Logs::SubscriptionFilter.RoleArn``
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-cwl-subscriptionfilter-rolearn
*/
roleArn?: string | cdk.Token;
}
/**
* @deprecated "cloudformation.SubscriptionFilterResource" will be deprecated in a future release in favor of "CfnSubscriptionFilter" (see https://github.com/awslabs/aws-cdk/issues/878)
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html
*/
class SubscriptionFilterResource extends cdk.Resource {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly resourceTypeName = "AWS::Logs::SubscriptionFilter";
readonly subscriptionFilterName: string;
/**
* Creates a new ``AWS::Logs::SubscriptionFilter``.
*
* @param parent the ``cdk.Construct`` this ``SubscriptionFilterResource`` is a part of
* @param name the name of the resource in the ``cdk.Construct`` tree
* @param properties the properties of this ``SubscriptionFilterResource``
*/
constructor(parent: cdk.Construct, name: string, properties: SubscriptionFilterResourceProps);
readonly propertyOverrides: SubscriptionFilterResourceProps;
protected renderProperties(properties: any): {
[key: string]: any;
};
}
}
import cdk = require('@aws-cdk/cdk');
import { LogGroupRef } from './log-group';
import { ILogGroup } from './log-group';
import { IFilterPattern } from './pattern';

@@ -11,3 +11,3 @@ /**

*/
logGroup: LogGroupRef;
logGroup: ILogGroup;
/**

@@ -52,3 +52,3 @@ * Pattern to search for log events.

export declare class MetricFilter extends cdk.Construct {
constructor(parent: cdk.Construct, id: string, props: MetricFilterProps);
constructor(scope: cdk.Construct, id: string, props: MetricFilterProps);
}

@@ -9,4 +9,4 @@ "use strict";

class MetricFilter extends cdk.Construct {
constructor(parent, id, props) {
super(parent, id);
constructor(scope, id, props) {
super(scope, id);
// It looks odd to map this object to a singleton list, but that's how

@@ -33,2 +33,2 @@ // we're supposed to do it according to the docs.

exports.MetricFilter = MetricFilter;
//# sourceMappingURL=data:application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hdHRlcm5TdHJpbmcsXG4gICAgICBtZXRyaWNUcmFuc2Zvcm1hdGlvbnM6IFt7XG4gICAgICAgIG1ldHJpY05hbWVzcGFjZTogcHJvcHMubWV0cmljTmFtZXNwYWNlLFxuICAgICAgICBtZXRyaWNOYW1lOiBwcm9wcy5tZXRyaWNOYW1lLFxuICAgICAgICBtZXRyaWNWYWx1ZTogcHJvcHMubWV0cmljVmFsdWUgIT09IHVuZGVmaW5lZCA/IHByb3BzLm1ldHJpY1ZhbHVlIDogJzEnLFxuICAgICAgICBkZWZhdWx0VmFsdWU6IHByb3BzLmRlZmF1bHRWYWx1ZVxuICAgICAgfV1cbiAgICB9KTtcbiAgfVxufVxuIl19
import iam = require('@aws-cdk/aws-iam');
import cdk = require('@aws-cdk/cdk');
import { LogGroupRef } from './log-group';
import { ILogGroup } from './log-group';
import { IFilterPattern } from './pattern';

@@ -19,3 +19,3 @@ /**

*/
logSubscriptionDestination(sourceLogGroup: LogGroupRef): LogSubscriptionDestination;
logSubscriptionDestination(sourceLogGroup: ILogGroup): LogSubscriptionDestination;
}

@@ -44,3 +44,3 @@ /**

*/
logGroup: LogGroupRef;
logGroup: ILogGroup;
/**

@@ -61,3 +61,3 @@ * The destination to send the filtered events to.

export declare class SubscriptionFilter extends cdk.Construct {
constructor(parent: cdk.Construct, id: string, props: SubscriptionFilterProps);
constructor(scope: cdk.Construct, id: string, props: SubscriptionFilterProps);
}

@@ -9,4 +9,4 @@ "use strict";

class SubscriptionFilter extends cdk.Construct {
constructor(parent, id, props) {
super(parent, id);
constructor(scope, id, props) {
super(scope, id);
const destProps = props.destination.logSubscriptionDestination(props.logGroup);

@@ -22,2 +22,2 @@ new logs_generated_1.CfnSubscriptionFilter(this, 'Resource', {

exports.SubscriptionFilter = SubscriptionFilter;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLWZpbHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3V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kFybjogZGVzdFByb3BzLmFybixcbiAgICAgIHJvbGVBcm46IGRlc3RQcm9wcy5yb2xlICYmIGRlc3RQcm9wcy5yb2xlLnJvbGVBcm4sXG4gICAgICBmaWx0ZXJQYXR0ZXJuOiBwcm9wcy5maWx0ZXJQYXR0ZXJuLmxvZ1BhdHRlcm5TdHJpbmdcbiAgICB9KTtcbiAgfVxufVxuIl19
{
"name": "@aws-cdk/aws-logs",
"version": "0.21.0",
"version": "0.22.0",
"description": "The CDK Construct Library for AWS::Logs",

@@ -37,3 +37,5 @@ "main": "lib/index.js",

"pkglint": "pkglint -f",
"package": "cdk-package"
"package": "cdk-package",
"awslint": "cdk-awslint",
"cfn2ts": "cfn2ts"
},

@@ -56,18 +58,18 @@ "cdk-build": {

"devDependencies": {
"@aws-cdk/assert": "^0.21.0",
"cdk-build-tools": "^0.21.0",
"cdk-integ-tools": "^0.21.0",
"cfn2ts": "^0.21.0",
"pkglint": "^0.21.0"
"@aws-cdk/assert": "^0.22.0",
"cdk-build-tools": "^0.22.0",
"cdk-integ-tools": "^0.22.0",
"cfn2ts": "^0.22.0",
"pkglint": "^0.22.0"
},
"dependencies": {
"@aws-cdk/aws-cloudwatch": "^0.21.0",
"@aws-cdk/aws-iam": "^0.21.0",
"@aws-cdk/cdk": "^0.21.0"
"@aws-cdk/aws-cloudwatch": "^0.22.0",
"@aws-cdk/aws-iam": "^0.22.0",
"@aws-cdk/cdk": "^0.22.0"
},
"homepage": "https://github.com/awslabs/aws-cdk",
"peerDependencies": {
"@aws-cdk/aws-cloudwatch": "^0.21.0",
"@aws-cdk/aws-iam": "^0.21.0",
"@aws-cdk/cdk": "^0.21.0"
"@aws-cdk/aws-cloudwatch": "^0.22.0",
"@aws-cdk/aws-iam": "^0.22.0",
"@aws-cdk/cdk": "^0.22.0"
},

@@ -74,0 +76,0 @@ "engines": {

@@ -6,4 +6,4 @@ "use strict";

class MetricFilterIntegStack extends cdk_1.Stack {
constructor(parent, name, props) {
super(parent, name, props);
constructor(scope, id, props) {
super(scope, id, props);
const logGroup = new lib_1.LogGroup(this, 'LogGroup', {

@@ -26,2 +26,2 @@ retainLogGroup: false

app.run();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubWV0cmljZmlsdGVyLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm1ldHJpY2ZpbHRlci5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBc0Q7QUFDdEQsZ0NBQStEO0FBRS9ELE1BQU0sc0JBQXVCLFNBQVEsV0FBSztJQUN4QyxZQUFZLE1BQVcsRUFBRSxJQUFZLEVBQUUsS0FBa0I7UUFDdkQsS0FBSyxDQUFDLE1BQU0sRUFBRSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFM0IsTUFBTSxRQUFRLEdBQUcsSUFBSSxjQUFRLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUM5QyxjQUFjLEVBQUUsS0FBSztTQUN0QixDQUFDLENBQUM7UUFFSCxTQUFTO1FBQ1QsSUFBSSxrQkFBWSxDQUFDLElBQUksRUFBRSxjQUFjLEVBQUU7WUFDckMsUUFBUTtZQUNSLGVBQWUsRUFBRSxPQUFPO1lBQ3hCLFVBQVUsRUFBRSxTQUFTO1lBQ3JCLGFBQWEsRUFBRSxtQkFBYSxDQUFDLE1BQU0sQ0FBQyxXQUFXLENBQUM7WUFDaEQsV0FBVyxFQUFFLFdBQVc7U0FDekIsQ0FBQyxDQUFDO1FBQ0gsU0FBUztJQUNYLENBQUM7Q0FDRjtBQUVELE1BQU0sR0FBRyxHQUFHLElBQUksU0FBRyxFQUFFLENBQUM7QUFDdEIsSUFBSSxzQkFBc0IsQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLENBQUMsQ0FBQztBQUM5RCxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUMiLCJzb3VyY2V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9saWInO1xuXG5jbGFzcyBNZXRyaWNGaWx0ZXJJbnRlZ1N0YWNrIGV4dGVuZHMgU3RhY2sge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQXBwLCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIGNvbnN0IGxvZ0dyb3VwID0gbmV3IExvZ0dyb3VwKHRoaXMsICdMb2dHcm91cCcsIHtcbiAgICAgIHJldGFpbkxvZ0dyb3VwOiBmYWxzZVxuICAgIH0pO1xuXG4gICAgLy8vICFzaG93XG4gICAgbmV3IE1ldHJpY0ZpbHRlcih0aGlzLCAnTWV0cmljRmlsdGVyJywge1xuICAgICAgbG9nR3JvdXAsXG4gICAgICBtZXRyaWNOYW1lc3BhY2U6ICdNeUFwcCcsXG4gICAgICBtZXRyaWNOYW1lOiAnTGF0ZW5jeScsXG4gICAgICBmaWx0ZXJQYXR0ZXJuOiBGaWx0ZXJQYXR0ZXJuLmV4aXN0cygnJC5sYXRlbmN5JyksXG4gICAgICBtZXRyaWNWYWx1ZTogJyQubGF0ZW5jeSdcbiAgICB9KTtcbiAgICAvLy8gIWhpZGVcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgTWV0cmljRmlsdGVySW50ZWdTdGFjayhhcHAsICdhd3MtY2RrLW1ldHJpY2ZpbHRlci1pbnRlZycpO1xuYXBwLnJ1bigpO1xuIl19

@@ -71,3 +71,3 @@ "use strict";

// WHEN
const imported = lib_1.LogGroupRef.import(stack2, 'Import', lg.export());
const imported = lib_1.LogGroup.import(stack2, 'Import', lg.export());
imported.newStream(stack2, 'MakeMeAStream');

@@ -144,2 +144,2 @@ // THEN

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5sb2dncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3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obWV0cmljLm5hbWVzcGFjZSwgJ015TmFtZXNwYWNlL015U2VydmljZScpO1xuICAgIHRlc3QuZXF1YWwobWV0cmljLm1ldHJpY05hbWUsICdGaWVsZCcpO1xuXG4gICAgdGVzdC5kb25lKCk7XG4gIH0sXG5cbiAgJ2dyYW50Jyh0ZXN0OiBUZXN0KSB7XG4gICAgLy8gR0lWRU5cbiAgICBjb25zdCBzdGFjayA9IG5ldyBTdGFjaygpO1xuICAgIGNvbnN0IGxnID0gbmV3IExvZ0dyb3VwKHN0YWNrLCAnTG9nR3JvdXAnKTtcbiAgICBjb25zdCB1c2VyID0gbmV3IGlhbS5Vc2VyKHN0YWNrLCAnVXNlcicpO1xuXG4gICAgLy8gV0hFTlxuICAgIGxnLmdyYW50V3JpdGUodXNlcik7XG5cbiAgICAvLyBUSEVOXG4gICAgZXhwZWN0KHN0YWNrKS50byhoYXZlUmVzb3VyY2UoJ0FXUzo6SUFNOjpQb2xpY3knLCB7XG4gICAgICBQb2xpY3lEb2N1bWVudDoge1xuICAgICAgICBTdGF0ZW1lbnQ6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgICBBY3Rpb246IFsgXCJsb2dzOkNyZWF0ZUxvZ1N0cmVhbVwiLCBcImxvZ3M6UHV0TG9nRXZlbnRzXCIgXSxcbiAgICAgICAgICAgIEVmZmVjdDogXCJBbGxvd1wiLFxuICAgICAgICAgICAgUmVzb3VyY2U6IHsgXCJGbjo6R2V0QXR0XCI6IFsgXCJMb2dHcm91cEY1QjQ2OTMxXCIsIFwiQXJuXCIgXSB9XG4gICAgICAgICAgfVxuICAgICAgICBdLFxuICAgICAgICBWZXJzaW9uOiBcIjIwMTItMTAtMTdcIlxuICAgICAgfVxuICAgIH0pKTtcblxuICAgIHRlc3QuZG9uZSgpO1xuICB9LFxufTtcbiJdfQ==

@@ -32,2 +32,2 @@ "use strict";

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5zdWJzY3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bHRlclBhdHRlcm46IEZpbHRlclBhdHRlcm4ubGl0ZXJhbChcInNvbWUgcGF0dGVyblwiKVxuICAgIH0pO1xuXG4gICAgLy8gVEhFTlxuICAgIGV4cGVjdChzdGFjaykudG8oaGF2ZVJlc291cmNlKCdBV1M6OkxvZ3M6OlN1YnNjcmlwdGlvbkZpbHRlcicsIHtcbiAgICAgIERlc3RpbmF0aW9uQXJuOiBcImFybjpib2d1c1wiLFxuICAgICAgRmlsdGVyUGF0dGVybjogXCJzb21lIHBhdHRlcm5cIixcbiAgICAgIExvZ0dyb3VwTmFtZTogeyBSZWY6IFwiTG9nR3JvdXBGNUI0NjkzMVwiIH1cbiAgICB9KSk7XG5cbiAgICB0ZXN0LmRvbmUoKTtcbiAgfSxcbn07XG5cbmNsYXNzIEZha2VEZXN0aW5hdGlvbiBpbXBsZW1lbnRzIElMb2dTdWJzY3JpcHRpb25EZXN0aW5hdGlvbiB7XG4gIHB1YmxpYyBsb2dTdWJzY3JpcHRpb25EZXN0aW5hdGlvbihfc291cmNlTG9nR3JvdXA6IElMb2dHcm91cCkge1xuICAgIHJldHVybiB7XG4gICAgICBhcm46ICdhcm46Ym9ndXMnLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==

@@ -25,5 +25,26 @@ {

"strictNullChecks": true,
"target": "ES2018"
"target": "ES2018",
"composite": true
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
],
"references": [
{
"path": "../aws-cloudwatch"
},
{
"path": "../aws-iam"
},
{
"path": "../cdk"
},
{
"path": "../assert"
}
],
"_generated_by_jsii_": "Generated by jsii - safe to delete, and ideally should be in .gitignore"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc