Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pepperize/cdk-private-bucket

Package Overview
Dependencies
Maintainers
0
Versions
516
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pepperize/cdk-private-bucket - npm Package Compare versions

Comparing version 0.0.516 to 0.0.517

89

API.md

@@ -1,74 +0,1 @@

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
[![GitHub](https://img.shields.io/github/license/pepperize/cdk-private-bucket?style=flat-square)](https://github.com/pepperize/cdk-private-bucket/blob/main/LICENSE)
[![npm (scoped)](https://img.shields.io/npm/v/@pepperize/cdk-private-bucket?style=flat-square)](https://www.npmjs.com/package/@pepperize/cdk-private-bucket)
[![PyPI](https://img.shields.io/pypi/v/pepperize.cdk-private-bucket?style=flat-square)](https://pypi.org/project/pepperize.cdk-private-bucket/)
[![Nuget](https://img.shields.io/nuget/v/Pepperize.CDK.PrivateBucket?style=flat-square)](https://www.nuget.org/packages/Pepperize.CDK.PrivateBucket/)
[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/com.pepperize/cdk-private-bucket?server=https%3A%2F%2Fs01.oss.sonatype.org%2F&style=flat-square)](https://s01.oss.sonatype.org/content/repositories/releases/com/pepperize/cdk-private-bucket/)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/pepperize/cdk-private-bucket/release.yml?branch=main&label=release&style=flat-square)](https://github.com/pepperize/cdk-private-bucket/actions/workflows/release.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/pepperize/cdk-private-bucket?sort=semver&style=flat-square)](https://github.com/pepperize/cdk-private-bucket/releases)
# AWS CDK Private Bucket
This project provides a CDK construct to create an S3 Bucket with some security pre-sets. It uses usual [s3.BucketProps](https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-s3.BucketProps.html) and overrides these key-value pairs:
```typescript
{
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
enforceSSL: true,
encryption: s3.BucketEncryption.S3_MANAGED,
}
```
The result is a privacy-oriented S3 Bucket.
## Install
### TypeScript
```shell
npm install @pepperize/cdk-private-bucket
```
or
```shell
yarn add @pepperize/cdk-private-bucket
```
### Python
```shell
pip install pepperize.cdk-private-bucket
```
### C# / .Net
```
dotnet add package Pepperize.CDK.PrivateBucket
```
### Java
```xml
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-private-bucket</artifactId>
<version>${cdkPrivateBucket.version}</version>
</dependency>
```
## Example
```shell
npm install @pepperize/cdk-private-bucket
```
See [API.md](https://github.com/pepperize/cdk-private-bucket/blob/main/API.md).
```typescript
import { PrivateBucket } from "@pepperize/cdk-private-bucket";
const bucket = new PrivateBucket(this, "PrivateBucket", {});
```
# API Reference <a name="API Reference" id="api-reference"></a>

@@ -179,3 +106,3 @@

```typescript
public addEventNotification(event: EventType, dest: IBucketNotificationDestination, filters: NotificationKeyFilter): void
public addEventNotification(event: EventType, dest: IBucketNotificationDestination, filters: ...NotificationKeyFilter[]): void
```

@@ -214,3 +141,3 @@

- *Type:* aws-cdk-lib.aws_s3.NotificationKeyFilter
- *Type:* ...aws-cdk-lib.aws_s3.NotificationKeyFilter[]

@@ -228,3 +155,3 @@ S3 object key filter rules to determine which objects trigger this event.

```typescript
public addObjectCreatedNotification(dest: IBucketNotificationDestination, filters: NotificationKeyFilter): void
public addObjectCreatedNotification(dest: IBucketNotificationDestination, filters: ...NotificationKeyFilter[]): void
```

@@ -247,3 +174,3 @@

- *Type:* aws-cdk-lib.aws_s3.NotificationKeyFilter
- *Type:* ...aws-cdk-lib.aws_s3.NotificationKeyFilter[]

@@ -257,3 +184,3 @@ Filters (see onEvent).

```typescript
public addObjectRemovedNotification(dest: IBucketNotificationDestination, filters: NotificationKeyFilter): void
public addObjectRemovedNotification(dest: IBucketNotificationDestination, filters: ...NotificationKeyFilter[]): void
```

@@ -276,3 +203,3 @@

- *Type:* aws-cdk-lib.aws_s3.NotificationKeyFilter
- *Type:* ...aws-cdk-lib.aws_s3.NotificationKeyFilter[]

@@ -352,3 +279,3 @@ Filters (see onEvent).

```typescript
public grantPublicAccess(allowedActions: string, keyPrefix?: string): Grant
public grantPublicAccess(allowedActions: ...string[], keyPrefix?: string): Grant
```

@@ -379,3 +306,3 @@

- *Type:* string
- *Type:* ...string[]

@@ -382,0 +309,0 @@ the set of S3 actions to allow.

4

lib/bucket-privacy.js

@@ -36,3 +36,3 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
BucketPrivacy[_a] = { fqn: "@pepperize/cdk-private-bucket.BucketPrivacy", version: "0.0.516" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVja2V0LXByaXZhY3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYnVja2V0LXByaXZhY3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2Q0FBOEM7QUFHOUMsTUFBYSxhQUFhO0lBQ3hCLEtBQUssQ0FBQyxJQUFnQjtRQUNwQixJQUFJLElBQUksWUFBWSxvQkFBTSxDQUFDLFNBQVMsRUFBRTtZQUNwQyxNQUFNLE1BQU0sR0FBRyxJQUF3QixDQUFDO1lBRXhDLE1BQU0sQ0FBQyxnQkFBZ0IsR0FBRztnQkFDeEIsaUNBQWlDLEVBQUU7b0JBQ2pDO3dCQUNFLDZCQUE2QixFQUFFOzRCQUM3QixjQUFjLEVBQUUsU0FBUzs0QkFDekIsWUFBWSxFQUFFLFFBQVE7eUJBQ3ZCO3FCQUNGO2lCQUNGO2FBQ0YsQ0FBQztZQUVGLE1BQU0sQ0FBQyw4QkFBOEIsR0FBRztnQkFDdEMsZUFBZSxFQUFFLElBQUk7Z0JBQ3JCLGlCQUFpQixFQUFFLElBQUk7Z0JBQ3ZCLGdCQUFnQixFQUFFLElBQUk7Z0JBQ3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AgIGJsb2NrUHVibGljQWNsczogdHJ1ZSxcbiAgICAgICAgYmxvY2tQdWJsaWNQb2xpY3k6IHRydWUsXG4gICAgICAgIGlnbm9yZVB1YmxpY0FjbHM6IHRydWUsXG4gICAgICAgIHJlc3RyaWN0UHVibGljQnVja2V0czogdHJ1ZSxcbiAgICAgIH07XG4gICAgfVxuXG4gICAgaWYgKG5vZGUgaW5zdGFuY2VvZiBhd3NfczMuQ2ZuQnVja2V0UG9saWN5KSB7XG4gICAgICBjb25zdCBidWNrZXRQb2xpY3kgPSBub2RlIGFzIGF3c19zMy5DZm5CdWNrZXRQb2xpY3k7XG4gICAgICBjb25zb2xlLmxvZyhidWNrZXRQb2xpY3kucG9saWN5RG9jdW1lbnQpO1xuICAgIH1cbiAgfVxufVxuIl19
BucketPrivacy[_a] = { fqn: "@pepperize/cdk-private-bucket.BucketPrivacy", version: "0.0.517" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVja2V0LXByaXZhY3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYnVja2V0LXByaXZhY3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2Q0FBOEM7QUFHOUMsTUFBYSxhQUFhO0lBQ3hCLEtBQUssQ0FBQyxJQUFnQjtRQUNwQixJQUFJLElBQUksWUFBWSxvQkFBTSxDQUFDLFNBQVMsRUFBRSxDQUFDO1lBQ3JDLE1BQU0sTUFBTSxHQUFHLElBQXdCLENBQUM7WUFFeEMsTUFBTSxDQUFDLGdCQUFnQixHQUFHO2dCQUN4QixpQ0FBaUMsRUFBRTtvQkFDakM7d0JBQ0UsNkJBQTZCLEVBQUU7NEJBQzdCLGNBQWMsRUFBRSxTQUFTOzRCQUN6QixZQUFZLEVBQUUsUUFBUTt5QkFDdkI7cUJBQ0Y7aUJBQ0Y7YUFDRixDQUFDO1lBRUYsTUFBTSxDQUFDLDhCQU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gICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICBdLFxuICAgICAgfTtcblxuICAgICAgYnVja2V0LnB1YmxpY0FjY2Vzc0Jsb2NrQ29uZmlndXJhdGlvbiA9IHtcbiAgICAgICAgYmxvY2tQdWJsaWNBY2xzOiB0cnVlLFxuICAgICAgICBibG9ja1B1YmxpY1BvbGljeTogdHJ1ZSxcbiAgICAgICAgaWdub3JlUHVibGljQWNsczogdHJ1ZSxcbiAgICAgICAgcmVzdHJpY3RQdWJsaWNCdWNrZXRzOiB0cnVlLFxuICAgICAgfTtcbiAgICB9XG5cbiAgICBpZiAobm9kZSBpbnN0YW5jZW9mIGF3c19zMy5DZm5CdWNrZXRQb2xpY3kpIHtcbiAgICAgIGNvbnN0IGJ1Y2tldFBvbGljeSA9IG5vZGUgYXMgYXdzX3MzLkNmbkJ1Y2tldFBvbGljeTtcbiAgICAgIGNvbnNvbGUubG9nKGJ1Y2tldFBvbGljeS5wb2xpY3lEb2N1bWVudCk7XG4gICAgfVxuICB9XG59XG4iXX0=
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -10,3 +14,3 @@ if (k2 === undefined) k2 = k;

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -16,2 +20,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

__exportStar(require("./private-bucket"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsbURBQWlDO0FBQ2pDLG1EQUFpQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2J1Y2tldC1wcml2YWN5XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9wcml2YXRlLWJ1Y2tldFwiO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLG1EQUFpQztBQUNqQyxtREFBaUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9idWNrZXQtcHJpdmFjeVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcHJpdmF0ZS1idWNrZXRcIjtcbiJdfQ==

@@ -19,3 +19,3 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
PrivateBucket[_a] = { fqn: "@pepperize/cdk-private-bucket.PrivateBucket", version: "0.0.516" };
PrivateBucket[_a] = { fqn: "@pepperize/cdk-private-bucket.PrivateBucket", version: "0.0.517" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZS1idWNrZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcHJpdmF0ZS1idWNrZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2Q0FBcUM7QUFLckMsTUFBYSxhQUFjLFNBQVEsb0JBQU0sQ0FBQyxNQUFNO0lBQzlDLFlBQVksS0FBZ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awscdk-construct": "~0.0.730",
"@types/jest": "^27",
"@types/node": "^14",
"@typescript-eslint/eslint-plugin": "^5",
"@typescript-eslint/parser": "^5",
"@typescript-eslint/eslint-plugin": "^8",
"@typescript-eslint/parser": "^8",
"aws-cdk-lib": "2.8.0",
"commit-and-tag-version": "^12",
"constructs": "10.0.5",
"eslint": "^8",
"eslint": "^9",
"eslint-config-prettier": "^8.7.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-import-resolver-typescript": "^3.5.3",

@@ -55,10 +55,10 @@ "eslint-plugin-import": "^2.27.5",

"jest": "^27",
"jest-junit": "^13",
"jsii": "^1.76.0",
"jest-junit": "^15",
"jsii": "~5.6.0",
"jsii-diff": "^1.76.0",
"jsii-docgen": "^7.1.17",
"jsii-docgen": "^10.5.0",
"jsii-pacmak": "^1.76.0",
"jsii-rosetta": "~5.6.0",
"prettier": "^2.8.4",
"projen": "^0.67.74",
"standard-version": "^9",
"projen": "~0.91.1",
"ts-jest": "^27",

@@ -82,7 +82,8 @@ "typescript": "^4.9.5"

},
"version": "0.0.516",
"version": "0.0.517",
"jest": {
"coverageProvider": "v8",
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
"<rootDir>/(test|src)/**/*(*.)@(spec|test).ts?(x)"
"<rootDir>/@(src|test)/**/*(*.)@(spec|test).ts?(x)",
"<rootDir>/@(src|test)/**/__tests__/**/*.ts?(x)"
],

@@ -150,7 +151,3 @@ "clearMocks": true,

},
"resolutions": {
"@types/prettier": "2.6.0",
"@types/babel__traverse": "7.18.2"
},
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc