@aws-cdk/aws-lambda
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -5,3 +5,2 @@ import iam = require('@aws-cdk/aws-iam'); | ||
import { FunctionVersion } from './lambda-version'; | ||
import { FunctionArn, FunctionName } from './lambda.generated'; | ||
import { Permission } from './permission'; | ||
@@ -57,3 +56,3 @@ /** | ||
*/ | ||
readonly functionName: FunctionName; | ||
readonly functionName: string; | ||
/** | ||
@@ -65,3 +64,3 @@ * ARN of this alias | ||
*/ | ||
readonly functionArn: FunctionArn; | ||
readonly functionArn: string; | ||
/** | ||
@@ -68,0 +67,0 @@ * Role associated with this alias |
@@ -22,4 +22,4 @@ "use strict"; | ||
// where the name is expected, and an ARN can refer to an Alias. | ||
this.functionName = new lambda_generated_1.FunctionName(alias.ref); | ||
this.functionArn = new lambda_generated_1.FunctionArn(alias.ref); | ||
this.functionName = alias.ref; | ||
this.functionArn = alias.aliasArn; | ||
} | ||
@@ -65,2 +65,2 @@ addPermission(name, permission) { | ||
exports.Alias = Alias; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxpYXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbGlhcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLDZDQUEyQztBQUUzQyx5REFBK0U7QUE4Qy9FOztHQUVHO0FBQ0gsTUFBYSxLQUFNLFNBQVEsd0JBQVc7SUE2QmxDLFlBQVksTUFBcUIsRUFBRSxJQUFZLEVBQUUsS0FBaUI7UUFDOUQsS0FBSyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsQ0FBQztRQVJMLHlCQUFvQixHQUFZLElBQUksQ0FBQyxDQUFDLGtCQUFrQjtRQVV2RSxJQUFJLENBQUMsZ0JBQWdCLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUM7UUFFN0MsTUFBTSxLQUFLLEdBQUcsSUFBSSxpQ0FBYyxDQU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y5tYXAodyA9PiB7XG4gICAgICAgICAgICBpZiAody53ZWlnaHQgPCAwIHx8IHcud2VpZ2h0ID4gMSkgeyB0aHJvdyBuZXcgRXJyb3IoYEFkZGl0aW9uYWwgdmVyc2lvbiB3ZWlnaHQgbXVzdCBiZSBiZXR3ZWVuIDAgYW5kIDEsIGdvdDogJHt3LndlaWdodH1gKTsgfVxuICAgICAgICAgICAgcmV0dXJuIHcud2VpZ2h0O1xuICAgICAgICB9KS5yZWR1Y2UoKGEsIHgpID0+IGEgKyB4KTtcblxuICAgICAgICBpZiAodG90YWwgPiAxKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFN1bSBvZiBhZGRpdGlvbmFsIHZlcnNpb24gd2VpZ2h0cyBtdXN0IG5vdCBleGNlZWQgMSwgZ290OiAke3RvdGFsfWApO1xuICAgICAgICB9XG4gICAgfVxufVxuXG4vKipcbiAqIEEgdmVyc2lvbi93ZWlnaHQgcGFpciBmb3Igcm91dGluZyB0cmFmZmljIHRvIExhbWJkYSBmdW5jdGlvbnNcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBWZXJzaW9uV2VpZ2h0IHtcbiAgICAvKipcbiAgICAgKiBUaGUgdmVyc2lvbiB0byByb3V0ZSB0cmFmZmljIHRvXG4gICAgICovXG4gICAgcmVhZG9ubHkgdmVyc2lvbjogRnVuY3Rpb25WZXJzaW9uO1xuXG4gICAgLyoqXG4gICAgICogSG93IG11Y2ggd2VpZ2h0IHRvIGFzc2lnbiB0byB0aGlzIHZlcnNpb24gKDAuLjEpXG4gICAgICovXG4gICAgcmVhZG9ubHkgd2VpZ2h0OiBudW1iZXI7XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxpYXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbGlhcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLDZDQUEyQztBQUUz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AgICAgIHMzS2V5OiB0aGlzLmFzc2V0IS5zM09iamVjdEtleVxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ== |
@@ -8,3 +8,2 @@ import cloudwatch = require('@aws-cdk/aws-cloudwatch'); | ||
import cdk = require('@aws-cdk/cdk'); | ||
import { FunctionArn, FunctionName } from './lambda.generated'; | ||
import { Permission } from './permission'; | ||
@@ -20,3 +19,3 @@ /** | ||
*/ | ||
functionArn: FunctionArn; | ||
functionArn: string; | ||
/** | ||
@@ -34,3 +33,3 @@ * The IAM execution role associated with this function. | ||
*/ | ||
securityGroupId?: ec2.SecurityGroupId; | ||
securityGroupId?: string; | ||
} | ||
@@ -93,7 +92,7 @@ export declare abstract class FunctionRef extends cdk.Construct implements events.IEventRuleTarget, logs.ILogSubscriptionDestination, s3n.IBucketNotificationDestination, ec2.IConnectable { | ||
*/ | ||
abstract readonly functionName: FunctionName; | ||
abstract readonly functionName: string; | ||
/** | ||
* The ARN fo the function. | ||
*/ | ||
abstract readonly functionArn: FunctionArn; | ||
abstract readonly functionArn: string; | ||
/** | ||
@@ -141,3 +140,3 @@ * The IAM role associated with this function. | ||
*/ | ||
asEventRuleTarget(ruleArn: events.RuleArn, ruleId: string): events.EventRuleTargetProps; | ||
asEventRuleTarget(ruleArn: string, ruleId: string): events.EventRuleTargetProps; | ||
/** | ||
@@ -180,4 +179,4 @@ * Return the given named metric for this Lambda | ||
*/ | ||
asBucketNotificationDestination(bucketArn: cdk.Arn, bucketId: string): s3n.BucketNotificationDestinationProps; | ||
asBucketNotificationDestination(bucketArn: string, bucketId: string): s3n.BucketNotificationDestinationProps; | ||
private parsePermissionPrincipal; | ||
} |
@@ -212,7 +212,6 @@ "use strict"; | ||
return { | ||
functionArn: new lambda_generated_1.FunctionArn(new cdk.Output(this, 'FunctionArn', { value: this.functionArn }).makeImportValue()), | ||
functionArn: new cdk.Output(this, 'FunctionArn', { value: this.functionArn }).makeImportValue().toString(), | ||
securityGroupId: this._connections && this._connections.securityGroup | ||
? new ec2.SecurityGroupId(new cdk.Output(this, 'SecurityGroupId', { | ||
value: this._connections.securityGroup.securityGroupId | ||
}).makeImportValue()) : undefined | ||
? new cdk.Output(this, 'SecurityGroupId', { value: this._connections.securityGroup.securityGroupId }).makeImportValue().toString() | ||
: undefined | ||
}; | ||
@@ -228,3 +227,3 @@ } | ||
this.addPermission(permissionId, { | ||
sourceAccount: new cdk.AwsAccountId(), | ||
sourceAccount: new cdk.AwsAccountId().toString(), | ||
principal: new cdk.ServicePrincipal('s3.amazonaws.com'), | ||
@@ -264,3 +263,3 @@ sourceArn: bucketArn, | ||
this.functionArn = props.functionArn; | ||
this.functionName = new lambda_generated_1.FunctionName(this.extractNameFromArn(props.functionArn)); | ||
this.functionName = this.extractNameFromArn(props.functionArn); | ||
this.role = props.role; | ||
@@ -289,5 +288,5 @@ if (props.securityGroupId) { | ||
extractNameFromArn(arn) { | ||
return new cdk.FnSelect(6, new cdk.FnSplit(':', arn)); | ||
return new cdk.FnSelect(6, new cdk.FnSplit(':', arn)).toString(); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFtYmRhLXJlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxhbWJkYS1yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzREFBdUQ7QUFDdkQsd0NBQXlDO0FBSXpDLHFEQUFzRDtBQUN0RCxvQ0FBcUM7QUFDckMseURBQStFO0FBOEIvRSxNQUFzQixXQUFZLFNBQVEsR0FBRyxDQUFDLFNBQVM7SUFBdkQ7O1FBc0hJOztXQUVHO1FBQ0ssNkNBQXdDLEdBQXVCLEVBQUUsQ0FBQztJQW9NOUUsQ0FBQztJQXpURzs7Ozs7Ozs7OztPQVVHO0lBQ0ksTUFBTSxDQUFDLE1BQU0sQ0FBQyxNQUFxQixFQUFFLElBQVksRUFBRSxHQUFxQjtRQUMzRSxP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VzaChhcm4pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB7IGFybjogdGhpcy5mdW5jdGlvbkFybiB9O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEV4cG9ydCB0aGlzIEZ1bmN0aW9uICh3aXRob3V0IHRoZSByb2xlKVxuICAgICAqL1xuICAgIHB1YmxpYyBleHBvcnQoKTogRnVuY3Rpb25SZWZQcm9wcyB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBmdW5jdGlvbkFybjogbmV3IEZ1bmN0aW9uQXJuKG5ldyBjZGsuT3V0cHV0KHRoaXMsICdGdW5jdGlvbkFybicsIHsgdmFsdWU6IHRoaXMuZnVuY3Rpb25Bcm4gfSkubWFrZUltcG9ydFZhbHVlKCkpLFxuICAgICAgICAgICAgc2VjdXJpdHlHcm91cElkOiB0aGlzLl9jb25uZWN0aW9ucyAmJiB0aGlzLl9jb25uZWN0aW9ucy5zZWN1cml0eUdyb3VwXG4gICAgICAgICAgICAgICAgICAgID8gbmV3IGVjMi5TZWN1cml0eUdyb3VwSWQobmV3IGNkay5PdXRwdXQodGhpcywgJ1NlY3VyaXR5R3JvdXBJZCcsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogdGhpcy5fY29ubmVjdGlvbnMuc2VjdXJpdHlHcm91cC5zZWN1cml0eUdyb3VwSWRcbiAgICAgICAgICAgICAgICAgICAgfSkubWFrZUltcG9ydFZhbHVlKCkpIDogdW5kZWZpbmVkXG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQWxsb3dzIHRoaXMgTGFtYmRhIHRvIGJlIHVzZWQgYXMgYSBkZXN0aW5hdGlvbiBmb3IgYnVja2V0IG5vdGlmaWNhdGlvbnMuXG4gICAgICogVXNlIGBidWNrZXQub25FdmVudChsYW1iZGEpYCB0byBzdWJzY3JpYmUuXG4gICAgICovXG4gICAgcHVibGljIGFzQnVja2V0Tm90aWZpY2F0aW9uRGVzdGluY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291bnQtaWQ6ZnVuY3Rpb246ZnVuY3Rpb24tbmFtZVxuICAgICAqXG4gICAgICogLi53aGljaCBtZWFucyB0aGF0IGluIG9yZGVyIHRvIGV4dHJhY3QgdGhlIGBmdW5jdGlvbi1uYW1lYCBjb21wb25lbnQgZnJvbSB0aGUgQVJOLCB3ZSBjYW5cbiAgICAgKiBzcGxpdCB0aGUgQVJOIHVzaW5nIFwiOlwiIGFuZCBzZWxlY3QgdGhlIGNvbXBvbmVudCBpbiBpbmRleCA2LlxuICAgICAqXG4gICAgICogQHJldHVybnMgYEZuU2VsZWN0KDYsIEZuU3BsaXQoJzonLCBhcm4pKWBcbiAgICAgKi9cbiAgICBwcml2YXRlIGV4dHJhY3ROYW1lRnJvbUFybihhcm46IHN0cmluZykge1xuICAgICAgICByZXR1cm4gbmV3IGNkay5GblNlbGVjdCg2LCBuZXcgY2RrLkZuU3BsaXQoJzonLCBhcm4pKS50b1N0cmluZygpO1xuXG4gICAgfVxufVxuIl19 |
import { Construct } from '@aws-cdk/cdk'; | ||
import { FunctionRef } from './lambda-ref'; | ||
import { Version } from './lambda.generated'; | ||
/** | ||
@@ -47,3 +46,3 @@ * Properties for a new Lambda version | ||
*/ | ||
readonly functionVersion: Version; | ||
readonly functionVersion: string; | ||
/** | ||
@@ -50,0 +49,0 @@ * Lambda object this version is associated with |
@@ -34,2 +34,2 @@ "use strict"; | ||
exports.FunctionVersion = FunctionVersion; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFtYmRhLXZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYW1iZGEtdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNDQUF5QztBQUV6Qyx5REFBNkQ7QUE0QjdEOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNILE1BQWEsZUFBZ0IsU0FBUSxlQUFTO0lBVzFDLFlBQVksTUFBa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lbnQ6IENvbnN0cnVjdCwgbmFtZTogc3RyaW5nLCBwcm9wczogRnVuY3Rpb25WZXJzaW9uUHJvcHMpIHtcbiAgICAgICAgc3VwZXIocGFyZW50LCBuYW1lKTtcblxuICAgICAgICBjb25zdCB2ZXJzaW9uID0gbmV3IGNsb3VkZm9ybWF0aW9uLlZlcnNpb25SZXNvdXJjZSh0aGlzLCAnUmVzb3VyY2UnLCB7XG4gICAgICAgICAgICBjb2RlU2hhMjU2OiBwcm9wcy5jb2RlU2hhMjU2LFxuICAgICAgICAgICAgZGVzY3JpcHRpb246IHByb3BzLmRlc2NyaXB0aW9uLFxuICAgICAgICAgICAgZnVuY3Rpb25OYW1lOiBwcm9wcy5sYW1iZGEuZnVuY3Rpb25OYW1lXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuZnVuY3Rpb25WZXJzaW9uID0gdmVyc2lvbi52ZXJzaW9uO1xuICAgICAgICB0aGlzLmxhbWJkYSA9IHByb3BzLmxhbWJkYTtcbiAgICB9XG59XG4iXX0= |
@@ -8,3 +8,2 @@ import ec2 = require('@aws-cdk/aws-ec2'); | ||
import { FunctionVersion } from './lambda-version'; | ||
import { FunctionArn, FunctionName } from './lambda.generated'; | ||
import { Runtime } from './runtime'; | ||
@@ -166,7 +165,7 @@ /** | ||
*/ | ||
readonly functionName: FunctionName; | ||
readonly functionName: string; | ||
/** | ||
* ARN of this function | ||
*/ | ||
readonly functionArn: FunctionArn; | ||
readonly functionArn: string; | ||
/** | ||
@@ -173,0 +172,0 @@ * Execution role associated with this function |
@@ -41,3 +41,3 @@ import cdk = require('@aws-cdk/cdk'); | ||
static readonly resourceTypeName: string; | ||
readonly ref: AliasArn; | ||
readonly aliasArn: string; | ||
/** | ||
@@ -85,5 +85,2 @@ * Creates a new ``AWS::Lambda::Alias``. | ||
} | ||
export declare class AliasArn extends cdk.Arn { | ||
private readonly thisIsAAliasArn; | ||
} | ||
export declare namespace cloudformation { | ||
@@ -128,3 +125,3 @@ /** | ||
static readonly resourceTypeName: string; | ||
readonly ref: EventSourceMappingName; | ||
readonly eventSourceMappingName: string; | ||
/** | ||
@@ -143,5 +140,2 @@ * Creates a new ``AWS::Lambda::EventSourceMapping``. | ||
} | ||
export declare class EventSourceMappingName extends cdk.CloudFormationToken { | ||
private readonly thisIsAEventSourceMappingName; | ||
} | ||
export declare namespace cloudformation { | ||
@@ -239,4 +233,4 @@ /** | ||
*/ | ||
readonly functionArn: FunctionArn; | ||
readonly ref: FunctionName; | ||
readonly functionArn: string; | ||
readonly functionName: string; | ||
/** | ||
@@ -337,8 +331,2 @@ * Creates a new ``AWS::Lambda::Function``. | ||
} | ||
export declare class FunctionArn extends cdk.Arn { | ||
private readonly thisIsAFunctionArn; | ||
} | ||
export declare class FunctionName extends cdk.CloudFormationToken { | ||
private readonly thisIsAFunctionName; | ||
} | ||
export declare namespace cloudformation { | ||
@@ -433,4 +421,4 @@ /** | ||
*/ | ||
readonly version: Version; | ||
readonly ref: VersionArn; | ||
readonly version: string; | ||
readonly versionArn: string; | ||
/** | ||
@@ -449,7 +437,1 @@ * Creates a new ``AWS::Lambda::Version``. | ||
} | ||
export declare class Version extends cdk.CloudFormationToken { | ||
private readonly thisIsAVersion; | ||
} | ||
export declare class VersionArn extends cdk.Arn { | ||
private readonly thisIsAVersionArn; | ||
} |
@@ -187,2 +187,2 @@ "use strict"; | ||
exports.Function = Function; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFtYmRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibGFtYmRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsd0NBQXlDO0FBQ3pDLHdDQUF5QztBQUN6Qyx3Q0FBeUM7QUFDekMsb0NBQXFDO0FBRXJDLDZDQUEyQztBQUMzQyxxREFBbUQ7QUFDbkQseURBQStFO0FBRy9FOztHQUVHO0FBQ0gsSUFBWSxPQWVYO0FBZkQsV0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WV1ZScsIHtcbiAgICAgICAgICAgIHJldGVudGlvblBlcmlvZFNlYzogMTIwOTYwMFxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLmFkZFRvUm9sZVBvbGljeShuZXcgY2RrLlBvbGljeVN0YXRlbWVudCgpXG4gICAgICAgICAgICAuYWRkQWN0aW9uKCdzcXM6U2VuZE1lc3NhZ2UnKVxuICAgICAgICAgICAgLmFkZFJlc291cmNlKGRlYWRMZXR0ZXJRdWV1ZS5xdWV1ZUFybikpO1xuXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB0YXJnZXRBcm46IGRlYWRMZXR0ZXJRdWV1ZS5xdWV1ZUFyblxuICAgICAgICB9O1xuICAgIH1cblxuICAgIHByaXZhdGUgYnVpbGRUcmFjaW5nQ29uZmlnKHByb3BzOiBGdW5jdGlvblByb3BzKSB7XG4gICAgICAgIGlmIChwcm9wcy50cmFjaW5nID09PSB1bmRlZmluZWQgfHwgcHJvcHMudHJhY2luZyA9PT0gVHJhY2luZy5EaXNhYmxlZCkge1xuICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuYWRkVG9Sb2xlUG9saWN5KG5ldyBjZGsuUG9saWN5U3RhdGVtZW50KClcbiAgICAgICAgICAgIC5hZGRBY3Rpb25zKCd4cmF5OlB1dFRyYWNlU2VnbWVudHMnLCAneHJheTpQdXRUZWxlbWV0cnlSZWNvcmRzJylcbiAgICAgICAgICAgIC5hZGRBbGxSZXNvdXJjZXMoKSk7XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIG1vZGU6IFRyYWNpbmdbcHJvcHMudHJhY2luZ11cbiAgICAgICAgfTtcbiAgICB9XG5cbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFtYmRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibGFtYmRhLnR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11cbiAgICAgICAgfTtcbiAgICB9XG5cbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
import { Arn, PolicyPrincipal } from '@aws-cdk/cdk'; | ||
import { PolicyPrincipal } from '@aws-cdk/cdk'; | ||
/** | ||
@@ -41,3 +41,3 @@ * Represents a permission statement that can be added to a Lambda's resource policy | ||
*/ | ||
sourceAccount?: any; | ||
sourceAccount?: string; | ||
/** | ||
@@ -51,3 +51,3 @@ * The ARN of a resource that is invoking your function. When granting | ||
*/ | ||
sourceArn?: Arn; | ||
sourceArn?: string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVybWlzc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBlcm1pc3Npb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFybiwgUG9saWN5UHJpbmNpcGFsIH0gZnJvbSAnQGF3cy1jZGsvY2RrJztcblxuLyoqXG4gKiBSZXByZXNlbnRzIGEgcGVybWlzc2lvbiBzdGF0ZW1lbnQgdGhhdCBjYW4gYmUgYWRkZWQgdG8gYSBMYW1iZGEncyByZXNvdXJjZSBwb2xpY3lcbiAqIHZpYSB0aGUgYGFkZFRvUmVzb3VyY2VQb2xpY3lgIG1ldGhvZC5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBQZXJtaXNzaW9uIHtcbiAgICAvKipcbiAgICAgKiBUaGUgTGFtYmRhIGFjdGlvbnMgdGhhdCB5b3Ugd2FudCB0byBhbGxvdyBpbiB0aGlzIHN0YXRlbWVudC4gRm9yIGV4YW1wbGUsXG4gICAgICogeW91IGNhbiBzcGVjaWZ5IGxhbWJkYTpDcmVhdGVGdW5jdGlvbiB0byBzcGVjaWZ5IGEgY2VydGFpbiBhY3Rpb24sIG9yIHVzZVxuICAgIC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25seSBmcm9tIHRoZSBzcGVjaWZpZWQgYnVja2V0LCBub3QganVzdFxuICAgICAqIGFueSBidWNrZXQgZnJvbSBhbnkgQVdTIGFjY291bnQgdGhhdCBjcmVhdGVzIGEgbWFwcGluZyB0byB5b3VyIGZ1bmN0aW9uLFxuICAgICAqIGNhbiBpbnZva2UgdGhlIGZ1bmN0aW9uLlxuICAgICAqL1xuICAgIHNvdXJjZUFybj86IHN0cmluZztcbn1cbiJdfQ== |
@@ -5,3 +5,2 @@ import iam = require('@aws-cdk/aws-iam'); | ||
import { FunctionRef } from './lambda-ref'; | ||
import { FunctionArn, FunctionName } from './lambda.generated'; | ||
import { Permission } from './permission'; | ||
@@ -37,4 +36,4 @@ /** | ||
export declare class SingletonFunction extends FunctionRef { | ||
readonly functionName: FunctionName; | ||
readonly functionArn: FunctionArn; | ||
readonly functionName: string; | ||
readonly functionArn: string; | ||
readonly role?: iam.Role | undefined; | ||
@@ -41,0 +40,0 @@ protected readonly canCreatePermissions: boolean; |
@@ -39,2 +39,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xldG9uLWxhbWJkYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNpbmdsZXRvbi1sYW1iZGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxvQ0FBcUM7QUFDckMscUNBQW1EO0FBQ25ELDZDQUEyQztBQTRCM0M7Ozs7O0dBS0c7QUFDSCxNQUFhLGlCQUFrQixTQUFRLHdCQUFXO0lBTzlDLFlBQVksTUFBcUIsRUFBRSxJQUFZLEVBQUUsS0FBNkI7UUFDMUUsS0FBSyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsQ0FBQztRQUVwQixJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLENBQUM7UUFFL0MsSUFBSSxDQU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
"version": "0.9.2", | ||
"description": "CDK Constructs for AWS Lambda", | ||
@@ -58,23 +58,23 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.9.1", | ||
"cdk-build-tools": "^0.9.1", | ||
"cdk-integ-tools": "^0.9.1", | ||
"cfn2ts": "^0.9.1", | ||
"pkglint": "^0.9.1" | ||
"@aws-cdk/assert": "^0.9.2", | ||
"cdk-build-tools": "^0.9.2", | ||
"cdk-integ-tools": "^0.9.2", | ||
"cfn2ts": "^0.9.2", | ||
"pkglint": "^0.9.2" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/assets": "^0.9.1", | ||
"@aws-cdk/aws-cloudwatch": "^0.9.1", | ||
"@aws-cdk/aws-codepipeline-api": "^0.9.1", | ||
"@aws-cdk/aws-ec2": "^0.9.1", | ||
"@aws-cdk/aws-events": "^0.9.1", | ||
"@aws-cdk/aws-iam": "^0.9.1", | ||
"@aws-cdk/aws-logs": "^0.9.1", | ||
"@aws-cdk/aws-s3": "^0.9.1", | ||
"@aws-cdk/aws-s3-notifications": "^0.9.1", | ||
"@aws-cdk/aws-sqs": "^0.9.1", | ||
"@aws-cdk/cdk": "^0.9.1", | ||
"@aws-cdk/cx-api": "^0.9.1" | ||
"@aws-cdk/assets": "^0.9.2", | ||
"@aws-cdk/aws-cloudwatch": "^0.9.2", | ||
"@aws-cdk/aws-codepipeline-api": "^0.9.2", | ||
"@aws-cdk/aws-ec2": "^0.9.2", | ||
"@aws-cdk/aws-events": "^0.9.2", | ||
"@aws-cdk/aws-iam": "^0.9.2", | ||
"@aws-cdk/aws-logs": "^0.9.2", | ||
"@aws-cdk/aws-s3": "^0.9.2", | ||
"@aws-cdk/aws-s3-notifications": "^0.9.2", | ||
"@aws-cdk/aws-sqs": "^0.9.2", | ||
"@aws-cdk/cdk": "^0.9.2", | ||
"@aws-cdk/cx-api": "^0.9.2" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk" | ||
} |
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 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
792981
6036
Updated@aws-cdk/assets@^0.9.2
Updated@aws-cdk/aws-ec2@^0.9.2
Updated@aws-cdk/aws-events@^0.9.2
Updated@aws-cdk/aws-iam@^0.9.2
Updated@aws-cdk/aws-logs@^0.9.2
Updated@aws-cdk/aws-s3@^0.9.2
Updated@aws-cdk/aws-sqs@^0.9.2
Updated@aws-cdk/cdk@^0.9.2
Updated@aws-cdk/cx-api@^0.9.2