@ts-cloud/aws-types 0.2.1

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2024 Open Web Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @ts-cloud/aws-types
2
+
3
+ AWS CloudFormation resource type definitions for TypeScript, without any dependency on the AWS SDK.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ bun add @ts-cloud/aws-types
9
+ ```
10
+
11
+ ```bash
12
+ npm install @ts-cloud/aws-types
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```typescript
18
+ import type {
19
+ EC2Instance,
20
+ S3Bucket,
21
+ LambdaFunction,
22
+ Route53HostedZone,
23
+ } from '@ts-cloud/aws-types'
24
+
25
+ // Use fully typed AWS resource definitions
26
+ const instance: EC2Instance = {
27
+ Type: 'AWS::EC2::Instance',
28
+ Properties: {
29
+ InstanceType: 't3.micro',
30
+ ImageId: 'ami-0abcdef1234567890',
31
+ },
32
+ }
33
+ ```
34
+
35
+ ## Features
36
+
37
+ - Comprehensive TypeScript type definitions for AWS CloudFormation resources
38
+ - Covers a wide range of AWS services (EC2, S3, Lambda, ECS, RDS, Route53, CloudWatch, SNS, SQS, and many more)
39
+ - Zero runtime dependencies -- types only
40
+ - No AWS SDK required
41
+ - Used internally by `ts-cloud-core` and `@stacksjs/ts-cloud`
42
+
43
+ ## License
44
+
45
+ MIT
package/dist/acm.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import type { CloudFormationResource } from './index';
2
+ export declare interface ACMCertificate extends CloudFormationResource {
3
+ Type: 'AWS::CertificateManager::Certificate'
4
+ Properties: {
5
+ DomainName: string
6
+ SubjectAlternativeNames?: string[]
7
+ DomainValidationOptions?: Array<{
8
+ DomainName: string
9
+ HostedZoneId?: string
10
+ ValidationDomain?: string
11
+ }>
12
+ ValidationMethod?: 'DNS' | 'EMAIL'
13
+ CertificateTransparencyLoggingPreference?: 'ENABLED' | 'DISABLED'
14
+ Tags?: Array<{
15
+ Key: string
16
+ Value: string
17
+ }>
18
+ }
19
+ }
package/dist/alb.d.ts ADDED
@@ -0,0 +1,70 @@
1
+ import type { CloudFormationResource } from './index';
2
+ export declare interface ApplicationLoadBalancer extends CloudFormationResource {
3
+ Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer'
4
+ Properties: {
5
+ Name?: string
6
+ Scheme?: 'internet-facing' | 'internal'
7
+ Type?: 'application' | 'network' | 'gateway'
8
+ IpAddressType?: 'ipv4' | 'dualstack'
9
+ Subnets?: string[]
10
+ SecurityGroups?: string[]
11
+ Tags?: Array<{
12
+ Key: string
13
+ Value: string
14
+ }>
15
+ }
16
+ }
17
+ export declare interface TargetGroup extends CloudFormationResource {
18
+ Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'
19
+ Properties: {
20
+ Name?: string
21
+ Port: number
22
+ Protocol: 'HTTP' | 'HTTPS' | 'TCP' | 'TLS' | 'UDP' | 'TCP_UDP'
23
+ VpcId: string | { Ref: string }
24
+ TargetType?: 'instance' | 'ip' | 'lambda' | 'alb'
25
+ HealthCheckEnabled?: boolean
26
+ HealthCheckProtocol?: 'HTTP' | 'HTTPS' | 'TCP' | 'TLS' | 'UDP' | 'TCP_UDP'
27
+ HealthCheckPath?: string
28
+ HealthCheckIntervalSeconds?: number
29
+ HealthCheckTimeoutSeconds?: number
30
+ HealthyThresholdCount?: number
31
+ UnhealthyThresholdCount?: number
32
+ Matcher?: {
33
+ HttpCode?: string
34
+ GrpcCode?: string
35
+ }
36
+ Tags?: Array<{
37
+ Key: string
38
+ Value: string
39
+ }>
40
+ }
41
+ }
42
+ export declare interface Listener extends CloudFormationResource {
43
+ Type: 'AWS::ElasticLoadBalancingV2::Listener'
44
+ Properties: {
45
+ LoadBalancerArn: string | { Ref: string }
46
+ Port: number
47
+ Protocol: 'HTTP' | 'HTTPS' | 'TCP' | 'TLS' | 'UDP' | 'TCP_UDP'
48
+ Certificates?: Array<{
49
+ CertificateArn: string
50
+ }>
51
+ SslPolicy?: string
52
+ DefaultActions: Array<{
53
+ Type: 'forward' | 'redirect' | 'fixed-response' | 'authenticate-cognito' | 'authenticate-oidc'
54
+ TargetGroupArn?: string | { Ref: string }
55
+ RedirectConfig?: {
56
+ Protocol?: string
57
+ Port?: string
58
+ Host?: string
59
+ Path?: string
60
+ Query?: string
61
+ StatusCode: 'HTTP_301' | 'HTTP_302'
62
+ }
63
+ FixedResponseConfig?: {
64
+ StatusCode: string
65
+ ContentType?: string
66
+ MessageBody?: string
67
+ }
68
+ }>
69
+ }
70
+ }
@@ -0,0 +1,80 @@
1
+ import type { CloudFormationResource } from './index';
2
+ export declare interface ApiGatewayRestApi extends CloudFormationResource {
3
+ Type: 'AWS::ApiGateway::RestApi'
4
+ Properties: {
5
+ Name: string
6
+ Description?: string
7
+ EndpointConfiguration?: {
8
+ Types: ('EDGE' | 'REGIONAL' | 'PRIVATE')[]
9
+ }
10
+ Policy?: unknown
11
+ BinaryMediaTypes?: string[]
12
+ MinimumCompressionSize?: number
13
+ Tags?: Array<{
14
+ Key: string
15
+ Value: string
16
+ }>
17
+ }
18
+ }
19
+ export declare interface ApiGatewayHttpApi extends CloudFormationResource {
20
+ Type: 'AWS::ApiGatewayV2::Api'
21
+ Properties: {
22
+ Name: string
23
+ Description?: string
24
+ ProtocolType: 'HTTP' | 'WEBSOCKET'
25
+ CorsConfiguration?: {
26
+ AllowOrigins?: string[]
27
+ AllowMethods?: string[]
28
+ AllowHeaders?: string[]
29
+ ExposeHeaders?: string[]
30
+ MaxAge?: number
31
+ AllowCredentials?: boolean
32
+ }
33
+ Tags?: Record<string, string>
34
+ }
35
+ }
36
+ export declare interface ApiGatewayStage extends CloudFormationResource {
37
+ Type: 'AWS::ApiGateway::Stage'
38
+ Properties: {
39
+ StageName: string
40
+ RestApiId: string | { Ref: string }
41
+ DeploymentId: string | { Ref: string }
42
+ Description?: string
43
+ CacheClusterEnabled?: boolean
44
+ CacheClusterSize?: string
45
+ Variables?: Record<string, string>
46
+ MethodSettings?: Array<{
47
+ HttpMethod: string
48
+ ResourcePath: string
49
+ CachingEnabled?: boolean
50
+ CacheTtlInSeconds?: number
51
+ ThrottlingBurstLimit?: number
52
+ ThrottlingRateLimit?: number
53
+ }>
54
+ Tags?: Array<{
55
+ Key: string
56
+ Value: string
57
+ }>
58
+ }
59
+ }
60
+ export declare interface ApiGatewayDeployment extends CloudFormationResource {
61
+ Type: 'AWS::ApiGateway::Deployment'
62
+ Properties: {
63
+ RestApiId: string | { Ref: string }
64
+ Description?: string
65
+ StageName?: string
66
+ }
67
+ }
68
+ export declare interface ApiGatewayAuthorizer extends CloudFormationResource {
69
+ Type: 'AWS::ApiGateway::Authorizer'
70
+ Properties: {
71
+ Name: string
72
+ Type: 'TOKEN' | 'REQUEST' | 'COGNITO_USER_POOLS'
73
+ RestApiId: string | { Ref: string }
74
+ AuthorizerUri?: string
75
+ AuthorizerCredentials?: string
76
+ IdentitySource?: string
77
+ ProviderARNs?: string[]
78
+ AuthorizerResultTtlInSeconds?: number
79
+ }
80
+ }
@@ -0,0 +1,192 @@
1
+ import type { Tag } from './common';
2
+ export declare interface GraphQLApi {
3
+ Type: 'AWS::AppSync::GraphQLApi'
4
+ Properties: {
5
+ Name: string
6
+ AuthenticationType: 'API_KEY' | 'AWS_IAM' | 'AMAZON_COGNITO_USER_POOLS' | 'OPENID_CONNECT' | 'AWS_LAMBDA'
7
+ AdditionalAuthenticationProviders?: Array<{
8
+ AuthenticationType: 'API_KEY' | 'AWS_IAM' | 'AMAZON_COGNITO_USER_POOLS' | 'OPENID_CONNECT' | 'AWS_LAMBDA'
9
+ UserPoolConfig?: {
10
+ UserPoolId: string | { Ref: string }
11
+ AwsRegion?: string
12
+ AppIdClientRegex?: string
13
+ }
14
+ OpenIDConnectConfig?: {
15
+ Issuer: string
16
+ ClientId?: string
17
+ IatTTL?: number
18
+ AuthTTL?: number
19
+ }
20
+ LambdaAuthorizerConfig?: {
21
+ AuthorizerUri: string | { Ref: string }
22
+ AuthorizerResultTtlInSeconds?: number
23
+ IdentityValidationExpression?: string
24
+ }
25
+ }>
26
+ UserPoolConfig?: {
27
+ UserPoolId: string | { Ref: string }
28
+ AwsRegion?: string
29
+ DefaultAction: 'ALLOW' | 'DENY'
30
+ AppIdClientRegex?: string
31
+ }
32
+ OpenIDConnectConfig?: {
33
+ Issuer: string
34
+ ClientId?: string
35
+ IatTTL?: number
36
+ AuthTTL?: number
37
+ }
38
+ LambdaAuthorizerConfig?: {
39
+ AuthorizerUri: string | { Ref: string }
40
+ AuthorizerResultTtlInSeconds?: number
41
+ IdentityValidationExpression?: string
42
+ }
43
+ LogConfig?: {
44
+ CloudWatchLogsRoleArn: string | { Ref: string }
45
+ FieldLogLevel: 'NONE' | 'ERROR' | 'ALL'
46
+ ExcludeVerboseContent?: boolean
47
+ }
48
+ XrayEnabled?: boolean
49
+ Tags?: Tag[]
50
+ }
51
+ DeletionPolicy?: 'Delete' | 'Retain'
52
+ UpdateReplacePolicy?: 'Delete' | 'Retain'
53
+ }
54
+ export declare interface GraphQLSchema {
55
+ Type: 'AWS::AppSync::GraphQLSchema'
56
+ Properties: {
57
+ ApiId: string | { Ref: string }
58
+ Definition?: string
59
+ DefinitionS3Location?: string
60
+ }
61
+ DependsOn?: string | string[]
62
+ }
63
+ export declare interface DataSource {
64
+ Type: 'AWS::AppSync::DataSource'
65
+ Properties: {
66
+ ApiId: string | { Ref: string }
67
+ Name: string
68
+ Type: 'AWS_LAMBDA' | 'AMAZON_DYNAMODB' | 'AMAZON_ELASTICSEARCH' | 'AMAZON_OPENSEARCH_SERVICE' | 'HTTP' | 'RELATIONAL_DATABASE' | 'NONE'
69
+ ServiceRoleArn?: string | { Ref: string }
70
+ LambdaConfig?: {
71
+ LambdaFunctionArn: string | { Ref: string }
72
+ }
73
+ DynamoDBConfig?: {
74
+ TableName: string | { Ref: string }
75
+ AwsRegion: string
76
+ UseCallerCredentials?: boolean
77
+ DeltaSyncConfig?: {
78
+ BaseTableTTL: number
79
+ DeltaSyncTableName: string | { Ref: string }
80
+ DeltaSyncTableTTL: number
81
+ }
82
+ Versioned?: boolean
83
+ }
84
+ OpenSearchServiceConfig?: {
85
+ AwsRegion: string
86
+ Endpoint: string | { 'Fn::GetAtt': [string, string] }
87
+ }
88
+ HttpConfig?: {
89
+ Endpoint: string
90
+ AuthorizationConfig?: {
91
+ AuthorizationType: 'AWS_IAM'
92
+ AwsIamConfig?: {
93
+ SigningRegion?: string
94
+ SigningServiceName?: string
95
+ }
96
+ }
97
+ }
98
+ RelationalDatabaseConfig?: {
99
+ RelationalDatabaseSourceType: 'RDS_HTTP_ENDPOINT'
100
+ RdsHttpEndpointConfig?: {
101
+ AwsRegion: string
102
+ DbClusterIdentifier: string | { Ref: string }
103
+ DatabaseName?: string
104
+ Schema?: string
105
+ AwsSecretStoreArn: string | { Ref: string }
106
+ }
107
+ }
108
+ Description?: string
109
+ }
110
+ DependsOn?: string | string[]
111
+ }
112
+ export declare interface Resolver {
113
+ Type: 'AWS::AppSync::Resolver'
114
+ Properties: {
115
+ ApiId: string | { Ref: string }
116
+ TypeName: string
117
+ FieldName: string
118
+ DataSourceName?: string | { Ref: string }
119
+ RequestMappingTemplate?: string
120
+ ResponseMappingTemplate?: string
121
+ RequestMappingTemplateS3Location?: string
122
+ ResponseMappingTemplateS3Location?: string
123
+ Kind?: 'UNIT' | 'PIPELINE'
124
+ PipelineConfig?: {
125
+ Functions?: Array<string | { Ref: string }>
126
+ }
127
+ CachingConfig?: {
128
+ CachingKeys?: string[]
129
+ Ttl?: number
130
+ }
131
+ SyncConfig?: {
132
+ ConflictDetection: 'VERSION' | 'NONE'
133
+ ConflictHandler?: 'OPTIMISTIC_CONCURRENCY' | 'LAMBDA' | 'AUTOMERGE'
134
+ LambdaConflictHandlerConfig?: {
135
+ LambdaConflictHandlerArn: string | { Ref: string }
136
+ }
137
+ }
138
+ Code?: string
139
+ CodeS3Location?: string
140
+ Runtime?: {
141
+ Name: 'APPSYNC_JS'
142
+ RuntimeVersion: string
143
+ }
144
+ }
145
+ DependsOn?: string | string[]
146
+ }
147
+ export declare interface FunctionConfiguration {
148
+ Type: 'AWS::AppSync::FunctionConfiguration'
149
+ Properties: {
150
+ ApiId: string | { Ref: string }
151
+ Name: string
152
+ DataSourceName: string | { Ref: string }
153
+ FunctionVersion?: string
154
+ RequestMappingTemplate?: string
155
+ ResponseMappingTemplate?: string
156
+ RequestMappingTemplateS3Location?: string
157
+ ResponseMappingTemplateS3Location?: string
158
+ Code?: string
159
+ CodeS3Location?: string
160
+ Runtime?: {
161
+ Name: 'APPSYNC_JS'
162
+ RuntimeVersion: string
163
+ }
164
+ Description?: string
165
+ }
166
+ DependsOn?: string | string[]
167
+ }
168
+ export declare interface ApiKey {
169
+ Type: 'AWS::AppSync::ApiKey'
170
+ Properties: {
171
+ ApiId: string | { Ref: string }
172
+ Description?: string
173
+ Expires?: number
174
+ }
175
+ DependsOn?: string | string[]
176
+ }
177
+ export declare interface DomainName {
178
+ Type: 'AWS::AppSync::DomainName'
179
+ Properties: {
180
+ DomainName: string
181
+ CertificateArn: string | { Ref: string }
182
+ Description?: string
183
+ }
184
+ }
185
+ export declare interface DomainNameApiAssociation {
186
+ Type: 'AWS::AppSync::DomainNameApiAssociation'
187
+ Properties: {
188
+ DomainName: string | { Ref: string }
189
+ ApiId: string | { Ref: string }
190
+ }
191
+ DependsOn?: string | string[]
192
+ }
@@ -0,0 +1,81 @@
1
+ import type { Tag } from './common';
2
+ export declare interface WorkGroup {
3
+ Type: 'AWS::Athena::WorkGroup'
4
+ Properties: {
5
+ Name: string
6
+ Description?: string
7
+ State?: 'ENABLED' | 'DISABLED'
8
+ WorkGroupConfiguration?: {
9
+ ResultConfiguration?: {
10
+ OutputLocation?: string
11
+ EncryptionConfiguration?: {
12
+ EncryptionOption: 'SSE_S3' | 'SSE_KMS' | 'CSE_KMS'
13
+ KmsKey?: string | { Ref: string }
14
+ }
15
+ ExpectedBucketOwner?: string
16
+ AclConfiguration?: {
17
+ S3AclOption: 'BUCKET_OWNER_FULL_CONTROL'
18
+ }
19
+ }
20
+ EnforceWorkGroupConfiguration?: boolean
21
+ PublishCloudWatchMetricsEnabled?: boolean
22
+ BytesScannedCutoffPerQuery?: number
23
+ RequesterPaysEnabled?: boolean
24
+ EngineVersion?: {
25
+ SelectedEngineVersion?: string
26
+ EffectiveEngineVersion?: string
27
+ }
28
+ ExecutionRole?: string | { Ref: string }
29
+ AdditionalConfiguration?: string
30
+ CustomerContentEncryptionConfiguration?: {
31
+ KmsKey: string | { Ref: string }
32
+ }
33
+ }
34
+ Tags?: Tag[]
35
+ }
36
+ DeletionPolicy?: 'Delete' | 'Retain'
37
+ UpdateReplacePolicy?: 'Delete' | 'Retain'
38
+ }
39
+ export declare interface DataCatalog {
40
+ Type: 'AWS::Athena::DataCatalog'
41
+ Properties: {
42
+ Name: string
43
+ Type: 'LAMBDA' | 'GLUE' | 'HIVE'
44
+ Description?: string
45
+ Parameters?: Record<string, string>
46
+ Tags?: Tag[]
47
+ }
48
+ }
49
+ export declare interface NamedQuery {
50
+ Type: 'AWS::Athena::NamedQuery'
51
+ Properties: {
52
+ Name?: string
53
+ Database: string
54
+ QueryString: string
55
+ Description?: string
56
+ WorkGroup?: string
57
+ }
58
+ }
59
+ export declare interface PreparedStatement {
60
+ Type: 'AWS::Athena::PreparedStatement'
61
+ Properties: {
62
+ StatementName: string
63
+ WorkGroup: string
64
+ QueryStatement: string
65
+ Description?: string
66
+ }
67
+ DependsOn?: string | string[]
68
+ }
69
+ export declare interface CapacityReservation {
70
+ Type: 'AWS::Athena::CapacityReservation'
71
+ Properties: {
72
+ Name: string
73
+ TargetDpus: number
74
+ CapacityAssignmentConfiguration?: {
75
+ CapacityAssignments?: Array<{
76
+ WorkGroupNames?: string[]
77
+ }>
78
+ }
79
+ Tags?: Tag[]
80
+ }
81
+ }
@@ -0,0 +1,188 @@
1
+ import type { Tag } from './common';
2
+ /**
3
+ * AWS::AutoScaling::AutoScalingGroup
4
+ */
5
+ export declare interface AutoScalingGroup {
6
+ Type: 'AWS::AutoScaling::AutoScalingGroup'
7
+ Properties: {
8
+ AutoScalingGroupName?: string
9
+ MinSize: string | number
10
+ MaxSize: string | number
11
+ DesiredCapacity?: string | number
12
+ DefaultInstanceWarmup?: number
13
+ HealthCheckType?: 'EC2' | 'ELB'
14
+ HealthCheckGracePeriod?: number
15
+ LaunchTemplate?: {
16
+ LaunchTemplateId?: string | { Ref: string }
17
+ LaunchTemplateName?: string
18
+ Version: string | { 'Fn::GetAtt': [string, string] }
19
+ }
20
+ LaunchConfigurationName?: string | { Ref: string }
21
+ AvailabilityZones?: string[] | { 'Fn::GetAZs': string }
22
+ VPCZoneIdentifier?: string[] | { Ref: string }
23
+ TargetGroupARNs?: Array<string | { Ref: string }>
24
+ LoadBalancerNames?: Array<string | { Ref: string }>
25
+ TerminationPolicies?: Array<'OldestInstance' | 'NewestInstance' | 'OldestLaunchConfiguration' | 'ClosestToNextInstanceHour' | 'Default' | 'OldestLaunchTemplate' | 'AllocationStrategy'>
26
+ NewInstancesProtectedFromScaleIn?: boolean
27
+ Tags?: Array<Tag & { PropagateAtLaunch: boolean }>
28
+ MetricsCollection?: Array<{
29
+ Granularity: string
30
+ Metrics?: string[]
31
+ }>
32
+ Cooldown?: string | number
33
+ CapacityRebalance?: boolean
34
+ }
35
+ DependsOn?: string | string[]
36
+ CreationPolicy?: {
37
+ ResourceSignal?: {
38
+ Count?: number
39
+ Timeout?: string
40
+ }
41
+ AutoScalingCreationPolicy?: {
42
+ MinSuccessfulInstancesPercent?: number
43
+ }
44
+ }
45
+ UpdatePolicy?: {
46
+ AutoScalingReplacingUpdate?: {
47
+ WillReplace?: boolean
48
+ }
49
+ AutoScalingRollingUpdate?: {
50
+ MaxBatchSize?: number
51
+ MinInstancesInService?: number
52
+ MinSuccessfulInstancesPercent?: number
53
+ PauseTime?: string
54
+ SuspendProcesses?: string[]
55
+ WaitOnResourceSignals?: boolean
56
+ }
57
+ AutoScalingScheduledAction?: {
58
+ IgnoreUnmodifiedGroupSizeProperties?: boolean
59
+ }
60
+ }
61
+ }
62
+ /**
63
+ * AWS::AutoScaling::LaunchConfiguration
64
+ */
65
+ export declare interface AutoScalingLaunchConfiguration {
66
+ Type: 'AWS::AutoScaling::LaunchConfiguration'
67
+ Properties: {
68
+ LaunchConfigurationName?: string
69
+ ImageId: string
70
+ InstanceType: string
71
+ KeyName?: string
72
+ SecurityGroups?: Array<string | { Ref: string }>
73
+ UserData?: string | { 'Fn::Base64': any }
74
+ IamInstanceProfile?: string | { Ref: string } | { 'Fn::GetAtt': [string, string] }
75
+ BlockDeviceMappings?: Array<{
76
+ DeviceName: string
77
+ Ebs?: {
78
+ DeleteOnTermination?: boolean
79
+ Encrypted?: boolean
80
+ Iops?: number
81
+ SnapshotId?: string
82
+ Throughput?: number
83
+ VolumeSize?: number
84
+ VolumeType?: 'gp2' | 'gp3' | 'io1' | 'io2' | 'sc1' | 'st1' | 'standard'
85
+ }
86
+ NoDevice?: boolean
87
+ VirtualName?: string
88
+ }>
89
+ AssociatePublicIpAddress?: boolean
90
+ EbsOptimized?: boolean
91
+ InstanceMonitoring?: boolean
92
+ PlacementTenancy?: 'default' | 'dedicated'
93
+ SpotPrice?: string
94
+ }
95
+ }
96
+ /**
97
+ * AWS::AutoScaling::ScalingPolicy
98
+ */
99
+ export declare interface AutoScalingScalingPolicy {
100
+ Type: 'AWS::AutoScaling::ScalingPolicy'
101
+ Properties: {
102
+ PolicyName?: string
103
+ PolicyType?: 'TargetTrackingScaling' | 'StepScaling' | 'SimpleScaling'
104
+ AutoScalingGroupName: string | { Ref: string }
105
+ AdjustmentType?: 'ChangeInCapacity' | 'ExactCapacity' | 'PercentChangeInCapacity'
106
+ ScalingAdjustment?: number
107
+ Cooldown?: string | number
108
+ MinAdjustmentMagnitude?: number
109
+ MetricAggregationType?: 'Minimum' | 'Maximum' | 'Average'
110
+ EstimatedInstanceWarmup?: number
111
+ TargetTrackingConfiguration?: {
112
+ PredefinedMetricSpecification?: {
113
+ PredefinedMetricType: 'ASGAverageCPUUtilization' | 'ASGAverageNetworkIn' | 'ASGAverageNetworkOut' | 'ALBRequestCountPerTarget'
114
+ ResourceLabel?: string
115
+ }
116
+ CustomizedMetricSpecification?: {
117
+ MetricName: string
118
+ Namespace: string
119
+ Statistic: 'Average' | 'Minimum' | 'Maximum' | 'SampleCount' | 'Sum'
120
+ Unit?: string
121
+ Dimensions?: Array<{
122
+ Name: string
123
+ Value: string
124
+ }>
125
+ }
126
+ TargetValue: number
127
+ DisableScaleIn?: boolean
128
+ }
129
+ StepAdjustments?: Array<{
130
+ MetricIntervalLowerBound?: number
131
+ MetricIntervalUpperBound?: number
132
+ ScalingAdjustment: number
133
+ }>
134
+ }
135
+ }
136
+ /**
137
+ * AWS::AutoScaling::ScheduledAction
138
+ */
139
+ export declare interface AutoScalingScheduledAction {
140
+ Type: 'AWS::AutoScaling::ScheduledAction'
141
+ Properties: {
142
+ AutoScalingGroupName: string | { Ref: string }
143
+ DesiredCapacity?: number
144
+ MinSize?: number
145
+ MaxSize?: number
146
+ Recurrence?: string
147
+ StartTime?: string
148
+ EndTime?: string
149
+ TimeZone?: string
150
+ }
151
+ }
152
+ /**
153
+ * AWS::AutoScaling::LifecycleHook
154
+ */
155
+ export declare interface AutoScalingLifecycleHook {
156
+ Type: 'AWS::AutoScaling::LifecycleHook'
157
+ Properties: {
158
+ LifecycleHookName?: string
159
+ AutoScalingGroupName: string | { Ref: string }
160
+ LifecycleTransition: 'autoscaling:EC2_INSTANCE_LAUNCHING' | 'autoscaling:EC2_INSTANCE_TERMINATING'
161
+ DefaultResult?: 'CONTINUE' | 'ABANDON'
162
+ HeartbeatTimeout?: number
163
+ NotificationTargetARN?: string | { Ref: string } | { 'Fn::GetAtt': [string, string] }
164
+ RoleARN?: string | { 'Fn::GetAtt': [string, string] }
165
+ NotificationMetadata?: string
166
+ }
167
+ }
168
+ /**
169
+ * AWS::AutoScaling::WarmPool
170
+ */
171
+ export declare interface AutoScalingWarmPool {
172
+ Type: 'AWS::AutoScaling::WarmPool'
173
+ Properties: {
174
+ AutoScalingGroupName: string | { Ref: string }
175
+ MaxGroupPreparedCapacity?: number
176
+ MinSize?: number
177
+ PoolState?: 'Hibernated' | 'Running' | 'Stopped'
178
+ InstanceReusePolicy?: {
179
+ ReuseOnScaleIn?: boolean
180
+ }
181
+ }
182
+ }
183
+ export type AutoScalingResource = | AutoScalingGroup
184
+ | AutoScalingLaunchConfiguration
185
+ | AutoScalingScalingPolicy
186
+ | AutoScalingScheduledAction
187
+ | AutoScalingLifecycleHook
188
+ | AutoScalingWarmPool;