@renovosolutions/cdk-library-one-time-event
Advanced tools
Comparing version 0.1.4 to 0.2.0
36
API.md
@@ -12,3 +12,3 @@ # API Reference <a name="API Reference"></a> | ||
new At(scope: Construct, id: string, props: IAtProps) | ||
new At(scope: Construct, id: string, props: AtProps) | ||
``` | ||
@@ -30,3 +30,3 @@ | ||
- *Type:* [`@renovosolutions/cdk-library-one-time-event.IAtProps`](#@renovosolutions/cdk-library-one-time-event.IAtProps) | ||
- *Type:* [`@renovosolutions/cdk-library-one-time-event.AtProps`](#@renovosolutions/cdk-library-one-time-event.AtProps) | ||
@@ -57,3 +57,3 @@ --- | ||
new OnDeploy(scope: Construct, id: string, props: IOnDeployProps) | ||
new OnDeploy(scope: Construct, id: string, props: OnDeployProps) | ||
``` | ||
@@ -75,3 +75,3 @@ | ||
- *Type:* [`@renovosolutions/cdk-library-one-time-event.IOnDeployProps`](#@renovosolutions/cdk-library-one-time-event.IOnDeployProps) | ||
- *Type:* [`@renovosolutions/cdk-library-one-time-event.OnDeployProps`](#@renovosolutions/cdk-library-one-time-event.OnDeployProps) | ||
@@ -95,15 +95,16 @@ --- | ||
## Structs <a name="Structs"></a> | ||
### AtProps <a name="@renovosolutions/cdk-library-one-time-event.AtProps"></a> | ||
## Protocols <a name="Protocols"></a> | ||
#### Initializer <a name="[object Object].Initializer"></a> | ||
### IAtProps <a name="@renovosolutions/cdk-library-one-time-event.IAtProps"></a> | ||
```typescript | ||
import { AtProps } from '@renovosolutions/cdk-library-one-time-event' | ||
- *Implemented By:* [`@renovosolutions/cdk-library-one-time-event.IAtProps`](#@renovosolutions/cdk-library-one-time-event.IAtProps) | ||
const atProps: AtProps = { ... } | ||
``` | ||
##### `date`<sup>Required</sup> <a name="@renovosolutions/cdk-library-one-time-event.AtProps.property.date"></a> | ||
#### Properties <a name="Properties"></a> | ||
##### `date`<sup>Required</sup> <a name="@renovosolutions/cdk-library-one-time-event.IAtProps.property.date"></a> | ||
```typescript | ||
@@ -119,10 +120,13 @@ public readonly date: Date; | ||
### IOnDeployProps <a name="@renovosolutions/cdk-library-one-time-event.IOnDeployProps"></a> | ||
### OnDeployProps <a name="@renovosolutions/cdk-library-one-time-event.OnDeployProps"></a> | ||
- *Implemented By:* [`@renovosolutions/cdk-library-one-time-event.IOnDeployProps`](#@renovosolutions/cdk-library-one-time-event.IOnDeployProps) | ||
#### Initializer <a name="[object Object].Initializer"></a> | ||
```typescript | ||
import { OnDeployProps } from '@renovosolutions/cdk-library-one-time-event' | ||
#### Properties <a name="Properties"></a> | ||
const onDeployProps: OnDeployProps = { ... } | ||
``` | ||
##### `offsetMinutes`<sup>Optional</sup> <a name="@renovosolutions/cdk-library-one-time-event.IOnDeployProps.property.offsetMinutes"></a> | ||
##### `offsetMinutes`<sup>Optional</sup> <a name="@renovosolutions/cdk-library-one-time-event.OnDeployProps.property.offsetMinutes"></a> | ||
@@ -142,1 +146,3 @@ ```typescript | ||
@@ -6,3 +6,3 @@ import * as events from '@aws-cdk/aws-events'; | ||
*/ | ||
export interface IOnDeployProps { | ||
export interface OnDeployProps { | ||
/** | ||
@@ -16,3 +16,3 @@ * The number of minutes to add to the current time when generating the expression. | ||
*/ | ||
offsetMinutes?: number; | ||
readonly offsetMinutes?: number; | ||
} | ||
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
export interface IAtProps { | ||
export interface AtProps { | ||
/** | ||
@@ -29,3 +29,3 @@ * The future date to use for one time event. | ||
*/ | ||
date: Date; | ||
readonly date: Date; | ||
} | ||
@@ -44,3 +44,3 @@ export declare function dateToCron(date: Date): string; | ||
*/ | ||
constructor(scope: cdk.Construct, id: string, props: IOnDeployProps); | ||
constructor(scope: cdk.Construct, id: string, props: OnDeployProps); | ||
} | ||
@@ -58,3 +58,3 @@ /** | ||
*/ | ||
constructor(scope: cdk.Construct, id: string, props: IAtProps); | ||
constructor(scope: cdk.Construct, id: string, props: AtProps); | ||
} |
@@ -35,3 +35,3 @@ "use strict"; | ||
_a = JSII_RTTI_SYMBOL_1; | ||
OnDeploy[_a] = { fqn: "@renovosolutions/cdk-library-one-time-event.OnDeploy", version: "0.1.4" }; | ||
OnDeploy[_a] = { fqn: "@renovosolutions/cdk-library-one-time-event.OnDeploy", version: "0.2.0" }; | ||
/** | ||
@@ -51,3 +51,3 @@ * @stability stable | ||
_b = JSII_RTTI_SYMBOL_1; | ||
At[_b] = { fqn: "@renovosolutions/cdk-library-one-time-event.At", version: "0.1.4" }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw4Q0FBOEM7QUFDOUMscUNBQXFDO0FBWXJDLFNBQWdCLFVBQVUsQ0FBQyxJQUFTO0lBQ2xDLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUNyQyxNQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDakMsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDO0lBQzlCLE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxXQUFXLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDdEMsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxDQUFDO0lBRXBDLE9BQU8sR0FBRyxPQUFPLElBQUksS0FBSyxJQUFJLElBQUksSUFBSSxNQUFNLE1BQU0sS0FBSyxFQUFFLENBQUM7QUFDNUQsQ0FBQztBQVJELGdDQVFDO0FBQUEsQ0FBQzs7OztBQUVGLE1BQWEsUUFBUyxTQUFRLEdBQUcsQ0FBQyxTQUFTOzs7O0lBSXpDLFlBQVksS0FBb0IsRUFBRSxFQUFVLEVBQUUsS0FBcUI7UUFDakUsS0FBSyxDQUFDLEtBQUssRUFBRS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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgb2Zmc2V0TWludXRlcz86IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBJQXRQcm9wcyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBkYXRlOiBEYXRlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZGF0ZVRvQ3JvbihkYXRlOkRhdGUpIHtcbiAgY29uc3QgbWludXRlcyA9IGRhdGUuZ2V0VVRDTWludXRlcygpO1xuICBjb25zdCBob3VycyA9IGRhdGUuZ2V0VVRDSG91cnMoKTtcbiAgY29uc3QgZGF5cyA9IGRhdGUuZ2V0VVRDRGF5KCk7XG4gIGNvbnN0IG1vbnRocyA9IGRhdGUuZ2V0VVRDTW9udGgoKSArIDE7XG4gIGNvbnN0IHllYXJzID0gZGF0ZS5nZXRVVENGdWxsWWVhcigpO1xuXG4gIHJldHVybiBgJHttaW51dGVzfSAke2hvdXJzfSAke2RheXN9ICR7bW9udGhzfSA/ICR7eWVhcnN9YDtcbn07XG5cbmV4cG9ydCBjbGFzcyBPbkRlcGxveSBleHRlbmRzIGNkay5Db25zdHJ1Y3Qge1xuXG4gIHB1YmxpYyByZWFkb25seSBzY2hlZHVsZTogZXZlbnRzLlNjaGVkdWxlO1xuXG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wczogSU9uRGVwbG95UHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgY29uc3QgZGF0ZSA9IG5ldyBEYXRlKCk7XG4gICAgY29uc3QgbWludXRlc1RvQWRkID0gcHJvcHMub2Zmc2V0TWludXRlcyB8fCAxMDtcbiAgICBjb25zdCBmdXR1cmUgPSBuZXcgRGF0ZShkYXRlLmdldFRpbWUoKSArIG1pbnV0ZXNUb0FkZCAqIDYwMDAwKTtcblxuICAgIHRoaXMuc2NoZWR1bGUgPSBldmVudHMuU2NoZWR1bGUuZXhwcmVzc2lvbignY3JvbignICsgZGF0ZVRvQ3JvbihmdXR1cmUpICsgJyknKTtcbiAgfVxufVxuXG5leHBvcnQgY2xhc3MgQXQgZXh0ZW5kcyBjZGsuQ29uc3RydWN0IHtcblxuICBwdWJsaWMgcmVhZG9ubHkgc2NoZWR1bGU6IGV2ZW50cy5TY2hlZHVsZTtcblxuICBjb25zdHJ1Y3RvcihzY29wZTogY2RrLkNvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM6IElBdFByb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcblxuICAgIHRoaXMuc2NoZWR1bGUgPSBldmVudHMuU2NoZWR1bGUuZXhwcmVzc2lvbignY3JvbignICsgZGF0ZVRvQ3Jvbihwcm9wcy5kYXRlKSArICcpJyk7XG4gIH1cbn1cbiJdfQ== | ||
At[_b] = { fqn: "@renovosolutions/cdk-library-one-time-event.At", version: "0.2.0" }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw4Q0FBOEM7QUFDOUMscUNBQXFDO0FBWXJDLFNBQWdCLFVBQVUsQ0FBQyxJQUFTO0lBQ2xDLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUNyQyxNQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDakMsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDO0lBQz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DLFFBQVEsQ0FBQyxVQUFVLENBQUMsT0FBTyxHQUFHLFVBQVUsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUM7SUFDckYsQ0FBQzs7QUFSSCxnQkFTQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGV2ZW50cyBmcm9tICdAYXdzLWNkay9hd3MtZXZlbnRzJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdAYXdzLWNkay9jb3JlJztcblxuZXhwb3J0IGludGVyZmFjZSBPbkRlcGxveVByb3BzIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBvZmZzZXRNaW51dGVzPzogbnVtYmVyO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEF0UHJvcHMge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGF0ZTogRGF0ZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRhdGVUb0Nyb24oZGF0ZTpEYXRlKSB7XG4gIGNvbnN0IG1pbnV0ZXMgPSBkYXRlLmdldFVUQ01pbnV0ZXMoKTtcbiAgY29uc3QgaG91cnMgPSBkYXRlLmdldFVUQ0hvdXJzKCk7XG4gIGNvbnN0IGRheXMgPSBkYXRlLmdldFVUQ0RheSgpO1xuICBjb25zdCBtb250aHMgPSBkYXRlLmdldFVUQ01vbnRoKCkgKyAxO1xuICBjb25zdCB5ZWFycyA9IGRhdGUuZ2V0VVRDRnVsbFllYXIoKTtcblxuICByZXR1cm4gYCR7b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"version": "0.2.0", | ||
"jest": { | ||
"timers": "fake", | ||
"testMatch": [ | ||
@@ -87,0 +88,0 @@ "**/__tests__/**/*.ts?(x)", |
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
43177