@lafken/common 0.12.5 → 0.12.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.
|
@@ -28,4 +28,6 @@ export type ApiAuthorizerNames = ResourceScopeKeys<SharedResourceNames, 'api-aut
|
|
|
28
28
|
export type ScheduleReferenceNames = ResourceScopeKeys<SharedReferenceResources, 'schedule'>;
|
|
29
29
|
export type LambdaNames = ResourceScopeKeys<SharedResourceNames, 'lambda'>;
|
|
30
30
|
export type LambdaReferenceNames = ResourceScopeKeys<SharedReferenceResources, 'lambda'>;
|
|
31
|
-
export type
|
|
31
|
+
export type KinesisStreamNames = ResourceScopeKeys<SharedResourceNames, 'kinesis'>;
|
|
32
|
+
export type KinesisStreamReferenceNames = ResourceScopeKeys<SharedReferenceResources, 'kinesis'>;
|
|
33
|
+
export type RegisterNamespaces = 'api' | 'bucket' | 'dynamo' | 'state-machine' | 'queue' | 'authentication' | 'api-authorizer' | 'user-pool' | 'user-pool-client' | 'schedule' | 'event-bus' | 'event-rule' | 'lambda' | 'kinesis' | 'role' | (string & {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GetResourceProps } from './resource.types';
|
|
2
|
-
export type ServicesName = 'dynamodb' | 's3' | 'lambda' | 'cloudwatch' | 'sqs' | 'state_machine' | 'kms' | 'ssm' | 'event';
|
|
2
|
+
export type ServicesName = 'dynamodb' | 's3' | 'lambda' | 'cloudwatch' | 'sqs' | 'state_machine' | 'kms' | 'ssm' | 'event' | 'kinesis';
|
|
3
3
|
interface PermissionService<T extends ServicesName | 'custom', P extends string> {
|
|
4
4
|
type: T;
|
|
5
5
|
permissions?: P[];
|
|
@@ -14,7 +14,8 @@ export type StateMachinePermissions = 'InvokeHTTPEndpoint' | 'DescribeExecution'
|
|
|
14
14
|
export type KMSPermissions = 'Decrypt' | 'DescribeKey' | 'Encrypt' | 'GenerateDataKey' | 'GenerateRandom' | 'GetPublicKey' | 'Sign' | 'Verify';
|
|
15
15
|
export type SSMPermissions = 'DescribeParameters' | 'GetDocument' | 'GetParameter' | 'GetParameters' | 'GetParametersByPath' | 'ListDocuments' | 'PutParameter';
|
|
16
16
|
export type EventPermissions = 'DescribeEventRule' | 'DescribeEventBus' | 'DescribeRule' | 'PutEvents' | 'PutRule';
|
|
17
|
-
export type
|
|
17
|
+
export type KinesisPermissions = 'PutRecord' | 'PutRecords' | 'GetRecords' | 'GetShardIterator' | 'DescribeStream' | 'ListStreams';
|
|
18
|
+
export type Services = ServicesName | PermissionService<'dynamodb', DynamoPermissions> | PermissionService<'s3', S3Permissions> | PermissionService<'lambda', LambdaPermissions> | PermissionService<'cloudwatch', LogsPermission> | PermissionService<'sqs', SQSPermissions> | PermissionService<'state_machine', StateMachinePermissions> | PermissionService<'kms', KMSPermissions> | PermissionService<'ssm', SSMPermissions> | PermissionService<'event', EventPermissions> | PermissionService<'kinesis', KinesisPermissions> | (PermissionService<'custom', string> & {
|
|
18
19
|
serviceName: string;
|
|
19
20
|
});
|
|
20
21
|
export type ServiceFunction = (props: GetResourceProps) => Services[];
|
package/package.json
CHANGED