@mstuercke/pulumi-modules 0.0.6 → 0.0.7

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.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@mstuercke/pulumi-modules",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "files": [
5
- "dist/**/!(*.test|*.fixture).ts",
5
+ "dist/**/!(*.test|*.fixture)(.d.ts|.js)",
6
6
  "README.md"
7
7
  ],
8
8
  "exports": "./dist/index.js",
@@ -1,29 +0,0 @@
1
- import { type CustomResourceOptions, type Output, Resource } from '@pulumi/pulumi';
2
- export type Auth0Domain = `${string}.auth0.com`;
3
- export type Auth0URL = `http://${string}` | `https://${string}`;
4
- export interface Auth0User {
5
- name: string;
6
- email: string;
7
- password: string;
8
- emailVerified: boolean;
9
- appMetadata?: Record<string, unknown>;
10
- }
11
- export interface Auth0Args {
12
- projectId: string;
13
- environmentName: string;
14
- tenantDisplayName: string;
15
- clientDisplayName: string;
16
- domain: Auth0Domain;
17
- m2mClientId: string;
18
- allowedUrls: Auth0URL[];
19
- allowedLoginCallbackUrls?: Auth0URL[];
20
- allowedLogoutCallbackUrls?: Auth0URL[];
21
- nativeAppId?: `com.${string}`;
22
- defaultUsers?: Auth0User[];
23
- disableSignup?: boolean;
24
- }
25
- export declare class Auth0 extends Resource {
26
- domain: string;
27
- clientId: Output<string>;
28
- constructor(id: string, args: Auth0Args, opts?: CustomResourceOptions);
29
- }
@@ -1,5 +0,0 @@
1
- import { Auth0 } from './Auth0';
2
- export * from './Auth0';
3
- export declare const auth0: {
4
- Auth0: typeof Auth0;
5
- };
@@ -1,13 +0,0 @@
1
- import { type Provider } from '@pulumi/aws';
2
- export interface DataDomainOptions {
3
- usEast1Provider: Provider;
4
- name: `${string}.${string}`;
5
- }
6
- export type DomainResult = {
7
- name: string;
8
- zoneId: string;
9
- nameServers: string[];
10
- usEast1CertificateArn: string;
11
- euCentral1CertificateArn: string;
12
- };
13
- export declare const getDomain: (options: DataDomainOptions) => Promise<DomainResult>;
@@ -1,4 +0,0 @@
1
- export * from './getDomain';
2
- export declare const domain: {
3
- getDomain: (options: import("./getDomain").DataDomainOptions) => Promise<import("./getDomain").DomainResult>;
4
- };
@@ -1,6 +0,0 @@
1
- import { iam } from '@pulumi/aws';
2
- import type { SimpleIamRolePolicyConfig } from './SimpleIamRolePolicyConfig.js';
3
- import { type CustomResourceOptions } from '@pulumi/pulumi';
4
- export declare class SimpleIamRolePolicy extends iam.RolePolicy {
5
- constructor(iamRoleId: string, config: SimpleIamRolePolicyConfig, opts?: CustomResourceOptions);
6
- }
@@ -1,57 +0,0 @@
1
- import type { Input } from '@pulumi/pulumi';
2
- import type { PolicyStatement } from '@pulumi/aws/iam';
3
- export type SimpleIamRolePolicyConfig = CustomPolicyConfig | DynamoDbPolicyConfig | TimestreamPolicyConfig | S3PolicyConfig | CognitoPolicyConfig | WebsocketPolicyConfig | ExecuteLambdaConfig | SnsPolicyConfig | EventBridgeConfig;
4
- interface CustomPolicyConfig {
5
- type: 'custom';
6
- name: string;
7
- statements: PolicyStatement[];
8
- }
9
- interface DynamoDbPolicyConfig {
10
- type: 'dynamodb';
11
- level: 'full-access';
12
- name: string;
13
- tableArn: Input<string>;
14
- }
15
- interface TimestreamPolicyConfig {
16
- type: 'timestream';
17
- level: 'full-access';
18
- name: string;
19
- dbArn: Input<string>;
20
- tableArn: Input<string>;
21
- }
22
- interface S3PolicyConfig {
23
- type: 's3';
24
- level: 'full-access';
25
- name: string;
26
- bucketArn: Input<string>;
27
- }
28
- interface CognitoPolicyConfig {
29
- type: 'cognito';
30
- level: 'full-access';
31
- name: string;
32
- userPoolArn: Input<string>;
33
- }
34
- interface WebsocketPolicyConfig {
35
- type: 'websocket';
36
- level: 'full-access';
37
- name: string;
38
- apiArn: '*';
39
- }
40
- interface SnsPolicyConfig {
41
- type: 'sns';
42
- level: 'publish-message';
43
- name: string;
44
- snsTopicArn: Input<string>;
45
- }
46
- interface ExecuteLambdaConfig {
47
- type: 'execute-lambda';
48
- name: string;
49
- lambdaArn: Input<string>;
50
- }
51
- interface EventBridgeConfig {
52
- type: 'event-bridge';
53
- level: 'enable-disable-rule';
54
- name: string;
55
- ruleArn: Input<string>;
56
- }
57
- export {};
@@ -1,6 +0,0 @@
1
- import { SimpleIamRolePolicy } from './SimpleIamRolePolicy';
2
- export * from './SimpleIamRolePolicy';
3
- export * from './SimpleIamRolePolicyConfig';
4
- export declare const iam: {
5
- SimpleIamRolePolicy: typeof SimpleIamRolePolicy;
6
- };
package/dist/index.d.ts DELETED
@@ -1,40 +0,0 @@
1
- export * from './auth0';
2
- export * from './domain';
3
- export * from './iam';
4
- export * from './lambda';
5
- export * from './mongodb';
6
- export * from './rest';
7
- export * from './s3';
8
- export * from './website';
9
- export * from './websocket';
10
- export declare const mstuercke: {
11
- auth0: {
12
- Auth0: typeof import("./auth0").Auth0;
13
- };
14
- domain: {
15
- getDomain: (options: import("./domain").DataDomainOptions) => Promise<import("./domain").DomainResult>;
16
- };
17
- iam: {
18
- SimpleIamRolePolicy: typeof import("./iam").SimpleIamRolePolicy;
19
- };
20
- lambda: {
21
- NodeLambdaFunction: typeof import("./lambda").NodeLambdaFunction;
22
- };
23
- mongodb: {
24
- MongoDBCustomInstance: typeof import("./mongodb").MongoDBCustomInstance;
25
- MongoDBDefaultInstance: typeof import("./mongodb").MongoDBDefaultInstance;
26
- MongoDBUser: typeof import("./mongodb").MongoDBUser;
27
- };
28
- rest: {
29
- RestApi: typeof import("./rest").RestApi;
30
- };
31
- s3: {
32
- PublicS3Bucket: typeof import("./s3").PublicS3Bucket;
33
- };
34
- website: {
35
- StaticWebsite: typeof import("./website").StaticWebsite;
36
- };
37
- websocket: {
38
- WebsocketApi: typeof import("./websocket").WebsocketApi;
39
- };
40
- };
@@ -1,20 +0,0 @@
1
- import { type CustomResourceOptions, type Output, Resource } from '@pulumi/pulumi';
2
- import { type SimpleIamRolePolicyConfig } from '../iam';
3
- import type { WithInputs } from './WithInputs.js';
4
- export type NodeLambdaFunctionArgs<EnvironmentVariables> = {
5
- name: string;
6
- runtime?: string;
7
- functionHandler?: string;
8
- memorySize?: number;
9
- timeoutSeconds?: number;
10
- lambdaPath: string;
11
- additionalIamRolePolicies?: SimpleIamRolePolicyConfig[];
12
- environmentVariables?: WithInputs<EnvironmentVariables>;
13
- projectId: string;
14
- };
15
- export declare class NodeLambdaFunction<EnvironmentVariables extends Record<string, string> = Record<string, string>> extends Resource {
16
- name: string;
17
- arn: Output<string>;
18
- invokeArn: Output<string>;
19
- constructor(args: NodeLambdaFunctionArgs<EnvironmentVariables>, opts?: CustomResourceOptions);
20
- }
@@ -1,4 +0,0 @@
1
- import type { Input } from '@pulumi/pulumi';
2
- export type WithInputs<T> = {
3
- [key in keyof T]: Input<T[key]>;
4
- };
@@ -1,5 +0,0 @@
1
- import { NodeLambdaFunction } from './NodeLambdaFunction';
2
- export * from './NodeLambdaFunction';
3
- export declare const lambda: {
4
- NodeLambdaFunction: typeof NodeLambdaFunction;
5
- };
@@ -1,13 +0,0 @@
1
- import { type CustomResourceOptions, type Output, Resource } from '@pulumi/pulumi';
2
- export type MongoDBArgs = {
3
- organizationId: string;
4
- projectId: string;
5
- environmentName: string;
6
- };
7
- export declare class MongoDB extends Resource {
8
- readonly connectionString: Output<string>;
9
- readonly databaseName: string;
10
- readonly username: string;
11
- readonly password: Output<string>;
12
- constructor(args: MongoDBArgs, opts?: CustomResourceOptions);
13
- }
@@ -1,12 +0,0 @@
1
- import { type CustomResourceOptions, type Output, Resource } from '@pulumi/pulumi';
2
- export type MongoDBCustomInstanceArgs = {
3
- organizationId: string;
4
- projectId: string;
5
- environmentName: string;
6
- };
7
- export declare class MongoDBCustomInstance extends Resource {
8
- readonly mongoProjectId: Output<string>;
9
- readonly connectionString: Output<string>;
10
- readonly databaseName: string;
11
- constructor(args: MongoDBCustomInstanceArgs, opts?: CustomResourceOptions);
12
- }
@@ -1,12 +0,0 @@
1
- import { type CustomResourceOptions, type Output, Resource } from '@pulumi/pulumi';
2
- export type MongoDBDefaultInstanceArgs = {
3
- organizationId: string;
4
- projectId: string;
5
- environmentName: string;
6
- };
7
- export declare class MongoDBDefaultInstance extends Resource {
8
- readonly mongoProjectId: Output<string>;
9
- readonly connectionString: Output<string>;
10
- readonly databaseName: string;
11
- constructor(args: MongoDBDefaultInstanceArgs, opts?: CustomResourceOptions);
12
- }
@@ -1,12 +0,0 @@
1
- import { type CustomResourceOptions, type Input, type Output, Resource } from '@pulumi/pulumi';
2
- export type MongoDBUserArgs = {
3
- mongoProjectId: Input<string>;
4
- databaseName: string;
5
- projectId: string;
6
- environmentName: string;
7
- };
8
- export declare class MongoDBUser extends Resource {
9
- readonly username: string;
10
- readonly password: Output<string>;
11
- constructor(args: MongoDBUserArgs, opts?: CustomResourceOptions);
12
- }
@@ -1,11 +0,0 @@
1
- import { MongoDBCustomInstance } from './MongoDBCustomInstance';
2
- import { MongoDBDefaultInstance } from './MongoDBDefaultInstance';
3
- import { MongoDBUser } from './MongoDBUser';
4
- export * from './MongoDBCustomInstance';
5
- export * from './MongoDBDefaultInstance';
6
- export * from './MongoDBUser';
7
- export declare const mongodb: {
8
- MongoDBCustomInstance: typeof MongoDBCustomInstance;
9
- MongoDBDefaultInstance: typeof MongoDBDefaultInstance;
10
- MongoDBUser: typeof MongoDBUser;
11
- };
@@ -1,19 +0,0 @@
1
- import * as aws from '@pulumi/aws';
2
- import type { CustomResourceOptions, Input } from '@pulumi/pulumi';
3
- import type { NodeLambdaFunction } from '../lambda';
4
- export interface RestApiArgs {
5
- name: string;
6
- projectId: string;
7
- lambdaFunction: NodeLambdaFunction;
8
- timeoutSeconds?: number;
9
- stageName?: string;
10
- domain: {
11
- zoneId: Input<string>;
12
- fullName: Input<string>;
13
- usEast1CertificateArn: Input<string>;
14
- };
15
- }
16
- export declare class RestApi extends aws.apigateway.RestApi {
17
- readonly url: string;
18
- constructor(id: string, args: RestApiArgs, opts?: CustomResourceOptions);
19
- }
@@ -1,5 +0,0 @@
1
- import { RestApi } from './RestApi';
2
- export * from './RestApi';
3
- export declare const rest: {
4
- RestApi: typeof RestApi;
5
- };
@@ -1,11 +0,0 @@
1
- import { Bucket, type BucketArgs } from '@pulumi/aws/s3';
2
- import type { CustomResourceOptions } from '@pulumi/pulumi';
3
- type PublicS3BucketArgs = {
4
- name: string;
5
- allowPresignedPost?: boolean;
6
- tags?: BucketArgs['tags'];
7
- };
8
- export declare class PublicS3Bucket extends Bucket {
9
- constructor(id: string, args: PublicS3BucketArgs, opts?: CustomResourceOptions);
10
- }
11
- export {};
@@ -1,5 +0,0 @@
1
- import { PublicS3Bucket } from './PublicS3Bucket';
2
- export * from './PublicS3Bucket';
3
- export declare const s3: {
4
- PublicS3Bucket: typeof PublicS3Bucket;
5
- };
@@ -1,17 +0,0 @@
1
- import { type CustomResourceOptions, type Input, Resource } from '@pulumi/pulumi';
2
- import { type PublicS3Bucket } from '../s3';
3
- export interface StaticWebsiteArgs {
4
- projectId: string;
5
- environmentName: string;
6
- filesPath: string;
7
- customDomain?: {
8
- fullName: Input<string>;
9
- zoneId: Input<string>;
10
- usEast1CertificateArn: Input<string>;
11
- };
12
- }
13
- export declare class StaticWebsite extends Resource {
14
- url: string;
15
- bucket: PublicS3Bucket;
16
- constructor(id: string, args: StaticWebsiteArgs, opts?: CustomResourceOptions);
17
- }
@@ -1,5 +0,0 @@
1
- import { StaticWebsite } from './StaticWebsite';
2
- export * from './StaticWebsite';
3
- export declare const website: {
4
- StaticWebsite: typeof StaticWebsite;
5
- };
@@ -1,8 +0,0 @@
1
- interface File {
2
- absolutePath: string;
3
- relativePath: string;
4
- md5: string;
5
- mimeType: string;
6
- }
7
- export declare function readFilesRecursive(dir: string): File[];
8
- export {};
@@ -1,22 +0,0 @@
1
- import { type CustomResourceOptions, type Input, type Output, Resource } from '@pulumi/pulumi';
2
- import type { NodeLambdaFunction } from '../lambda';
3
- export interface WebsocketApiArgs {
4
- name: string;
5
- lambdaFunction: NodeLambdaFunction;
6
- routeThrottling?: {
7
- rateLimit?: number;
8
- burstLimit?: number;
9
- };
10
- stageName?: string;
11
- domain: {
12
- zoneId: Input<string>;
13
- fullName: Input<string>;
14
- euCentral1CertificateArn: Input<string>;
15
- };
16
- projectId: string;
17
- }
18
- export declare class WebsocketApi extends Resource {
19
- id: Output<string>;
20
- url: string;
21
- constructor(id: string, args: WebsocketApiArgs, opts?: CustomResourceOptions);
22
- }
@@ -1,5 +0,0 @@
1
- import { WebsocketApi } from './WebsocketApi';
2
- export * from './WebsocketApi';
3
- export declare const websocket: {
4
- WebsocketApi: typeof WebsocketApi;
5
- };