@stacksjs/ts-cloud 0.1.3 → 0.1.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.
Files changed (187) hide show
  1. package/README.md +98 -13
  2. package/dist/aws/acm.d.ts +129 -0
  3. package/dist/aws/application-autoscaling.d.ts +282 -0
  4. package/dist/aws/bedrock.d.ts +2292 -0
  5. package/dist/aws/client.d.ts +79 -0
  6. package/dist/aws/cloudformation.d.ts +105 -0
  7. package/dist/aws/cloudfront.d.ts +265 -0
  8. package/dist/aws/cloudwatch-logs.d.ts +48 -0
  9. package/dist/aws/comprehend.d.ts +505 -0
  10. package/dist/aws/connect.d.ts +377 -0
  11. package/dist/aws/deploy-imap.d.ts +14 -0
  12. package/dist/aws/dynamodb.d.ts +176 -0
  13. package/dist/aws/ec2.d.ts +272 -0
  14. package/dist/aws/ecr.d.ts +149 -0
  15. package/dist/aws/ecs.d.ts +162 -0
  16. package/dist/aws/elasticache.d.ts +71 -0
  17. package/dist/aws/elbv2.d.ts +248 -0
  18. package/dist/aws/email.d.ts +175 -0
  19. package/dist/aws/eventbridge.d.ts +142 -0
  20. package/dist/aws/iam.d.ts +638 -0
  21. package/dist/aws/imap-server.d.ts +119 -0
  22. package/{src/aws/index.ts → dist/aws/index.d.ts} +62 -83
  23. package/{src/aws/kendra.ts → dist/aws/kendra.d.ts} +71 -386
  24. package/dist/aws/lambda.d.ts +232 -0
  25. package/dist/aws/opensearch.d.ts +87 -0
  26. package/dist/aws/personalize.d.ts +516 -0
  27. package/dist/aws/polly.d.ts +214 -0
  28. package/dist/aws/rds.d.ts +240 -0
  29. package/dist/aws/rekognition.d.ts +543 -0
  30. package/dist/aws/route53-domains.d.ts +113 -0
  31. package/dist/aws/route53.d.ts +215 -0
  32. package/dist/aws/s3.d.ts +212 -0
  33. package/dist/aws/scheduler.d.ts +140 -0
  34. package/dist/aws/secrets-manager.d.ts +170 -0
  35. package/dist/aws/ses.d.ts +288 -0
  36. package/dist/aws/setup-phone.d.ts +0 -0
  37. package/dist/aws/setup-sms.d.ts +115 -0
  38. package/dist/aws/sms.d.ts +304 -0
  39. package/dist/aws/smtp-server.d.ts +61 -0
  40. package/dist/aws/sns.d.ts +117 -0
  41. package/dist/aws/sqs.d.ts +65 -0
  42. package/dist/aws/ssm.d.ts +179 -0
  43. package/dist/aws/sts.d.ts +15 -0
  44. package/dist/aws/support.d.ts +104 -0
  45. package/dist/aws/test-imap.d.ts +0 -0
  46. package/dist/aws/textract.d.ts +403 -0
  47. package/dist/aws/transcribe.d.ts +60 -0
  48. package/dist/aws/translate.d.ts +358 -0
  49. package/dist/aws/voice.d.ts +219 -0
  50. package/dist/bin/cli.js +1724 -0
  51. package/dist/config.d.ts +7 -0
  52. package/dist/deploy/index.d.ts +2 -0
  53. package/dist/deploy/static-site-external-dns.d.ts +51 -0
  54. package/dist/deploy/static-site.d.ts +71 -0
  55. package/dist/dns/cloudflare.d.ts +52 -0
  56. package/dist/dns/godaddy.d.ts +38 -0
  57. package/dist/dns/index.d.ts +45 -0
  58. package/dist/dns/porkbun.d.ts +18 -0
  59. package/dist/dns/route53-adapter.d.ts +38 -0
  60. package/{src/dns/types.ts → dist/dns/types.d.ts} +26 -63
  61. package/dist/dns/validator.d.ts +78 -0
  62. package/dist/generators/index.d.ts +1 -0
  63. package/dist/generators/infrastructure.d.ts +30 -0
  64. package/{src/index.ts → dist/index.d.ts} +70 -93
  65. package/dist/index.js +7881 -0
  66. package/dist/push/apns.d.ts +60 -0
  67. package/dist/push/fcm.d.ts +117 -0
  68. package/dist/push/index.d.ts +14 -0
  69. package/dist/security/pre-deploy-scanner.d.ts +69 -0
  70. package/dist/ssl/acme-client.d.ts +67 -0
  71. package/dist/ssl/index.d.ts +2 -0
  72. package/dist/ssl/letsencrypt.d.ts +48 -0
  73. package/dist/types.d.ts +1 -0
  74. package/dist/utils/cli.d.ts +123 -0
  75. package/dist/validation/index.d.ts +1 -0
  76. package/dist/validation/template.d.ts +23 -0
  77. package/package.json +8 -8
  78. package/bin/cli.ts +0 -133
  79. package/bin/commands/analytics.ts +0 -328
  80. package/bin/commands/api.ts +0 -379
  81. package/bin/commands/assets.ts +0 -221
  82. package/bin/commands/audit.ts +0 -501
  83. package/bin/commands/backup.ts +0 -682
  84. package/bin/commands/cache.ts +0 -294
  85. package/bin/commands/cdn.ts +0 -281
  86. package/bin/commands/config.ts +0 -202
  87. package/bin/commands/container.ts +0 -105
  88. package/bin/commands/cost.ts +0 -208
  89. package/bin/commands/database.ts +0 -401
  90. package/bin/commands/deploy.ts +0 -674
  91. package/bin/commands/domain.ts +0 -397
  92. package/bin/commands/email.ts +0 -423
  93. package/bin/commands/environment.ts +0 -285
  94. package/bin/commands/events.ts +0 -424
  95. package/bin/commands/firewall.ts +0 -145
  96. package/bin/commands/function.ts +0 -116
  97. package/bin/commands/generate.ts +0 -280
  98. package/bin/commands/git.ts +0 -139
  99. package/bin/commands/iam.ts +0 -464
  100. package/bin/commands/index.ts +0 -48
  101. package/bin/commands/init.ts +0 -120
  102. package/bin/commands/logs.ts +0 -148
  103. package/bin/commands/network.ts +0 -579
  104. package/bin/commands/notify.ts +0 -489
  105. package/bin/commands/queue.ts +0 -407
  106. package/bin/commands/scheduler.ts +0 -370
  107. package/bin/commands/secrets.ts +0 -54
  108. package/bin/commands/server.ts +0 -629
  109. package/bin/commands/shared.ts +0 -97
  110. package/bin/commands/ssl.ts +0 -138
  111. package/bin/commands/stack.ts +0 -325
  112. package/bin/commands/status.ts +0 -385
  113. package/bin/commands/storage.ts +0 -450
  114. package/bin/commands/team.ts +0 -96
  115. package/bin/commands/tunnel.ts +0 -489
  116. package/bin/commands/utils.ts +0 -202
  117. package/build.ts +0 -15
  118. package/cloud +0 -2
  119. package/src/aws/acm.ts +0 -768
  120. package/src/aws/application-autoscaling.ts +0 -845
  121. package/src/aws/bedrock.ts +0 -4074
  122. package/src/aws/client.ts +0 -878
  123. package/src/aws/cloudformation.ts +0 -896
  124. package/src/aws/cloudfront.ts +0 -1531
  125. package/src/aws/cloudwatch-logs.ts +0 -154
  126. package/src/aws/comprehend.ts +0 -839
  127. package/src/aws/connect.ts +0 -1056
  128. package/src/aws/deploy-imap.ts +0 -384
  129. package/src/aws/dynamodb.ts +0 -340
  130. package/src/aws/ec2.ts +0 -1385
  131. package/src/aws/ecr.ts +0 -621
  132. package/src/aws/ecs.ts +0 -615
  133. package/src/aws/elasticache.ts +0 -301
  134. package/src/aws/elbv2.ts +0 -942
  135. package/src/aws/email.ts +0 -928
  136. package/src/aws/eventbridge.ts +0 -248
  137. package/src/aws/iam.ts +0 -1689
  138. package/src/aws/imap-server.ts +0 -2100
  139. package/src/aws/lambda.ts +0 -786
  140. package/src/aws/opensearch.ts +0 -158
  141. package/src/aws/personalize.ts +0 -977
  142. package/src/aws/polly.ts +0 -559
  143. package/src/aws/rds.ts +0 -888
  144. package/src/aws/rekognition.ts +0 -846
  145. package/src/aws/route53-domains.ts +0 -359
  146. package/src/aws/route53.ts +0 -1046
  147. package/src/aws/s3.ts +0 -2318
  148. package/src/aws/scheduler.ts +0 -571
  149. package/src/aws/secrets-manager.ts +0 -769
  150. package/src/aws/ses.ts +0 -1081
  151. package/src/aws/setup-phone.ts +0 -104
  152. package/src/aws/setup-sms.ts +0 -580
  153. package/src/aws/sms.ts +0 -1735
  154. package/src/aws/smtp-server.ts +0 -531
  155. package/src/aws/sns.ts +0 -758
  156. package/src/aws/sqs.ts +0 -382
  157. package/src/aws/ssm.ts +0 -807
  158. package/src/aws/sts.ts +0 -92
  159. package/src/aws/support.ts +0 -391
  160. package/src/aws/test-imap.ts +0 -86
  161. package/src/aws/textract.ts +0 -780
  162. package/src/aws/transcribe.ts +0 -108
  163. package/src/aws/translate.ts +0 -641
  164. package/src/aws/voice.ts +0 -1379
  165. package/src/config.ts +0 -35
  166. package/src/deploy/index.ts +0 -7
  167. package/src/deploy/static-site-external-dns.ts +0 -906
  168. package/src/deploy/static-site.ts +0 -1125
  169. package/src/dns/godaddy.ts +0 -412
  170. package/src/dns/index.ts +0 -183
  171. package/src/dns/porkbun.ts +0 -362
  172. package/src/dns/route53-adapter.ts +0 -414
  173. package/src/dns/validator.ts +0 -369
  174. package/src/generators/index.ts +0 -5
  175. package/src/generators/infrastructure.ts +0 -1660
  176. package/src/push/apns.ts +0 -452
  177. package/src/push/fcm.ts +0 -506
  178. package/src/push/index.ts +0 -58
  179. package/src/ssl/acme-client.ts +0 -478
  180. package/src/ssl/index.ts +0 -7
  181. package/src/ssl/letsencrypt.ts +0 -747
  182. package/src/types.ts +0 -2
  183. package/src/utils/cli.ts +0 -398
  184. package/src/validation/index.ts +0 -5
  185. package/src/validation/template.ts +0 -405
  186. package/test/index.test.ts +0 -128
  187. package/tsconfig.json +0 -18
@@ -0,0 +1,272 @@
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
+ }
@@ -0,0 +1,149 @@
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
+ }
@@ -0,0 +1,162 @@
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
+ }
@@ -0,0 +1,71 @@
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
+ }