/
application.go
1523 lines (1408 loc) · 106 KB
/
application.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 the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package sae
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a Serverless App Engine (SAE) Application resource.
//
// For information about Serverless App Engine (SAE) Application and how to use it, see [What is Application](https://www.alibabacloud.com/help/en/sae/latest/createapplication).
//
// > **NOTE:** Available since v1.161.0.
//
// ## Example Usage
//
// # Basic Usage
//
// ```go
// package main
//
// import (
//
// "fmt"
//
// "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
// "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
// "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
// "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
// "github.com/pulumi/pulumi-random/sdk/v4/go/random"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// region := "cn-hangzhou"
// if param := cfg.Get("region"); param != "" {
// region = param
// }
// name := "tf-example"
// if param := cfg.Get("name"); param != "" {
// name = param
// }
// defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
// Max: 99999,
// Min: 10000,
// })
// if err != nil {
// return err
// }
// _default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
// Current: pulumi.BoolRef(true),
// }, nil)
// if err != nil {
// return err
// }
// defaultGetZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
// AvailableResourceCreation: pulumi.StringRef("VSwitch"),
// }, nil)
// if err != nil {
// return err
// }
// defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
// VpcName: pulumi.String(name),
// CidrBlock: pulumi.String("10.4.0.0/16"),
// })
// if err != nil {
// return err
// }
// defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
// VswitchName: pulumi.String(name),
// CidrBlock: pulumi.String("10.4.0.0/24"),
// VpcId: defaultNetwork.ID(),
// ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
// })
// if err != nil {
// return err
// }
// defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
// VpcId: defaultNetwork.ID(),
// })
// if err != nil {
// return err
// }
// defaultNamespace, err := sae.NewNamespace(ctx, "default", &sae.NamespaceArgs{
// NamespaceId: pulumi.String(fmt.Sprintf("%v:example%v", _default.Regions[0].Id, defaultInteger.Result)),
// NamespaceName: pulumi.String(name),
// NamespaceDescription: pulumi.String(name),
// EnableMicroRegistration: pulumi.Bool(false),
// })
// if err != nil {
// return err
// }
// _, err = sae.NewApplication(ctx, "default", &sae.ApplicationArgs{
// AppDescription: pulumi.String(name),
// AppName: pulumi.String(fmt.Sprintf("%v-%v", name, defaultInteger.Result)),
// NamespaceId: defaultNamespace.ID(),
// ImageUrl: pulumi.String(fmt.Sprintf("registry-vpc.%v.aliyuncs.com/sae-demo-image/consumer:1.0", _default.Regions[0].Id)),
// PackageType: pulumi.String("Image"),
// SecurityGroupId: defaultSecurityGroup.ID(),
// VpcId: defaultNetwork.ID(),
// VswitchId: defaultSwitch.ID(),
// Timezone: pulumi.String("Asia/Beijing"),
// Replicas: pulumi.Int(5),
// Cpu: pulumi.Int(500),
// Memory: pulumi.Int(2048),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Serverless App Engine (SAE) Application can be imported using the id, e.g.
//
// ```sh
// $ pulumi import alicloud:sae/application:Application example <id>
// ```
type Application struct {
pulumi.CustomResourceState
// The ARN of the RAM role required when pulling images across accounts. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrAssumeRoleArn pulumi.StringPtrOutput `pulumi:"acrAssumeRoleArn"`
// The ID of the ACR EE instance. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrInstanceId pulumi.StringPtrOutput `pulumi:"acrInstanceId"`
// Application description information. No more than 1024 characters. **NOTE:** From version 1.211.0, `appDescription` can be modified.
AppDescription pulumi.StringPtrOutput `pulumi:"appDescription"`
// Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
AppName pulumi.StringOutput `pulumi:"appName"`
// The auto config. Valid values: `true`, `false`.
AutoConfig pulumi.BoolPtrOutput `pulumi:"autoConfig"`
// The auto enable application scaling rule. Valid values: `true`, `false`.
AutoEnableApplicationScalingRule pulumi.BoolPtrOutput `pulumi:"autoEnableApplicationScalingRule"`
// The batch wait time.
BatchWaitTime pulumi.IntOutput `pulumi:"batchWaitTime"`
// The change order desc.
ChangeOrderDesc pulumi.StringPtrOutput `pulumi:"changeOrderDesc"`
// Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
Command pulumi.StringPtrOutput `pulumi:"command"`
// Mirror startup command parameters. The parameters required for the above start command. For example: 1d. **NOTE:** Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
//
// Deprecated: Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
CommandArgs pulumi.StringOutput `pulumi:"commandArgs"`
// The parameters of the image startup command.
CommandArgsV2s pulumi.StringArrayOutput `pulumi:"commandArgsV2s"`
// ConfigMap mount description. **NOTE:** Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
//
// Deprecated: Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
ConfigMapMountDesc pulumi.StringOutput `pulumi:"configMapMountDesc"`
// The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See `configMapMountDescV2` below.
ConfigMapMountDescV2s ApplicationConfigMapMountDescV2ArrayOutput `pulumi:"configMapMountDescV2s"`
// The CPU required for each instance, in millicores, cannot be 0. Valid values: `500`, `1000`, `2000`, `4000`, `8000`, `16000`, `32000`.
Cpu pulumi.IntPtrOutput `pulumi:"cpu"`
// Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. **NOTE:** Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
//
// Deprecated: Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
CustomHostAlias pulumi.StringOutput `pulumi:"customHostAlias"`
// The custom mapping between the hostname and IP address in the container. See `customHostAliasV2` below.
CustomHostAliasV2s ApplicationCustomHostAliasV2ArrayOutput `pulumi:"customHostAliasV2s"`
// The deploy. Valid values: `true`, `false`.
Deploy pulumi.BoolPtrOutput `pulumi:"deploy"`
// The operating environment used by the Pandora application.
EdasContainerVersion pulumi.StringPtrOutput `pulumi:"edasContainerVersion"`
// The enable ahas. Valid values: `true`, `false`.
EnableAhas pulumi.StringOutput `pulumi:"enableAhas"`
// The enable grey tag route. Default value: `false`. Valid values:
EnableGreyTagRoute pulumi.BoolOutput `pulumi:"enableGreyTagRoute"`
// Container environment variable parameters. For example,` [{"name":"envtmp","value":"0"}]`. The value description is as follows:
Envs pulumi.StringOutput `pulumi:"envs"`
// The ID of the corresponding Secret.
ImagePullSecrets pulumi.StringPtrOutput `pulumi:"imagePullSecrets"`
// Mirror address. Only Image type applications can configure the mirror address.
ImageUrl pulumi.StringPtrOutput `pulumi:"imageUrl"`
// The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartArgs pulumi.StringPtrOutput `pulumi:"jarStartArgs"`
// The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartOptions pulumi.StringPtrOutput `pulumi:"jarStartOptions"`
// The JDK version that the deployment package depends on. Image type applications are not supported.
Jdk pulumi.StringPtrOutput `pulumi:"jdk"`
// The logging configurations of ApsaraMQ for Kafka. See `kafkaConfigs` below.
KafkaConfigs ApplicationKafkaConfigsPtrOutput `pulumi:"kafkaConfigs"`
// Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
// **NOTE:** Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
//
// Deprecated: Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
Liveness pulumi.StringOutput `pulumi:"liveness"`
// The liveness check settings of the container. See `livenessV2` below.
LivenessV2 ApplicationLivenessV2Output `pulumi:"livenessV2"`
// The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `2048`, `4096`, `8192`, `12288`, `16384`, `24576`, `32768`, `65536`, `131072`.
Memory pulumi.IntPtrOutput `pulumi:"memory"`
// Select the Nacos registry. Valid values: `0`, `1`, `2`.
MicroRegistration pulumi.StringPtrOutput `pulumi:"microRegistration"`
// Minimum Survival Instance Percentage. **NOTE:** When `minReadyInstances` and `minReadyInstanceRatio` are passed at the same time, and the value of `minReadyInstanceRatio` is not -1, the `minReadyInstanceRatio` parameter shall prevail. Assuming that `minReadyInstances` is 5 and `minReadyInstanceRatio` is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:
// * `-1`: Initialization value, indicating that percentages are not used.
// * `0~100`: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstanceRatio pulumi.IntOutput `pulumi:"minReadyInstanceRatio"`
// The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MinReadyInstances pulumi.IntOutput `pulumi:"minReadyInstances"`
// SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NamespaceId pulumi.StringPtrOutput `pulumi:"namespaceId"`
// The configurations for mounting the NAS file system. See `nasConfigs` below.
NasConfigs ApplicationNasConfigArrayOutput `pulumi:"nasConfigs"`
// OSS AccessKey ID.
OssAkId pulumi.StringPtrOutput `pulumi:"ossAkId"`
// OSS AccessKey Secret.
OssAkSecret pulumi.StringPtrOutput `pulumi:"ossAkSecret"`
// OSS mount description information. **NOTE:** Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
//
// Deprecated: Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
OssMountDescs pulumi.StringOutput `pulumi:"ossMountDescs"`
// The description of the mounted Object Storage Service (OSS) bucket. See `ossMountDescsV2` below.
OssMountDescsV2s ApplicationOssMountDescsV2ArrayOutput `pulumi:"ossMountDescsV2s"`
// Application package type. Valid values: `FatJar`, `War`, `Image`, `PhpZip`, `IMAGE_PHP_5_4`, `IMAGE_PHP_5_4_ALPINE`, `IMAGE_PHP_5_5`, `IMAGE_PHP_5_5_ALPINE`, `IMAGE_PHP_5_6`, `IMAGE_PHP_5_6_ALPINE`, `IMAGE_PHP_7_0`, `IMAGE_PHP_7_0_ALPINE`, `IMAGE_PHP_7_1`, `IMAGE_PHP_7_1_ALPINE`, `IMAGE_PHP_7_2`, `IMAGE_PHP_7_2_ALPINE`, `IMAGE_PHP_7_3`, `IMAGE_PHP_7_3_ALPINE`, `PythonZip`.
PackageType pulumi.StringOutput `pulumi:"packageType"`
// Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageUrl pulumi.StringPtrOutput `pulumi:"packageUrl"`
// The version number of the deployment package. Required when the Package Type is War and FatJar.
PackageVersion pulumi.StringOutput `pulumi:"packageVersion"`
// The Php environment.
Php pulumi.StringPtrOutput `pulumi:"php"`
// The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpArmsConfigLocation pulumi.StringOutput `pulumi:"phpArmsConfigLocation"`
// PHP configuration file content.
PhpConfig pulumi.StringPtrOutput `pulumi:"phpConfig"`
// PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PhpConfigLocation pulumi.StringPtrOutput `pulumi:"phpConfigLocation"`
// Execute the script after startup, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
//
// Deprecated: Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
PostStart pulumi.StringOutput `pulumi:"postStart"`
// The script that is run immediately after the container is started. See `postStartV2` below.
PostStartV2 ApplicationPostStartV2Output `pulumi:"postStartV2"`
// Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
//
// Deprecated: Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
PreStop pulumi.StringOutput `pulumi:"preStop"`
// The script that is run before the container is stopped. See `preStopV2` below.
PreStopV2 ApplicationPreStopV2Output `pulumi:"preStopV2"`
// The programming language that is used to create the application. Valid values: `java`, `php`, `other`.
ProgrammingLanguage pulumi.StringOutput `pulumi:"programmingLanguage"`
// The configurations of Kubernetes Service-based service registration and discovery. See `pvtzDiscoverySvc` below.
PvtzDiscoverySvc ApplicationPvtzDiscoverySvcPtrOutput `pulumi:"pvtzDiscoverySvc"`
// Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {`exec`:{`command`:[`sh`,"-c","cat /home/admin/start.sh"]},`initialDelaySeconds`:30,`periodSeconds`:30,"timeoutSeconds ":2}. Valid values: `command`, `initialDelaySeconds`, `periodSeconds`, `timeoutSeconds`.
// **NOTE:** Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
//
// Deprecated: Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
Readiness pulumi.StringOutput `pulumi:"readiness"`
// The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See `readinessV2` below.
ReadinessV2 ApplicationReadinessV2Output `pulumi:"readinessV2"`
// Initial number of instances.
Replicas pulumi.IntOutput `pulumi:"replicas"`
// Security group ID.
SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
// SLS configuration.
SlsConfigs pulumi.StringPtrOutput `pulumi:"slsConfigs"`
// The status of the resource. Valid values: `RUNNING`, `STOPPED`, `UNKNOWN`.
Status pulumi.StringOutput `pulumi:"status"`
// A mapping of tags to assign to the resource.
Tags pulumi.MapOutput `pulumi:"tags"`
// Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
TerminationGracePeriodSeconds pulumi.IntOutput `pulumi:"terminationGracePeriodSeconds"`
// Time zone. Default value: `Asia/Shanghai`.
Timezone pulumi.StringOutput `pulumi:"timezone"`
// Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: `contextInputType`, `contextPath`, `httpPort`, `maxThreads`, `uriEncoding`, `useBodyEncoding`, `useDefaultConfig`.
// **NOTE:** Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
//
// Deprecated: Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
TomcatConfig pulumi.StringOutput `pulumi:"tomcatConfig"`
// The Tomcat configuration. See `tomcatConfigV2` below.
TomcatConfigV2 ApplicationTomcatConfigV2Output `pulumi:"tomcatConfigV2"`
// The update strategy. **NOTE:** Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
//
// Deprecated: Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
UpdateStrategy pulumi.StringOutput `pulumi:"updateStrategy"`
// The release policy. See `updateStrategyV2` below.
UpdateStrategyV2 ApplicationUpdateStrategyV2Output `pulumi:"updateStrategyV2"`
// The vpc id.
VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
// The vswitch id. **NOTE:** From version 1.211.0, `vswitchId` can be modified.
VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
// WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
WarStartOptions pulumi.StringPtrOutput `pulumi:"warStartOptions"`
// The version of tomcat that the deployment package depends on. Image type applications are not supported.
WebContainer pulumi.StringPtrOutput `pulumi:"webContainer"`
}
// NewApplication registers a new resource with the given unique name, arguments, and options.
func NewApplication(ctx *pulumi.Context,
name string, args *ApplicationArgs, opts ...pulumi.ResourceOption) (*Application, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AppName == nil {
return nil, errors.New("invalid value for required argument 'AppName'")
}
if args.PackageType == nil {
return nil, errors.New("invalid value for required argument 'PackageType'")
}
if args.Replicas == nil {
return nil, errors.New("invalid value for required argument 'Replicas'")
}
if args.OssAkId != nil {
args.OssAkId = pulumi.ToSecret(args.OssAkId).(pulumi.StringPtrInput)
}
if args.OssAkSecret != nil {
args.OssAkSecret = pulumi.ToSecret(args.OssAkSecret).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"ossAkId",
"ossAkSecret",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource Application
err := ctx.RegisterResource("alicloud:sae/application:Application", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetApplication gets an existing Application resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetApplication(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ApplicationState, opts ...pulumi.ResourceOption) (*Application, error) {
var resource Application
err := ctx.ReadResource("alicloud:sae/application:Application", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Application resources.
type applicationState struct {
// The ARN of the RAM role required when pulling images across accounts. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrAssumeRoleArn *string `pulumi:"acrAssumeRoleArn"`
// The ID of the ACR EE instance. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrInstanceId *string `pulumi:"acrInstanceId"`
// Application description information. No more than 1024 characters. **NOTE:** From version 1.211.0, `appDescription` can be modified.
AppDescription *string `pulumi:"appDescription"`
// Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
AppName *string `pulumi:"appName"`
// The auto config. Valid values: `true`, `false`.
AutoConfig *bool `pulumi:"autoConfig"`
// The auto enable application scaling rule. Valid values: `true`, `false`.
AutoEnableApplicationScalingRule *bool `pulumi:"autoEnableApplicationScalingRule"`
// The batch wait time.
BatchWaitTime *int `pulumi:"batchWaitTime"`
// The change order desc.
ChangeOrderDesc *string `pulumi:"changeOrderDesc"`
// Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
Command *string `pulumi:"command"`
// Mirror startup command parameters. The parameters required for the above start command. For example: 1d. **NOTE:** Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
//
// Deprecated: Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
CommandArgs *string `pulumi:"commandArgs"`
// The parameters of the image startup command.
CommandArgsV2s []string `pulumi:"commandArgsV2s"`
// ConfigMap mount description. **NOTE:** Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
//
// Deprecated: Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
ConfigMapMountDesc *string `pulumi:"configMapMountDesc"`
// The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See `configMapMountDescV2` below.
ConfigMapMountDescV2s []ApplicationConfigMapMountDescV2 `pulumi:"configMapMountDescV2s"`
// The CPU required for each instance, in millicores, cannot be 0. Valid values: `500`, `1000`, `2000`, `4000`, `8000`, `16000`, `32000`.
Cpu *int `pulumi:"cpu"`
// Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. **NOTE:** Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
//
// Deprecated: Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
CustomHostAlias *string `pulumi:"customHostAlias"`
// The custom mapping between the hostname and IP address in the container. See `customHostAliasV2` below.
CustomHostAliasV2s []ApplicationCustomHostAliasV2 `pulumi:"customHostAliasV2s"`
// The deploy. Valid values: `true`, `false`.
Deploy *bool `pulumi:"deploy"`
// The operating environment used by the Pandora application.
EdasContainerVersion *string `pulumi:"edasContainerVersion"`
// The enable ahas. Valid values: `true`, `false`.
EnableAhas *string `pulumi:"enableAhas"`
// The enable grey tag route. Default value: `false`. Valid values:
EnableGreyTagRoute *bool `pulumi:"enableGreyTagRoute"`
// Container environment variable parameters. For example,` [{"name":"envtmp","value":"0"}]`. The value description is as follows:
Envs *string `pulumi:"envs"`
// The ID of the corresponding Secret.
ImagePullSecrets *string `pulumi:"imagePullSecrets"`
// Mirror address. Only Image type applications can configure the mirror address.
ImageUrl *string `pulumi:"imageUrl"`
// The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartArgs *string `pulumi:"jarStartArgs"`
// The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartOptions *string `pulumi:"jarStartOptions"`
// The JDK version that the deployment package depends on. Image type applications are not supported.
Jdk *string `pulumi:"jdk"`
// The logging configurations of ApsaraMQ for Kafka. See `kafkaConfigs` below.
KafkaConfigs *ApplicationKafkaConfigs `pulumi:"kafkaConfigs"`
// Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
// **NOTE:** Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
//
// Deprecated: Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
Liveness *string `pulumi:"liveness"`
// The liveness check settings of the container. See `livenessV2` below.
LivenessV2 *ApplicationLivenessV2 `pulumi:"livenessV2"`
// The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `2048`, `4096`, `8192`, `12288`, `16384`, `24576`, `32768`, `65536`, `131072`.
Memory *int `pulumi:"memory"`
// Select the Nacos registry. Valid values: `0`, `1`, `2`.
MicroRegistration *string `pulumi:"microRegistration"`
// Minimum Survival Instance Percentage. **NOTE:** When `minReadyInstances` and `minReadyInstanceRatio` are passed at the same time, and the value of `minReadyInstanceRatio` is not -1, the `minReadyInstanceRatio` parameter shall prevail. Assuming that `minReadyInstances` is 5 and `minReadyInstanceRatio` is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:
// * `-1`: Initialization value, indicating that percentages are not used.
// * `0~100`: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstanceRatio *int `pulumi:"minReadyInstanceRatio"`
// The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MinReadyInstances *int `pulumi:"minReadyInstances"`
// SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NamespaceId *string `pulumi:"namespaceId"`
// The configurations for mounting the NAS file system. See `nasConfigs` below.
NasConfigs []ApplicationNasConfig `pulumi:"nasConfigs"`
// OSS AccessKey ID.
OssAkId *string `pulumi:"ossAkId"`
// OSS AccessKey Secret.
OssAkSecret *string `pulumi:"ossAkSecret"`
// OSS mount description information. **NOTE:** Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
//
// Deprecated: Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
OssMountDescs *string `pulumi:"ossMountDescs"`
// The description of the mounted Object Storage Service (OSS) bucket. See `ossMountDescsV2` below.
OssMountDescsV2s []ApplicationOssMountDescsV2 `pulumi:"ossMountDescsV2s"`
// Application package type. Valid values: `FatJar`, `War`, `Image`, `PhpZip`, `IMAGE_PHP_5_4`, `IMAGE_PHP_5_4_ALPINE`, `IMAGE_PHP_5_5`, `IMAGE_PHP_5_5_ALPINE`, `IMAGE_PHP_5_6`, `IMAGE_PHP_5_6_ALPINE`, `IMAGE_PHP_7_0`, `IMAGE_PHP_7_0_ALPINE`, `IMAGE_PHP_7_1`, `IMAGE_PHP_7_1_ALPINE`, `IMAGE_PHP_7_2`, `IMAGE_PHP_7_2_ALPINE`, `IMAGE_PHP_7_3`, `IMAGE_PHP_7_3_ALPINE`, `PythonZip`.
PackageType *string `pulumi:"packageType"`
// Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageUrl *string `pulumi:"packageUrl"`
// The version number of the deployment package. Required when the Package Type is War and FatJar.
PackageVersion *string `pulumi:"packageVersion"`
// The Php environment.
Php *string `pulumi:"php"`
// The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpArmsConfigLocation *string `pulumi:"phpArmsConfigLocation"`
// PHP configuration file content.
PhpConfig *string `pulumi:"phpConfig"`
// PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PhpConfigLocation *string `pulumi:"phpConfigLocation"`
// Execute the script after startup, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
//
// Deprecated: Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
PostStart *string `pulumi:"postStart"`
// The script that is run immediately after the container is started. See `postStartV2` below.
PostStartV2 *ApplicationPostStartV2 `pulumi:"postStartV2"`
// Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
//
// Deprecated: Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
PreStop *string `pulumi:"preStop"`
// The script that is run before the container is stopped. See `preStopV2` below.
PreStopV2 *ApplicationPreStopV2 `pulumi:"preStopV2"`
// The programming language that is used to create the application. Valid values: `java`, `php`, `other`.
ProgrammingLanguage *string `pulumi:"programmingLanguage"`
// The configurations of Kubernetes Service-based service registration and discovery. See `pvtzDiscoverySvc` below.
PvtzDiscoverySvc *ApplicationPvtzDiscoverySvc `pulumi:"pvtzDiscoverySvc"`
// Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {`exec`:{`command`:[`sh`,"-c","cat /home/admin/start.sh"]},`initialDelaySeconds`:30,`periodSeconds`:30,"timeoutSeconds ":2}. Valid values: `command`, `initialDelaySeconds`, `periodSeconds`, `timeoutSeconds`.
// **NOTE:** Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
//
// Deprecated: Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
Readiness *string `pulumi:"readiness"`
// The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See `readinessV2` below.
ReadinessV2 *ApplicationReadinessV2 `pulumi:"readinessV2"`
// Initial number of instances.
Replicas *int `pulumi:"replicas"`
// Security group ID.
SecurityGroupId *string `pulumi:"securityGroupId"`
// SLS configuration.
SlsConfigs *string `pulumi:"slsConfigs"`
// The status of the resource. Valid values: `RUNNING`, `STOPPED`, `UNKNOWN`.
Status *string `pulumi:"status"`
// A mapping of tags to assign to the resource.
Tags map[string]interface{} `pulumi:"tags"`
// Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
TerminationGracePeriodSeconds *int `pulumi:"terminationGracePeriodSeconds"`
// Time zone. Default value: `Asia/Shanghai`.
Timezone *string `pulumi:"timezone"`
// Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: `contextInputType`, `contextPath`, `httpPort`, `maxThreads`, `uriEncoding`, `useBodyEncoding`, `useDefaultConfig`.
// **NOTE:** Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
//
// Deprecated: Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
TomcatConfig *string `pulumi:"tomcatConfig"`
// The Tomcat configuration. See `tomcatConfigV2` below.
TomcatConfigV2 *ApplicationTomcatConfigV2 `pulumi:"tomcatConfigV2"`
// The update strategy. **NOTE:** Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
//
// Deprecated: Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
UpdateStrategy *string `pulumi:"updateStrategy"`
// The release policy. See `updateStrategyV2` below.
UpdateStrategyV2 *ApplicationUpdateStrategyV2 `pulumi:"updateStrategyV2"`
// The vpc id.
VpcId *string `pulumi:"vpcId"`
// The vswitch id. **NOTE:** From version 1.211.0, `vswitchId` can be modified.
VswitchId *string `pulumi:"vswitchId"`
// WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
WarStartOptions *string `pulumi:"warStartOptions"`
// The version of tomcat that the deployment package depends on. Image type applications are not supported.
WebContainer *string `pulumi:"webContainer"`
}
type ApplicationState struct {
// The ARN of the RAM role required when pulling images across accounts. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrAssumeRoleArn pulumi.StringPtrInput
// The ID of the ACR EE instance. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrInstanceId pulumi.StringPtrInput
// Application description information. No more than 1024 characters. **NOTE:** From version 1.211.0, `appDescription` can be modified.
AppDescription pulumi.StringPtrInput
// Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
AppName pulumi.StringPtrInput
// The auto config. Valid values: `true`, `false`.
AutoConfig pulumi.BoolPtrInput
// The auto enable application scaling rule. Valid values: `true`, `false`.
AutoEnableApplicationScalingRule pulumi.BoolPtrInput
// The batch wait time.
BatchWaitTime pulumi.IntPtrInput
// The change order desc.
ChangeOrderDesc pulumi.StringPtrInput
// Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
Command pulumi.StringPtrInput
// Mirror startup command parameters. The parameters required for the above start command. For example: 1d. **NOTE:** Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
//
// Deprecated: Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
CommandArgs pulumi.StringPtrInput
// The parameters of the image startup command.
CommandArgsV2s pulumi.StringArrayInput
// ConfigMap mount description. **NOTE:** Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
//
// Deprecated: Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
ConfigMapMountDesc pulumi.StringPtrInput
// The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See `configMapMountDescV2` below.
ConfigMapMountDescV2s ApplicationConfigMapMountDescV2ArrayInput
// The CPU required for each instance, in millicores, cannot be 0. Valid values: `500`, `1000`, `2000`, `4000`, `8000`, `16000`, `32000`.
Cpu pulumi.IntPtrInput
// Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. **NOTE:** Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
//
// Deprecated: Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
CustomHostAlias pulumi.StringPtrInput
// The custom mapping between the hostname and IP address in the container. See `customHostAliasV2` below.
CustomHostAliasV2s ApplicationCustomHostAliasV2ArrayInput
// The deploy. Valid values: `true`, `false`.
Deploy pulumi.BoolPtrInput
// The operating environment used by the Pandora application.
EdasContainerVersion pulumi.StringPtrInput
// The enable ahas. Valid values: `true`, `false`.
EnableAhas pulumi.StringPtrInput
// The enable grey tag route. Default value: `false`. Valid values:
EnableGreyTagRoute pulumi.BoolPtrInput
// Container environment variable parameters. For example,` [{"name":"envtmp","value":"0"}]`. The value description is as follows:
Envs pulumi.StringPtrInput
// The ID of the corresponding Secret.
ImagePullSecrets pulumi.StringPtrInput
// Mirror address. Only Image type applications can configure the mirror address.
ImageUrl pulumi.StringPtrInput
// The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartArgs pulumi.StringPtrInput
// The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartOptions pulumi.StringPtrInput
// The JDK version that the deployment package depends on. Image type applications are not supported.
Jdk pulumi.StringPtrInput
// The logging configurations of ApsaraMQ for Kafka. See `kafkaConfigs` below.
KafkaConfigs ApplicationKafkaConfigsPtrInput
// Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
// **NOTE:** Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
//
// Deprecated: Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
Liveness pulumi.StringPtrInput
// The liveness check settings of the container. See `livenessV2` below.
LivenessV2 ApplicationLivenessV2PtrInput
// The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `2048`, `4096`, `8192`, `12288`, `16384`, `24576`, `32768`, `65536`, `131072`.
Memory pulumi.IntPtrInput
// Select the Nacos registry. Valid values: `0`, `1`, `2`.
MicroRegistration pulumi.StringPtrInput
// Minimum Survival Instance Percentage. **NOTE:** When `minReadyInstances` and `minReadyInstanceRatio` are passed at the same time, and the value of `minReadyInstanceRatio` is not -1, the `minReadyInstanceRatio` parameter shall prevail. Assuming that `minReadyInstances` is 5 and `minReadyInstanceRatio` is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:
// * `-1`: Initialization value, indicating that percentages are not used.
// * `0~100`: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstanceRatio pulumi.IntPtrInput
// The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MinReadyInstances pulumi.IntPtrInput
// SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NamespaceId pulumi.StringPtrInput
// The configurations for mounting the NAS file system. See `nasConfigs` below.
NasConfigs ApplicationNasConfigArrayInput
// OSS AccessKey ID.
OssAkId pulumi.StringPtrInput
// OSS AccessKey Secret.
OssAkSecret pulumi.StringPtrInput
// OSS mount description information. **NOTE:** Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
//
// Deprecated: Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
OssMountDescs pulumi.StringPtrInput
// The description of the mounted Object Storage Service (OSS) bucket. See `ossMountDescsV2` below.
OssMountDescsV2s ApplicationOssMountDescsV2ArrayInput
// Application package type. Valid values: `FatJar`, `War`, `Image`, `PhpZip`, `IMAGE_PHP_5_4`, `IMAGE_PHP_5_4_ALPINE`, `IMAGE_PHP_5_5`, `IMAGE_PHP_5_5_ALPINE`, `IMAGE_PHP_5_6`, `IMAGE_PHP_5_6_ALPINE`, `IMAGE_PHP_7_0`, `IMAGE_PHP_7_0_ALPINE`, `IMAGE_PHP_7_1`, `IMAGE_PHP_7_1_ALPINE`, `IMAGE_PHP_7_2`, `IMAGE_PHP_7_2_ALPINE`, `IMAGE_PHP_7_3`, `IMAGE_PHP_7_3_ALPINE`, `PythonZip`.
PackageType pulumi.StringPtrInput
// Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageUrl pulumi.StringPtrInput
// The version number of the deployment package. Required when the Package Type is War and FatJar.
PackageVersion pulumi.StringPtrInput
// The Php environment.
Php pulumi.StringPtrInput
// The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpArmsConfigLocation pulumi.StringPtrInput
// PHP configuration file content.
PhpConfig pulumi.StringPtrInput
// PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PhpConfigLocation pulumi.StringPtrInput
// Execute the script after startup, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
//
// Deprecated: Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
PostStart pulumi.StringPtrInput
// The script that is run immediately after the container is started. See `postStartV2` below.
PostStartV2 ApplicationPostStartV2PtrInput
// Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
//
// Deprecated: Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
PreStop pulumi.StringPtrInput
// The script that is run before the container is stopped. See `preStopV2` below.
PreStopV2 ApplicationPreStopV2PtrInput
// The programming language that is used to create the application. Valid values: `java`, `php`, `other`.
ProgrammingLanguage pulumi.StringPtrInput
// The configurations of Kubernetes Service-based service registration and discovery. See `pvtzDiscoverySvc` below.
PvtzDiscoverySvc ApplicationPvtzDiscoverySvcPtrInput
// Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {`exec`:{`command`:[`sh`,"-c","cat /home/admin/start.sh"]},`initialDelaySeconds`:30,`periodSeconds`:30,"timeoutSeconds ":2}. Valid values: `command`, `initialDelaySeconds`, `periodSeconds`, `timeoutSeconds`.
// **NOTE:** Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
//
// Deprecated: Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
Readiness pulumi.StringPtrInput
// The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See `readinessV2` below.
ReadinessV2 ApplicationReadinessV2PtrInput
// Initial number of instances.
Replicas pulumi.IntPtrInput
// Security group ID.
SecurityGroupId pulumi.StringPtrInput
// SLS configuration.
SlsConfigs pulumi.StringPtrInput
// The status of the resource. Valid values: `RUNNING`, `STOPPED`, `UNKNOWN`.
Status pulumi.StringPtrInput
// A mapping of tags to assign to the resource.
Tags pulumi.MapInput
// Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
TerminationGracePeriodSeconds pulumi.IntPtrInput
// Time zone. Default value: `Asia/Shanghai`.
Timezone pulumi.StringPtrInput
// Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: `contextInputType`, `contextPath`, `httpPort`, `maxThreads`, `uriEncoding`, `useBodyEncoding`, `useDefaultConfig`.
// **NOTE:** Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
//
// Deprecated: Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
TomcatConfig pulumi.StringPtrInput
// The Tomcat configuration. See `tomcatConfigV2` below.
TomcatConfigV2 ApplicationTomcatConfigV2PtrInput
// The update strategy. **NOTE:** Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
//
// Deprecated: Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
UpdateStrategy pulumi.StringPtrInput
// The release policy. See `updateStrategyV2` below.
UpdateStrategyV2 ApplicationUpdateStrategyV2PtrInput
// The vpc id.
VpcId pulumi.StringPtrInput
// The vswitch id. **NOTE:** From version 1.211.0, `vswitchId` can be modified.
VswitchId pulumi.StringPtrInput
// WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
WarStartOptions pulumi.StringPtrInput
// The version of tomcat that the deployment package depends on. Image type applications are not supported.
WebContainer pulumi.StringPtrInput
}
func (ApplicationState) ElementType() reflect.Type {
return reflect.TypeOf((*applicationState)(nil)).Elem()
}
type applicationArgs struct {
// The ARN of the RAM role required when pulling images across accounts. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrAssumeRoleArn *string `pulumi:"acrAssumeRoleArn"`
// The ID of the ACR EE instance. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrInstanceId *string `pulumi:"acrInstanceId"`
// Application description information. No more than 1024 characters. **NOTE:** From version 1.211.0, `appDescription` can be modified.
AppDescription *string `pulumi:"appDescription"`
// Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
AppName string `pulumi:"appName"`
// The auto config. Valid values: `true`, `false`.
AutoConfig *bool `pulumi:"autoConfig"`
// The auto enable application scaling rule. Valid values: `true`, `false`.
AutoEnableApplicationScalingRule *bool `pulumi:"autoEnableApplicationScalingRule"`
// The batch wait time.
BatchWaitTime *int `pulumi:"batchWaitTime"`
// The change order desc.
ChangeOrderDesc *string `pulumi:"changeOrderDesc"`
// Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
Command *string `pulumi:"command"`
// Mirror startup command parameters. The parameters required for the above start command. For example: 1d. **NOTE:** Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
//
// Deprecated: Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
CommandArgs *string `pulumi:"commandArgs"`
// The parameters of the image startup command.
CommandArgsV2s []string `pulumi:"commandArgsV2s"`
// ConfigMap mount description. **NOTE:** Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
//
// Deprecated: Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
ConfigMapMountDesc *string `pulumi:"configMapMountDesc"`
// The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See `configMapMountDescV2` below.
ConfigMapMountDescV2s []ApplicationConfigMapMountDescV2 `pulumi:"configMapMountDescV2s"`
// The CPU required for each instance, in millicores, cannot be 0. Valid values: `500`, `1000`, `2000`, `4000`, `8000`, `16000`, `32000`.
Cpu *int `pulumi:"cpu"`
// Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. **NOTE:** Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
//
// Deprecated: Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
CustomHostAlias *string `pulumi:"customHostAlias"`
// The custom mapping between the hostname and IP address in the container. See `customHostAliasV2` below.
CustomHostAliasV2s []ApplicationCustomHostAliasV2 `pulumi:"customHostAliasV2s"`
// The deploy. Valid values: `true`, `false`.
Deploy *bool `pulumi:"deploy"`
// The operating environment used by the Pandora application.
EdasContainerVersion *string `pulumi:"edasContainerVersion"`
// The enable ahas. Valid values: `true`, `false`.
EnableAhas *string `pulumi:"enableAhas"`
// The enable grey tag route. Default value: `false`. Valid values:
EnableGreyTagRoute *bool `pulumi:"enableGreyTagRoute"`
// Container environment variable parameters. For example,` [{"name":"envtmp","value":"0"}]`. The value description is as follows:
Envs *string `pulumi:"envs"`
// The ID of the corresponding Secret.
ImagePullSecrets *string `pulumi:"imagePullSecrets"`
// Mirror address. Only Image type applications can configure the mirror address.
ImageUrl *string `pulumi:"imageUrl"`
// The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartArgs *string `pulumi:"jarStartArgs"`
// The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartOptions *string `pulumi:"jarStartOptions"`
// The JDK version that the deployment package depends on. Image type applications are not supported.
Jdk *string `pulumi:"jdk"`
// The logging configurations of ApsaraMQ for Kafka. See `kafkaConfigs` below.
KafkaConfigs *ApplicationKafkaConfigs `pulumi:"kafkaConfigs"`
// Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
// **NOTE:** Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
//
// Deprecated: Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
Liveness *string `pulumi:"liveness"`
// The liveness check settings of the container. See `livenessV2` below.
LivenessV2 *ApplicationLivenessV2 `pulumi:"livenessV2"`
// The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `2048`, `4096`, `8192`, `12288`, `16384`, `24576`, `32768`, `65536`, `131072`.
Memory *int `pulumi:"memory"`
// Select the Nacos registry. Valid values: `0`, `1`, `2`.
MicroRegistration *string `pulumi:"microRegistration"`
// Minimum Survival Instance Percentage. **NOTE:** When `minReadyInstances` and `minReadyInstanceRatio` are passed at the same time, and the value of `minReadyInstanceRatio` is not -1, the `minReadyInstanceRatio` parameter shall prevail. Assuming that `minReadyInstances` is 5 and `minReadyInstanceRatio` is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:
// * `-1`: Initialization value, indicating that percentages are not used.
// * `0~100`: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstanceRatio *int `pulumi:"minReadyInstanceRatio"`
// The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MinReadyInstances *int `pulumi:"minReadyInstances"`
// SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NamespaceId *string `pulumi:"namespaceId"`
// The configurations for mounting the NAS file system. See `nasConfigs` below.
NasConfigs []ApplicationNasConfig `pulumi:"nasConfigs"`
// OSS AccessKey ID.
OssAkId *string `pulumi:"ossAkId"`
// OSS AccessKey Secret.
OssAkSecret *string `pulumi:"ossAkSecret"`
// OSS mount description information. **NOTE:** Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
//
// Deprecated: Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
OssMountDescs *string `pulumi:"ossMountDescs"`
// The description of the mounted Object Storage Service (OSS) bucket. See `ossMountDescsV2` below.
OssMountDescsV2s []ApplicationOssMountDescsV2 `pulumi:"ossMountDescsV2s"`
// Application package type. Valid values: `FatJar`, `War`, `Image`, `PhpZip`, `IMAGE_PHP_5_4`, `IMAGE_PHP_5_4_ALPINE`, `IMAGE_PHP_5_5`, `IMAGE_PHP_5_5_ALPINE`, `IMAGE_PHP_5_6`, `IMAGE_PHP_5_6_ALPINE`, `IMAGE_PHP_7_0`, `IMAGE_PHP_7_0_ALPINE`, `IMAGE_PHP_7_1`, `IMAGE_PHP_7_1_ALPINE`, `IMAGE_PHP_7_2`, `IMAGE_PHP_7_2_ALPINE`, `IMAGE_PHP_7_3`, `IMAGE_PHP_7_3_ALPINE`, `PythonZip`.
PackageType string `pulumi:"packageType"`
// Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageUrl *string `pulumi:"packageUrl"`
// The version number of the deployment package. Required when the Package Type is War and FatJar.
PackageVersion *string `pulumi:"packageVersion"`
// The Php environment.
Php *string `pulumi:"php"`
// The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpArmsConfigLocation *string `pulumi:"phpArmsConfigLocation"`
// PHP configuration file content.
PhpConfig *string `pulumi:"phpConfig"`
// PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PhpConfigLocation *string `pulumi:"phpConfigLocation"`
// Execute the script after startup, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
//
// Deprecated: Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
PostStart *string `pulumi:"postStart"`
// The script that is run immediately after the container is started. See `postStartV2` below.
PostStartV2 *ApplicationPostStartV2 `pulumi:"postStartV2"`
// Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
//
// Deprecated: Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
PreStop *string `pulumi:"preStop"`
// The script that is run before the container is stopped. See `preStopV2` below.
PreStopV2 *ApplicationPreStopV2 `pulumi:"preStopV2"`
// The programming language that is used to create the application. Valid values: `java`, `php`, `other`.
ProgrammingLanguage *string `pulumi:"programmingLanguage"`
// The configurations of Kubernetes Service-based service registration and discovery. See `pvtzDiscoverySvc` below.
PvtzDiscoverySvc *ApplicationPvtzDiscoverySvc `pulumi:"pvtzDiscoverySvc"`
// Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {`exec`:{`command`:[`sh`,"-c","cat /home/admin/start.sh"]},`initialDelaySeconds`:30,`periodSeconds`:30,"timeoutSeconds ":2}. Valid values: `command`, `initialDelaySeconds`, `periodSeconds`, `timeoutSeconds`.
// **NOTE:** Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
//
// Deprecated: Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
Readiness *string `pulumi:"readiness"`
// The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See `readinessV2` below.
ReadinessV2 *ApplicationReadinessV2 `pulumi:"readinessV2"`
// Initial number of instances.
Replicas int `pulumi:"replicas"`
// Security group ID.
SecurityGroupId *string `pulumi:"securityGroupId"`
// SLS configuration.
SlsConfigs *string `pulumi:"slsConfigs"`
// The status of the resource. Valid values: `RUNNING`, `STOPPED`, `UNKNOWN`.
Status *string `pulumi:"status"`
// A mapping of tags to assign to the resource.
Tags map[string]interface{} `pulumi:"tags"`
// Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
TerminationGracePeriodSeconds *int `pulumi:"terminationGracePeriodSeconds"`
// Time zone. Default value: `Asia/Shanghai`.
Timezone *string `pulumi:"timezone"`
// Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: `contextInputType`, `contextPath`, `httpPort`, `maxThreads`, `uriEncoding`, `useBodyEncoding`, `useDefaultConfig`.
// **NOTE:** Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
//
// Deprecated: Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
TomcatConfig *string `pulumi:"tomcatConfig"`
// The Tomcat configuration. See `tomcatConfigV2` below.
TomcatConfigV2 *ApplicationTomcatConfigV2 `pulumi:"tomcatConfigV2"`
// The update strategy. **NOTE:** Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
//
// Deprecated: Field `updateStrategy` has been deprecated from provider version 1.211.0. New field `updateStrategyV2` instead.
UpdateStrategy *string `pulumi:"updateStrategy"`
// The release policy. See `updateStrategyV2` below.
UpdateStrategyV2 *ApplicationUpdateStrategyV2 `pulumi:"updateStrategyV2"`
// The vpc id.
VpcId *string `pulumi:"vpcId"`
// The vswitch id. **NOTE:** From version 1.211.0, `vswitchId` can be modified.
VswitchId *string `pulumi:"vswitchId"`
// WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
WarStartOptions *string `pulumi:"warStartOptions"`
// The version of tomcat that the deployment package depends on. Image type applications are not supported.
WebContainer *string `pulumi:"webContainer"`
}
// The set of arguments for constructing a Application resource.
type ApplicationArgs struct {
// The ARN of the RAM role required when pulling images across accounts. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrAssumeRoleArn pulumi.StringPtrInput
// The ID of the ACR EE instance. Only necessary if the imageUrl is pointing to an ACR EE instance.
AcrInstanceId pulumi.StringPtrInput
// Application description information. No more than 1024 characters. **NOTE:** From version 1.211.0, `appDescription` can be modified.
AppDescription pulumi.StringPtrInput
// Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
AppName pulumi.StringInput
// The auto config. Valid values: `true`, `false`.
AutoConfig pulumi.BoolPtrInput
// The auto enable application scaling rule. Valid values: `true`, `false`.
AutoEnableApplicationScalingRule pulumi.BoolPtrInput
// The batch wait time.
BatchWaitTime pulumi.IntPtrInput
// The change order desc.
ChangeOrderDesc pulumi.StringPtrInput
// Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
Command pulumi.StringPtrInput
// Mirror startup command parameters. The parameters required for the above start command. For example: 1d. **NOTE:** Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
//
// Deprecated: Field `commandArgs` has been deprecated from provider version 1.211.0. New field `commandArgsV2` instead.
CommandArgs pulumi.StringPtrInput
// The parameters of the image startup command.
CommandArgsV2s pulumi.StringArrayInput
// ConfigMap mount description. **NOTE:** Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
//
// Deprecated: Field `configMapMountDesc` has been deprecated from provider version 1.211.0. New field `configMapMountDescV2` instead.
ConfigMapMountDesc pulumi.StringPtrInput
// The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See `configMapMountDescV2` below.
ConfigMapMountDescV2s ApplicationConfigMapMountDescV2ArrayInput
// The CPU required for each instance, in millicores, cannot be 0. Valid values: `500`, `1000`, `2000`, `4000`, `8000`, `16000`, `32000`.
Cpu pulumi.IntPtrInput
// Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. **NOTE:** Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
//
// Deprecated: Field `customHostAlias` has been deprecated from provider version 1.211.0. New field `customHostAliasV2` instead.
CustomHostAlias pulumi.StringPtrInput
// The custom mapping between the hostname and IP address in the container. See `customHostAliasV2` below.
CustomHostAliasV2s ApplicationCustomHostAliasV2ArrayInput
// The deploy. Valid values: `true`, `false`.
Deploy pulumi.BoolPtrInput
// The operating environment used by the Pandora application.
EdasContainerVersion pulumi.StringPtrInput
// The enable ahas. Valid values: `true`, `false`.
EnableAhas pulumi.StringPtrInput
// The enable grey tag route. Default value: `false`. Valid values:
EnableGreyTagRoute pulumi.BoolPtrInput
// Container environment variable parameters. For example,` [{"name":"envtmp","value":"0"}]`. The value description is as follows:
Envs pulumi.StringPtrInput
// The ID of the corresponding Secret.
ImagePullSecrets pulumi.StringPtrInput
// Mirror address. Only Image type applications can configure the mirror address.
ImageUrl pulumi.StringPtrInput
// The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartArgs pulumi.StringPtrInput
// The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
JarStartOptions pulumi.StringPtrInput
// The JDK version that the deployment package depends on. Image type applications are not supported.
Jdk pulumi.StringPtrInput
// The logging configurations of ApsaraMQ for Kafka. See `kafkaConfigs` below.
KafkaConfigs ApplicationKafkaConfigsPtrInput
// Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
// **NOTE:** Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
//
// Deprecated: Field `liveness` has been deprecated from provider version 1.211.0. New field `livenessV2` instead.
Liveness pulumi.StringPtrInput
// The liveness check settings of the container. See `livenessV2` below.
LivenessV2 ApplicationLivenessV2PtrInput
// The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `2048`, `4096`, `8192`, `12288`, `16384`, `24576`, `32768`, `65536`, `131072`.
Memory pulumi.IntPtrInput
// Select the Nacos registry. Valid values: `0`, `1`, `2`.
MicroRegistration pulumi.StringPtrInput
// Minimum Survival Instance Percentage. **NOTE:** When `minReadyInstances` and `minReadyInstanceRatio` are passed at the same time, and the value of `minReadyInstanceRatio` is not -1, the `minReadyInstanceRatio` parameter shall prevail. Assuming that `minReadyInstances` is 5 and `minReadyInstanceRatio` is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:
// * `-1`: Initialization value, indicating that percentages are not used.
// * `0~100`: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstanceRatio pulumi.IntPtrInput
// The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
MinReadyInstances pulumi.IntPtrInput
// SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
NamespaceId pulumi.StringPtrInput
// The configurations for mounting the NAS file system. See `nasConfigs` below.
NasConfigs ApplicationNasConfigArrayInput
// OSS AccessKey ID.
OssAkId pulumi.StringPtrInput
// OSS AccessKey Secret.
OssAkSecret pulumi.StringPtrInput
// OSS mount description information. **NOTE:** Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
//
// Deprecated: Field `ossMountDescs` has been deprecated from provider version 1.211.0. New field `ossMountDescsV2` instead.
OssMountDescs pulumi.StringPtrInput
// The description of the mounted Object Storage Service (OSS) bucket. See `ossMountDescsV2` below.
OssMountDescsV2s ApplicationOssMountDescsV2ArrayInput
// Application package type. Valid values: `FatJar`, `War`, `Image`, `PhpZip`, `IMAGE_PHP_5_4`, `IMAGE_PHP_5_4_ALPINE`, `IMAGE_PHP_5_5`, `IMAGE_PHP_5_5_ALPINE`, `IMAGE_PHP_5_6`, `IMAGE_PHP_5_6_ALPINE`, `IMAGE_PHP_7_0`, `IMAGE_PHP_7_0_ALPINE`, `IMAGE_PHP_7_1`, `IMAGE_PHP_7_1_ALPINE`, `IMAGE_PHP_7_2`, `IMAGE_PHP_7_2_ALPINE`, `IMAGE_PHP_7_3`, `IMAGE_PHP_7_3_ALPINE`, `PythonZip`.
PackageType pulumi.StringInput
// Deployment package address. Only FatJar or War type applications can configure the deployment package address.
PackageUrl pulumi.StringPtrInput
// The version number of the deployment package. Required when the Package Type is War and FatJar.
PackageVersion pulumi.StringPtrInput
// The Php environment.
Php pulumi.StringPtrInput
// The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.
PhpArmsConfigLocation pulumi.StringPtrInput
// PHP configuration file content.
PhpConfig pulumi.StringPtrInput
// PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
PhpConfigLocation pulumi.StringPtrInput
// Execute the script after startup, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
//
// Deprecated: Field `postStart` has been deprecated from provider version 1.211.0. New field `postStartV2` instead.
PostStart pulumi.StringPtrInput
// The script that is run immediately after the container is started. See `postStartV2` below.
PostStartV2 ApplicationPostStartV2PtrInput
// Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. **NOTE:** Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
//
// Deprecated: Field `preStop` has been deprecated from provider version 1.211.0. New field `preStopV2` instead.
PreStop pulumi.StringPtrInput
// The script that is run before the container is stopped. See `preStopV2` below.
PreStopV2 ApplicationPreStopV2PtrInput
// The programming language that is used to create the application. Valid values: `java`, `php`, `other`.
ProgrammingLanguage pulumi.StringPtrInput
// The configurations of Kubernetes Service-based service registration and discovery. See `pvtzDiscoverySvc` below.
PvtzDiscoverySvc ApplicationPvtzDiscoverySvcPtrInput
// Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {`exec`:{`command`:[`sh`,"-c","cat /home/admin/start.sh"]},`initialDelaySeconds`:30,`periodSeconds`:30,"timeoutSeconds ":2}. Valid values: `command`, `initialDelaySeconds`, `periodSeconds`, `timeoutSeconds`.
// **NOTE:** Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
//
// Deprecated: Field `readiness` has been deprecated from provider version 1.211.0. New field `readinessV2` instead.
Readiness pulumi.StringPtrInput
// The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See `readinessV2` below.
ReadinessV2 ApplicationReadinessV2PtrInput
// Initial number of instances.
Replicas pulumi.IntInput
// Security group ID.
SecurityGroupId pulumi.StringPtrInput
// SLS configuration.
SlsConfigs pulumi.StringPtrInput
// The status of the resource. Valid values: `RUNNING`, `STOPPED`, `UNKNOWN`.
Status pulumi.StringPtrInput
// A mapping of tags to assign to the resource.
Tags pulumi.MapInput
// Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
TerminationGracePeriodSeconds pulumi.IntPtrInput
// Time zone. Default value: `Asia/Shanghai`.
Timezone pulumi.StringPtrInput
// Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: `contextInputType`, `contextPath`, `httpPort`, `maxThreads`, `uriEncoding`, `useBodyEncoding`, `useDefaultConfig`.
// **NOTE:** Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
//
// Deprecated: Field `tomcatConfig` has been deprecated from provider version 1.211.0. New field `tomcatConfigV2` instead.
TomcatConfig pulumi.StringPtrInput