@aws-cdk/aws-logs
Advanced tools
Comparing version 0.19.0 to 0.20.0
import cloudwatch = require('@aws-cdk/aws-cloudwatch'); | ||
import iam = require('@aws-cdk/aws-iam'); | ||
import cdk = require('@aws-cdk/cdk'); | ||
@@ -72,2 +73,10 @@ import { LogStream } from './log-stream'; | ||
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; | ||
} | ||
@@ -89,3 +98,3 @@ /** | ||
* | ||
* @default 730 days (2 years) | ||
* @default 731 days (2 years) | ||
*/ | ||
@@ -92,0 +101,0 @@ retentionDays?: number; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cloudwatch = require("@aws-cdk/aws-cloudwatch"); | ||
const iam = require("@aws-cdk/aws-iam"); | ||
const cdk = require("@aws-cdk/cdk"); | ||
@@ -82,2 +83,21 @@ const log_stream_1 = require("./log-stream"); | ||
} | ||
/** | ||
* Give permissions to write to create and write to streams in this log group | ||
*/ | ||
grantWrite(principal) { | ||
this.grant(principal, 'logs:CreateLogStream', 'logs:PutLogEvents'); | ||
} | ||
/** | ||
* Give the indicated permissions on this log group and all streams | ||
*/ | ||
grant(principal, ...actions) { | ||
if (!principal) { | ||
return; | ||
} | ||
principal.addToPolicy(new iam.PolicyStatement() | ||
.addActions(...actions) | ||
// This ARN includes a ':*' at the end to include the log streams. | ||
// See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#w2ab1c21c10c63c43c11 | ||
.addResource(`${this.logGroupArn}`)); | ||
} | ||
} | ||
@@ -93,3 +113,3 @@ exports.LogGroupRef = LogGroupRef; | ||
if (retentionInDays === undefined) { | ||
retentionInDays = 730; | ||
retentionInDays = 731; | ||
} | ||
@@ -124,2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cGF0dGVybiBkb2VzIG5vdCBtYXRjaCBhIHBhcnRpY3VsYXIgZXZlbnQuXG4gICAqXG4gICAqIEBkZWZhdWx0IE5vIG1ldHJpYyBlbWl0dGVkLlxuICAgKi9cbiAgZGVmYXVsdFZhbHVlPzogbnVtYmVyO1xufVxuIl19 |
{ | ||
"name": "@aws-cdk/aws-logs", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "The CDK Construct Library for AWS::Logs", | ||
@@ -55,19 +55,19 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.19.0", | ||
"cdk-build-tools": "^0.19.0", | ||
"cdk-integ-tools": "^0.19.0", | ||
"cfn2ts": "^0.19.0", | ||
"pkglint": "^0.19.0" | ||
"@aws-cdk/assert": "^0.20.0", | ||
"cdk-build-tools": "^0.20.0", | ||
"cdk-integ-tools": "^0.20.0", | ||
"cfn2ts": "^0.20.0", | ||
"pkglint": "^0.20.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-cloudwatch": "^0.19.0", | ||
"@aws-cdk/aws-iam": "^0.19.0", | ||
"@aws-cdk/cdk": "^0.19.0" | ||
"@aws-cdk/aws-cloudwatch": "^0.20.0", | ||
"@aws-cdk/aws-iam": "^0.20.0", | ||
"@aws-cdk/cdk": "^0.20.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-cloudwatch": "^0.19.0", | ||
"@aws-cdk/aws-iam": "^0.19.0", | ||
"@aws-cdk/cdk": "^0.19.0" | ||
"@aws-cdk/aws-cloudwatch": "^0.20.0", | ||
"@aws-cdk/aws-iam": "^0.20.0", | ||
"@aws-cdk/cdk": "^0.20.0" | ||
} | ||
} |
@@ -6,3 +6,3 @@ { | ||
"Properties": { | ||
"RetentionInDays": 730 | ||
"RetentionInDays": 731 | ||
} | ||
@@ -9,0 +9,0 @@ }, |
@@ -9,3 +9,4 @@ import { Test } from 'nodeunit'; | ||
'extractMetric'(test: Test): void; | ||
'grant'(test: Test): void; | ||
}; | ||
export = _default; |
"use strict"; | ||
const assert_1 = require("@aws-cdk/assert"); | ||
const iam = require("@aws-cdk/aws-iam"); | ||
const cdk_1 = require("@aws-cdk/cdk"); | ||
@@ -26,3 +27,3 @@ const lib_1 = require("../lib"); | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::Logs::LogGroup', { | ||
RetentionInDays: 730 | ||
RetentionInDays: 731 | ||
})); | ||
@@ -98,4 +99,26 @@ test.done(); | ||
test.done(); | ||
} | ||
}, | ||
'grant'(test) { | ||
// GIVEN | ||
const stack = new cdk_1.Stack(); | ||
const lg = new lib_1.LogGroup(stack, 'LogGroup'); | ||
const user = new iam.User(stack, 'User'); | ||
// WHEN | ||
lg.grantWrite(user); | ||
// THEN | ||
assert_1.expect(stack).to(assert_1.haveResource('AWS::IAM::Policy', { | ||
PolicyDocument: { | ||
Statement: [ | ||
{ | ||
Action: ["logs:CreateLogStream", "logs:PutLogEvents"], | ||
Effect: "Allow", | ||
Resource: { "Fn::GetAtt": ["LogGroupF5B46931", "Arn"] } | ||
} | ||
], | ||
Version: "2012-10-17" | ||
} | ||
})); | ||
test.done(); | ||
}, | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5sb2dncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QubG9nZ3JvdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUFzRTtBQUN0RSxzQ0FBcUM7QUFFckMsZ0NBQStDO0FBRS9DLGlCQUFTO0lBQ1AsaUJBQWlCLENBQUMsSUFBVTtRQUMxQixRQUFRO1FBQ1IsTUFBTSxLQUFLLEdBQUcsSUFBSSxXQUFLLEVBQUUsQ0FBQztRQUUxQixPQUFPO1FBQ1AsSUFBSSxjQUFRLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTt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iBUZXN0KSB7XG4gICAgLy8gR0lWRU5cbiAgICBjb25zdCBzdGFjayA9IG5ldyBTdGFjaygpO1xuICAgIGNvbnN0IGxnID0gbmV3IExvZ0dyb3VwKHN0YWNrLCAnTG9nR3JvdXAnKTtcbiAgICBjb25zdCB1c2VyID0gbmV3IGlhbS5Vc2VyKHN0YWNrLCAnVXNlcicpO1xuXG4gICAgLy8gV0hFTlxuICAgIGxnLmdyYW50V3JpdGUodXNlcik7XG5cbiAgICAvLyBUSEVOXG4gICAgZXhwZWN0KHN0YWNrKS50byhoYXZlUmVzb3VyY2UoJ0FXUzo6SUFNOjpQb2xpY3knLCB7XG4gICAgICBQb2xpY3lEb2N1bWVudDoge1xuICAgICAgICBTdGF0ZW1lbnQ6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgICBBY3Rpb246IFsgXCJsb2dzOkNyZWF0ZUxvZ1N0cmVhbVwiLCBcImxvZ3M6UHV0TG9nRXZlbnRzXCIgXSxcbiAgICAgICAgICAgIEVmZmVjdDogXCJBbGxvd1wiLFxuICAgICAgICAgICAgUmVzb3VyY2U6IHsgXCJGbjo6R2V0QXR0XCI6IFsgXCJMb2dHcm91cEY1QjQ2OTMxXCIsIFwiQXJuXCIgXSB9XG4gICAgICAgICAgfVxuICAgICAgICBdLFxuICAgICAgICBWZXJzaW9uOiBcIjIwMTItMTAtMTdcIlxuICAgICAgfVxuICAgIH0pKTtcblxuICAgIHRlc3QuZG9uZSgpO1xuICB9LFxufTtcbiJdfQ== |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
369625
2516
+ Added@aws-cdk/aws-cloudwatch@0.20.0(transitive)
+ Added@aws-cdk/aws-iam@0.20.0(transitive)
+ Added@aws-cdk/cdk@0.20.0(transitive)
+ Added@aws-cdk/cx-api@0.20.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.19.0(transitive)
- Removed@aws-cdk/aws-iam@0.19.0(transitive)
- Removed@aws-cdk/cdk@0.19.0(transitive)
- Removed@aws-cdk/cx-api@0.19.0(transitive)
Updated@aws-cdk/aws-iam@^0.20.0
Updated@aws-cdk/cdk@^0.20.0