@stacksjs/ts-cloud 0.1.9 → 0.1.14

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.
Files changed (150) hide show
  1. package/README.md +39 -377
  2. package/dist/bin/cli.js +1047 -424
  3. package/dist/index.d.ts +36 -3
  4. package/dist/index.js +76430 -7096
  5. package/package.json +7 -8
  6. package/dist/aws/acm.d.ts +0 -129
  7. package/dist/aws/application-autoscaling.d.ts +0 -282
  8. package/dist/aws/bedrock.d.ts +0 -2292
  9. package/dist/aws/client.d.ts +0 -79
  10. package/dist/aws/cloudformation.d.ts +0 -105
  11. package/dist/aws/cloudfront.d.ts +0 -265
  12. package/dist/aws/cloudwatch-logs.d.ts +0 -48
  13. package/dist/aws/comprehend.d.ts +0 -505
  14. package/dist/aws/connect.d.ts +0 -377
  15. package/dist/aws/deploy-imap.d.ts +0 -14
  16. package/dist/aws/dynamodb.d.ts +0 -176
  17. package/dist/aws/ec2.d.ts +0 -272
  18. package/dist/aws/ecr.d.ts +0 -149
  19. package/dist/aws/ecs.d.ts +0 -162
  20. package/dist/aws/elasticache.d.ts +0 -71
  21. package/dist/aws/elbv2.d.ts +0 -248
  22. package/dist/aws/email.d.ts +0 -175
  23. package/dist/aws/eventbridge.d.ts +0 -142
  24. package/dist/aws/iam.d.ts +0 -638
  25. package/dist/aws/imap-server.d.ts +0 -119
  26. package/dist/aws/index.d.ts +0 -192
  27. package/dist/aws/kendra.d.ts +0 -782
  28. package/dist/aws/lambda.d.ts +0 -232
  29. package/dist/aws/opensearch.d.ts +0 -87
  30. package/dist/aws/personalize.d.ts +0 -516
  31. package/dist/aws/polly.d.ts +0 -214
  32. package/dist/aws/rds.d.ts +0 -240
  33. package/dist/aws/rekognition.d.ts +0 -543
  34. package/dist/aws/route53-domains.d.ts +0 -113
  35. package/dist/aws/route53.d.ts +0 -215
  36. package/dist/aws/s3.d.ts +0 -212
  37. package/dist/aws/scheduler.d.ts +0 -140
  38. package/dist/aws/secrets-manager.d.ts +0 -170
  39. package/dist/aws/ses.d.ts +0 -288
  40. package/dist/aws/setup-phone.d.ts +0 -0
  41. package/dist/aws/setup-sms.d.ts +0 -115
  42. package/dist/aws/sms.d.ts +0 -304
  43. package/dist/aws/smtp-server.d.ts +0 -61
  44. package/dist/aws/sns.d.ts +0 -117
  45. package/dist/aws/sqs.d.ts +0 -65
  46. package/dist/aws/ssm.d.ts +0 -179
  47. package/dist/aws/sts.d.ts +0 -15
  48. package/dist/aws/support.d.ts +0 -104
  49. package/dist/aws/test-imap.d.ts +0 -0
  50. package/dist/aws/textract.d.ts +0 -403
  51. package/dist/aws/transcribe.d.ts +0 -60
  52. package/dist/aws/translate.d.ts +0 -358
  53. package/dist/aws/voice.d.ts +0 -219
  54. package/dist/config.d.ts +0 -7
  55. package/dist/deploy/index.d.ts +0 -2
  56. package/dist/deploy/static-site-external-dns.d.ts +0 -51
  57. package/dist/deploy/static-site.d.ts +0 -71
  58. package/dist/dns/cloudflare.d.ts +0 -52
  59. package/dist/dns/godaddy.d.ts +0 -38
  60. package/dist/dns/index.d.ts +0 -45
  61. package/dist/dns/porkbun.d.ts +0 -18
  62. package/dist/dns/route53-adapter.d.ts +0 -38
  63. package/dist/dns/types.d.ts +0 -77
  64. package/dist/dns/validator.d.ts +0 -78
  65. package/dist/generators/index.d.ts +0 -1
  66. package/dist/generators/infrastructure.d.ts +0 -30
  67. package/dist/push/apns.d.ts +0 -60
  68. package/dist/push/fcm.d.ts +0 -117
  69. package/dist/push/index.d.ts +0 -14
  70. package/dist/security/pre-deploy-scanner.d.ts +0 -69
  71. package/dist/ssl/acme-client.d.ts +0 -67
  72. package/dist/ssl/index.d.ts +0 -2
  73. package/dist/ssl/letsencrypt.d.ts +0 -48
  74. package/dist/types.d.ts +0 -1
  75. package/dist/utils/cli.d.ts +0 -123
  76. package/dist/validation/index.d.ts +0 -1
  77. package/dist/validation/template.d.ts +0 -23
  78. package/src/aws/acm.ts +0 -768
  79. package/src/aws/application-autoscaling.ts +0 -845
  80. package/src/aws/bedrock.ts +0 -4074
  81. package/src/aws/client.ts +0 -891
  82. package/src/aws/cloudformation.ts +0 -896
  83. package/src/aws/cloudfront.ts +0 -1531
  84. package/src/aws/cloudwatch-logs.ts +0 -154
  85. package/src/aws/comprehend.ts +0 -839
  86. package/src/aws/connect.ts +0 -1056
  87. package/src/aws/deploy-imap.ts +0 -384
  88. package/src/aws/dynamodb.ts +0 -340
  89. package/src/aws/ec2.ts +0 -1385
  90. package/src/aws/ecr.ts +0 -621
  91. package/src/aws/ecs.ts +0 -615
  92. package/src/aws/elasticache.ts +0 -301
  93. package/src/aws/elbv2.ts +0 -942
  94. package/src/aws/email.ts +0 -928
  95. package/src/aws/eventbridge.ts +0 -248
  96. package/src/aws/iam.ts +0 -1689
  97. package/src/aws/imap-server.ts +0 -2100
  98. package/src/aws/index.ts +0 -213
  99. package/src/aws/kendra.ts +0 -1097
  100. package/src/aws/lambda.ts +0 -786
  101. package/src/aws/opensearch.ts +0 -158
  102. package/src/aws/personalize.ts +0 -977
  103. package/src/aws/polly.ts +0 -559
  104. package/src/aws/rds.ts +0 -888
  105. package/src/aws/rekognition.ts +0 -846
  106. package/src/aws/route53-domains.ts +0 -359
  107. package/src/aws/route53.ts +0 -1046
  108. package/src/aws/s3.ts +0 -2334
  109. package/src/aws/scheduler.ts +0 -571
  110. package/src/aws/secrets-manager.ts +0 -769
  111. package/src/aws/ses.ts +0 -1081
  112. package/src/aws/setup-phone.ts +0 -104
  113. package/src/aws/setup-sms.ts +0 -580
  114. package/src/aws/sms.ts +0 -1735
  115. package/src/aws/smtp-server.ts +0 -531
  116. package/src/aws/sns.ts +0 -758
  117. package/src/aws/sqs.ts +0 -382
  118. package/src/aws/ssm.ts +0 -807
  119. package/src/aws/sts.ts +0 -92
  120. package/src/aws/support.ts +0 -391
  121. package/src/aws/test-imap.ts +0 -86
  122. package/src/aws/textract.ts +0 -780
  123. package/src/aws/transcribe.ts +0 -108
  124. package/src/aws/translate.ts +0 -641
  125. package/src/aws/voice.ts +0 -1379
  126. package/src/config.ts +0 -35
  127. package/src/deploy/index.ts +0 -7
  128. package/src/deploy/static-site-external-dns.ts +0 -945
  129. package/src/deploy/static-site.ts +0 -1175
  130. package/src/dns/cloudflare.ts +0 -548
  131. package/src/dns/godaddy.ts +0 -412
  132. package/src/dns/index.ts +0 -205
  133. package/src/dns/porkbun.ts +0 -362
  134. package/src/dns/route53-adapter.ts +0 -414
  135. package/src/dns/types.ts +0 -119
  136. package/src/dns/validator.ts +0 -369
  137. package/src/generators/index.ts +0 -5
  138. package/src/generators/infrastructure.ts +0 -1660
  139. package/src/index.ts +0 -163
  140. package/src/push/apns.ts +0 -452
  141. package/src/push/fcm.ts +0 -506
  142. package/src/push/index.ts +0 -58
  143. package/src/security/pre-deploy-scanner.ts +0 -655
  144. package/src/ssl/acme-client.ts +0 -478
  145. package/src/ssl/index.ts +0 -7
  146. package/src/ssl/letsencrypt.ts +0 -747
  147. package/src/types.ts +0 -2
  148. package/src/utils/cli.ts +0 -398
  149. package/src/validation/index.ts +0 -5
  150. package/src/validation/template.ts +0 -405
