@aws-cdk/aws-sqs
Advanced tools
Comparing version 0.21.0 to 0.22.0
import { PolicyDocument } from '@aws-cdk/aws-iam'; | ||
import { Construct, IDependable } from '@aws-cdk/cdk'; | ||
import { QueueRef } from './queue-ref'; | ||
import { IQueue } from './queue-ref'; | ||
export interface QueuePolicyProps { | ||
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
queues: QueueRef[]; | ||
queues: IQueue[]; | ||
} | ||
@@ -23,3 +23,3 @@ /** | ||
readonly dependencyElements: IDependable[]; | ||
constructor(parent: Construct, name: string, props: QueuePolicyProps); | ||
constructor(scope: Construct, id: string, props: QueuePolicyProps); | ||
} |
@@ -10,4 +10,4 @@ "use strict"; | ||
class QueuePolicy extends cdk_1.Construct { | ||
constructor(parent, name, props) { | ||
super(parent, name); | ||
constructor(scope, id, props) { | ||
super(scope, id); | ||
/** | ||
@@ -29,2 +29,2 @@ * The IAM policy document for this policy. | ||
exports.QueuePolicy = QueuePolicy; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9saWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicG9saWN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsOENBQWtEO0FBQ2xELHNDQUFzRDtBQUV0RCxtREFBaUQ7QUFTakQ7O0dBRUc7QUFDSCxNQUFhLFdBQVksU0FBUSxlQUFTO0lBV3hDLFlBQVksTUFBaUIsRUFBRSxJQUFZLEVBQUUsS0FBdUI7UUFDbEUsS0FBSyxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsQ0FBQztRQVh0Qjs7V0FFRztRQUNhLGFBQVEsR0FBRyxJQUFJLHdCQUFjLEVBQUUsQ0FBQztRQUVoRDs7V0FFRztRQUNhLHVCQUFrQixHQUFHLElBQUksS0FBSyxFQUFlLENBQUM7UUFLNUQsTUFBTSxRQUFRLEdBQUcsSUFBSSw4QkFBYyxDQUFDLElBQUksRUFBR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xuICBwdWJsaWMgcmVhZG9ubHkgZG9jdW1lbnQgPSBuZXcgUG9saWN5RG9jdW1lbnQoKTtcblxuICAvKipcbiAgICogQWxsb3dzIGFkZGluZyBRdWV1ZVBvbGljeSBhcyBhIGRlcGVuZGVuY3kuXG4gICAqL1xuICBwdWJsaWMgcmVhZG9ubHkgZGVwZW5kZW5jeUVsZW1lbnRzID0gbmV3IEFycmF5PElEZXBlbmRhYmxlPigpO1xuXG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIHByb3BzOiBRdWV1ZVBvbGljeVByb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcblxuICAgIGNvbnN0IHJlc291cmNlID0gbmV3IENmblF1ZXVlUG9saWN5KHRoaXMsICdSZXNvdXJjZScsIHtcbiAgICAgIHBvbGljeURvY3VtZW50OiB0aGlzLmRvY3VtZW50LFxuICAgICAgcXVldWVzOiBwcm9wcy5xdWV1ZXMubWFwKHEgPT4gcS5xdWV1ZVVybClcbiAgICB9KTtcblxuICAgIHRoaXMuZGVwZW5kZW5jeUVsZW1lbnRzLnB1c2gocmVzb3VyY2UpO1xuICB9XG59XG4iXX0= |
@@ -6,11 +6,83 @@ import autoscaling_api = require('@aws-cdk/aws-autoscaling-api'); | ||
import cdk = require('@aws-cdk/cdk'); | ||
export interface IQueue extends cdk.IConstruct, s3n.IBucketNotificationDestination, autoscaling_api.ILifecycleHookTarget { | ||
/** | ||
* The ARN of this queue | ||
*/ | ||
readonly queueArn: string; | ||
/** | ||
* The URL of this queue | ||
*/ | ||
readonly queueUrl: string; | ||
/** | ||
* If this queue is server-side encrypted, this is the KMS encryption key. | ||
*/ | ||
readonly encryptionMasterKey?: kms.IEncryptionKey; | ||
/** | ||
* Export a queue | ||
*/ | ||
export(): QueueImportProps; | ||
/** | ||
* Adds a statement to the IAM resource policy associated with this queue. | ||
* | ||
* If this queue was created in this stack (`new Queue`), a queue policy | ||
* will be automatically created upon the first call to `addToPolicy`. If | ||
* the queue is improted (`Queue.import`), then this is a no-op. | ||
*/ | ||
addToResourcePolicy(statement: iam.PolicyStatement): void; | ||
/** | ||
* Grant permissions to consume messages from a queue | ||
* | ||
* This will grant the following permissions: | ||
* | ||
* - sqs:ChangeMessageVisibility | ||
* - sqs:ChangeMessageVisibilityBatch | ||
* - sqs:DeleteMessage | ||
* - sqs:ReceiveMessage | ||
* - sqs:DeleteMessageBatch | ||
* - sqs:GetQueueAttributes | ||
* - sqs:GetQueueUrl | ||
* | ||
* @param identity Principal to grant consume rights to | ||
*/ | ||
grantConsumeMessages(identity?: iam.IPrincipal): void; | ||
/** | ||
* Grant access to send messages to a queue to the given identity. | ||
* | ||
* This will grant the following permissions: | ||
* | ||
* - sqs:SendMessage | ||
* - sqs:SendMessageBatch | ||
* - sqs:GetQueueAttributes | ||
* - sqs:GetQueueUrl | ||
* | ||
* @param identity Principal to grant send rights to | ||
*/ | ||
grantSendMessages(identity?: iam.IPrincipal): void; | ||
/** | ||
* Grant an IAM principal permissions to purge all messages from the queue. | ||
* | ||
* This will grant the following permissions: | ||
* | ||
* - sqs:PurgeQueue | ||
* - sqs:GetQueueAttributes | ||
* - sqs:GetQueueUrl | ||
* | ||
* @param identity Principal to grant send rights to | ||
* @param queueActions additional queue actions to allow | ||
*/ | ||
grantPurge(identity?: iam.IPrincipal): void; | ||
/** | ||
* Grant the actions defined in queueActions to the identity Principal given | ||
* on this SQS queue resource. | ||
* | ||
* @param identity Principal to grant right to | ||
* @param queueActions The actions to grant | ||
*/ | ||
grant(identity?: iam.IPrincipal, ...queueActions: string[]): void; | ||
} | ||
/** | ||
* Reference to a new or existing Amazon SQS queue | ||
*/ | ||
export declare abstract class QueueRef extends cdk.Construct implements s3n.IBucketNotificationDestination, autoscaling_api.ILifecycleHookTarget { | ||
export declare abstract class QueueBase extends cdk.Construct implements IQueue { | ||
/** | ||
* Import an existing queue | ||
*/ | ||
static import(parent: cdk.Construct, name: string, props: QueueRefProps): QueueRef; | ||
/** | ||
* The ARN of this queue | ||
@@ -26,3 +98,3 @@ */ | ||
*/ | ||
abstract readonly encryptionMasterKey?: kms.EncryptionKeyRef; | ||
abstract readonly encryptionMasterKey?: kms.IEncryptionKey; | ||
/** | ||
@@ -42,3 +114,3 @@ * Controls automatic creation of policy objects. | ||
*/ | ||
export(): QueueRefProps; | ||
abstract export(): QueueImportProps; | ||
/** | ||
@@ -117,3 +189,3 @@ * Adds a statement to the IAM resource policy associated with this queue. | ||
*/ | ||
export interface QueueRefProps { | ||
export interface QueueImportProps { | ||
/** | ||
@@ -128,2 +200,7 @@ * The ARN of the queue. | ||
/** | ||
* The name of the queue. | ||
* @default if queue name is not specified, the name will be derived from the queue ARN | ||
*/ | ||
queueName?: string; | ||
/** | ||
* KMS encryption key, if this queue is server-side encrypted by a KMS key. | ||
@@ -130,0 +207,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const iam = require("@aws-cdk/aws-iam"); | ||
const kms = require("@aws-cdk/aws-kms"); | ||
const s3n = require("@aws-cdk/aws-s3-notifications"); | ||
@@ -11,3 +10,3 @@ const cdk = require("@aws-cdk/cdk"); | ||
*/ | ||
class QueueRef extends cdk.Construct { | ||
class QueueBase extends cdk.Construct { | ||
constructor() { | ||
@@ -21,20 +20,2 @@ super(...arguments); | ||
/** | ||
* Import an existing queue | ||
*/ | ||
static import(parent, name, props) { | ||
return new ImportedQueue(parent, name, props); | ||
} | ||
/** | ||
* Export a queue | ||
*/ | ||
export() { | ||
return { | ||
queueArn: new cdk.Output(this, 'QueueArn', { value: this.queueArn }).makeImportValue().toString(), | ||
queueUrl: new cdk.Output(this, 'QueueUrl', { value: this.queueUrl }).makeImportValue().toString(), | ||
keyArn: this.encryptionMasterKey | ||
? new cdk.Output(this, 'KeyArn', { value: this.encryptionMasterKey.keyArn }).makeImportValue().toString() | ||
: undefined | ||
}; | ||
} | ||
/** | ||
* Adds a statement to the IAM resource policy associated with this queue. | ||
@@ -158,19 +139,3 @@ * | ||
} | ||
exports.QueueRef = QueueRef; | ||
/** | ||
* A queue that has been imported | ||
*/ | ||
class ImportedQueue extends QueueRef { | ||
constructor(parent, name, props) { | ||
super(parent, name); | ||
this.autoCreatePolicy = false; | ||
this.queueArn = props.queueArn; | ||
this.queueUrl = props.queueUrl; | ||
if (props.keyArn) { | ||
this.encryptionMasterKey = kms.EncryptionKey.import(this, 'Key', { | ||
keyArn: props.keyArn | ||
}); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVldWUtcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicXVldWUtcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0Esd0NBQXlDO0FBQ3pDLHdDQUF5QztBQUN6QyxxREFBc0Q7QUFDdEQsb0NBQXFDO0FBQ3JDLHFDQUF1QztBQUV2Qzs7R0FFRztBQUNILE1BQXNCLFFBQVMsU0FBUSxHQUFHLENBQUMsU0FBUztJQUFwRDs7UUFnQ0U7O1dBRUc7UUFDYyxxQkFBZ0IsR0FBRyxJQUFJLEdBQUcsRUFBVSxDQUFDO0lBOEp4RCxDQUFDO0lBaE1DOztPQUVHO0lBQ0ksTUFBTSxDQUFDLE1BQU0sQ0FBQyxNQUFxQixFQUFFLElBQVksRUFBRSxLQUFvQjtRQUM1RSxPQUFPLElBQUksYUFBYSxDQUFDLE1BQU0sRUFBRSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDaEQsQ0FBQztJQStCRDs7T0FFRztJQUNJLE1BQU07UUFDWCxPQUFPO1lBQ0wsUUFBUSxFQUFFLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFLEVBQUUsS0FBSyxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLGVBQWUsRUFBRSxDQUF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lzIHNlcnZlci1zaWRlIGVuY3J5cHRlZCBieSBhIEtNUyBrZXkuXG4gICAqL1xuICBrZXlBcm4/OiBzdHJpbmc7XG59XG4iXX0= |
import kms = require('@aws-cdk/aws-kms'); | ||
import cdk = require('@aws-cdk/cdk'); | ||
import { QueueRef } from './queue-ref'; | ||
import { IQueue, QueueBase, QueueImportProps } from './queue-ref'; | ||
/** | ||
@@ -95,3 +95,3 @@ * Properties for creating a new Queue | ||
*/ | ||
encryptionMasterKey?: kms.EncryptionKeyRef; | ||
encryptionMasterKey?: kms.IEncryptionKey; | ||
/** | ||
@@ -135,3 +135,3 @@ * The length of time that Amazon SQS reuses a data key before calling KMS again. | ||
*/ | ||
queue: QueueRef; | ||
queue: IQueue; | ||
/** | ||
@@ -164,4 +164,8 @@ * The number of times a message can be unsuccesfully dequeued before being moved to the dead-letter queue. | ||
*/ | ||
export declare class Queue extends QueueRef { | ||
export declare class Queue extends QueueBase { | ||
/** | ||
* Import an existing queue | ||
*/ | ||
static import(scope: cdk.Construct, id: string, props: QueueImportProps): IQueue; | ||
/** | ||
* The ARN of this queue | ||
@@ -181,6 +185,10 @@ */ | ||
*/ | ||
readonly encryptionMasterKey?: kms.EncryptionKeyRef; | ||
readonly encryptionMasterKey?: kms.IEncryptionKey; | ||
protected readonly autoCreatePolicy = true; | ||
constructor(parent: cdk.Construct, name: string, props?: QueueProps); | ||
constructor(scope: cdk.Construct, id: string, props?: QueueProps); | ||
/** | ||
* Export a queue | ||
*/ | ||
export(): QueueImportProps; | ||
/** | ||
* Look at the props, see if the FIFO props agree, and return the correct subset of props | ||
@@ -187,0 +195,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const kms = require("@aws-cdk/aws-kms"); | ||
const cdk = require("@aws-cdk/cdk"); | ||
const queue_ref_1 = require("./queue-ref"); | ||
@@ -30,5 +31,5 @@ const sqs_generated_1 = require("./sqs.generated"); | ||
*/ | ||
class Queue extends queue_ref_1.QueueRef { | ||
constructor(parent, name, props = {}) { | ||
super(parent, name); | ||
class Queue extends queue_ref_1.QueueBase { | ||
constructor(scope, id, props = {}) { | ||
super(scope, id); | ||
this.autoCreatePolicy = true; | ||
@@ -70,3 +71,3 @@ validate_props_1.validateProps(props); | ||
const masterKey = props.encryptionMasterKey || new kms.EncryptionKey(this, 'Key', { | ||
description: `Created by ${this.path}` | ||
description: `Created by ${this.node.path}` | ||
}); | ||
@@ -85,2 +86,20 @@ return { | ||
/** | ||
* Import an existing queue | ||
*/ | ||
static import(scope, id, props) { | ||
return new ImportedQueue(scope, id, props); | ||
} | ||
/** | ||
* Export a queue | ||
*/ | ||
export() { | ||
return { | ||
queueArn: new cdk.Output(this, 'QueueArn', { value: this.queueArn }).makeImportValue().toString(), | ||
queueUrl: new cdk.Output(this, 'QueueUrl', { value: this.queueUrl }).makeImportValue().toString(), | ||
keyArn: this.encryptionMasterKey | ||
? new cdk.Output(this, 'KeyArn', { value: this.encryptionMasterKey.keyArn }).makeImportValue().toString() | ||
: undefined | ||
}; | ||
} | ||
/** | ||
* Look at the props, see if the FIFO props agree, and return the correct subset of props | ||
@@ -116,2 +135,25 @@ */ | ||
exports.Queue = Queue; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVldWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJxdWV1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHdDQUF5QztBQUV6QywyQ0FBdUM7QUFDdkMsbURBQTJDO0FBQzNDLHFEQUFpRDtBQXdKakQ7O0dBRUc7QUFDSCxJQUFZLGVBaUJYO0FBakJELFdBQVksZUFBZTtJQUN6Qjs7T0FFRztJQUNILHVDQUFvQixDQUFBO0lBRXBCOztPQUVHO0lBQ0gseUNBQXNCLENBQUE7SUFFdEI7Ozs7T0FJRztJQUNILDhCQUFXLENBQUE7QUFDYixDQUFDLEVBakJXLGVBQWUsR0FBZix1QkFBZ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udGVudEJhc2VkRGVkdXBsaWNhdGlvbjogcHJvcHMuY29udGVudEJhc2VkRGVkdXBsaWNhdGlvbixcbiAgICAgIGZpZm9RdWV1ZSxcbiAgICB9O1xuICB9XG59XG5cbmludGVyZmFjZSBGaWZvUHJvcHMge1xuICByZWFkb25seSBmaWZvUXVldWU/OiBib29sZWFuO1xuICByZWFkb25seSBjb250ZW50QmFzZWREZWR1cGxpY2F0aW9uPzogYm9vbGVhbjtcbn1cblxuaW50ZXJmYWNlIEVuY3J5cHRpb25Qcm9wcyB7XG4gIHJlYWRvbmx5IGttc01hc3RlcktleUlkPzogc3RyaW5nO1xuICByZWFkb25seSBrbXNEYXRhS2V5UmV1c2VQZXJpb2RTZWNvbmRzPzogbnVtYmVyO1xufVxuIl19 | ||
/** | ||
* A queue that has been imported | ||
*/ | ||
class ImportedQueue extends queue_ref_1.QueueBase { | ||
constructor(scope, id, props) { | ||
super(scope, id); | ||
this.props = props; | ||
this.autoCreatePolicy = false; | ||
this.queueArn = props.queueArn; | ||
this.queueUrl = props.queueUrl; | ||
if (props.keyArn) { | ||
this.encryptionMasterKey = kms.EncryptionKey.import(this, 'Key', { | ||
keyArn: props.keyArn | ||
}); | ||
} | ||
} | ||
/** | ||
* Export a queue | ||
*/ | ||
export() { | ||
return this.props; | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVldWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJxdWV1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHdDQUF5QztBQUN6QyxvQ0FBcUM7QUFDckMsMkNBQWtFO0FBQ2xFLG1EQUEyQztBQUMzQyxxREFBaUQ7QUF3SmpEOztHQUVHO0FBQ0gsSUFBWSxlQWlCWDtBQWpCRCxXQUFZLGVBQWU7SUFDekI7O09BRUc7SUFDSCx1Q0FBb0IsQ0FBQTtJQUVwQjs7T0FFRztJQUNILHlDQ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ljIHJlYWRvbmx5IHF1ZXVlQXJuOiBzdHJpbmc7XG4gIHB1YmxpYyByZWFkb25seSBxdWV1ZVVybDogc3RyaW5nO1xuICBwdWJsaWMgcmVhZG9ubHkgZW5jcnlwdGlvbk1hc3RlcktleT86IGttcy5JRW5jcnlwdGlvbktleTtcblxuICBwcm90ZWN0ZWQgcmVhZG9ubHkgYXV0b0NyZWF0ZVBvbGljeSA9IGZhbHNlO1xuXG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcml2YXRlIHJlYWRvbmx5IHByb3BzOiBRdWV1ZUltcG9ydFByb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcbiAgICB0aGlzLnF1ZXVlQXJuID0gcHJvcHMucXVldWVBcm47XG4gICAgdGhpcy5xdWV1ZVVybCA9IHByb3BzLnF1ZXVlVXJsO1xuXG4gICAgaWYgKHByb3BzLmtleUFybikge1xuICAgICAgdGhpcy5lbmNyeXB0aW9uTWFzdGVyS2V5ID0ga21zLkVuY3J5cHRpb25LZXkuaW1wb3J0KHRoaXMsICdLZXknLCB7XG4gICAgICAgIGtleUFybjogcHJvcHMua2V5QXJuXG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICAvKipcbiAgICogRXhwb3J0IGEgcXVldWVcbiAgICovXG4gIHB1YmxpYyBleHBvcnQoKSB7XG4gICAgcmV0dXJuIHRoaXMucHJvcHM7XG4gIH1cbn1cbiJdfQ== |
@@ -30,3 +30,3 @@ import cdk = require('@aws-cdk/cdk'); | ||
*/ | ||
kmsMasterKeyId?: string | cdk.Token; | ||
kmsMasterKeyId?: string; | ||
/** | ||
@@ -46,3 +46,3 @@ * ``AWS::SQS::Queue.MaximumMessageSize`` | ||
*/ | ||
queueName?: string | cdk.Token; | ||
queueName?: string; | ||
/** | ||
@@ -89,7 +89,7 @@ * ``AWS::SQS::Queue.ReceiveMessageWaitTimeSeconds`` | ||
* | ||
* @param parent the ``cdk.Construct`` this ``CfnQueue`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``CfnQueue`` | ||
* @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?: CfnQueueProps); | ||
constructor(scope: cdk.Construct, id: string, props?: CfnQueueProps); | ||
readonly propertyOverrides: CfnQueueProps; | ||
@@ -100,100 +100,2 @@ protected renderProperties(properties: any): { | ||
} | ||
export declare namespace cloudformation { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html | ||
*/ | ||
interface QueueResourceProps { | ||
/** | ||
* ``AWS::SQS::Queue.ContentBasedDeduplication`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-contentbaseddeduplication | ||
*/ | ||
contentBasedDeduplication?: boolean | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.DelaySeconds`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-delayseconds | ||
*/ | ||
delaySeconds?: number | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.FifoQueue`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-fifoqueue | ||
*/ | ||
fifoQueue?: boolean | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.KmsDataKeyReusePeriodSeconds`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-kmsdatakeyreuseperiodseconds | ||
*/ | ||
kmsDataKeyReusePeriodSeconds?: number | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.KmsMasterKeyId`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-kmsmasterkeyid | ||
*/ | ||
kmsMasterKeyId?: string | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.MaximumMessageSize`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-maxmesgsize | ||
*/ | ||
maximumMessageSize?: number | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.MessageRetentionPeriod`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-msgretentionperiod | ||
*/ | ||
messageRetentionPeriod?: number | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.QueueName`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-name | ||
*/ | ||
queueName?: string | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.ReceiveMessageWaitTimeSeconds`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-receivemsgwaittime | ||
*/ | ||
receiveMessageWaitTimeSeconds?: number | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.RedrivePolicy`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-redrive | ||
*/ | ||
redrivePolicy?: object | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.Tags`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#cfn-sqs-queue-tags | ||
*/ | ||
tags?: Array<cdk.Tag | cdk.Token> | cdk.Token; | ||
/** | ||
* ``AWS::SQS::Queue.VisibilityTimeout`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-sqs-queue-visiblitytimeout | ||
*/ | ||
visibilityTimeout?: number | cdk.Token; | ||
} | ||
/** | ||
* @deprecated "cloudformation.QueueResource" will be deprecated in a future release in favor of "CfnQueue" (see https://github.com/awslabs/aws-cdk/issues/878) | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html | ||
*/ | ||
class QueueResource extends cdk.Resource { | ||
/** | ||
* The CloudFormation resource type name for this resource class. | ||
*/ | ||
static readonly resourceTypeName = "AWS::SQS::Queue"; | ||
/** | ||
* @cloudformation_attribute Arn | ||
*/ | ||
readonly queueArn: string; | ||
/** | ||
* @cloudformation_attribute QueueName | ||
*/ | ||
readonly queueName: string; | ||
readonly queueUrl: string; | ||
/** | ||
* Creates a new ``AWS::SQS::Queue``. | ||
* | ||
* @param parent the ``cdk.Construct`` this ``QueueResource`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``QueueResource`` | ||
*/ | ||
constructor(parent: cdk.Construct, name: string, properties?: QueueResourceProps); | ||
readonly propertyOverrides: QueueResourceProps; | ||
protected renderProperties(properties: any): { | ||
[key: string]: any; | ||
}; | ||
} | ||
} | ||
/** | ||
@@ -225,7 +127,7 @@ * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html | ||
* | ||
* @param parent the ``cdk.Construct`` this ``CfnQueuePolicy`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``CfnQueuePolicy`` | ||
* @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: CfnQueuePolicyProps); | ||
constructor(scope: cdk.Construct, id: string, props: CfnQueuePolicyProps); | ||
readonly propertyOverrides: CfnQueuePolicyProps; | ||
@@ -236,40 +138,1 @@ protected renderProperties(properties: any): { | ||
} | ||
export declare namespace cloudformation { | ||
/** | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html | ||
*/ | ||
interface QueuePolicyResourceProps { | ||
/** | ||
* ``AWS::SQS::QueuePolicy.PolicyDocument`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html#cfn-sqs-queuepolicy-policydoc | ||
*/ | ||
policyDocument: object | cdk.Token; | ||
/** | ||
* ``AWS::SQS::QueuePolicy.Queues`` | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html#cfn-sqs-queuepolicy-queues | ||
*/ | ||
queues: Array<string | cdk.Token> | cdk.Token; | ||
} | ||
/** | ||
* @deprecated "cloudformation.QueuePolicyResource" will be deprecated in a future release in favor of "CfnQueuePolicy" (see https://github.com/awslabs/aws-cdk/issues/878) | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html | ||
*/ | ||
class QueuePolicyResource extends cdk.Resource { | ||
/** | ||
* The CloudFormation resource type name for this resource class. | ||
*/ | ||
static readonly resourceTypeName = "AWS::SQS::QueuePolicy"; | ||
/** | ||
* Creates a new ``AWS::SQS::QueuePolicy``. | ||
* | ||
* @param parent the ``cdk.Construct`` this ``QueuePolicyResource`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``QueuePolicyResource`` | ||
*/ | ||
constructor(parent: cdk.Construct, name: string, properties: QueuePolicyResourceProps); | ||
readonly propertyOverrides: QueuePolicyResourceProps; | ||
protected renderProperties(properties: any): { | ||
[key: string]: any; | ||
}; | ||
} | ||
} |
@@ -5,3 +5,3 @@ "use strict"; | ||
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html | ||
// @cfn2ts:meta@ {"generated":"2018-12-20T13:07:17.382Z","fingerprint":"+B7o3kjK6Xvd95o/OmW7RRrXwXDP1uPPEA3dOcCA+GY="} | ||
// @cfn2ts:meta@ {"generated":"2019-01-11T09:50:38.291Z","fingerprint":"+B7o3kjK6Xvd95o/OmW7RRrXwXDP1uPPEA3dOcCA+GY="} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -70,8 +70,8 @@ // tslint:disable:max-line-length | This is generated code - line lengths are difficult to control | ||
* | ||
* @param parent the ``cdk.Construct`` this ``CfnQueue`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``CfnQueue`` | ||
* @param scope scope in which this resource is defined | ||
* @param id scoped id of the resource | ||
* @param props resource properties | ||
*/ | ||
constructor(parent, name, properties) { | ||
super(parent, name, { type: CfnQueue.resourceTypeName, properties }); | ||
constructor(scope, id, props) { | ||
super(scope, id, { type: CfnQueue.resourceTypeName, properties: props }); | ||
this.queueArn = this.getAtt('Arn').toString(); | ||
@@ -85,3 +85,3 @@ this.queueName = this.getAtt('QueueName').toString(); | ||
renderProperties(properties) { | ||
return cfnQueuePropsToCloudFormation(cdk.resolve(properties)); | ||
return cfnQueuePropsToCloudFormation(this.node.resolve(properties)); | ||
} | ||
@@ -94,90 +94,2 @@ } | ||
exports.CfnQueue = CfnQueue; | ||
// legacy "cloudformation" namespace (will be deprecated soon) | ||
var cloudformation; | ||
(function (cloudformation) { | ||
/** | ||
* Determine whether the given properties match those of a ``QueueResourceProps`` | ||
* | ||
* @param properties the TypeScript properties of a ``QueueResourceProps`` | ||
* | ||
* @returns the result of the validation. | ||
*/ | ||
function QueueResourcePropsValidator(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return cdk.VALIDATION_SUCCESS; | ||
} | ||
const errors = new cdk.ValidationResults(); | ||
errors.collect(cdk.propertyValidator('contentBasedDeduplication', cdk.validateBoolean)(properties.contentBasedDeduplication)); | ||
errors.collect(cdk.propertyValidator('delaySeconds', cdk.validateNumber)(properties.delaySeconds)); | ||
errors.collect(cdk.propertyValidator('fifoQueue', cdk.validateBoolean)(properties.fifoQueue)); | ||
errors.collect(cdk.propertyValidator('kmsDataKeyReusePeriodSeconds', cdk.validateNumber)(properties.kmsDataKeyReusePeriodSeconds)); | ||
errors.collect(cdk.propertyValidator('kmsMasterKeyId', cdk.validateString)(properties.kmsMasterKeyId)); | ||
errors.collect(cdk.propertyValidator('maximumMessageSize', cdk.validateNumber)(properties.maximumMessageSize)); | ||
errors.collect(cdk.propertyValidator('messageRetentionPeriod', cdk.validateNumber)(properties.messageRetentionPeriod)); | ||
errors.collect(cdk.propertyValidator('queueName', cdk.validateString)(properties.queueName)); | ||
errors.collect(cdk.propertyValidator('receiveMessageWaitTimeSeconds', cdk.validateNumber)(properties.receiveMessageWaitTimeSeconds)); | ||
errors.collect(cdk.propertyValidator('redrivePolicy', cdk.validateObject)(properties.redrivePolicy)); | ||
errors.collect(cdk.propertyValidator('tags', cdk.listValidator(cdk.validateTag))(properties.tags)); | ||
errors.collect(cdk.propertyValidator('visibilityTimeout', cdk.validateNumber)(properties.visibilityTimeout)); | ||
return errors.wrap('supplied properties not correct for "QueueResourceProps"'); | ||
} | ||
/** | ||
* Renders the AWS CloudFormation properties of an ``AWS::SQS::Queue`` resource | ||
* | ||
* @param properties the TypeScript properties of a ``QueueResourceProps`` | ||
* | ||
* @returns the AWS CloudFormation properties of an ``AWS::SQS::Queue`` resource. | ||
*/ | ||
function queueResourcePropsToCloudFormation(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return properties; | ||
} | ||
QueueResourcePropsValidator(properties).assertSuccess(); | ||
return { | ||
ContentBasedDeduplication: cdk.booleanToCloudFormation(properties.contentBasedDeduplication), | ||
DelaySeconds: cdk.numberToCloudFormation(properties.delaySeconds), | ||
FifoQueue: cdk.booleanToCloudFormation(properties.fifoQueue), | ||
KmsDataKeyReusePeriodSeconds: cdk.numberToCloudFormation(properties.kmsDataKeyReusePeriodSeconds), | ||
KmsMasterKeyId: cdk.stringToCloudFormation(properties.kmsMasterKeyId), | ||
MaximumMessageSize: cdk.numberToCloudFormation(properties.maximumMessageSize), | ||
MessageRetentionPeriod: cdk.numberToCloudFormation(properties.messageRetentionPeriod), | ||
QueueName: cdk.stringToCloudFormation(properties.queueName), | ||
ReceiveMessageWaitTimeSeconds: cdk.numberToCloudFormation(properties.receiveMessageWaitTimeSeconds), | ||
RedrivePolicy: cdk.objectToCloudFormation(properties.redrivePolicy), | ||
Tags: cdk.listMapper(cdk.tagToCloudFormation)(properties.tags), | ||
VisibilityTimeout: cdk.numberToCloudFormation(properties.visibilityTimeout), | ||
}; | ||
} | ||
/** | ||
* @deprecated "cloudformation.QueueResource" will be deprecated in a future release in favor of "CfnQueue" (see https://github.com/awslabs/aws-cdk/issues/878) | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html | ||
*/ | ||
class QueueResource extends cdk.Resource { | ||
/** | ||
* Creates a new ``AWS::SQS::Queue``. | ||
* | ||
* @param parent the ``cdk.Construct`` this ``QueueResource`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``QueueResource`` | ||
*/ | ||
constructor(parent, name, properties) { | ||
super(parent, name, { type: QueueResource.resourceTypeName, properties }); | ||
this.queueArn = this.getAtt('Arn').toString(); | ||
this.queueName = this.getAtt('QueueName').toString(); | ||
this.queueUrl = this.ref.toString(); | ||
this.addWarning('DEPRECATION: "cloudformation.QueueResource" will be deprecated in a future release in favor of "CfnQueue" (see https://github.com/awslabs/aws-cdk/issues/878)'); | ||
} | ||
get propertyOverrides() { | ||
return this.untypedPropertyOverrides; | ||
} | ||
renderProperties(properties) { | ||
return queueResourcePropsToCloudFormation(cdk.resolve(properties)); | ||
} | ||
} | ||
/** | ||
* The CloudFormation resource type name for this resource class. | ||
*/ | ||
QueueResource.resourceTypeName = "AWS::SQS::Queue"; | ||
cloudformation.QueueResource = QueueResource; | ||
})(cloudformation = exports.cloudformation || (exports.cloudformation = {})); | ||
/** | ||
@@ -225,10 +137,10 @@ * Determine whether the given properties match those of a ``CfnQueuePolicyProps`` | ||
* | ||
* @param parent the ``cdk.Construct`` this ``CfnQueuePolicy`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``CfnQueuePolicy`` | ||
* @param scope scope in which this resource is defined | ||
* @param id scoped id of the resource | ||
* @param props resource properties | ||
*/ | ||
constructor(parent, name, properties) { | ||
super(parent, name, { type: CfnQueuePolicy.resourceTypeName, properties }); | ||
cdk.requireProperty(properties, 'policyDocument', this); | ||
cdk.requireProperty(properties, 'queues', this); | ||
constructor(scope, id, props) { | ||
super(scope, id, { type: CfnQueuePolicy.resourceTypeName, properties: props }); | ||
cdk.requireProperty(props, 'policyDocument', this); | ||
cdk.requireProperty(props, 'queues', this); | ||
} | ||
@@ -239,3 +151,3 @@ get propertyOverrides() { | ||
renderProperties(properties) { | ||
return cfnQueuePolicyPropsToCloudFormation(cdk.resolve(properties)); | ||
return cfnQueuePolicyPropsToCloudFormation(this.node.resolve(properties)); | ||
} | ||
@@ -248,70 +160,2 @@ } | ||
exports.CfnQueuePolicy = CfnQueuePolicy; | ||
// legacy "cloudformation" namespace (will be deprecated soon) | ||
(function (cloudformation) { | ||
/** | ||
* Determine whether the given properties match those of a ``QueuePolicyResourceProps`` | ||
* | ||
* @param properties the TypeScript properties of a ``QueuePolicyResourceProps`` | ||
* | ||
* @returns the result of the validation. | ||
*/ | ||
function QueuePolicyResourcePropsValidator(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return cdk.VALIDATION_SUCCESS; | ||
} | ||
const errors = new cdk.ValidationResults(); | ||
errors.collect(cdk.propertyValidator('policyDocument', cdk.requiredValidator)(properties.policyDocument)); | ||
errors.collect(cdk.propertyValidator('policyDocument', cdk.validateObject)(properties.policyDocument)); | ||
errors.collect(cdk.propertyValidator('queues', cdk.requiredValidator)(properties.queues)); | ||
errors.collect(cdk.propertyValidator('queues', cdk.listValidator(cdk.validateString))(properties.queues)); | ||
return errors.wrap('supplied properties not correct for "QueuePolicyResourceProps"'); | ||
} | ||
/** | ||
* Renders the AWS CloudFormation properties of an ``AWS::SQS::QueuePolicy`` resource | ||
* | ||
* @param properties the TypeScript properties of a ``QueuePolicyResourceProps`` | ||
* | ||
* @returns the AWS CloudFormation properties of an ``AWS::SQS::QueuePolicy`` resource. | ||
*/ | ||
function queuePolicyResourcePropsToCloudFormation(properties) { | ||
if (!cdk.canInspect(properties)) { | ||
return properties; | ||
} | ||
QueuePolicyResourcePropsValidator(properties).assertSuccess(); | ||
return { | ||
PolicyDocument: cdk.objectToCloudFormation(properties.policyDocument), | ||
Queues: cdk.listMapper(cdk.stringToCloudFormation)(properties.queues), | ||
}; | ||
} | ||
/** | ||
* @deprecated "cloudformation.QueuePolicyResource" will be deprecated in a future release in favor of "CfnQueuePolicy" (see https://github.com/awslabs/aws-cdk/issues/878) | ||
* @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html | ||
*/ | ||
class QueuePolicyResource extends cdk.Resource { | ||
/** | ||
* Creates a new ``AWS::SQS::QueuePolicy``. | ||
* | ||
* @param parent the ``cdk.Construct`` this ``QueuePolicyResource`` is a part of | ||
* @param name the name of the resource in the ``cdk.Construct`` tree | ||
* @param properties the properties of this ``QueuePolicyResource`` | ||
*/ | ||
constructor(parent, name, properties) { | ||
super(parent, name, { type: QueuePolicyResource.resourceTypeName, properties }); | ||
cdk.requireProperty(properties, 'policyDocument', this); | ||
cdk.requireProperty(properties, 'queues', this); | ||
this.addWarning('DEPRECATION: "cloudformation.QueuePolicyResource" will be deprecated in a future release in favor of "CfnQueuePolicy" (see https://github.com/awslabs/aws-cdk/issues/878)'); | ||
} | ||
get propertyOverrides() { | ||
return this.untypedPropertyOverrides; | ||
} | ||
renderProperties(properties) { | ||
return queuePolicyResourcePropsToCloudFormation(cdk.resolve(properties)); | ||
} | ||
} | ||
/** | ||
* The CloudFormation resource type name for this resource class. | ||
*/ | ||
QueuePolicyResource.resourceTypeName = "AWS::SQS::QueuePolicy"; | ||
cloudformation.QueuePolicyResource = QueuePolicyResource; | ||
})(cloudformation = exports.cloudformation || (exports.cloudform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HJlbmRlclByb3BlcnRpZXMocHJvcGVydGllczogYW55KTogeyBba2V5OiBzdHJpbmddOiBhbnkgfSAge1xuICAgICAgICByZXR1cm4gY2ZuUXVldWVQb2xpY3lQcm9wc1RvQ2xvdWRGb3JtYXRpb24odGhpcy5ub2RlLnJlc29sdmUocHJvcGVydGllcykpO1xuICAgIH1cbn1cbiJdfQ== |
{ | ||
"name": "@aws-cdk/aws-sqs", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"description": "CDK Constructs for AWS SQS", | ||
@@ -37,3 +37,5 @@ "main": "lib/index.js", | ||
"pkglint": "pkglint -f", | ||
"package": "cdk-package" | ||
"package": "cdk-package", | ||
"awslint": "cdk-awslint", | ||
"cfn2ts": "cfn2ts" | ||
}, | ||
@@ -56,28 +58,33 @@ "cdk-build": { | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.21.0", | ||
"@aws-cdk/aws-s3": "^0.21.0", | ||
"@aws-cdk/assert": "^0.22.0", | ||
"@aws-cdk/aws-s3": "^0.22.0", | ||
"aws-sdk": "^2.259.1", | ||
"cdk-build-tools": "^0.21.0", | ||
"cdk-integ-tools": "^0.21.0", | ||
"cfn2ts": "^0.21.0", | ||
"pkglint": "^0.21.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-autoscaling-api": "^0.21.0", | ||
"@aws-cdk/aws-iam": "^0.21.0", | ||
"@aws-cdk/aws-kms": "^0.21.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.21.0", | ||
"@aws-cdk/cdk": "^0.21.0" | ||
"@aws-cdk/aws-autoscaling-api": "^0.22.0", | ||
"@aws-cdk/aws-iam": "^0.22.0", | ||
"@aws-cdk/aws-kms": "^0.22.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.22.0", | ||
"@aws-cdk/cdk": "^0.22.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-autoscaling-api": "^0.21.0", | ||
"@aws-cdk/aws-iam": "^0.21.0", | ||
"@aws-cdk/aws-kms": "^0.21.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.21.0", | ||
"@aws-cdk/cdk": "^0.21.0" | ||
"@aws-cdk/aws-autoscaling-api": "^0.22.0", | ||
"@aws-cdk/aws-iam": "^0.22.0", | ||
"@aws-cdk/aws-kms": "^0.22.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.22.0", | ||
"@aws-cdk/cdk": "^0.22.0" | ||
}, | ||
"engines": { | ||
"node": ">= 8.10.0" | ||
}, | ||
"awslint": { | ||
"exclude": [ | ||
"resource-attribute:@aws-cdk/aws-sqs.IQueue.queueName" | ||
] | ||
} | ||
} |
@@ -114,7 +114,7 @@ "use strict"; | ||
const ref = queue.export(); | ||
const imports = sqs.QueueRef.import(stack, 'Imported', ref); | ||
const imports = sqs.Queue.import(stack, 'Imported', ref); | ||
// THEN | ||
// "import" returns a a QueueRef bound to `Fn::ImportValue`s. | ||
test.deepEqual(cdk_1.resolve(imports.queueArn), { 'Fn::ImportValue': 'QueueQueueArn8CF496D5' }); | ||
test.deepEqual(cdk_1.resolve(imports.queueUrl), { 'Fn::ImportValue': 'QueueQueueUrlC30FF916' }); | ||
// "import" returns an IQueue bound to `Fn::ImportValue`s. | ||
test.deepEqual(stack.node.resolve(imports.queueArn), { 'Fn::ImportValue': 'QueueQueueArn8CF496D5' }); | ||
test.deepEqual(stack.node.resolve(imports.queueUrl), { 'Fn::ImportValue': 'QueueQueueUrlC30FF916' }); | ||
// the exporting stack has Outputs for QueueARN and QueueURL | ||
@@ -215,3 +215,3 @@ const outputs = stack.toCloudFormation().Outputs; | ||
const exportCustom = customKey.export(); | ||
test.deepEqual(cdk_1.resolve(exportCustom), { | ||
test.deepEqual(stack.node.resolve(exportCustom), { | ||
queueArn: { 'Fn::ImportValue': 'QueueWithCustomKeyQueueArnD326BB9B' }, | ||
@@ -259,3 +259,3 @@ queueUrl: { 'Fn::ImportValue': 'QueueWithCustomKeyQueueUrlF07DDC70' }, | ||
const exportManaged = managedKey.export(); | ||
test.deepEqual(cdk_1.resolve(exportManaged), { | ||
test.deepEqual(stack.node.resolve(exportManaged), { | ||
queueArn: { 'Fn::ImportValue': 'QueueWithManagedKeyQueueArn8798A14E' }, | ||
@@ -433,2 +433,2 @@ queueUrl: { 'Fn::ImportValue': 'QueueWithManagedKeyQueueUrlD735C981' }, | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5zcXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXN0LnNxcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNENBQXVEO0FBQ3ZELHdDQUF5QztBQUN6Qyx3Q0FBeUM7QUFDekMsc0NBQXVDO0FBQ3ZDLHNDQUE4QztBQUU5Qyw4QkFBK0I7QUFDL0IsZ0NBQStCO0FBa2UvQixTQUFTLFNBQVMsQ0FBQyxNQUFxRCxFQUFFLEdBQUcsZUFBeUI7SUFDcEcsTUFBTSxLQUFLLEdBQUcsSUFBSSxXQUFLLEVBQUUsQ0FBQztJQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLFdBQUssQ0FBQyxLQUFLLEVBQUUsU0FBUyxDQUFDLENBQUM7SUFDMUMsTUFBTSxTQUFTLEdBQUcsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQztJQUU5QyxNQUFNLENBQUMsS0FBSyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBRXpCLGVBQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMscUJBQVksQ0FBQyxrQkFBa0IsRUFBRTtRQUNoRCxnQkFBZ0IsRUFBRTtZQUNoQixXQUFXLEV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XMocCksXG4gICAgICAgICdzcXM6U2VuZE1lc3NhZ2UnLFxuICAgICAgICAnc3FzOlNlbmRNZXNzYWdlQmF0Y2gnLFxuICAgICAgICAnc3FzOkdldFF1ZXVlQXR0cmlidXRlcycsXG4gICAgICAgICdzcXM6R2V0UXVldWVVcmwnLFxuICAgICAgKTtcbiAgICAgIHRlc3QuZG9uZSgpO1xuICAgIH0sXG5cbiAgICAnZ3JhbnRQdXJnZScodGVzdDogVGVzdCkge1xuICAgICAgdGVzdEdyYW50KChxLCBwKSA9PiBxLmdyYW50UHVyZ2UocCksXG4gICAgICAgICdzcXM6UHVyZ2VRdWV1ZScsXG4gICAgICAgICdzcXM6R2V0UXVldWVBdHRyaWJ1dGVzJyxcbiAgICAgICAgJ3NxczpHZXRRdWV1ZVVybCcsXG4gICAgICApO1xuICAgICAgdGVzdC5kb25lKCk7XG4gICAgfSxcblxuICAgICdncmFudCgpIGlzIGdlbmVyYWwgcHVycG9zZScodGVzdDogVGVzdCkge1xuICAgICAgdGVzdEdyYW50KChxLCBwKSA9PiBxLmdyYW50KHAsICdoZWxsbycsICd3b3JsZCcpLFxuICAgICAgICAnaGVsbG8nLFxuICAgICAgICAnd29ybGQnXG4gICAgICApO1xuICAgICAgdGVzdC5kb25lKCk7XG4gICAgfSxcblxuICAgICdncmFudHMgYWxzbyB3b3JrIG9uIGltcG9ydGVkIHF1ZXVlcycodGVzdDogVGVzdCkge1xuICAgICAgY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soKTtcbiAgICAgIGNvbnN0IHF1ZXVlID0gUXVldWUuaW1wb3J0KHN0YWNrLCAnSW1wb3J0Jywge1xuICAgICAgICBxdWV1ZUFybjogJ2ltcG9ydGVkLXF1ZXVlLWFybicsXG4gICAgICAgIHF1ZXVlVXJsOiAnaHR0cHM6Ly9xdWV1ZS11cmwnXG4gICAgICB9KTtcblxuICAgICAgY29uc3QgdXNlciA9IG5ldyBpYW0uVXNlcihzdGFjaywgJ1VzZXInKTtcblxuIC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gICAgICAgICAgIFwiQXJuXCJcbiAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgICAgIFwiUHJpbmNpcGFsXCI6IHtcbiAgICAgICAgICAgIFwiU2VydmljZVwiOiBcInMzLmFtYXpvbmF3cy5jb21cIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJSZXNvdXJjZVwiOiB7XG4gICAgICAgICAgICBcIkZuOjpHZXRBdHRcIjogW1xuICAgICAgICAgICAgXCJRdWV1ZTRBN0UzNTU1XCIsXG4gICAgICAgICAgICBcIkFyblwiXG4gICAgICAgICAgICBdXG4gICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgXSxcbiAgICAgICAgXCJWZXJzaW9uXCI6IFwiMjAxMi0xMC0xN1wiXG4gICAgICAgIH0sXG4gICAgICAgIFwiUXVldWVzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwiUmVmXCI6IFwiUXVldWU0QTdFMzU1NVwiXG4gICAgICAgIH1cbiAgICAgICAgXVxuICAgICAgfSkpO1xuXG4gICAgICBleHBlY3Qoc3RhY2spLnRvKGhhdmVSZXNvdXJjZSgnQ3VzdG9tOjpTM0J1Y2tldE5vdGlmaWNhdGlvbnMnLCB7XG4gICAgICAgIFwiQnVja2V0TmFtZVwiOiB7XG4gICAgICAgIFwiUmVmXCI6IFwiQnVja2V0ODM5MDhFNzdcIlxuICAgICAgICB9LFxuICAgICAgICBcIk5vdGlmaWNhdGlvbkNvbmZpZ3VyYXRpb25cIjoge1xuICAgICAgICBcIlF1ZXVlQ29uZmlndXJhdGlvbnNcIjogW1xuICAgICAgICAgIHtcbiAgICAgICAgICBcIkV2ZW50c1wiOiBbXG4gICAgICAgICAgICBcInMzOk9iamVjdFJlbW92ZWQ6KlwiXG4gICAgICAgICAgXSxcbiAgICAgICAgICBcIlF1ZXVlQ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4gICAgICBleHBlY3Qoc3RhY2spLnRvKGhhdmVSZXNvdXJjZSgnQVdTOjpLTVM6OktleScsIHtcbiAgICAgICAgXCJLZXlQb2xpY3lcIjoge1xuICAgICAgICBcIlN0YXRlbWVudFwiOiBbXG4gICAgICAgICAge1xuICAgICAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgICAgIFwia21zOkNyZWF0ZSpcIixcbiAgICAgICAgICAgIFwia21zOkRlc2NyaWJlKlwiLFxuICAgICAgICAgICAgXCJrbXM6RW5hYmxlKlwiLFxuICAgICAgICAgICAgXCJrbXM6TGlzdCpcIixcbiAgICAgICAgICAgIFwia21zOlB1dCpcIixcbiAgICAgICAgICAgIFwia21zOlVwZGF0ZSpcIixcbiAgICAgICAgICAgIFwia21zOlJldm9rZSpcIixcbiAgICAgICAgICAgIFwia21zOkRpc2FibGUqXCIsXG4gICAgICAgICAgICBcImttczpHZXQqXCIsXG4gICAgICAgICAgICBcImttczpEZWxldGUqXCIsXG4gICAgICAgICAgICBcImttczpTY2hlZHVsZUtleURlbGV0aW9uXCIsXG4gICAgICAgICAgICBcImttczpDYW5jZWxLZXlEZWxldGlvblwiXG4gICAgICAgICAgXSxcbiAgICAgICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICAgICAgXCJQcmluY2lwYWxcIjoge1xuICAgICAgICAgICAgXCJBV1NcIjoge1xuICAgICAgICAgICAgXCJGbjo6Sm9pblwiOiBbXG4gICAgICAgICAgICAgIFwiXCIsXG4gICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgXCJhcm46XCIsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBcIlJlZlwiOiBcIkFXUzo6UGFydGl0aW9uXCJcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgXCI6aWFtOjpcIixcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIFwiUmVmXCI6IFwiQVdTOjpBY2NvdW50SWRcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBcIjpyb290XCJcbiAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJSZXNvdXJjZVwiOiBcIipcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAge1xuICAgICAgICAgIFwiQWN0aW9uXCI6IFtcbiAgICAgICAgICAgIFwia21zOkdlbmVyYXRlRGF0YUtleVwiLFxuICAgICAgICAgICAgXCJrbXM6RGVjcnlwdFwiXG4gICAgICAgICAgXSxcbiAgICAgICAgICBcIkVmZmVjdFwiOiBcIkFsbG93XCIsXG4gICAgICAgICAgXCJQcmluY2lwYWxcIjoge1xuICAgICAgICAgICAgXCJTZXJ2aWNlXCI6IFwiczMuYW1hem9uYXdzLmNvbVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcIlJlc291cmNlXCI6IFwiKlwiXG4gICAgICAgICAgfVxuICAgICAgICBdLFxuICAgICAgICBcIlZlcnNpb25cIjogXCIyMDEyLTEwLTE3XCJcbiAgICAgICAgfSxcbiAgICAgICAgXCJEZXNjcmlwdGlvblwiOiBcIkNyZWF0ZWQgYnkgUXVldWVcIlxuICAgICAgfSkpO1xuXG4gICAgICB0ZXN0LmRvbmUoKTtcbiAgICB9LFxuXG4gICAgJ2ZhaWxzIGlmIHRyeWluZyB0byBzdWJzY3JpYmUgdG8gYSBxdWV1ZSB3aXRoIG1hbmFnZWQga21zIGVuY3J5cHRpb24nKHRlc3Q6IFRlc3QpIHtcbiAgICAgIGNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKCk7XG4gICAgICBjb25zdCBxdWV1ZSA9IG5ldyBzcXMuUXVldWUoc3RhY2ssICdRdWV1ZScsIHsgZW5jcnlwdGlvbjogc3FzLlF1ZXVlRW5jcnlwdGlvbi5LbXNNYW5hZ2VkIH0pO1xuICAgICAgY29uc3QgYnVja2V0ID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ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b3VyY2VQb2xpY3kobmV3IGlhbS5Qb2xpY3lTdGF0ZW1lbnQoKS5hZGRBbGxSZXNvdXJjZXMoKS5hZGRBY3Rpb25zKCdzcXM6KicpLmFkZFByaW5jaXBhbChuZXcgaWFtLkFyblByaW5jaXBhbCgnYXJuJykpKTtcbiAgICBleHBlY3Qoc3RhY2spLnRvTWF0Y2goe1xuICAgICAgXCJSZXNvdXJjZXNcIjoge1xuICAgICAgICBcIk15UXVldWVFNkNBNjIzNVwiOiB7XG4gICAgICAgIFwiVHlwZVwiOiBcIkFXUzo6U1FTOjpRdWV1ZVwiXG4gICAgICAgIH0sXG4gICAgICAgIFwiTXlRdWV1ZVBvbGljeTZCQkVEREFDXCI6IHtcbiAgICAgICAgXCJUeXBlXCI6IFwiQVdTOjpTUVM6OlF1ZXVlUG9saWN5XCIsXG4gICAgICAgIFwiUHJvcGVydGllc1wiOiB7XG4gICAgICAgICAgXCJQb2xpY3lEb2N1bWVudFwiOiB7XG4gICAgICAgICAgXCJTdGF0ZW1lbnRcIjogW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgXCJBY3Rpb25cIjogXCJzcXM6KlwiLFxuICAgICAgICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgICAgICAgXCJQcmluY2lwYWxcIjoge1xuICAgICAgICAgICAgICBcIkFXU1wiOiBcImFyblwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJSZXNvdXJjZVwiOiBcIipcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIF0sXG4gICAgICAgICAgXCJWZXJzaW9uXCI6IFwiMjAxMi0xMC0xN1wiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcIlF1ZXVlc1wiOiBbXG4gICAgICAgICAge1xuICAgICAgICAgICAgXCJSZWZcIjogXCJNeVF1ZXVlRTZDQTYyMzVcIlxuICAgICAgICAgIH1cbiAgICAgICAgICBdXG4gICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICA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oTWFuYWdlZEtleUtleUFybjlDNDJBODVEXCJcbiAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICB0ZXN0LmRvbmUoKTtcbiAgICAgIH1cblxuICAgIH1cblxuICB9LFxuXG4gICdidWNrZXQgbm90aWZpY2F0aW9ucyc6IHtcblxuICAgICdxdWV1ZXMgY2FuIGJlIHVzZWQgYXMgZGVzdGluYXRpb25zJyh0ZXN0OiBUZXN0KSB7XG4gICAgICBjb25zdCBzdGFjayA9IG5ldyBTdGFjaygpO1xuXG4gICAgICBjb25zdCBxdWV1ZSA9IG5ldyBzcXMuUXVldWUoc3RhY2ssICdRdWV1ZScpO1xuICAgICAgY29uc3QgYnVja2V0ID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ0J1Y2tldCcpO1xuXG4gICAgICBidWNrZXQub25PYmplY3RSZW1vdmVkKHF1ZXVlKTtcblxuICAgICAgZXhwZWN0KHN0YWNrKS50byhoYXZlUmVzb3VyY2UoJ0FXUzo6U1FTOjpRdWV1ZVBvbGljeScsIHtcbiAgICAgICAgXCJQb2xpY3lEb2N1bWVudFwiOiB7XG4gICAgICAgIFwiU3RhdGVtZW50XCI6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgXCJBY3Rpb25cIjogXCJzcXM6U2VuZE1lc3NhZ2VcIixcbiAgICAgICAgICBcIkNvbmRpdGlvblwiOiB7XG4gICAgICAgICAgICBcIkFybkxpa2VcIjoge1xuICAgICAgICAgICAgXCJhd3M6U291cmNlQXJuXCI6IHtcbiAgICAgICAgICAgICAgXCJGbjo6R2V0QXR0XCI6IFtcbiAgICAgICAgICAgICAgXCJCdWNrZXQ4MzkwOEU3N1wiLFxuICAgICAgICAgICAgICBcIkFyblwiXG4gICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiRWZmZWN0XCI6IFwiQWxsb3dcIixcbiAgICAgICAgICBcIlByaW5jaXBhbFwiOiB7XG4gICAgICAgICAgICBcIlNlcnZpY2VcIjogXCJzMy5hbWF6b25hd3MuY29tXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiUmVzb3VyY2VcIjoge1xuICAgICAgICAgICAgXCJGbjo6R2V0QXR0XCI6IFtcbiAgICAgICAgICAgIFwiUXVldWU0QTdFMzU1NVwiLFxuICAgICAgICAgICAgXCJBcm5cIlxuICAgICAgICAgICAgXVxuICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIF0sXG4gICAgICAgIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIlxuICAgICAgICB9LFxuICAgICAgICBcIlF1ZXVlc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIlJlZlwiOiBcIlF1ZXVlNEE3RTM1NTVcIlxuICAgICAgICB9XG4gICAgICAgIF1cbiAgICAgIH0pKTtcblxuICAgICAgZXhwZWN0KHN0YWNrKS50byhoYXZlUmVzb3VyY2UoJ0N1c3RvbTo6UzNCdWNrZXROb3RpZmljYXRpb25zJywge1xuICAgICAgICBcIkJ1Y2tldE5hbWVcIjoge1xuICAgICAgICBcIlJlZlwiOiBcIkJ1Y2tldDgzOTA4RTc3XCJcbiAgICAgICAgfSxcbiAgICAgICAgXCJOb3RpZmljYXRpb25Db25maWd1cmF0aW9uXCI6IHtcbiAgICAgICAgXCJRdWV1ZUNvbmZpZ3VyYXRpb25zXCI6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgXCJFdmVudHNcIjogW1xuICAgICAgICAgICAgXCJzMzpPYmplY3RSZW1vdmVkOipcIlxuICAgICAgICAgIF0sXG4gICAgICAgICAgXCJRdWV1ZUFyblwiOiB7XG4gICAgICAgICAgICBcIkZuOjpHZXRBdHRcIjogW1xuICAgICAgICAgICAgXCJRdWV1ZTRBN0UzNTU1XCIsXG4gICAgICAgICAgICBcIkFyblwiXG4gICAgICAgICAgICBdXG4gICAgICAgICAgfVxuICAgIC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gICAgICAgICBcIkFjdGlvblwiOiBbXG4gICAgICAgICAgICBcImttczpDcmVhdGUqXCIsXG4gICAgICAgICAgICBcImttczpEZXNjcmliZSpcIixcbiAgICAgICAgICAgIFwia21zOkVuYWJsZSpcIixcbiAgICAgICAgICAgIFwia21zOkxpc3QqXCIsXG4gICAgICAgICAgICBcImttczpQdXQqXCIsXG4gICAgICAgICAgICBcImttczpVcGRhdGUqXCIsXG4gICAgICAgICAgICBcImttczpSZXZva2UqXCIsXG4gICAgICAgICAgICBcImttczpEaXNhYmxlKlwiLFxuICAgICAgICAgICAgXCJrbXM6R2V0KlwiLFxuICAgICAgICAgICAgXCJrbXM6RGVsZXRlKlwiLFxuICAgICAgICAgICAgXCJrbXM6U2NoZWR1bGVLZXlEZWxldGlvblwiLFxuICAgICAgICAgICAgXCJrbXM6Q2FuY2VsS2V5RGVsZXRpb25cIlxuICAgICAgICAgIF0sXG4gICAgICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgICAgIFwiUHJpbmNpcGFsXCI6IHtcbiAgICAgICAgICAgIFwiQVdTXCI6IHtcbiAgICAgICAgICAgIFwiRm46OkpvaW5cIjogW1xuICAgICAgICAgICAgICBcIlwiLFxuICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgIFwiYXJuOlwiLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgXCJSZWZcIjogXCJBV1M6OlBhcnRpdGlvblwiXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIFwiOmlhbTo6XCIsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBcIlJlZlwiOiBcIkFXUzo6QWNjb3VudElkXCJcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgXCI6cm9vdFwiXG4gICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIF1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiUmVzb3VyY2VcIjogXCIqX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SBmb3IgS01TIGtleTogXCJhbGlhcy9hd3Mvc3FzXCInKTtcbiAgICAgIHRlc3QuZG9uZSgpO1xuICAgIH1cblxuICB9XG59O1xuXG5mdW5jdGlvbiB0ZXN0R3JhbnQoYWN0aW9uOiAocTogUXVldWUsIHByaW5jaXBhbDogaWFtLklQcmluY2lwYWwpID0+IHZvaWQsIC4uLmV4cGVjdGVkQWN0aW9uczogc3RyaW5nW10pIHtcbiAgY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soKTtcbiAgY29uc3QgcXVldWUgPSBuZXcgUXVldWUoc3RhY2ssICdNeVF1ZXVlJyk7XG4gIGNvbnN0IHByaW5jaXBhbCA9IG5ldyBpYW0uVXNlcihzdGFjaywgJ1VzZXInKTtcblxuICBhY3Rpb24ocXVldWUsIHByaW5jaXBhbCk7XG5cbiAgZXhwZWN0KHN0YWNrKS50byhoYXZlUmVzb3VyY2UoJ0FXUzo6SUFNOjpQb2xpY3knLCB7XG4gICAgXCJQb2xpY3lEb2N1bWVudFwiOiB7XG4gICAgICBcIlN0YXRlbWVudFwiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIkFjdGlvblwiOiBleHBlY3RlZEFjdGlvbnMsXG4gICAgICAgICAgXCJFZmZlY3RcIjogXCJBbGxvd1wiLFxuICAgICAgICAgIFwiUmVzb3VyY2VcIjoge1xuICAgICAgICAgICAgXCJGbjo6R2V0QXR0XCI6IFtcbiAgICAgICAgICAgICAgXCJNeVF1ZXVlRTZDQTYyMzVcIixcbiAgICAgICAgICAgICAgXCJBcm5cIlxuICAgICAgICAgICAgXVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiVmVyc2lvblwiOiBcIjIwMTItMTAtMTdcIlxuICAgIH1cbiAgfSkpO1xufSJdfQ== |
@@ -25,5 +25,35 @@ { | ||
"strictNullChecks": true, | ||
"target": "ES2018" | ||
"target": "ES2018", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../aws-autoscaling-api" | ||
}, | ||
{ | ||
"path": "../aws-iam" | ||
}, | ||
{ | ||
"path": "../aws-kms" | ||
}, | ||
{ | ||
"path": "../aws-s3-notifications" | ||
}, | ||
{ | ||
"path": "../cdk" | ||
}, | ||
{ | ||
"path": "../assert" | ||
}, | ||
{ | ||
"path": "../aws-s3" | ||
} | ||
], | ||
"_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 not supported yet
Sorry, the diff of this file is not supported yet
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
253994
1996
+ Added@aws-cdk/aws-autoscaling-api@0.22.0(transitive)
+ Added@aws-cdk/aws-iam@0.22.0(transitive)
+ Added@aws-cdk/aws-kms@0.22.0(transitive)
+ Added@aws-cdk/aws-s3-notifications@0.22.0(transitive)
+ Added@aws-cdk/cdk@0.22.0(transitive)
+ Added@aws-cdk/cx-api@0.22.0(transitive)
- Removed@aws-cdk/aws-autoscaling-api@0.21.0(transitive)
- Removed@aws-cdk/aws-iam@0.21.0(transitive)
- Removed@aws-cdk/aws-kms@0.21.0(transitive)
- Removed@aws-cdk/aws-s3-notifications@0.21.0(transitive)
- Removed@aws-cdk/cdk@0.21.0(transitive)
- Removed@aws-cdk/cx-api@0.21.0(transitive)
Updated@aws-cdk/aws-iam@^0.22.0
Updated@aws-cdk/aws-kms@^0.22.0
Updated@aws-cdk/cdk@^0.22.0