@stacksjs/ts-cloud 0.2.2 → 0.2.5
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/dist/aws/acm.d.ts +215 -0
- package/dist/aws/application-autoscaling.d.ts +345 -0
- package/dist/aws/bedrock.d.ts +2672 -0
- package/dist/aws/client.d.ts +181 -0
- package/dist/aws/cloudformation.d.ts +187 -0
- package/dist/aws/cloudfront.d.ts +416 -0
- package/dist/aws/cloudwatch-logs.d.ts +70 -0
- package/dist/aws/comprehend.d.ts +616 -0
- package/dist/aws/connect.d.ts +533 -0
- package/dist/aws/deploy-imap.d.ts +26 -0
- package/dist/aws/dynamodb.d.ts +270 -0
- package/dist/aws/ec2.d.ts +545 -0
- package/dist/aws/ecr.d.ts +240 -0
- package/dist/aws/ecs.d.ts +267 -0
- package/dist/aws/efs.d.ts +36 -0
- package/dist/aws/elasticache.d.ts +112 -0
- package/dist/aws/elbv2.d.ts +389 -0
- package/dist/aws/email.d.ts +260 -0
- package/dist/aws/eventbridge.d.ts +197 -0
- package/dist/aws/iam.d.ts +1013 -0
- package/dist/aws/imap-server.d.ts +298 -0
- package/dist/aws/index.d.ts +53 -0
- package/dist/aws/kendra.d.ts +831 -0
- package/dist/aws/lambda.d.ts +319 -0
- package/dist/aws/opensearch.d.ts +121 -0
- package/dist/aws/personalize.d.ts +586 -0
- package/dist/aws/polly.d.ts +243 -0
- package/dist/aws/rds.d.ts +346 -0
- package/dist/aws/rekognition.d.ts +691 -0
- package/dist/aws/route53-domains.d.ts +161 -0
- package/dist/aws/route53.d.ts +330 -0
- package/dist/aws/s3.d.ts +535 -0
- package/dist/aws/scheduler.d.ts +224 -0
- package/dist/aws/secrets-manager.d.ts +267 -0
- package/dist/aws/ses.d.ts +441 -0
- package/dist/aws/setup-phone.d.ts +1 -0
- package/dist/aws/setup-sms.d.ts +116 -0
- package/dist/aws/sms.d.ts +477 -0
- package/dist/aws/smtp-server.d.ts +108 -0
- package/dist/aws/sns.d.ts +224 -0
- package/dist/aws/sqs.d.ts +107 -0
- package/dist/aws/ssm.d.ts +311 -0
- package/dist/aws/sts.d.ts +21 -0
- package/dist/aws/support.d.ts +139 -0
- package/dist/aws/test-imap.d.ts +15 -0
- package/dist/aws/textract.d.ts +477 -0
- package/dist/aws/transcribe.d.ts +79 -0
- package/dist/aws/translate.d.ts +424 -0
- package/dist/aws/voice.d.ts +361 -0
- package/dist/bin/cli.js +4500 -809
- package/dist/config.d.ts +5 -0
- package/dist/deploy/index.d.ts +6 -0
- package/dist/deploy/static-site-external-dns.d.ts +70 -0
- package/dist/deploy/static-site.d.ts +110 -0
- package/dist/dns/cloudflare.d.ts +74 -0
- package/dist/dns/godaddy.d.ts +63 -0
- package/dist/dns/index.d.ts +67 -0
- package/dist/dns/porkbun.d.ts +43 -0
- package/dist/dns/route53-adapter.d.ts +67 -0
- package/dist/dns/types.d.ts +100 -0
- package/dist/dns/validator.d.ts +105 -0
- package/dist/generators/index.d.ts +4 -0
- package/dist/generators/infrastructure.d.ts +115 -0
- package/dist/index.d.ts +9 -165
- package/dist/index.js +24067 -6430
- package/dist/push/apns.d.ts +140 -0
- package/dist/push/fcm.d.ts +205 -0
- package/dist/push/index.d.ts +44 -0
- package/dist/security/pre-deploy-scanner.d.ts +97 -0
- package/dist/ssl/acme-client.d.ts +133 -0
- package/dist/ssl/index.d.ts +6 -0
- package/dist/ssl/letsencrypt.d.ts +96 -0
- package/dist/utils/cli.d.ts +121 -0
- package/dist/validation/index.d.ts +4 -0
- package/dist/validation/template.d.ts +27 -0
- package/package.json +6 -6
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AWS EventBridge Client
|
|
3
|
+
* Direct API calls for EventBridge operations
|
|
4
|
+
*/
|
|
5
|
+
export interface EventBridgeRule {
|
|
6
|
+
Name: string;
|
|
7
|
+
Arn?: string;
|
|
8
|
+
EventPattern?: string;
|
|
9
|
+
ScheduleExpression?: string;
|
|
10
|
+
State?: 'ENABLED' | 'DISABLED';
|
|
11
|
+
Description?: string;
|
|
12
|
+
RoleArn?: string;
|
|
13
|
+
EventBusName?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EventBus {
|
|
16
|
+
Name?: string;
|
|
17
|
+
Arn?: string;
|
|
18
|
+
Policy?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface EventBridgeTarget {
|
|
21
|
+
Id: string;
|
|
22
|
+
Arn: string;
|
|
23
|
+
RoleArn?: string;
|
|
24
|
+
Input?: string;
|
|
25
|
+
InputPath?: string;
|
|
26
|
+
InputTransformer?: {
|
|
27
|
+
InputPathsMap?: Record<string, string>;
|
|
28
|
+
InputTemplate: string;
|
|
29
|
+
};
|
|
30
|
+
RetryPolicy?: {
|
|
31
|
+
MaximumRetryAttempts?: number;
|
|
32
|
+
MaximumEventAgeInSeconds?: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* EventBridge client for direct API calls
|
|
37
|
+
*/
|
|
38
|
+
export declare class EventBridgeClient {
|
|
39
|
+
private client;
|
|
40
|
+
private region;
|
|
41
|
+
constructor(region?: string);
|
|
42
|
+
private request;
|
|
43
|
+
/**
|
|
44
|
+
* Create or update a rule
|
|
45
|
+
*/
|
|
46
|
+
putRule(params: {
|
|
47
|
+
Name: string;
|
|
48
|
+
ScheduleExpression?: string;
|
|
49
|
+
EventPattern?: string;
|
|
50
|
+
State?: 'ENABLED' | 'DISABLED';
|
|
51
|
+
Description?: string;
|
|
52
|
+
RoleArn?: string;
|
|
53
|
+
Tags?: Array<{
|
|
54
|
+
Key: string;
|
|
55
|
+
Value: string;
|
|
56
|
+
}>;
|
|
57
|
+
EventBusName?: string;
|
|
58
|
+
}): Promise<{
|
|
59
|
+
RuleArn: string;
|
|
60
|
+
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Delete a rule
|
|
63
|
+
*/
|
|
64
|
+
deleteRule(params: {
|
|
65
|
+
Name: string;
|
|
66
|
+
EventBusName?: string;
|
|
67
|
+
Force?: boolean;
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Describe a rule
|
|
71
|
+
*/
|
|
72
|
+
describeRule(params: {
|
|
73
|
+
Name: string;
|
|
74
|
+
EventBusName?: string;
|
|
75
|
+
}): Promise<EventBridgeRule>;
|
|
76
|
+
/**
|
|
77
|
+
* List rules
|
|
78
|
+
*/
|
|
79
|
+
listRules(params?: {
|
|
80
|
+
NamePrefix?: string;
|
|
81
|
+
EventBusName?: string;
|
|
82
|
+
NextToken?: string;
|
|
83
|
+
Limit?: number;
|
|
84
|
+
}): Promise<{
|
|
85
|
+
Rules: EventBridgeRule[];
|
|
86
|
+
NextToken?: string;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* List event buses
|
|
90
|
+
*/
|
|
91
|
+
listEventBuses(params?: {
|
|
92
|
+
NamePrefix?: string;
|
|
93
|
+
NextToken?: string;
|
|
94
|
+
Limit?: number;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
EventBuses: EventBus[];
|
|
97
|
+
NextToken?: string;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Enable a rule
|
|
101
|
+
*/
|
|
102
|
+
enableRule(params: {
|
|
103
|
+
Name: string;
|
|
104
|
+
EventBusName?: string;
|
|
105
|
+
}): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Disable a rule
|
|
108
|
+
*/
|
|
109
|
+
disableRule(params: {
|
|
110
|
+
Name: string;
|
|
111
|
+
EventBusName?: string;
|
|
112
|
+
}): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Add targets to a rule
|
|
115
|
+
*/
|
|
116
|
+
putTargets(params: {
|
|
117
|
+
Rule: string;
|
|
118
|
+
EventBusName?: string;
|
|
119
|
+
Targets: EventBridgeTarget[];
|
|
120
|
+
}): Promise<{
|
|
121
|
+
FailedEntryCount: number;
|
|
122
|
+
FailedEntries: Array<{
|
|
123
|
+
TargetId: string;
|
|
124
|
+
ErrorCode: string;
|
|
125
|
+
ErrorMessage: string;
|
|
126
|
+
}>;
|
|
127
|
+
}>;
|
|
128
|
+
/**
|
|
129
|
+
* Remove targets from a rule
|
|
130
|
+
*/
|
|
131
|
+
removeTargets(params: {
|
|
132
|
+
Rule: string;
|
|
133
|
+
EventBusName?: string;
|
|
134
|
+
Ids: string[];
|
|
135
|
+
Force?: boolean;
|
|
136
|
+
}): Promise<{
|
|
137
|
+
FailedEntryCount: number;
|
|
138
|
+
FailedEntries: Array<{
|
|
139
|
+
TargetId: string;
|
|
140
|
+
ErrorCode: string;
|
|
141
|
+
ErrorMessage: string;
|
|
142
|
+
}>;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* List targets for a rule
|
|
146
|
+
*/
|
|
147
|
+
listTargetsByRule(params: {
|
|
148
|
+
Rule: string;
|
|
149
|
+
EventBusName?: string;
|
|
150
|
+
NextToken?: string;
|
|
151
|
+
Limit?: number;
|
|
152
|
+
}): Promise<{
|
|
153
|
+
Targets: EventBridgeTarget[];
|
|
154
|
+
NextToken?: string;
|
|
155
|
+
}>;
|
|
156
|
+
/**
|
|
157
|
+
* Put events to EventBridge
|
|
158
|
+
*/
|
|
159
|
+
putEvents(params: {
|
|
160
|
+
Entries: Array<{
|
|
161
|
+
Time?: string;
|
|
162
|
+
Source: string;
|
|
163
|
+
Resources?: string[];
|
|
164
|
+
DetailType: string;
|
|
165
|
+
Detail: string;
|
|
166
|
+
EventBusName?: string;
|
|
167
|
+
}>;
|
|
168
|
+
}): Promise<{
|
|
169
|
+
FailedEntryCount: number;
|
|
170
|
+
Entries: Array<{
|
|
171
|
+
EventId?: string;
|
|
172
|
+
ErrorCode?: string;
|
|
173
|
+
ErrorMessage?: string;
|
|
174
|
+
}>;
|
|
175
|
+
}>;
|
|
176
|
+
/**
|
|
177
|
+
* Create a scheduler schedule (EventBridge Scheduler)
|
|
178
|
+
*/
|
|
179
|
+
createSchedule(params: {
|
|
180
|
+
Name: string;
|
|
181
|
+
ScheduleExpression: string;
|
|
182
|
+
FlexibleTimeWindow: {
|
|
183
|
+
Mode: 'OFF' | 'FLEXIBLE';
|
|
184
|
+
MaximumWindowInMinutes?: number;
|
|
185
|
+
};
|
|
186
|
+
Target: {
|
|
187
|
+
Arn: string;
|
|
188
|
+
RoleArn: string;
|
|
189
|
+
Input?: string;
|
|
190
|
+
};
|
|
191
|
+
Description?: string;
|
|
192
|
+
State?: 'ENABLED' | 'DISABLED';
|
|
193
|
+
GroupName?: string;
|
|
194
|
+
}): Promise<{
|
|
195
|
+
ScheduleArn: string;
|
|
196
|
+
}>;
|
|
197
|
+
}
|