package/dist/aws/ec2.d.ts DELETED
@@ -1,272 +0,0 @@
1
- import { AWSClient } from './client';
2
- export declare interface Instance {
3
- InstanceId?: string
4
- ImageId?: string
5
- InstanceType?: string
6
- State?: {
7
- Code?: number
8
- Name?: 'pending' | 'running' | 'shutting-down' | 'terminated' | 'stopping' | 'stopped'
9
- }
10
- PrivateIpAddress?: string
11
- PublicIpAddress?: string
12
- SubnetId?: string
13
- VpcId?: string
14
- SecurityGroups?: { GroupId?: string, GroupName?: string }[]
15
- Tags?: { Key?: string, Value?: string }[]
16
- LaunchTime?: string
17
- Placement?: {
18
- AvailabilityZone?: string
19
- Tenancy?: string
20
- }
21
- Architecture?: string
22
- RootDeviceType?: string
23
- RootDeviceName?: string
24
- BlockDeviceMappings?: {
25
- DeviceName?: string
26
- Ebs?: {
27
- VolumeId?: string
28
- Status?: string
29
- AttachTime?: string
30
- DeleteOnTermination?: boolean
31
- }
32
- }[]
33
- IamInstanceProfile?: {
34
- Arn?: string
35
- Id?: string
36
- }
37
- }
38
- export declare interface Vpc {
39
- VpcId?: string
40
- CidrBlock?: string
41
- State?: 'pending' | 'available'
42
- DhcpOptionsId?: string
43
- InstanceTenancy?: string
44
- IsDefault?: boolean
45
- Tags?: { Key?: string, Value?: string }[]
46
- }
47
- export declare interface Subnet {
48
- SubnetId?: string
49
- VpcId?: string
50
- CidrBlock?: string
51
- AvailabilityZone?: string
52
- AvailableIpAddressCount?: number
53
- State?: 'pending' | 'available'
54
- MapPublicIpOnLaunch?: boolean
55
- Tags?: { Key?: string, Value?: string }[]
56
- }
57
- export declare interface SecurityGroup {
58
- GroupId?: string
59
- GroupName?: string
60
- Description?: string
61
- VpcId?: string
62
- IpPermissions?: IpPermission[]
63
- IpPermissionsEgress?: IpPermission[]
64
- Tags?: { Key?: string, Value?: string }[]
65
- }
66
- export declare interface IpPermission {
67
- IpProtocol?: string
68
- FromPort?: number
69
- ToPort?: number
70
- IpRanges?: { CidrIp?: string, Description?: string }[]
71
- Ipv6Ranges?: { CidrIpv6?: string, Description?: string }[]
72
- UserIdGroupPairs?: { GroupId?: string, UserId?: string, Description?: string }[]
73
- }
74
- export declare interface InternetGateway {
75
- InternetGatewayId?: string
76
- Attachments?: { VpcId?: string, State?: string }[]
77
- Tags?: { Key?: string, Value?: string }[]
78
- }
79
- export declare interface RouteTable {
80
- RouteTableId?: string
81
- VpcId?: string
82
- Routes?: {
83
- DestinationCidrBlock?: string
84
- GatewayId?: string
85
- NatGatewayId?: string
86
- State?: string
87
- }[]
88
- Associations?: {
89
- RouteTableAssociationId?: string
90
- SubnetId?: string
91
- Main?: boolean
92
- }[]
93
- Tags?: { Key?: string, Value?: string }[]
94
- }
95
- export declare interface Address {
96
- PublicIp?: string
97
- AllocationId?: string
98
- AssociationId?: string
99
- InstanceId?: string
100
- NetworkInterfaceId?: string
101
- PrivateIpAddress?: string
102
- Domain?: 'vpc' | 'standard'
103
- Tags?: { Key?: string, Value?: string }[]
104
- }
105
- export declare interface ConsoleOutput {
106
- InstanceId?: string
107
- Output?: string
108
- Timestamp?: string
109
- }
110
- export declare interface InstanceStatus {
111
- InstanceId?: string
112
- InstanceState?: {
113
- Code?: number
114
- Name?: string
115
- }
116
- InstanceStatus?: {
117
- Status?: string
118
- Details?: { Name?: string, Status?: string }[]
119
- }
120
- SystemStatus?: {
121
- Status?: string
122
- Details?: { Name?: string, Status?: string }[]
123
- }
124
- }
125
- /**
126
- * EC2 client using direct API calls
127
- */
128
- export declare class EC2Client {
129
- private client: AWSClient;
130
- private region: string;
131
- constructor(region?: string);
132
- describeInstances(options?: {
133
- InstanceIds?: string[]
134
- Filters?: { Name: string, Values: string[] }[]
135
- MaxResults?: number
136
- NextToken?: string
137
- }): Promise<{
138
- Reservations?: {
139
- ReservationId?: string
140
- Instances?: Instance[]
141
- }[]
142
- NextToken?: string
143
- }>;
144
- getInstance(instanceId: string): Promise<Instance | undefined>;
145
- getConsoleOutput(instanceId: string, latest?: boolean): Promise<ConsoleOutput>;
146
- getConsoleOutputDecoded(instanceId: string, options?: {
147
- latest?: boolean
148
- tailLines?: number
149
- }): Promise<string>;
150
- describeInstanceStatus(options?: {
151
- InstanceIds?: string[]
152
- IncludeAllInstances?: boolean
153
- Filters?: { Name: string, Values: string[] }[]
154
- }): Promise<{
155
- InstanceStatuses?: InstanceStatus[]
156
- }>;
157
- startInstances(instanceIds: string[]): Promise<{
158
- StartingInstances?: { InstanceId?: string, CurrentState?: { Name?: string }, PreviousState?: { Name?: string } }[]
159
- }>;
160
- stopInstances(instanceIds: string[], force?: boolean): Promise<{
161
- StoppingInstances?: { InstanceId?: string, CurrentState?: { Name?: string }, PreviousState?: { Name?: string } }[]
162
- }>;
163
- rebootInstances(instanceIds: string[]): Promise<void>;
164
- terminateInstances(instanceIds: string[]): Promise<{
165
- TerminatingInstances?: { InstanceId?: string, CurrentState?: { Name?: string }, PreviousState?: { Name?: string } }[]
166
- }>;
167
- describeVpcs(options?: {
168
- VpcIds?: string[]
169
- Filters?: { Name: string, Values: string[] }[]
170
- }): Promise<{
171
- Vpcs?: Vpc[]
172
- }>;
173
- describeSubnets(options?: {
174
- SubnetIds?: string[]
175
- Filters?: { Name: string, Values: string[] }[]
176
- }): Promise<{
177
- Subnets?: Subnet[]
178
- }>;
179
- describeSecurityGroups(options?: {
180
- GroupIds?: string[]
181
- GroupNames?: string[]
182
- Filters?: { Name: string, Values: string[] }[]
183
- }): Promise<{
184
- SecurityGroups?: SecurityGroup[]
185
- }>;
186
- describeInternetGateways(options?: {
187
- InternetGatewayIds?: string[]
188
- Filters?: { Name: string, Values: string[] }[]
189
- }): Promise<{
190
- InternetGateways?: InternetGateway[]
191
- }>;
192
- describeAddresses(options?: {
193
- AllocationIds?: string[]
194
- PublicIps?: string[]
195
- Filters?: { Name: string, Values: string[] }[]
196
- }): Promise<{
197
- Addresses?: Address[]
198
- }>;
199
- allocateAddress(options?: {
200
- Domain?: 'vpc' | 'standard'
201
- TagSpecifications?: { ResourceType: string, Tags: { Key: string, Value: string }[] }[]
202
- }): Promise<{
203
- AllocationId?: string
204
- PublicIp?: string
205
- Domain?: string
206
- }>;
207
- associateAddress(options: {
208
- AllocationId?: string
209
- PublicIp?: string
210
- InstanceId?: string
211
- NetworkInterfaceId?: string
212
- PrivateIpAddress?: string
213
- AllowReassociation?: boolean
214
- }): Promise<{
215
- AssociationId?: string
216
- }>;
217
- createTags(options: {
218
- Resources: string[]
219
- Tags: { Key: string, Value: string }[]
220
- }): Promise<void>;
221
- waitForInstanceState(instanceId: string, targetState: 'running' | 'stopped' | 'terminated', options?: {
222
- maxWaitMs?: number
223
- pollIntervalMs?: number
224
- }): Promise<Instance | undefined>;
225
- createVpc(options: {
226
- CidrBlock: string
227
- InstanceTenancy?: string
228
- TagSpecifications?: { ResourceType: string, Tags: { Key: string, Value: string }[] }[]
229
- }): Promise<{
230
- Vpc?: Vpc
231
- }>;
232
- createSubnet(options: {
233
- VpcId: string
234
- CidrBlock: string
235
- AvailabilityZone?: string
236
- TagSpecifications?: { ResourceType: string, Tags: { Key: string, Value: string }[] }[]
237
- }): Promise<{
238
- Subnet?: Subnet
239
- }>;
240
- modifySubnetAttribute(options: {
241
- SubnetId: string
242
- MapPublicIpOnLaunch?: { Value: boolean }
243
- }): Promise<void>;
244
- createSecurityGroup(options: {
245
- GroupName: string
246
- Description: string
247
- VpcId?: string
248
- TagSpecifications?: { ResourceType: string, Tags: { Key: string, Value: string }[] }[]
249
- }): Promise<{
250
- GroupId?: string
251
- }>;
252
- authorizeSecurityGroupIngress(options: {
253
- GroupId: string
254
- IpPermissions: IpPermission[]
255
- }): Promise<void>;
256
- authorizeSecurityGroupEgress(options: {
257
- GroupId: string
258
- IpPermissions: IpPermission[]
259
- }): Promise<void>;
260
- describeRouteTables(options?: {
261
- RouteTableIds?: string[]
262
- Filters?: { Name: string, Values: string[] }[]
263
- }): Promise<{
264
- RouteTables?: RouteTable[]
265
- }>;
266
- private encodeIpPermissions(params: Record<string, string>, permissions: IpPermission[]): void;
267
- private parseArray(item: any): any[];
268
- private parseTags(item: any): { Key?: string, Value?: string }[];
269
- private parseReservations(item: any): { ReservationId?: string, Instances?: Instance[] }[];
270
- private parseInstances(item: any): Instance[];
271
- private parseIpPermissions(item: any): IpPermission[];
272
- }
package/dist/aws/ecr.d.ts DELETED
@@ -1,149 +0,0 @@
1
- import { AWSClient } from './client';
2
- export declare interface Repository {
3
- repositoryArn?: string
4
- registryId?: string
5
- repositoryName?: string
6
- repositoryUri?: string
7
- createdAt?: string
8
- imageTagMutability?: 'MUTABLE' | 'IMMUTABLE'
9
- imageScanningConfiguration?: {
10
- scanOnPush?: boolean
11
- }
12
- encryptionConfiguration?: {
13
- encryptionType?: 'AES256' | 'KMS'
14
- kmsKey?: string
15
- }
16
- }
17
- export declare interface AuthorizationData {
18
- authorizationToken?: string
19
- expiresAt?: string
20
- proxyEndpoint?: string
21
- }
22
- export declare interface ImageDetail {
23
- registryId?: string
24
- repositoryName?: string
25
- imageDigest?: string
26
- imageTags?: string[]
27
- imageSizeInBytes?: number
28
- imagePushedAt?: string
29
- imageScanStatus?: {
30
- status?: string
31
- description?: string
32
- }
33
- imageScanFindingsSummary?: {
34
- findingSeverityCounts?: Record<string, number>
35
- }
36
- }
37
- export declare interface CreateRepositoryOptions {
38
- repositoryName: string
39
- tags?: { Key: string, Value: string }[]
40
- imageTagMutability?: 'MUTABLE' | 'IMMUTABLE'
41
- imageScanningConfiguration?: {
42
- scanOnPush?: boolean
43
- }
44
- encryptionConfiguration?: {
45
- encryptionType?: 'AES256' | 'KMS'
46
- kmsKey?: string
47
- }
48
- }
49
- export declare interface LifecyclePolicy {
50
- rulePriority: number
51
- description?: string
52
- selection: {
53
- tagStatus: 'tagged' | 'untagged' | 'any'
54
- tagPrefixList?: string[]
55
- countType: 'imageCountMoreThan' | 'sinceImagePushed'
56
- countNumber?: number
57
- countUnit?: 'days'
58
- }
59
- action: {
60
- type: 'expire'
61
- }
62
- }
63
- /**
64
- * ECR service management using direct API calls
65
- */
66
- export declare class ECRClient {
67
- private client: AWSClient;
68
- private region: string;
69
- constructor(region?: string, profile?: string);
70
- createRepository(options: CreateRepositoryOptions): Promise<{ repository?: Repository }>;
71
- describeRepositories(options?: {
72
- repositoryNames?: string[]
73
- registryId?: string
74
- maxResults?: number
75
- nextToken?: string
76
- }): Promise<{ repositories?: Repository[], nextToken?: string }>;
77
- getAuthorizationToken(registryIds?: string[]): Promise<{
78
- authorizationData?: AuthorizationData[]
79
- }>;
80
- deleteRepository(options: {
81
- repositoryName: string
82
- registryId?: string
83
- force?: boolean
84
- }): Promise<{ repository?: Repository }>;
85
- describeImages(options: {
86
- repositoryName: string
87
- registryId?: string
88
- imageIds?: { imageTag?: string, imageDigest?: string }[]
89
- filter?: { tagStatus?: 'TAGGED' | 'UNTAGGED' | 'ANY' }
90
- maxResults?: number
91
- nextToken?: string
92
- }): Promise<{ imageDetails?: ImageDetail[], nextToken?: string }>;
93
- batchDeleteImage(options: {
94
- repositoryName: string
95
- registryId?: string
96
- imageIds: { imageTag?: string, imageDigest?: string }[]
97
- }): Promise<{
98
- imageIds?: { imageTag?: string, imageDigest?: string }[]
99
- failures?: { imageId?: { imageTag?: string, imageDigest?: string }, failureCode?: string, failureReason?: string }[]
100
- }>;
101
- putLifecyclePolicy(options: {
102
- repositoryName: string
103
- registryId?: string
104
- lifecyclePolicyText: string
105
- }): Promise<{
106
- registryId?: string
107
- repositoryName?: string
108
- lifecyclePolicyText?: string
109
- }>;
110
- getLifecyclePolicy(options: {
111
- repositoryName: string
112
- registryId?: string
113
- }): Promise<{
114
- registryId?: string
115
- repositoryName?: string
116
- lifecyclePolicyText?: string
117
- lastEvaluatedAt?: string
118
- }>;
119
- setRepositoryPolicy(options: {
120
- repositoryName: string
121
- policyText: string
122
- registryId?: string
123
- force?: boolean
124
- }): Promise<{
125
- registryId?: string
126
- repositoryName?: string
127
- policyText?: string
128
- }>;
129
- getRepositoryPolicy(options: {
130
- repositoryName: string
131
- registryId?: string
132
- }): Promise<{
133
- registryId?: string
134
- repositoryName?: string
135
- policyText?: string
136
- }>;
137
- tagResource(options: {
138
- resourceArn: string
139
- tags: { Key: string, Value: string }[]
140
- }): Promise<void>;
141
- listTagsForResource(resourceArn: string): Promise<{
142
- tags?: { Key: string, Value: string }[]
143
- }>;
144
- createLifecyclePolicyText(rules: LifecyclePolicy[]): string;
145
- getDockerLoginCommand(): Promise<string>;
146
- getRegistryUri(accountId: string): string;
147
- private parseRepository(repo: any): Repository;
148
- private parseImageDetail(img: any): ImageDetail;
149
- }
package/dist/aws/ecs.d.ts DELETED
@@ -1,162 +0,0 @@
1
- import { AWSClient } from './client';
2
- export declare interface Service {
3
- serviceArn?: string
4
- serviceName?: string
5
- clusterArn?: string
6
- status?: string
7
- desiredCount?: number
8
- runningCount?: number
9
- pendingCount?: number
10
- launchType?: string
11
- taskDefinition?: string
12
- deployments?: Deployment[]
13
- events?: ServiceEvent[]
14
- }
15
- export declare interface Deployment {
16
- id?: string
17
- status?: string
18
- taskDefinition?: string
19
- desiredCount?: number
20
- runningCount?: number
21
- pendingCount?: number
22
- createdAt?: string
23
- updatedAt?: string
24
- }
25
- export declare interface ServiceEvent {
26
- id?: string
27
- createdAt?: string
28
- message?: string
29
- }
30
- export declare interface DescribeServicesOptions {
31
- cluster: string
32
- services: string[]
33
- }
34
- export declare interface Task {
35
- taskArn?: string
36
- taskDefinitionArn?: string
37
- clusterArn?: string
38
- lastStatus?: string
39
- desiredStatus?: string
40
- containers?: Container[]
41
- createdAt?: string
42
- startedAt?: string
43
- stoppedAt?: string
44
- }
45
- export declare interface Container {
46
- containerArn?: string
47
- name?: string
48
- lastStatus?: string
49
- exitCode?: number
50
- reason?: string
51
- }
52
- /**
53
- * ECS service management using direct API calls
54
- */
55
- export declare class ECSClient {
56
- private client: AWSClient;
57
- private region: string;
58
- constructor(region?: string, profile?: string);
59
- describeServices(options: DescribeServicesOptions): Promise<{ services?: Service[], failures?: any[] }>;
60
- listServices(cluster: string): Promise<{ serviceArns?: string[] }>;
61
- listTasks(cluster: string, serviceName?: string): Promise<{ taskArns?: string[] }>;
62
- describeTasks(cluster: string, tasks: string[]): Promise<{ tasks?: Task[], failures?: any[] }>;
63
- updateService(options: {
64
- cluster: string
65
- service: string
66
- forceNewDeployment?: boolean
67
- desiredCount?: number
68
- taskDefinition?: string
69
- }): Promise<{ service?: Service }>;
70
- createService(options: {
71
- cluster: string
72
- serviceName: string
73
- taskDefinition: string
74
- desiredCount: number
75
- launchType?: 'EC2' | 'FARGATE' | 'EXTERNAL'
76
- networkConfiguration?: {
77
- awsvpcConfiguration: {
78
- subnets: string[]
79
- securityGroups?: string[]
80
- assignPublicIp?: 'ENABLED' | 'DISABLED'
81
- }
82
- }
83
- loadBalancers?: Array<{
84
- targetGroupArn: string
85
- containerName: string
86
- containerPort: number
87
- }>
88
- healthCheckGracePeriodSeconds?: number
89
- deploymentConfiguration?: {
90
- minimumHealthyPercent?: number
91
- maximumPercent?: number
92
- }
93
- }): Promise<{ service?: Service }>;
94
- deleteService(options: {
95
- cluster: string
96
- service: string
97
- force?: boolean
98
- }): Promise<{ service?: Service }>;
99
- listClusters(): Promise<{ clusterArns?: string[] }>;
100
- describeClusters(clusters: string[]): Promise<{ clusters?: any[], failures?: any[] }>;
101
- stopTask(options: {
102
- cluster: string
103
- task: string
104
- reason?: string
105
- }): Promise<{ task?: Task }>;
106
- runTask(options: {
107
- cluster: string
108
- taskDefinition: string
109
- count?: number
110
- launchType?: 'EC2' | 'FARGATE' | 'EXTERNAL'
111
- networkConfiguration?: {
112
- awsvpcConfiguration: {
113
- subnets: string[]
114
- securityGroups?: string[]
115
- assignPublicIp?: 'ENABLED' | 'DISABLED'
116
- }
117
- }
118
- overrides?: {
119
- containerOverrides?: Array<{
120
- name: string
121
- command?: string[]
122
- environment?: Array<{ name: string, value: string }>
123
- }>
124
- }
125
- }): Promise<{ tasks?: Task[], failures?: any[] }>;
126
- registerTaskDefinition(options: {
127
- family: string
128
- containerDefinitions: Array<{
129
- name: string
130
- image: string
131
- memory?: number
132
- cpu?: number
133
- essential?: boolean
134
- portMappings?: Array<{
135
- containerPort: number
136
- hostPort?: number
137
- protocol?: 'tcp' | 'udp'
138
- }>
139
- environment?: Array<{ name: string, value: string }>
140
- secrets?: Array<{ name: string, valueFrom: string }>
141
- logConfiguration?: {
142
- logDriver: string
143
- options?: Record<string, string>
144
- }
145
- }>
146
- cpu?: string
147
- memory?: string
148
- networkMode?: 'bridge' | 'host' | 'awsvpc' | 'none'
149
- requiresCompatibilities?: Array<'EC2' | 'FARGATE' | 'EXTERNAL'>
150
- executionRoleArn?: string
151
- taskRoleArn?: string
152
- }): Promise<{ taskDefinition?: any }>;
153
- deregisterTaskDefinition(taskDefinition: string): Promise<{ taskDefinition?: any }>;
154
- describeTaskDefinition(taskDefinition: string): Promise<{ taskDefinition?: any, tags?: any[] }>;
155
- listTaskDefinitionFamilies(options?: {
156
- familyPrefix?: string
157
- status?: 'ACTIVE' | 'INACTIVE' | 'ALL'
158
- }): Promise<{ families?: string[] }>;
159
- waitForServiceStable(cluster: string, service: string, maxAttempts?: any, delayMs?: any): Promise<boolean>;
160
- forceNewDeployment(cluster: string, service: string): Promise<{ service?: Service }>;
161
- scaleService(cluster: string, service: string, desiredCount: number): Promise<{ service?: Service }>;
162
- }
@@ -1,71 +0,0 @@
1
- import { AWSClient } from './client';
2
- export declare interface CacheCluster {
3
- CacheClusterId: string
4
- CacheClusterStatus: string
5
- Engine: string
6
- EngineVersion: string
7
- CacheNodeType: string
8
- NumCacheNodes: number
9
- PreferredAvailabilityZone?: string
10
- CacheClusterCreateTime: string
11
- CacheNodes?: Array<{
12
- CacheNodeId: string
13
- CacheNodeStatus: string
14
- Endpoint?: {
15
- Address: string
16
- Port: number
17
- }
18
- }>
19
- }
20
- export declare interface ReplicationGroup {
21
- ReplicationGroupId: string
22
- Status: string
23
- Description?: string
24
- MemberClusters?: string[]
25
- NodeGroups?: Array<{
26
- NodeGroupId: string
27
- Status: string
28
- PrimaryEndpoint?: {
29
- Address: string
30
- Port: number
31
- }
32
- }>
33
- }
34
- export declare interface CacheEngineVersion {
35
- Engine: string
36
- EngineVersion: string
37
- CacheParameterGroupFamily: string
38
- }
39
- /**
40
- * ElastiCache management using direct API calls
41
- */
42
- export declare class ElastiCacheClient {
43
- private client: AWSClient;
44
- private region: string;
45
- constructor(region?: string, profile?: string);
46
- describeCacheClusters(cacheClusterId?: string): Promise<{ CacheClusters: CacheCluster[] }>;
47
- describeReplicationGroups(replicationGroupId?: string): Promise<{ ReplicationGroups: ReplicationGroup[] }>;
48
- createCacheCluster(options: {
49
- cacheClusterId: string
50
- engine: 'memcached' | 'redis'
51
- cacheNodeType: string
52
- numCacheNodes?: number
53
- engineVersion?: string
54
- port?: number
55
- securityGroupIds?: string[]
56
- subnetGroupName?: string
57
- tags?: Array<{ Key: string, Value: string }>
58
- }): Promise<{ CacheCluster: CacheCluster }>;
59
- deleteCacheCluster(cacheClusterId: string, finalSnapshotId?: string): Promise<void>;
60
- rebootCacheCluster(cacheClusterId: string, nodeIds: string[]): Promise<void>;
61
- describeCacheEngineVersions(engine?: string): Promise<{ CacheEngineVersions: CacheEngineVersion[] }>;
62
- getCacheStatistics(cacheClusterId: string): Promise<{
63
- cpuUtilization?: number
64
- evictions?: number
65
- hits?: number
66
- misses?: number
67
- connections?: number
68
- }>;
69
- private parseCacheClusters(result: any): CacheCluster[];
70
- private parseCacheCluster(result: any): CacheCluster;
71
- }