@jaypie/constructs 1.1.22 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ import { Construct } from "constructs";
2
+ import { RemovalPolicy } from "aws-cdk-lib";
3
+ import * as s3 from "aws-cdk-lib/aws-s3";
4
+ import * as iam from "aws-cdk-lib/aws-iam";
5
+ import * as cloudwatch from "aws-cdk-lib/aws-cloudwatch";
6
+ import { JaypieQueuedLambda, JaypieQueuedLambdaProps } from "./JaypieQueuedLambda.js";
7
+ export interface JaypieBucketQueuedLambdaProps extends JaypieQueuedLambdaProps {
8
+ bucketName?: string;
9
+ bucketOptions?: s3.BucketProps;
10
+ }
11
+ export declare class JaypieBucketQueuedLambda extends JaypieQueuedLambda implements s3.IBucket {
12
+ private readonly _bucket;
13
+ constructor(scope: Construct, id: string, props: JaypieBucketQueuedLambdaProps);
14
+ get bucket(): s3.Bucket;
15
+ get bucketArn(): string;
16
+ get bucketDomainName(): string;
17
+ get bucketDualStackDomainName(): string;
18
+ get bucketName(): string;
19
+ get bucketRegionalDomainName(): string;
20
+ get bucketWebsiteDomainName(): string;
21
+ get bucketWebsiteUrl(): string;
22
+ get encryptionKey(): undefined | import("aws-cdk-lib/aws-kms").IKey;
23
+ get isWebsite(): boolean;
24
+ get policy(): s3.BucketPolicy | undefined;
25
+ addEventNotification(event: s3.EventType, dest: s3.IBucketNotificationDestination, filters?: s3.NotificationKeyFilter[]): void;
26
+ addObjectCreatedNotification(dest: s3.IBucketNotificationDestination, ...filters: s3.NotificationKeyFilter[]): void;
27
+ addObjectRemovedNotification(dest: s3.IBucketNotificationDestination, ...filters: s3.NotificationKeyFilter[]): void;
28
+ addToResourcePolicy(permission: iam.PolicyStatement): iam.AddToResourcePolicyResult;
29
+ arnForObjects(objectKeyPattern: string): string;
30
+ enableEventBridgeNotification(): void;
31
+ grant(grantee: iam.IGrantable, ...actions: string[]): iam.Grant;
32
+ grantDelete(grantee: iam.IGrantable, objectsKeyPattern?: any): iam.Grant;
33
+ grantPublicAccess(keyPrefix?: string, ...allowedActions: string[]): iam.Grant;
34
+ grantPut(grantee: iam.IGrantable, objectsKeyPattern?: any): iam.Grant;
35
+ grantPutAcl(grantee: iam.IGrantable, objectsKeyPattern?: string): iam.Grant;
36
+ grantRead(grantee: iam.IGrantable, objectsKeyPattern?: any): iam.Grant;
37
+ grantReadWrite(grantee: iam.IGrantable, objectsKeyPattern?: any): iam.Grant;
38
+ grantWrite(grantee: iam.IGrantable, objectsKeyPattern?: any): iam.Grant;
39
+ onCloudTrailEvent(id: string, options?: s3.OnCloudTrailBucketEventOptions): import("aws-cdk-lib/aws-events").Rule;
40
+ onCloudTrailPutObject(id: string, options?: s3.OnCloudTrailBucketEventOptions): import("aws-cdk-lib/aws-events").Rule;
41
+ onCloudTrailWriteObject(id: string, options?: s3.OnCloudTrailBucketEventOptions): import("aws-cdk-lib/aws-events").Rule;
42
+ s3UrlForObject(key?: string): string;
43
+ transferAccelerationUrlForObject(key?: string, options?: s3.TransferAccelerationUrlOptions): string;
44
+ urlForObject(key?: string): string;
45
+ virtualHostedUrlForObject(key?: string, options?: s3.VirtualHostedStyleUrlOptions): string;
46
+ metricAllRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
47
+ metricBucketSizeBytes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
48
+ metricDeleteRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
49
+ metricDownloadBytes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
50
+ metricFirstByteLatency(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
51
+ metricGetRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
52
+ metricHeadRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
53
+ metricHttpRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
54
+ metricListRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
55
+ metricNumberOfObjects(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
56
+ metricPostRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
57
+ metricPutRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
58
+ metricSelectRequests(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
59
+ metricSelectScannedBytes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
60
+ metricUploadBytes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
61
+ metricSelectReturnedBytes(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
62
+ applyRemovalPolicy(policy: RemovalPolicy): void;
63
+ }