-
Notifications
You must be signed in to change notification settings - Fork 597
/
types.go
1321 lines (1215 loc) · 48.4 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Represents a CloudWatch alarm associated with a scaling policy.
type Alarm struct {
// The Amazon Resource Name (ARN) of the alarm.
//
// This member is required.
AlarmARN *string
// The name of the alarm.
//
// This member is required.
AlarmName *string
noSmithyDocumentSerde
}
// Represents a CloudWatch metric of your choosing for a target tracking scaling
// policy to use with Application Auto Scaling. For information about the available
// metrics for a service, see Amazon Web Services services that publish CloudWatch
// metrics
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html)
// in the Amazon CloudWatch User Guide. To create your customized metric
// specification:
//
// * Add values for each required parameter from CloudWatch. You
// can use an existing metric, or a new metric that you create. To use your own
// metric, you must first publish the metric to CloudWatch. For more information,
// see Publish custom metrics
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html)
// in the Amazon CloudWatch User Guide.
//
// * Choose a metric that changes
// proportionally with capacity. The value of the metric should increase or
// decrease in inverse proportion to the number of capacity units. That is, the
// value of the metric should decrease when capacity increases, and increase when
// capacity decreases.
//
// For an example of how creating new metrics can be useful,
// see Scaling based on Amazon SQS
// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html)
// in the Amazon EC2 Auto Scaling User Guide. This topic mentions Auto Scaling
// groups, but the same scenario for Amazon SQS can apply to the target tracking
// scaling policies that you create for a Spot Fleet by using the Application Auto
// Scaling API. For more information about the CloudWatch terminology below, see
// Amazon CloudWatch concepts
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html)
// in the Amazon CloudWatch User Guide.
type CustomizedMetricSpecification struct {
// The name of the metric. To get the exact metric name, namespace, and dimensions,
// inspect the Metric
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html)
// object that is returned by a call to ListMetrics
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html).
//
// This member is required.
MetricName *string
// The namespace of the metric.
//
// This member is required.
Namespace *string
// The statistic of the metric.
//
// This member is required.
Statistic MetricStatistic
// The dimensions of the metric. Conditional: If you published your metric with
// dimensions, you must specify the same dimensions in your scaling policy.
Dimensions []MetricDimension
// The unit of the metric. For a complete list of the units that CloudWatch
// supports, see the MetricDatum
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html)
// data type in the Amazon CloudWatch API Reference.
Unit *string
noSmithyDocumentSerde
}
// Describes the dimension names and values associated with a metric.
type MetricDimension struct {
// The name of the dimension.
//
// This member is required.
Name *string
// The value of the dimension.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Describes the reason for an activity that isn't scaled (not scaled activity), in
// machine-readable format. For help interpreting the not scaled reason details,
// see Scaling activities for Application Auto Scaling
// (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html).
type NotScaledReason struct {
// A code that represents the reason for not scaling. Valid values:
//
// *
// AutoScalingAnticipatedFlapping
//
// * TargetServicePutResourceAsUnscalable
//
// *
// AlreadyAtMaxCapacity
//
// * AlreadyAtMinCapacity
//
// * AlreadyAtDesiredCapacity
//
// This member is required.
Code *string
// The current capacity.
CurrentCapacity *int32
// The maximum capacity.
MaxCapacity *int32
// The minimum capacity.
MinCapacity *int32
noSmithyDocumentSerde
}
// Represents a predefined metric for a target tracking scaling policy to use with
// Application Auto Scaling. Only the Amazon Web Services that you're using send
// metrics to Amazon CloudWatch. To determine whether a desired metric already
// exists by looking up its namespace and dimension using the CloudWatch metrics
// dashboard in the console, follow the procedure in Building dashboards with
// CloudWatch
// (https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html)
// in the Application Auto Scaling User Guide.
type PredefinedMetricSpecification struct {
// The metric type. The ALBRequestCountPerTarget metric type applies only to Spot
// Fleets and ECS services.
//
// This member is required.
PredefinedMetricType MetricType
// Identifies the resource associated with the metric type. You can't specify a
// resource label unless the metric type is ALBRequestCountPerTarget and there is a
// target group attached to the Spot Fleet or ECS service. You create the resource
// label by appending the final portion of the load balancer ARN and the final
// portion of the target group ARN into a single value, separated by a forward
// slash (/). The format of the resource label is:
// app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff.
// Where:
//
// * app// is the final portion of the load balancer ARN
//
// * targetgroup//
// is the final portion of the target group ARN.
//
// To find the ARN for an
// Application Load Balancer, use the DescribeLoadBalancers
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
// API operation. To find the ARN for the target group, use the
// DescribeTargetGroups
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html)
// API operation.
ResourceLabel *string
noSmithyDocumentSerde
}
// Represents a scalable target.
type ScalableTarget struct {
// The Unix timestamp for when the scalable target was created.
//
// This member is required.
CreationTime *time.Time
// The maximum value to scale to in response to a scale-out activity.
//
// This member is required.
MaxCapacity *int32
// The minimum value to scale to in response to a scale-in activity.
//
// This member is required.
MinCapacity *int32
// The identifier of the resource associated with the scalable target. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The
// resource type is service and the unique identifier is the cluster name and
// service name. Example: service/default/sample-webapp.
//
// * Spot Fleet - The
// resource type is spot-fleet-request and the unique identifier is the Spot Fleet
// request ID. Example:
// spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster -
// The resource type is instancegroup and the unique identifier is the cluster ID
// and instance group ID. Example:
// instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The
// resource type is fleet and the unique identifier is the fleet name. Example:
// fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the
// unique identifier is the table name. Example: table/my-table.
//
// * DynamoDB global
// secondary index - The resource type is index and the unique identifier is the
// index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster -
// The resource type is cluster and the unique identifier is the cluster name.
// Example: cluster:my-db-cluster.
//
// * SageMaker endpoint variant - The resource
// type is variant and the unique identifier is the resource ID. Example:
// endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not
// supported with a resource type. This parameter must specify the OutputValue from
// the CloudFormation template stack used to access the resources. The unique
// identifier is defined by the service provider. More information is available in
// our GitHub repository
// (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend
// document classification endpoint - The resource type and unique identifier are
// specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// *
// Amazon Comprehend entity recognizer endpoint - The resource type and unique
// identifier are specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// *
// Lambda provisioned concurrency - The resource type is function and the unique
// identifier is the function name with a function version or alias name suffix
// that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table
// and the unique identifier is the table name. Example:
// keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and
// unique identifier are specified using the cluster ARN. Example:
// arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// *
// Amazon ElastiCache replication group - The resource type is replication-group
// and the unique identifier is the replication group name. Example:
// replication-group/mycluster.
//
// * Neptune cluster - The resource type is cluster
// and the unique identifier is the cluster name. Example: cluster:mycluster.
//
// This member is required.
ResourceId *string
// The ARN of an IAM role that allows Application Auto Scaling to modify the
// scalable target on your behalf.
//
// This member is required.
RoleARN *string
// The scalable dimension associated with the scalable target. This string consists
// of the service namespace, resource type, and scaling property.
//
// *
// ecs:service:DesiredCount - The desired task count of an ECS service.
//
// *
// elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR
// Instance Group.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity
// of a Spot Fleet.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an
// AppStream 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read
// capacity for a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The
// provisioned write capacity for a DynamoDB table.
//
// *
// dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB
// global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned
// write capacity for a DynamoDB global secondary index.
//
// *
// rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB
// cluster. Available for Aurora MySQL-compatible edition and Aurora
// PostgreSQL-compatible edition.
//
// * sagemaker:variant:DesiredInstanceCount - The
// number of EC2 instances for a SageMaker model endpoint variant.
//
// *
// custom-resource:ResourceType:Property - The scalable dimension for a custom
// resource provided by your own application or service.
//
// *
// comprehend:document-classifier-endpoint:DesiredInferenceUnits - The number of
// inference units for an Amazon Comprehend document classification endpoint.
//
// *
// comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number of
// inference units for an Amazon Comprehend entity recognizer endpoint.
//
// *
// lambda:function:ProvisionedConcurrency - The provisioned concurrency for a
// Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read
// capacity for an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits -
// The provisioned write capacity for an Amazon Keyspaces table.
//
// *
// kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB) for
// brokers in an Amazon MSK cluster.
//
// * elasticache:replication-group:NodeGroups -
// The number of node groups for an Amazon ElastiCache replication group.
//
// *
// elasticache:replication-group:Replicas - The number of replicas per node group
// for an Amazon ElastiCache replication group.
//
// * neptune:cluster:ReadReplicaCount
// - The count of read replicas in an Amazon Neptune DB cluster.
//
// This member is required.
ScalableDimension ScalableDimension
// The namespace of the Amazon Web Services service that provides the resource, or
// a custom-resource.
//
// This member is required.
ServiceNamespace ServiceNamespace
// Specifies whether the scaling activities for a scalable target are in a
// suspended state.
SuspendedState *SuspendedState
noSmithyDocumentSerde
}
// Represents the minimum and maximum capacity for a scheduled action.
type ScalableTargetAction struct {
// The maximum capacity. Although you can specify a large maximum capacity, note
// that service quotas may impose lower limits. Each service has its own default
// quotas for the maximum capacity of the resource. If you want to specify a higher
// limit, you can request an increase. For more information, consult the
// documentation for that service. For information about the default quotas for
// each service, see Service endpoints and quotas
// (https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html) in
// the Amazon Web Services General Reference.
MaxCapacity *int32
// The minimum capacity. When the scheduled action runs, the resource will have at
// least this much capacity, but it might have more depending on other settings,
// such as the target utilization level of a target tracking scaling policy.
MinCapacity *int32
noSmithyDocumentSerde
}
// Represents a scaling activity.
type ScalingActivity struct {
// The unique identifier of the scaling activity.
//
// This member is required.
ActivityId *string
// A simple description of what caused the scaling activity to happen.
//
// This member is required.
Cause *string
// A simple description of what action the scaling activity intends to accomplish.
//
// This member is required.
Description *string
// The identifier of the resource associated with the scaling activity. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The
// resource type is service and the unique identifier is the cluster name and
// service name. Example: service/default/sample-webapp.
//
// * Spot Fleet - The
// resource type is spot-fleet-request and the unique identifier is the Spot Fleet
// request ID. Example:
// spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster -
// The resource type is instancegroup and the unique identifier is the cluster ID
// and instance group ID. Example:
// instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The
// resource type is fleet and the unique identifier is the fleet name. Example:
// fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the
// unique identifier is the table name. Example: table/my-table.
//
// * DynamoDB global
// secondary index - The resource type is index and the unique identifier is the
// index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster -
// The resource type is cluster and the unique identifier is the cluster name.
// Example: cluster:my-db-cluster.
//
// * SageMaker endpoint variant - The resource
// type is variant and the unique identifier is the resource ID. Example:
// endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not
// supported with a resource type. This parameter must specify the OutputValue from
// the CloudFormation template stack used to access the resources. The unique
// identifier is defined by the service provider. More information is available in
// our GitHub repository
// (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend
// document classification endpoint - The resource type and unique identifier are
// specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// *
// Amazon Comprehend entity recognizer endpoint - The resource type and unique
// identifier are specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// *
// Lambda provisioned concurrency - The resource type is function and the unique
// identifier is the function name with a function version or alias name suffix
// that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table
// and the unique identifier is the table name. Example:
// keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and
// unique identifier are specified using the cluster ARN. Example:
// arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// *
// Amazon ElastiCache replication group - The resource type is replication-group
// and the unique identifier is the replication group name. Example:
// replication-group/mycluster.
//
// * Neptune cluster - The resource type is cluster
// and the unique identifier is the cluster name. Example: cluster:mycluster.
//
// This member is required.
ResourceId *string
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count
// of an ECS service.
//
// * elasticmapreduce:instancegroup:InstanceCount - The
// instance count of an EMR Instance Group.
//
// *
// ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet.
//
// *
// appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0
// fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a
// DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write
// capacity for a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The
// provisioned read capacity for a DynamoDB global secondary index.
//
// *
// dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a
// DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of
// Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible
// edition and Aurora PostgreSQL-compatible edition.
//
// *
// sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a
// SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The
// scalable dimension for a custom resource provided by your own application or
// service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend entity recognizer
// endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned
// concurrency for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The
// provisioned read capacity for an Amazon Keyspaces table.
//
// *
// cassandra:table:WriteCapacityUnits - The provisioned write capacity for an
// Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned
// volume size (in GiB) for brokers in an Amazon MSK cluster.
//
// *
// elasticache:replication-group:NodeGroups - The number of node groups for an
// Amazon ElastiCache replication group.
//
// * elasticache:replication-group:Replicas
// - The number of replicas per node group for an Amazon ElastiCache replication
// group.
//
// * neptune:cluster:ReadReplicaCount - The count of read replicas in an
// Amazon Neptune DB cluster.
//
// This member is required.
ScalableDimension ScalableDimension
// The namespace of the Amazon Web Services service that provides the resource, or
// a custom-resource.
//
// This member is required.
ServiceNamespace ServiceNamespace
// The Unix timestamp for when the scaling activity began.
//
// This member is required.
StartTime *time.Time
// Indicates the status of the scaling activity.
//
// This member is required.
StatusCode ScalingActivityStatusCode
// The details about the scaling activity.
Details *string
// The Unix timestamp for when the scaling activity ended.
EndTime *time.Time
// Machine-readable data that describes the reason for a not scaled activity. Only
// available when DescribeScalingActivities
// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalingActivities.html)
// includes not scaled activities.
NotScaledReasons []NotScaledReason
// A simple message about the current status of the scaling activity.
StatusMessage *string
noSmithyDocumentSerde
}
// Represents a scaling policy to use with Application Auto Scaling. For more
// information about configuring scaling policies for a specific service, see
// Amazon Web Services services that you can use with Application Auto Scaling
// (https://docs.aws.amazon.com/autoscaling/application/userguide/integrated-services-list.html)
// in the Application Auto Scaling User Guide.
type ScalingPolicy struct {
// The Unix timestamp for when the scaling policy was created.
//
// This member is required.
CreationTime *time.Time
// The Amazon Resource Name (ARN) of the scaling policy.
//
// This member is required.
PolicyARN *string
// The name of the scaling policy.
//
// This member is required.
PolicyName *string
// The scaling policy type. The following policy types are supported:
// TargetTrackingScaling—Not supported for Amazon EMR StepScaling—Not supported for
// DynamoDB, Amazon Comprehend, Lambda, Amazon Keyspaces, Amazon MSK, Amazon
// ElastiCache, or Neptune.
//
// This member is required.
PolicyType PolicyType
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The
// resource type is service and the unique identifier is the cluster name and
// service name. Example: service/default/sample-webapp.
//
// * Spot Fleet - The
// resource type is spot-fleet-request and the unique identifier is the Spot Fleet
// request ID. Example:
// spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster -
// The resource type is instancegroup and the unique identifier is the cluster ID
// and instance group ID. Example:
// instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The
// resource type is fleet and the unique identifier is the fleet name. Example:
// fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the
// unique identifier is the table name. Example: table/my-table.
//
// * DynamoDB global
// secondary index - The resource type is index and the unique identifier is the
// index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster -
// The resource type is cluster and the unique identifier is the cluster name.
// Example: cluster:my-db-cluster.
//
// * SageMaker endpoint variant - The resource
// type is variant and the unique identifier is the resource ID. Example:
// endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not
// supported with a resource type. This parameter must specify the OutputValue from
// the CloudFormation template stack used to access the resources. The unique
// identifier is defined by the service provider. More information is available in
// our GitHub repository
// (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend
// document classification endpoint - The resource type and unique identifier are
// specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// *
// Amazon Comprehend entity recognizer endpoint - The resource type and unique
// identifier are specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// *
// Lambda provisioned concurrency - The resource type is function and the unique
// identifier is the function name with a function version or alias name suffix
// that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table
// and the unique identifier is the table name. Example:
// keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and
// unique identifier are specified using the cluster ARN. Example:
// arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// *
// Amazon ElastiCache replication group - The resource type is replication-group
// and the unique identifier is the replication group name. Example:
// replication-group/mycluster.
//
// * Neptune cluster - The resource type is cluster
// and the unique identifier is the cluster name. Example: cluster:mycluster.
//
// This member is required.
ResourceId *string
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count
// of an ECS service.
//
// * elasticmapreduce:instancegroup:InstanceCount - The
// instance count of an EMR Instance Group.
//
// *
// ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet.
//
// *
// appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0
// fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a
// DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write
// capacity for a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The
// provisioned read capacity for a DynamoDB global secondary index.
//
// *
// dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a
// DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of
// Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible
// edition and Aurora PostgreSQL-compatible edition.
//
// *
// sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a
// SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The
// scalable dimension for a custom resource provided by your own application or
// service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend entity recognizer
// endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned
// concurrency for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The
// provisioned read capacity for an Amazon Keyspaces table.
//
// *
// cassandra:table:WriteCapacityUnits - The provisioned write capacity for an
// Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned
// volume size (in GiB) for brokers in an Amazon MSK cluster.
//
// *
// elasticache:replication-group:NodeGroups - The number of node groups for an
// Amazon ElastiCache replication group.
//
// * elasticache:replication-group:Replicas
// - The number of replicas per node group for an Amazon ElastiCache replication
// group.
//
// * neptune:cluster:ReadReplicaCount - The count of read replicas in an
// Amazon Neptune DB cluster.
//
// This member is required.
ScalableDimension ScalableDimension
// The namespace of the Amazon Web Services service that provides the resource, or
// a custom-resource.
//
// This member is required.
ServiceNamespace ServiceNamespace
// The CloudWatch alarms associated with the scaling policy.
Alarms []Alarm
// A step scaling policy.
StepScalingPolicyConfiguration *StepScalingPolicyConfiguration
// A target tracking scaling policy.
TargetTrackingScalingPolicyConfiguration *TargetTrackingScalingPolicyConfiguration
noSmithyDocumentSerde
}
// Represents a scheduled action.
type ScheduledAction struct {
// The date and time that the scheduled action was created.
//
// This member is required.
CreationTime *time.Time
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The
// resource type is service and the unique identifier is the cluster name and
// service name. Example: service/default/sample-webapp.
//
// * Spot Fleet - The
// resource type is spot-fleet-request and the unique identifier is the Spot Fleet
// request ID. Example:
// spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster -
// The resource type is instancegroup and the unique identifier is the cluster ID
// and instance group ID. Example:
// instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The
// resource type is fleet and the unique identifier is the fleet name. Example:
// fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the
// unique identifier is the table name. Example: table/my-table.
//
// * DynamoDB global
// secondary index - The resource type is index and the unique identifier is the
// index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster -
// The resource type is cluster and the unique identifier is the cluster name.
// Example: cluster:my-db-cluster.
//
// * SageMaker endpoint variant - The resource
// type is variant and the unique identifier is the resource ID. Example:
// endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not
// supported with a resource type. This parameter must specify the OutputValue from
// the CloudFormation template stack used to access the resources. The unique
// identifier is defined by the service provider. More information is available in
// our GitHub repository
// (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend
// document classification endpoint - The resource type and unique identifier are
// specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// *
// Amazon Comprehend entity recognizer endpoint - The resource type and unique
// identifier are specified using the endpoint ARN. Example:
// arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// *
// Lambda provisioned concurrency - The resource type is function and the unique
// identifier is the function name with a function version or alias name suffix
// that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table
// and the unique identifier is the table name. Example:
// keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and
// unique identifier are specified using the cluster ARN. Example:
// arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// *
// Amazon ElastiCache replication group - The resource type is replication-group
// and the unique identifier is the replication group name. Example:
// replication-group/mycluster.
//
// * Neptune cluster - The resource type is cluster
// and the unique identifier is the cluster name. Example: cluster:mycluster.
//
// This member is required.
ResourceId *string
// The schedule for this action. The following formats are supported:
//
// * At
// expressions - "at(yyyy-mm-ddThh:mm:ss)"
//
// * Rate expressions - "rate(value
// unit)"
//
// * Cron expressions - "cron(fields)"
//
// At expressions are useful for
// one-time schedules. Cron expressions are useful for scheduled actions that run
// periodically at a specified date and time, and rate expressions are useful for
// scheduled actions that run at a regular interval. At and cron expressions use
// Universal Coordinated Time (UTC) by default. The cron format consists of six
// fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month]
// [Day_of_Week] [Year]. For rate expressions, value is a positive integer and unit
// is minute | minutes | hour | hours | day | days. For more information and
// examples, see Example scheduled actions for Application Auto Scaling
// (https://docs.aws.amazon.com/autoscaling/application/userguide/examples-scheduled-actions.html)
// in the Application Auto Scaling User Guide.
//
// This member is required.
Schedule *string
// The Amazon Resource Name (ARN) of the scheduled action.
//
// This member is required.
ScheduledActionARN *string
// The name of the scheduled action.
//
// This member is required.
ScheduledActionName *string
// The namespace of the Amazon Web Services service that provides the resource, or
// a custom-resource.
//
// This member is required.
ServiceNamespace ServiceNamespace
// The date and time that the action is scheduled to end, in UTC.
EndTime *time.Time
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count
// of an ECS service.
//
// * elasticmapreduce:instancegroup:InstanceCount - The
// instance count of an EMR Instance Group.
//
// *
// ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet.
//
// *
// appstream:fleet:DesiredCapacity - The desired capacity of an AppStream 2.0
// fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a
// DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write
// capacity for a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The
// provisioned read capacity for a DynamoDB global secondary index.
//
// *
// dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a
// DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of
// Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible
// edition and Aurora PostgreSQL-compatible edition.
//
// *
// sagemaker:variant:DesiredInstanceCount - The number of EC2 instances for a
// SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The
// scalable dimension for a custom resource provided by your own application or
// service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend entity recognizer
// endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned
// concurrency for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The
// provisioned read capacity for an Amazon Keyspaces table.
//
// *
// cassandra:table:WriteCapacityUnits - The provisioned write capacity for an
// Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned
// volume size (in GiB) for brokers in an Amazon MSK cluster.
//
// *
// elasticache:replication-group:NodeGroups - The number of node groups for an
// Amazon ElastiCache replication group.
//
// * elasticache:replication-group:Replicas