@hot-updater/aws 1.0.0-rc.18 → 1.0.0-rc.21

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.
@@ -1,124 +0,0 @@
1
- import { RunInitOptions } from "@hot-updater/cli-tools";
2
- //#region iac/dynamodb.d.ts
3
- declare const buildDynamoDBCreateTableInput: (tableName: string) => {
4
- AttributeDefinitions: {
5
- AttributeName: string;
6
- AttributeType: "S";
7
- }[];
8
- BillingMode: "PAY_PER_REQUEST";
9
- DeletionProtectionEnabled: true;
10
- KeySchema: ({
11
- readonly AttributeName: "pk";
12
- readonly KeyType: "HASH";
13
- } | {
14
- readonly AttributeName: "sk";
15
- readonly KeyType: "RANGE";
16
- })[];
17
- OnDemandThroughput: {
18
- readonly MaxReadRequestUnits: 4000;
19
- readonly MaxWriteRequestUnits: 100;
20
- };
21
- TableName: string;
22
- };
23
- /**
24
- * The schema settings items of core and the managed server's plugins, which
25
- * the database checks before its first read, as one BatchWriteItem request:
26
- * what `migrateDynamoDB` writes to a new table for those plugins.
27
- */
28
- declare const buildDynamoDBSchemaSettingsInput: (tableName: string) => {
29
- RequestItems: {
30
- [x: string]: {
31
- PutRequest: {
32
- Item: {
33
- pk: {
34
- S: string;
35
- };
36
- sk: {
37
- S: string;
38
- };
39
- key: {
40
- S: string;
41
- };
42
- value: {
43
- S: string;
44
- };
45
- _v: {
46
- N: string;
47
- };
48
- };
49
- };
50
- }[];
51
- };
52
- };
53
- declare const buildDynamoDBBackupInput: (tableName: string) => {
54
- PointInTimeRecoverySpecification: {
55
- PointInTimeRecoveryEnabled: true;
56
- };
57
- TableName: string;
58
- };
59
- /**
60
- * Turns on the table's TTL, which deletes expired items for free: the store
61
- * writes `_ttl`, in epoch seconds, on every item of a row with retention.
62
- */
63
- declare const buildDynamoDBTimeToLiveInput: (tableName: string) => {
64
- TableName: string;
65
- TimeToLiveSpecification: {
66
- AttributeName: string;
67
- Enabled: true;
68
- };
69
- };
70
- //#endregion
71
- //#region iac/iam.d.ts
72
- declare const buildDynamoDBPolicy: (region: string, accountId: string, tableName: string) => {
73
- Version: string;
74
- Statement: {
75
- Action: string[];
76
- Condition: {
77
- "ForAllValues:StringLike": {
78
- "dynamodb:LeadingKeys": string[];
79
- };
80
- };
81
- Effect: string;
82
- Resource: string[];
83
- }[];
84
- };
85
- declare const buildS3Policy: (bucketName: string) => {
86
- Version: string;
87
- Statement: {
88
- Action: string[];
89
- Effect: string;
90
- Resource: string[];
91
- }[];
92
- };
93
- declare const buildSsmPolicy: (region: string, accountId: string, parameterName: string) => {
94
- Version: string;
95
- Statement: {
96
- Effect: string;
97
- Action: string[];
98
- Resource: string;
99
- }[];
100
- };
101
- declare const LAMBDA_EDGE_TRUST_POLICY: {
102
- Version: string;
103
- Statement: {
104
- Effect: string;
105
- Principal: {
106
- Service: string[];
107
- };
108
- Action: string;
109
- }[];
110
- };
111
- //#endregion
112
- //#region iac/index.d.ts
113
- declare const prepareDynamoDBDeployment: (input: {
114
- readonly credentials: {
115
- readonly accessKeyId: string;
116
- readonly secretAccessKey: string;
117
- readonly sessionToken?: string;
118
- };
119
- readonly region: string;
120
- readonly tableName: string;
121
- }) => Promise<void>;
122
- declare const runInit: ({ build, envFile }: RunInitOptions) => Promise<void>;
123
- //#endregion
124
- export { LAMBDA_EDGE_TRUST_POLICY, buildDynamoDBBackupInput, buildDynamoDBCreateTableInput, buildDynamoDBPolicy, buildDynamoDBSchemaSettingsInput, buildDynamoDBTimeToLiveInput, buildS3Policy, buildSsmPolicy, prepareDynamoDBDeployment, runInit };
@@ -1,124 +0,0 @@
1
- import { InitError, RunInitOptions } from "@hot-updater/cli-tools";
2
- //#region iac/dynamodb.d.ts
3
- declare const buildDynamoDBCreateTableInput: (tableName: string) => {
4
- AttributeDefinitions: {
5
- AttributeName: string;
6
- AttributeType: "S";
7
- }[];
8
- BillingMode: "PAY_PER_REQUEST";
9
- DeletionProtectionEnabled: true;
10
- KeySchema: ({
11
- readonly AttributeName: "pk";
12
- readonly KeyType: "HASH";
13
- } | {
14
- readonly AttributeName: "sk";
15
- readonly KeyType: "RANGE";
16
- })[];
17
- OnDemandThroughput: {
18
- readonly MaxReadRequestUnits: 4000;
19
- readonly MaxWriteRequestUnits: 100;
20
- };
21
- TableName: string;
22
- };
23
- /**
24
- * The schema settings items of core and the managed server's plugins, which
25
- * the database checks before its first read, as one BatchWriteItem request:
26
- * what `migrateDynamoDB` writes to a new table for those plugins.
27
- */
28
- declare const buildDynamoDBSchemaSettingsInput: (tableName: string) => {
29
- RequestItems: {
30
- [x: string]: {
31
- PutRequest: {
32
- Item: {
33
- pk: {
34
- S: string;
35
- };
36
- sk: {
37
- S: string;
38
- };
39
- key: {
40
- S: string;
41
- };
42
- value: {
43
- S: string;
44
- };
45
- _v: {
46
- N: string;
47
- };
48
- };
49
- };
50
- }[];
51
- };
52
- };
53
- declare const buildDynamoDBBackupInput: (tableName: string) => {
54
- PointInTimeRecoverySpecification: {
55
- PointInTimeRecoveryEnabled: true;
56
- };
57
- TableName: string;
58
- };
59
- /**
60
- * Turns on the table's TTL, which deletes expired items for free: the store
61
- * writes `_ttl`, in epoch seconds, on every item of a row with retention.
62
- */
63
- declare const buildDynamoDBTimeToLiveInput: (tableName: string) => {
64
- TableName: string;
65
- TimeToLiveSpecification: {
66
- AttributeName: string;
67
- Enabled: true;
68
- };
69
- };
70
- //#endregion
71
- //#region iac/iam.d.ts
72
- declare const buildDynamoDBPolicy: (region: string, accountId: string, tableName: string) => {
73
- Version: string;
74
- Statement: {
75
- Action: string[];
76
- Condition: {
77
- "ForAllValues:StringLike": {
78
- "dynamodb:LeadingKeys": string[];
79
- };
80
- };
81
- Effect: string;
82
- Resource: string[];
83
- }[];
84
- };
85
- declare const buildS3Policy: (bucketName: string) => {
86
- Version: string;
87
- Statement: {
88
- Action: string[];
89
- Effect: string;
90
- Resource: string[];
91
- }[];
92
- };
93
- declare const buildSsmPolicy: (region: string, accountId: string, parameterName: string) => {
94
- Version: string;
95
- Statement: {
96
- Effect: string;
97
- Action: string[];
98
- Resource: string;
99
- }[];
100
- };
101
- declare const LAMBDA_EDGE_TRUST_POLICY: {
102
- Version: string;
103
- Statement: {
104
- Effect: string;
105
- Principal: {
106
- Service: string[];
107
- };
108
- Action: string;
109
- }[];
110
- };
111
- //#endregion
112
- //#region iac/index.d.ts
113
- declare const prepareDynamoDBDeployment: (input: {
114
- readonly credentials: {
115
- readonly accessKeyId: string;
116
- readonly secretAccessKey: string;
117
- readonly sessionToken?: string;
118
- };
119
- readonly region: string;
120
- readonly tableName: string;
121
- }) => Promise<void>;
122
- declare const runInit: ({ build, envFile }: RunInitOptions) => Promise<void>;
123
- //#endregion
124
- export { LAMBDA_EDGE_TRUST_POLICY, buildDynamoDBBackupInput, buildDynamoDBCreateTableInput, buildDynamoDBPolicy, buildDynamoDBSchemaSettingsInput, buildDynamoDBTimeToLiveInput, buildS3Policy, buildSsmPolicy, prepareDynamoDBDeployment, runInit };