-
Notifications
You must be signed in to change notification settings - Fork 1
/
_inputs.py
9789 lines (8378 loc) · 404 KB
/
_inputs.py
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
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'BeanstalkDeploymentPreferencesArgs',
'BeanstalkDeploymentPreferencesStrategyArgs',
'BeanstalkManagedActionsArgs',
'BeanstalkManagedActionsPlatformUpdateArgs',
'BeanstalkScheduledTaskArgs',
'ElastigroupCpuOptionsArgs',
'ElastigroupEbsBlockDeviceArgs',
'ElastigroupEphemeralBlockDeviceArgs',
'ElastigroupInstanceTypesWeightArgs',
'ElastigroupIntegrationBeanstalkArgs',
'ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs',
'ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs',
'ElastigroupIntegrationBeanstalkManagedActionsArgs',
'ElastigroupIntegrationBeanstalkManagedActionsPlatformUpdateArgs',
'ElastigroupIntegrationCodedeployArgs',
'ElastigroupIntegrationCodedeployDeploymentGroupArgs',
'ElastigroupIntegrationDockerSwarmArgs',
'ElastigroupIntegrationDockerSwarmAutoscaleDownArgs',
'ElastigroupIntegrationDockerSwarmAutoscaleHeadroomArgs',
'ElastigroupIntegrationEcsArgs',
'ElastigroupIntegrationEcsAutoscaleAttributeArgs',
'ElastigroupIntegrationEcsAutoscaleDownArgs',
'ElastigroupIntegrationEcsAutoscaleHeadroomArgs',
'ElastigroupIntegrationEcsBatchArgs',
'ElastigroupIntegrationGitlabArgs',
'ElastigroupIntegrationGitlabRunnerArgs',
'ElastigroupIntegrationKubernetesArgs',
'ElastigroupIntegrationKubernetesAutoscaleDownArgs',
'ElastigroupIntegrationKubernetesAutoscaleHeadroomArgs',
'ElastigroupIntegrationKubernetesAutoscaleLabelArgs',
'ElastigroupIntegrationMesosphereArgs',
'ElastigroupIntegrationMultaiRuntimeArgs',
'ElastigroupIntegrationNomadArgs',
'ElastigroupIntegrationNomadAutoscaleConstraintArgs',
'ElastigroupIntegrationNomadAutoscaleDownArgs',
'ElastigroupIntegrationNomadAutoscaleHeadroomArgs',
'ElastigroupIntegrationRancherArgs',
'ElastigroupIntegrationRoute53Args',
'ElastigroupIntegrationRoute53DomainArgs',
'ElastigroupIntegrationRoute53DomainRecordSetArgs',
'ElastigroupItfArgs',
'ElastigroupItfDefaultStaticTargetGroupArgs',
'ElastigroupItfLoadBalancerArgs',
'ElastigroupItfLoadBalancerListenerRuleArgs',
'ElastigroupItfLoadBalancerListenerRuleStaticTargetGroupArgs',
'ElastigroupItfTargetGroupConfigArgs',
'ElastigroupItfTargetGroupConfigMatcherArgs',
'ElastigroupItfTargetGroupConfigTagArgs',
'ElastigroupMetadataOptionsArgs',
'ElastigroupMultaiTargetSetArgs',
'ElastigroupMultipleMetricsArgs',
'ElastigroupMultipleMetricsExpressionArgs',
'ElastigroupMultipleMetricsMetricArgs',
'ElastigroupMultipleMetricsMetricDimensionArgs',
'ElastigroupNetworkInterfaceArgs',
'ElastigroupResourceTagSpecificationArgs',
'ElastigroupRevertToSpotArgs',
'ElastigroupScalingDownPolicyArgs',
'ElastigroupScalingDownPolicyDimensionArgs',
'ElastigroupScalingDownPolicyStepAdjustmentArgs',
'ElastigroupScalingDownPolicyStepAdjustmentActionArgs',
'ElastigroupScalingStrategyArgs',
'ElastigroupScalingTargetPolicyArgs',
'ElastigroupScalingTargetPolicyDimensionArgs',
'ElastigroupScalingUpPolicyArgs',
'ElastigroupScalingUpPolicyDimensionArgs',
'ElastigroupScalingUpPolicyStepAdjustmentArgs',
'ElastigroupScalingUpPolicyStepAdjustmentActionArgs',
'ElastigroupScheduledTaskArgs',
'ElastigroupSignalArgs',
'ElastigroupStatefulDeallocationArgs',
'ElastigroupStatefulInstanceActionArgs',
'ElastigroupTagArgs',
'ElastigroupUpdatePolicyArgs',
'ElastigroupUpdatePolicyRollConfigArgs',
'ElastigroupUpdatePolicyRollConfigStrategyArgs',
'ElastigroupUpdatePolicyRollConfigStrategyOnFailureArgs',
'ManagedInstanceBlockDeviceMappingArgs',
'ManagedInstanceBlockDeviceMappingEbsArgs',
'ManagedInstanceIntegrationRoute53Args',
'ManagedInstanceIntegrationRoute53DomainArgs',
'ManagedInstanceIntegrationRoute53DomainRecordSetArgs',
'ManagedInstanceLoadBalancerArgs',
'ManagedInstanceManagedInstanceActionArgs',
'ManagedInstanceNetworkInterfaceArgs',
'ManagedInstanceResourceTagSpecificationArgs',
'ManagedInstanceRevertToSpotArgs',
'ManagedInstanceScheduledTaskArgs',
'ManagedInstanceTagArgs',
'MrScalarApplicationArgs',
'MrScalarBootstrapActionsFileArgs',
'MrScalarConfigurationsFileArgs',
'MrScalarCoreEbsBlockDeviceArgs',
'MrScalarCoreScalingDownPolicyArgs',
'MrScalarCoreScalingUpPolicyArgs',
'MrScalarInstanceWeightArgs',
'MrScalarMasterEbsBlockDeviceArgs',
'MrScalarProvisioningTimeoutArgs',
'MrScalarScheduledTaskArgs',
'MrScalarStepsFileArgs',
'MrScalarTagArgs',
'MrScalarTaskEbsBlockDeviceArgs',
'MrScalarTaskScalingDownPolicyArgs',
'MrScalarTaskScalingUpPolicyArgs',
'MrScalarTerminationPolicyArgs',
'MrScalarTerminationPolicyStatementArgs',
'OceanAutoscalerArgs',
'OceanAutoscalerAutoscaleDownArgs',
'OceanAutoscalerAutoscaleHeadroomArgs',
'OceanAutoscalerResourceLimitsArgs',
'OceanInstanceMetadataOptionsArgs',
'OceanLaunchSpecAutoscaleHeadroomArgs',
'OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs',
'OceanLaunchSpecBlockDeviceMappingArgs',
'OceanLaunchSpecBlockDeviceMappingEbsArgs',
'OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgs',
'OceanLaunchSpecCreateOptionsArgs',
'OceanLaunchSpecDeleteOptionsArgs',
'OceanLaunchSpecElasticIpPoolArgs',
'OceanLaunchSpecElasticIpPoolTagSelectorArgs',
'OceanLaunchSpecLabelArgs',
'OceanLaunchSpecResourceLimitArgs',
'OceanLaunchSpecSchedulingShutdownHoursArgs',
'OceanLaunchSpecSchedulingTaskArgs',
'OceanLaunchSpecSchedulingTaskTaskHeadroomArgs',
'OceanLaunchSpecStrategyArgs',
'OceanLaunchSpecTagArgs',
'OceanLaunchSpecTaintArgs',
'OceanLaunchSpecUpdatePolicyArgs',
'OceanLaunchSpecUpdatePolicyRollConfigArgs',
'OceanLoadBalancerArgs',
'OceanLoggingArgs',
'OceanLoggingExportArgs',
'OceanLoggingExportS3Args',
'OceanScheduledTaskArgs',
'OceanScheduledTaskShutdownHoursArgs',
'OceanScheduledTaskTaskArgs',
'OceanTagArgs',
'OceanUpdatePolicyArgs',
'OceanUpdatePolicyRollConfigArgs',
'SuspensionSuspensionArgs',
]
@pulumi.input_type
class BeanstalkDeploymentPreferencesArgs:
def __init__(__self__, *,
automatic_roll: Optional[pulumi.Input[bool]] = None,
batch_size_percentage: Optional[pulumi.Input[int]] = None,
grace_period: Optional[pulumi.Input[int]] = None,
strategies: Optional[pulumi.Input[Sequence[pulumi.Input['BeanstalkDeploymentPreferencesStrategyArgs']]]] = None):
"""
:param pulumi.Input[bool] automatic_roll: Should roll perform automatically
:param pulumi.Input[int] batch_size_percentage: Percent size of each batch
:param pulumi.Input[int] grace_period: Amount of time to wait between batches
:param pulumi.Input[Sequence[pulumi.Input['BeanstalkDeploymentPreferencesStrategyArgs']]] strategies: Strategy parameters
"""
if automatic_roll is not None:
pulumi.set(__self__, "automatic_roll", automatic_roll)
if batch_size_percentage is not None:
pulumi.set(__self__, "batch_size_percentage", batch_size_percentage)
if grace_period is not None:
pulumi.set(__self__, "grace_period", grace_period)
if strategies is not None:
pulumi.set(__self__, "strategies", strategies)
@property
@pulumi.getter(name="automaticRoll")
def automatic_roll(self) -> Optional[pulumi.Input[bool]]:
"""
Should roll perform automatically
"""
return pulumi.get(self, "automatic_roll")
@automatic_roll.setter
def automatic_roll(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "automatic_roll", value)
@property
@pulumi.getter(name="batchSizePercentage")
def batch_size_percentage(self) -> Optional[pulumi.Input[int]]:
"""
Percent size of each batch
"""
return pulumi.get(self, "batch_size_percentage")
@batch_size_percentage.setter
def batch_size_percentage(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "batch_size_percentage", value)
@property
@pulumi.getter(name="gracePeriod")
def grace_period(self) -> Optional[pulumi.Input[int]]:
"""
Amount of time to wait between batches
"""
return pulumi.get(self, "grace_period")
@grace_period.setter
def grace_period(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "grace_period", value)
@property
@pulumi.getter
def strategies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['BeanstalkDeploymentPreferencesStrategyArgs']]]]:
"""
Strategy parameters
"""
return pulumi.get(self, "strategies")
@strategies.setter
def strategies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['BeanstalkDeploymentPreferencesStrategyArgs']]]]):
pulumi.set(self, "strategies", value)
@pulumi.input_type
class BeanstalkDeploymentPreferencesStrategyArgs:
def __init__(__self__, *,
action: Optional[pulumi.Input[str]] = None,
should_drain_instances: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] action: Action to take
:param pulumi.Input[bool] should_drain_instances: Bool value if to wait to drain instance
"""
if action is not None:
pulumi.set(__self__, "action", action)
if should_drain_instances is not None:
pulumi.set(__self__, "should_drain_instances", should_drain_instances)
@property
@pulumi.getter
def action(self) -> Optional[pulumi.Input[str]]:
"""
Action to take
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "action", value)
@property
@pulumi.getter(name="shouldDrainInstances")
def should_drain_instances(self) -> Optional[pulumi.Input[bool]]:
"""
Bool value if to wait to drain instance
"""
return pulumi.get(self, "should_drain_instances")
@should_drain_instances.setter
def should_drain_instances(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "should_drain_instances", value)
@pulumi.input_type
class BeanstalkManagedActionsArgs:
def __init__(__self__, *,
platform_update: Optional[pulumi.Input['BeanstalkManagedActionsPlatformUpdateArgs']] = None):
"""
:param pulumi.Input['BeanstalkManagedActionsPlatformUpdateArgs'] platform_update: Platform Update parameters
"""
if platform_update is not None:
pulumi.set(__self__, "platform_update", platform_update)
@property
@pulumi.getter(name="platformUpdate")
def platform_update(self) -> Optional[pulumi.Input['BeanstalkManagedActionsPlatformUpdateArgs']]:
"""
Platform Update parameters
"""
return pulumi.get(self, "platform_update")
@platform_update.setter
def platform_update(self, value: Optional[pulumi.Input['BeanstalkManagedActionsPlatformUpdateArgs']]):
pulumi.set(self, "platform_update", value)
@pulumi.input_type
class BeanstalkManagedActionsPlatformUpdateArgs:
def __init__(__self__, *,
perform_at: Optional[pulumi.Input[str]] = None,
time_window: Optional[pulumi.Input[str]] = None,
update_level: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] perform_at: Actions to perform (options: timeWindow, never)
:param pulumi.Input[str] time_window: Time Window for when action occurs ex. Mon:23:50-Tue:00:20
:param pulumi.Input[str] update_level: - Level to update
"""
if perform_at is not None:
pulumi.set(__self__, "perform_at", perform_at)
if time_window is not None:
pulumi.set(__self__, "time_window", time_window)
if update_level is not None:
pulumi.set(__self__, "update_level", update_level)
@property
@pulumi.getter(name="performAt")
def perform_at(self) -> Optional[pulumi.Input[str]]:
"""
Actions to perform (options: timeWindow, never)
"""
return pulumi.get(self, "perform_at")
@perform_at.setter
def perform_at(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "perform_at", value)
@property
@pulumi.getter(name="timeWindow")
def time_window(self) -> Optional[pulumi.Input[str]]:
"""
Time Window for when action occurs ex. Mon:23:50-Tue:00:20
"""
return pulumi.get(self, "time_window")
@time_window.setter
def time_window(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "time_window", value)
@property
@pulumi.getter(name="updateLevel")
def update_level(self) -> Optional[pulumi.Input[str]]:
"""
- Level to update
"""
return pulumi.get(self, "update_level")
@update_level.setter
def update_level(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "update_level", value)
@pulumi.input_type
class BeanstalkScheduledTaskArgs:
def __init__(__self__, *,
task_type: pulumi.Input[str],
adjustment: Optional[pulumi.Input[str]] = None,
adjustment_percentage: Optional[pulumi.Input[str]] = None,
batch_size_percentage: Optional[pulumi.Input[str]] = None,
cron_expression: Optional[pulumi.Input[str]] = None,
frequency: Optional[pulumi.Input[str]] = None,
grace_period: Optional[pulumi.Input[str]] = None,
is_enabled: Optional[pulumi.Input[bool]] = None,
max_capacity: Optional[pulumi.Input[str]] = None,
min_capacity: Optional[pulumi.Input[str]] = None,
scale_max_capacity: Optional[pulumi.Input[str]] = None,
scale_min_capacity: Optional[pulumi.Input[str]] = None,
scale_target_capacity: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[str]] = None,
target_capacity: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] task_type: The task type to run. Supported task types are: `"scale"`, `"backup_ami"`, `"roll"`, `"scaleUp"`, `"percentageScaleUp"`, `"scaleDown"`, `"percentageScaleDown"`, `"statefulUpdateCapacity"`.
:param pulumi.Input[str] adjustment: The number of instances to add or remove.
:param pulumi.Input[str] adjustment_percentage: The percentage of instances to add or remove.
:param pulumi.Input[str] batch_size_percentage: The percentage size of each batch in the scheduled deployment roll.
:param pulumi.Input[str] cron_expression: A valid cron expression. The cron is running in UTC time zone and is in [Unix cron format](https://en.wikipedia.org/wiki/Cron).
:param pulumi.Input[str] frequency: The recurrence frequency to run this task. Supported values are `"hourly"`, `"daily"`, `"weekly"` and `"continuous"`.
:param pulumi.Input[str] grace_period: The period of time (seconds) to wait before checking a batch's health after it's deployment.
:param pulumi.Input[bool] is_enabled: Setting the task to being enabled or disabled.
:param pulumi.Input[str] max_capacity: The maximum number of instances the group should have.
:param pulumi.Input[str] min_capacity: The minimum number of instances the group should have.
:param pulumi.Input[str] scale_max_capacity: The maximum number of instances the group should have.
:param pulumi.Input[str] scale_min_capacity: The minimum number of instances the group should have.
:param pulumi.Input[str] scale_target_capacity: The desired number of instances the group should have.
:param pulumi.Input[str] start_time: Set a start time for one time tasks.
:param pulumi.Input[str] target_capacity: The desired number of instances the group should have.
"""
pulumi.set(__self__, "task_type", task_type)
if adjustment is not None:
pulumi.set(__self__, "adjustment", adjustment)
if adjustment_percentage is not None:
pulumi.set(__self__, "adjustment_percentage", adjustment_percentage)
if batch_size_percentage is not None:
pulumi.set(__self__, "batch_size_percentage", batch_size_percentage)
if cron_expression is not None:
pulumi.set(__self__, "cron_expression", cron_expression)
if frequency is not None:
pulumi.set(__self__, "frequency", frequency)
if grace_period is not None:
pulumi.set(__self__, "grace_period", grace_period)
if is_enabled is not None:
pulumi.set(__self__, "is_enabled", is_enabled)
if max_capacity is not None:
pulumi.set(__self__, "max_capacity", max_capacity)
if min_capacity is not None:
pulumi.set(__self__, "min_capacity", min_capacity)
if scale_max_capacity is not None:
pulumi.set(__self__, "scale_max_capacity", scale_max_capacity)
if scale_min_capacity is not None:
pulumi.set(__self__, "scale_min_capacity", scale_min_capacity)
if scale_target_capacity is not None:
pulumi.set(__self__, "scale_target_capacity", scale_target_capacity)
if start_time is not None:
pulumi.set(__self__, "start_time", start_time)
if target_capacity is not None:
pulumi.set(__self__, "target_capacity", target_capacity)
@property
@pulumi.getter(name="taskType")
def task_type(self) -> pulumi.Input[str]:
"""
The task type to run. Supported task types are: `"scale"`, `"backup_ami"`, `"roll"`, `"scaleUp"`, `"percentageScaleUp"`, `"scaleDown"`, `"percentageScaleDown"`, `"statefulUpdateCapacity"`.
"""
return pulumi.get(self, "task_type")
@task_type.setter
def task_type(self, value: pulumi.Input[str]):
pulumi.set(self, "task_type", value)
@property
@pulumi.getter
def adjustment(self) -> Optional[pulumi.Input[str]]:
"""
The number of instances to add or remove.
"""
return pulumi.get(self, "adjustment")
@adjustment.setter
def adjustment(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "adjustment", value)
@property
@pulumi.getter(name="adjustmentPercentage")
def adjustment_percentage(self) -> Optional[pulumi.Input[str]]:
"""
The percentage of instances to add or remove.
"""
return pulumi.get(self, "adjustment_percentage")
@adjustment_percentage.setter
def adjustment_percentage(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "adjustment_percentage", value)
@property
@pulumi.getter(name="batchSizePercentage")
def batch_size_percentage(self) -> Optional[pulumi.Input[str]]:
"""
The percentage size of each batch in the scheduled deployment roll.
"""
return pulumi.get(self, "batch_size_percentage")
@batch_size_percentage.setter
def batch_size_percentage(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "batch_size_percentage", value)
@property
@pulumi.getter(name="cronExpression")
def cron_expression(self) -> Optional[pulumi.Input[str]]:
"""
A valid cron expression. The cron is running in UTC time zone and is in [Unix cron format](https://en.wikipedia.org/wiki/Cron).
"""
return pulumi.get(self, "cron_expression")
@cron_expression.setter
def cron_expression(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cron_expression", value)
@property
@pulumi.getter
def frequency(self) -> Optional[pulumi.Input[str]]:
"""
The recurrence frequency to run this task. Supported values are `"hourly"`, `"daily"`, `"weekly"` and `"continuous"`.
"""
return pulumi.get(self, "frequency")
@frequency.setter
def frequency(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "frequency", value)
@property
@pulumi.getter(name="gracePeriod")
def grace_period(self) -> Optional[pulumi.Input[str]]:
"""
The period of time (seconds) to wait before checking a batch's health after it's deployment.
"""
return pulumi.get(self, "grace_period")
@grace_period.setter
def grace_period(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "grace_period", value)
@property
@pulumi.getter(name="isEnabled")
def is_enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Setting the task to being enabled or disabled.
"""
return pulumi.get(self, "is_enabled")
@is_enabled.setter
def is_enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "is_enabled", value)
@property
@pulumi.getter(name="maxCapacity")
def max_capacity(self) -> Optional[pulumi.Input[str]]:
"""
The maximum number of instances the group should have.
"""
return pulumi.get(self, "max_capacity")
@max_capacity.setter
def max_capacity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "max_capacity", value)
@property
@pulumi.getter(name="minCapacity")
def min_capacity(self) -> Optional[pulumi.Input[str]]:
"""
The minimum number of instances the group should have.
"""
return pulumi.get(self, "min_capacity")
@min_capacity.setter
def min_capacity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "min_capacity", value)
@property
@pulumi.getter(name="scaleMaxCapacity")
def scale_max_capacity(self) -> Optional[pulumi.Input[str]]:
"""
The maximum number of instances the group should have.
"""
return pulumi.get(self, "scale_max_capacity")
@scale_max_capacity.setter
def scale_max_capacity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "scale_max_capacity", value)
@property
@pulumi.getter(name="scaleMinCapacity")
def scale_min_capacity(self) -> Optional[pulumi.Input[str]]:
"""
The minimum number of instances the group should have.
"""
return pulumi.get(self, "scale_min_capacity")
@scale_min_capacity.setter
def scale_min_capacity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "scale_min_capacity", value)
@property
@pulumi.getter(name="scaleTargetCapacity")
def scale_target_capacity(self) -> Optional[pulumi.Input[str]]:
"""
The desired number of instances the group should have.
"""
return pulumi.get(self, "scale_target_capacity")
@scale_target_capacity.setter
def scale_target_capacity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "scale_target_capacity", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> Optional[pulumi.Input[str]]:
"""
Set a start time for one time tasks.
"""
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "start_time", value)
@property
@pulumi.getter(name="targetCapacity")
def target_capacity(self) -> Optional[pulumi.Input[str]]:
"""
The desired number of instances the group should have.
"""
return pulumi.get(self, "target_capacity")
@target_capacity.setter
def target_capacity(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "target_capacity", value)
@pulumi.input_type
class ElastigroupCpuOptionsArgs:
def __init__(__self__, *,
threads_per_core: pulumi.Input[int]):
"""
:param pulumi.Input[int] threads_per_core: The ability to define the number of threads per core in instances that allow this.
"""
pulumi.set(__self__, "threads_per_core", threads_per_core)
@property
@pulumi.getter(name="threadsPerCore")
def threads_per_core(self) -> pulumi.Input[int]:
"""
The ability to define the number of threads per core in instances that allow this.
"""
return pulumi.get(self, "threads_per_core")
@threads_per_core.setter
def threads_per_core(self, value: pulumi.Input[int]):
pulumi.set(self, "threads_per_core", value)
@pulumi.input_type
class ElastigroupEbsBlockDeviceArgs:
def __init__(__self__, *,
device_name: pulumi.Input[str],
delete_on_termination: Optional[pulumi.Input[bool]] = None,
encrypted: Optional[pulumi.Input[bool]] = None,
iops: Optional[pulumi.Input[int]] = None,
kms_key_id: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
throughput: Optional[pulumi.Input[int]] = None,
volume_size: Optional[pulumi.Input[int]] = None,
volume_type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] device_name: The name of the device to mount.
:param pulumi.Input[bool] delete_on_termination: Whether the volume should be destroyed on instance termination.
:param pulumi.Input[bool] encrypted: Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) on the volume.
:param pulumi.Input[int] iops: The amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). This must be set with a `volume_type` of `"io1"`.
:param pulumi.Input[str] kms_key_id: ID for a user managed CMK under which the EBS Volume is encrypted
:param pulumi.Input[str] snapshot_id: The Snapshot ID to mount.
:param pulumi.Input[int] throughput: The amount of data transferred to or from a storage device per second, you can use this param just in a case that `volume_type` = gp3.
:param pulumi.Input[int] volume_size: The size of the volume in gigabytes.
:param pulumi.Input[str] volume_type: The type of volume. Can be `"standard"`, `"gp2"`, `"io1"`, `"st1"` or `"sc1"`.
"""
pulumi.set(__self__, "device_name", device_name)
if delete_on_termination is not None:
pulumi.set(__self__, "delete_on_termination", delete_on_termination)
if encrypted is not None:
pulumi.set(__self__, "encrypted", encrypted)
if iops is not None:
pulumi.set(__self__, "iops", iops)
if kms_key_id is not None:
pulumi.set(__self__, "kms_key_id", kms_key_id)
if snapshot_id is not None:
pulumi.set(__self__, "snapshot_id", snapshot_id)
if throughput is not None:
pulumi.set(__self__, "throughput", throughput)
if volume_size is not None:
pulumi.set(__self__, "volume_size", volume_size)
if volume_type is not None:
pulumi.set(__self__, "volume_type", volume_type)
@property
@pulumi.getter(name="deviceName")
def device_name(self) -> pulumi.Input[str]:
"""
The name of the device to mount.
"""
return pulumi.get(self, "device_name")
@device_name.setter
def device_name(self, value: pulumi.Input[str]):
pulumi.set(self, "device_name", value)
@property
@pulumi.getter(name="deleteOnTermination")
def delete_on_termination(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the volume should be destroyed on instance termination.
"""
return pulumi.get(self, "delete_on_termination")
@delete_on_termination.setter
def delete_on_termination(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "delete_on_termination", value)
@property
@pulumi.getter
def encrypted(self) -> Optional[pulumi.Input[bool]]:
"""
Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) on the volume.
"""
return pulumi.get(self, "encrypted")
@encrypted.setter
def encrypted(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "encrypted", value)
@property
@pulumi.getter
def iops(self) -> Optional[pulumi.Input[int]]:
"""
The amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). This must be set with a `volume_type` of `"io1"`.
"""
return pulumi.get(self, "iops")
@iops.setter
def iops(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "iops", value)
@property
@pulumi.getter(name="kmsKeyId")
def kms_key_id(self) -> Optional[pulumi.Input[str]]:
"""
ID for a user managed CMK under which the EBS Volume is encrypted
"""
return pulumi.get(self, "kms_key_id")
@kms_key_id.setter
def kms_key_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "kms_key_id", value)
@property
@pulumi.getter(name="snapshotId")
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
"""
The Snapshot ID to mount.
"""
return pulumi.get(self, "snapshot_id")
@snapshot_id.setter
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "snapshot_id", value)
@property
@pulumi.getter
def throughput(self) -> Optional[pulumi.Input[int]]:
"""
The amount of data transferred to or from a storage device per second, you can use this param just in a case that `volume_type` = gp3.
"""
return pulumi.get(self, "throughput")
@throughput.setter
def throughput(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "throughput", value)
@property
@pulumi.getter(name="volumeSize")
def volume_size(self) -> Optional[pulumi.Input[int]]:
"""
The size of the volume in gigabytes.
"""
return pulumi.get(self, "volume_size")
@volume_size.setter
def volume_size(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "volume_size", value)
@property
@pulumi.getter(name="volumeType")
def volume_type(self) -> Optional[pulumi.Input[str]]:
"""
The type of volume. Can be `"standard"`, `"gp2"`, `"io1"`, `"st1"` or `"sc1"`.
"""
return pulumi.get(self, "volume_type")
@volume_type.setter
def volume_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "volume_type", value)
@pulumi.input_type
class ElastigroupEphemeralBlockDeviceArgs:
def __init__(__self__, *,
device_name: pulumi.Input[str],
virtual_name: pulumi.Input[str]):
"""
:param pulumi.Input[str] device_name: The name of the block device to mount on the instance.
:param pulumi.Input[str] virtual_name: The [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames)
(e.g. `"ephemeral0"`).
"""
pulumi.set(__self__, "device_name", device_name)
pulumi.set(__self__, "virtual_name", virtual_name)
@property
@pulumi.getter(name="deviceName")
def device_name(self) -> pulumi.Input[str]:
"""
The name of the block device to mount on the instance.
"""
return pulumi.get(self, "device_name")
@device_name.setter
def device_name(self, value: pulumi.Input[str]):
pulumi.set(self, "device_name", value)
@property
@pulumi.getter(name="virtualName")
def virtual_name(self) -> pulumi.Input[str]:
"""
The [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames)
(e.g. `"ephemeral0"`).
"""
return pulumi.get(self, "virtual_name")
@virtual_name.setter
def virtual_name(self, value: pulumi.Input[str]):
pulumi.set(self, "virtual_name", value)
@pulumi.input_type
class ElastigroupInstanceTypesWeightArgs:
def __init__(__self__, *,
instance_type: pulumi.Input[str],
weight: pulumi.Input[int]):
"""
:param pulumi.Input[str] instance_type: Name of instance type (String).
:param pulumi.Input[int] weight: Weight per instance type (Integer).
"""
pulumi.set(__self__, "instance_type", instance_type)
pulumi.set(__self__, "weight", weight)
@property
@pulumi.getter(name="instanceType")
def instance_type(self) -> pulumi.Input[str]:
"""
Name of instance type (String).
"""
return pulumi.get(self, "instance_type")
@instance_type.setter
def instance_type(self, value: pulumi.Input[str]):
pulumi.set(self, "instance_type", value)
@property
@pulumi.getter
def weight(self) -> pulumi.Input[int]:
"""
Weight per instance type (Integer).
"""
return pulumi.get(self, "weight")
@weight.setter
def weight(self, value: pulumi.Input[int]):
pulumi.set(self, "weight", value)
@pulumi.input_type
class ElastigroupIntegrationBeanstalkArgs:
def __init__(__self__, *,
deployment_preferences: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs']] = None,
environment_id: Optional[pulumi.Input[str]] = None,
managed_actions: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkManagedActionsArgs']] = None):
"""
:param pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs'] deployment_preferences: Preferences when performing a roll
:param pulumi.Input['ElastigroupIntegrationBeanstalkManagedActionsArgs'] managed_actions: Managed Actions parameters
"""
if deployment_preferences is not None:
pulumi.set(__self__, "deployment_preferences", deployment_preferences)
if environment_id is not None:
pulumi.set(__self__, "environment_id", environment_id)
if managed_actions is not None:
pulumi.set(__self__, "managed_actions", managed_actions)
@property
@pulumi.getter(name="deploymentPreferences")
def deployment_preferences(self) -> Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs']]:
"""
Preferences when performing a roll
"""
return pulumi.get(self, "deployment_preferences")
@deployment_preferences.setter
def deployment_preferences(self, value: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs']]):
pulumi.set(self, "deployment_preferences", value)
@property
@pulumi.getter(name="environmentId")
def environment_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "environment_id")
@environment_id.setter
def environment_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "environment_id", value)
@property
@pulumi.getter(name="managedActions")
def managed_actions(self) -> Optional[pulumi.Input['ElastigroupIntegrationBeanstalkManagedActionsArgs']]:
"""
Managed Actions parameters
"""
return pulumi.get(self, "managed_actions")
@managed_actions.setter
def managed_actions(self, value: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkManagedActionsArgs']]):
pulumi.set(self, "managed_actions", value)
@pulumi.input_type
class ElastigroupIntegrationBeanstalkDeploymentPreferencesArgs:
def __init__(__self__, *,
automatic_roll: Optional[pulumi.Input[bool]] = None,
batch_size_percentage: Optional[pulumi.Input[int]] = None,
grace_period: Optional[pulumi.Input[int]] = None,
strategy: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs']] = None):
"""
:param pulumi.Input[bool] automatic_roll: Should roll perform automatically
:param pulumi.Input[int] batch_size_percentage: Sets the percentage of the instances to deploy in each batch.
:param pulumi.Input[int] grace_period: Sets the grace period for new instances to become healthy.
:param pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs'] strategy: Strategy parameters
"""
if automatic_roll is not None:
pulumi.set(__self__, "automatic_roll", automatic_roll)
if batch_size_percentage is not None:
pulumi.set(__self__, "batch_size_percentage", batch_size_percentage)
if grace_period is not None:
pulumi.set(__self__, "grace_period", grace_period)
if strategy is not None:
pulumi.set(__self__, "strategy", strategy)
@property
@pulumi.getter(name="automaticRoll")
def automatic_roll(self) -> Optional[pulumi.Input[bool]]:
"""
Should roll perform automatically
"""
return pulumi.get(self, "automatic_roll")
@automatic_roll.setter
def automatic_roll(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "automatic_roll", value)
@property
@pulumi.getter(name="batchSizePercentage")
def batch_size_percentage(self) -> Optional[pulumi.Input[int]]:
"""
Sets the percentage of the instances to deploy in each batch.
"""
return pulumi.get(self, "batch_size_percentage")
@batch_size_percentage.setter
def batch_size_percentage(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "batch_size_percentage", value)
@property
@pulumi.getter(name="gracePeriod")
def grace_period(self) -> Optional[pulumi.Input[int]]:
"""
Sets the grace period for new instances to become healthy.
"""
return pulumi.get(self, "grace_period")
@grace_period.setter
def grace_period(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "grace_period", value)
@property
@pulumi.getter
def strategy(self) -> Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs']]:
"""
Strategy parameters
"""
return pulumi.get(self, "strategy")
@strategy.setter
def strategy(self, value: Optional[pulumi.Input['ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs']]):
pulumi.set(self, "strategy", value)
@pulumi.input_type
class ElastigroupIntegrationBeanstalkDeploymentPreferencesStrategyArgs:
def __init__(__self__, *,
action: Optional[pulumi.Input[str]] = None,
should_drain_instances: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[str] action: Action to take. Valid values: `REPLACE_SERVER`, `RESTART_SERVER`.
:param pulumi.Input[bool] should_drain_instances: Specify whether to drain incoming TCP connections before terminating a server.
"""
if action is not None:
pulumi.set(__self__, "action", action)
if should_drain_instances is not None:
pulumi.set(__self__, "should_drain_instances", should_drain_instances)
@property
@pulumi.getter
def action(self) -> Optional[pulumi.Input[str]]:
"""
Action to take. Valid values: `REPLACE_SERVER`, `RESTART_SERVER`.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "action", value)
@property
@pulumi.getter(name="shouldDrainInstances")
def should_drain_instances(self) -> Optional[pulumi.Input[bool]]:
"""
Specify whether to drain incoming TCP connections before terminating a server.
"""
return pulumi.get(self, "should_drain_instances")
@should_drain_instances.setter
def should_drain_instances(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "should_drain_instances", value)
@pulumi.input_type
class ElastigroupIntegrationBeanstalkManagedActionsArgs:
def __init__(__self__, *,