Documentation
¶
Index ¶
- type Application
- func (*Application) ElementType() reflect.Type
- func (i *Application) ToApplicationOutput() ApplicationOutput
- func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
- func (i *Application) ToApplicationPtrOutput() ApplicationPtrOutput
- func (i *Application) ToApplicationPtrOutputWithContext(ctx context.Context) ApplicationPtrOutput
- type ApplicationArgs
- type ApplicationArray
- type ApplicationArrayInput
- type ApplicationArrayOutput
- func (ApplicationArrayOutput) ElementType() reflect.Type
- func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput
- func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput
- func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
- type ApplicationInput
- type ApplicationMap
- type ApplicationMapInput
- type ApplicationMapOutput
- func (ApplicationMapOutput) ElementType() reflect.Type
- func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput
- func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput
- func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
- type ApplicationOutput
- func (ApplicationOutput) ElementType() reflect.Type
- func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
- func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
- func (o ApplicationOutput) ToApplicationPtrOutput() ApplicationPtrOutput
- func (o ApplicationOutput) ToApplicationPtrOutputWithContext(ctx context.Context) ApplicationPtrOutput
- type ApplicationPtrInput
- type ApplicationPtrOutput
- type ApplicationState
- type ConfigMap
- func (*ConfigMap) ElementType() reflect.Type
- func (i *ConfigMap) ToConfigMapOutput() ConfigMapOutput
- func (i *ConfigMap) ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput
- func (i *ConfigMap) ToConfigMapPtrOutput() ConfigMapPtrOutput
- func (i *ConfigMap) ToConfigMapPtrOutputWithContext(ctx context.Context) ConfigMapPtrOutput
- type ConfigMapArgs
- type ConfigMapArray
- type ConfigMapArrayInput
- type ConfigMapArrayOutput
- func (ConfigMapArrayOutput) ElementType() reflect.Type
- func (o ConfigMapArrayOutput) Index(i pulumi.IntInput) ConfigMapOutput
- func (o ConfigMapArrayOutput) ToConfigMapArrayOutput() ConfigMapArrayOutput
- func (o ConfigMapArrayOutput) ToConfigMapArrayOutputWithContext(ctx context.Context) ConfigMapArrayOutput
- type ConfigMapInput
- type ConfigMapMap
- type ConfigMapMapInput
- type ConfigMapMapOutput
- type ConfigMapOutput
- func (ConfigMapOutput) ElementType() reflect.Type
- func (o ConfigMapOutput) ToConfigMapOutput() ConfigMapOutput
- func (o ConfigMapOutput) ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput
- func (o ConfigMapOutput) ToConfigMapPtrOutput() ConfigMapPtrOutput
- func (o ConfigMapOutput) ToConfigMapPtrOutputWithContext(ctx context.Context) ConfigMapPtrOutput
- type ConfigMapPtrInput
- type ConfigMapPtrOutput
- type ConfigMapState
- type GetApplicationsApplication
- type GetApplicationsApplicationArgs
- func (GetApplicationsApplicationArgs) ElementType() reflect.Type
- func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
- func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
- type GetApplicationsApplicationArray
- func (GetApplicationsApplicationArray) ElementType() reflect.Type
- func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
- func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
- type GetApplicationsApplicationArrayInput
- type GetApplicationsApplicationArrayOutput
- func (GetApplicationsApplicationArrayOutput) ElementType() reflect.Type
- func (o GetApplicationsApplicationArrayOutput) Index(i pulumi.IntInput) GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
- func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
- type GetApplicationsApplicationInput
- type GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationOutput) AcrAssumeRoleArn() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) AppDescription() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) AppName() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ApplicationId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Command() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) CommandArgs() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ConfigMapMountDesc() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Cpu() pulumi.IntOutput
- func (o GetApplicationsApplicationOutput) CreateTime() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) CustomHostAlias() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) EdasContainerVersion() pulumi.StringOutput
- func (GetApplicationsApplicationOutput) ElementType() reflect.Type
- func (o GetApplicationsApplicationOutput) Envs() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Id() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ImageUrl() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) JarStartArgs() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) JarStartOptions() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Jdk() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Liveness() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Memory() pulumi.IntOutput
- func (o GetApplicationsApplicationOutput) MinReadyInstances() pulumi.IntOutput
- func (o GetApplicationsApplicationOutput) MountDesc() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) MountHost() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) NamespaceId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) NasId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) OssAkId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) OssAkSecret() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) OssMountDescs() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PackageType() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PackageUrl() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PackageVersion() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PhpArmsConfigLocation() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PhpConfig() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PhpConfigLocation() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PostStart() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) PreStop() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Readiness() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) RegionId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Replicas() pulumi.IntOutput
- func (o GetApplicationsApplicationOutput) RepoName() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) RepoNamespace() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) RepoOriginType() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) SecurityGroupId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) SlsConfigs() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) Status() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) TerminationGracePeriodSeconds() pulumi.IntOutput
- func (o GetApplicationsApplicationOutput) Timezone() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
- func (o GetApplicationsApplicationOutput) TomcatConfig() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) VpcId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) VswitchId() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) WarStartOptions() pulumi.StringOutput
- func (o GetApplicationsApplicationOutput) WebContainer() pulumi.StringOutput
- type GetApplicationsArgs
- type GetApplicationsResult
- type GetConfigMapsArgs
- type GetConfigMapsMap
- type GetConfigMapsMapArgs
- type GetConfigMapsMapArray
- type GetConfigMapsMapArrayInput
- type GetConfigMapsMapArrayOutput
- func (GetConfigMapsMapArrayOutput) ElementType() reflect.Type
- func (o GetConfigMapsMapArrayOutput) Index(i pulumi.IntInput) GetConfigMapsMapOutput
- func (o GetConfigMapsMapArrayOutput) ToGetConfigMapsMapArrayOutput() GetConfigMapsMapArrayOutput
- func (o GetConfigMapsMapArrayOutput) ToGetConfigMapsMapArrayOutputWithContext(ctx context.Context) GetConfigMapsMapArrayOutput
- type GetConfigMapsMapInput
- type GetConfigMapsMapOutput
- func (o GetConfigMapsMapOutput) ConfigMapId() pulumi.StringOutput
- func (o GetConfigMapsMapOutput) CreateTime() pulumi.StringOutput
- func (o GetConfigMapsMapOutput) Data() pulumi.StringOutput
- func (o GetConfigMapsMapOutput) Description() pulumi.StringOutput
- func (GetConfigMapsMapOutput) ElementType() reflect.Type
- func (o GetConfigMapsMapOutput) Id() pulumi.StringOutput
- func (o GetConfigMapsMapOutput) Name() pulumi.StringOutput
- func (o GetConfigMapsMapOutput) NamespaceId() pulumi.StringOutput
- func (o GetConfigMapsMapOutput) ToGetConfigMapsMapOutput() GetConfigMapsMapOutput
- func (o GetConfigMapsMapOutput) ToGetConfigMapsMapOutputWithContext(ctx context.Context) GetConfigMapsMapOutput
- type GetConfigMapsResult
- type GetNamespacesArgs
- type GetNamespacesNamespace
- type GetNamespacesNamespaceArgs
- type GetNamespacesNamespaceArray
- func (GetNamespacesNamespaceArray) ElementType() reflect.Type
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceArrayInput
- type GetNamespacesNamespaceArrayOutput
- func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceInput
- type GetNamespacesNamespaceOutput
- func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceOutput) Id() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) NamespaceDescription() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) NamespaceId() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) NamespaceName() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
- type GetNamespacesResult
- type GetServiceArgs
- type GetServiceResult
- type Namespace
- func (*Namespace) ElementType() reflect.Type
- func (i *Namespace) ToNamespaceOutput() NamespaceOutput
- func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- func (i *Namespace) ToNamespacePtrOutput() NamespacePtrOutput
- func (i *Namespace) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
- type NamespaceArgs
- type NamespaceArray
- type NamespaceArrayInput
- type NamespaceArrayOutput
- func (NamespaceArrayOutput) ElementType() reflect.Type
- func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
- type NamespaceInput
- type NamespaceMap
- type NamespaceMapInput
- type NamespaceMapOutput
- type NamespaceOutput
- func (NamespaceOutput) ElementType() reflect.Type
- func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
- func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- func (o NamespaceOutput) ToNamespacePtrOutput() NamespacePtrOutput
- func (o NamespaceOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
- type NamespacePtrInput
- type NamespacePtrOutput
- type NamespaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶ added in v3.7.0
type Application struct { pulumi.CustomResourceState // Application description information. No more than 1024 characters. 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: `false`, `true`. AutoConfig pulumi.BoolPtrOutput `pulumi:"autoConfig"` // The auto enable application scaling rule. Valid values: `false`, `true`. AutoEnableApplicationScalingRule pulumi.BoolOutput `pulumi:"autoEnableApplicationScalingRule"` // The batch wait time. BatchWaitTime pulumi.IntOutput `pulumi:"batchWaitTime"` // The change order desc. ChangeOrderDesc pulumi.StringOutput `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. CommandArgs pulumi.StringPtrOutput `pulumi:"commandArgs"` // ConfigMap mount description. ConfigMapMountDesc pulumi.StringOutput `pulumi:"configMapMountDesc"` // The CPU required for each instance, in millicores, cannot be 0. Valid values: `1000`, `16000`, `2000`, `32000`, `4000`, `500`, `8000`. Cpu pulumi.IntPtrOutput `pulumi:"cpu"` // Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. CustomHostAlias pulumi.StringOutput `pulumi:"customHostAlias"` // The deploy. Valid values: `false`, `true`. Deploy pulumi.BoolPtrOutput `pulumi:"deploy"` // The operating environment used by the Pandora application. EdasContainerVersion pulumi.StringPtrOutput `pulumi:"edasContainerVersion"` // The enable ahas. EnableAhas pulumi.StringOutput `pulumi:"enableAhas"` // The enable grey tag route. EnableGreyTagRoute pulumi.BoolOutput `pulumi:"enableGreyTagRoute"` // The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace. Envs pulumi.StringOutput `pulumi:"envs"` // 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"` // 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. Liveness pulumi.StringPtrOutput `pulumi:"liveness"` // The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `131072`, `16384`, `2048`, `32768`, `4096`, `65536`, `8192`. Memory pulumi.IntPtrOutput `pulumi:"memory"` // The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be. MinReadyInstances pulumi.IntOutput `pulumi:"minReadyInstances"` // Mount description. MountDesc pulumi.StringPtrOutput `pulumi:"mountDesc"` // Mount point of NAS in application VPC. MountHost pulumi.StringPtrOutput `pulumi:"mountHost"` // 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"` // ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringPtrOutput `pulumi:"nasId"` // OSS AccessKey ID. OssAkId pulumi.StringPtrOutput `pulumi:"ossAkId"` // OSS AccessKey Secret. OssAkSecret pulumi.StringPtrOutput `pulumi:"ossAkSecret"` // OSS mount description information. OssMountDescs pulumi.StringPtrOutput `pulumi:"ossMountDescs"` // Application package type. Support FatJar, War and Image. Valid values: `FatJar`, `Image`, `War`. 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 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.StringPtrOutput `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"]}}. PostStart pulumi.StringPtrOutput `pulumi:"postStart"` // Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. PreStop pulumi.StringPtrOutput `pulumi:"preStop"` // 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`. Readiness pulumi.StringPtrOutput `pulumi:"readiness"` // Initial number of instances. Replicas pulumi.IntOutput `pulumi:"replicas"` // Security group ID. SecurityGroupId pulumi.StringPtrOutput `pulumi:"securityGroupId"` // SLS configuration. SlsConfigs pulumi.StringPtrOutput `pulumi:"slsConfigs"` // The status of the resource. Valid values: `RUNNING`, `STOPPED`. Status pulumi.StringOutput `pulumi:"status"` // 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, the default value is Asia/Shanghai. Timezone pulumi.StringOutput `pulumi:"timezone"` // Tomcat file configuration, set to “ or "{}" 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`. TomcatConfig pulumi.StringPtrOutput `pulumi:"tomcatConfig"` // The update strategy. UpdateStrategy pulumi.StringOutput `pulumi:"updateStrategy"` // Application version id. VersionId pulumi.StringPtrOutput `pulumi:"versionId"` // The vswitch id. 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"` }
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://help.aliyun.com/document_detail/97792.html).
> **NOTE:** Available in v1.133.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "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, "") name := "tf-testacc" if param := cfg.Get("name"); param != "" { name = param } opt0 := "VSwitch" defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{ AvailableResourceCreation: &opt0, }, nil) if err != nil { return err } vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{ VpcName: pulumi.String("tf_testacc"), CidrBlock: pulumi.String("172.16.0.0/12"), }) if err != nil { return err } vsw, err := vpc.NewSwitch(ctx, "vsw", &vpc.SwitchArgs{ VpcId: vpc.ID(), CidrBlock: pulumi.String("172.16.0.0/24"), ZoneId: pulumi.String(defaultZones.Zones[0].Id), VswitchName: pulumi.String(name), }) if err != nil { return err } defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{ NamespaceDescription: pulumi.String(name), NamespaceId: pulumi.String("cn-hangzhou:tfacctest"), NamespaceName: pulumi.String(name), }) if err != nil { return err } _, err = sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{ AppDescription: pulumi.String("tf-testaccDescription"), AppName: pulumi.String("tf-testaccAppName131"), NamespaceId: defaultNamespace.ID(), ImageUrl: pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5"), PackageType: pulumi.String("Image"), VswitchId: vsw.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>
```
func GetApplication ¶ added in v3.7.0
func GetApplication(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationState, opts ...pulumi.ResourceOption) (*Application, error)
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 NewApplication ¶ added in v3.7.0
func NewApplication(ctx *pulumi.Context, name string, args *ApplicationArgs, opts ...pulumi.ResourceOption) (*Application, error)
NewApplication registers a new resource with the given unique name, arguments, and options.
func (*Application) ElementType ¶ added in v3.7.0
func (*Application) ElementType() reflect.Type
func (*Application) ToApplicationOutput ¶ added in v3.7.0
func (i *Application) ToApplicationOutput() ApplicationOutput
func (*Application) ToApplicationOutputWithContext ¶ added in v3.7.0
func (i *Application) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
func (*Application) ToApplicationPtrOutput ¶ added in v3.7.0
func (i *Application) ToApplicationPtrOutput() ApplicationPtrOutput
func (*Application) ToApplicationPtrOutputWithContext ¶ added in v3.7.0
func (i *Application) ToApplicationPtrOutputWithContext(ctx context.Context) ApplicationPtrOutput
type ApplicationArgs ¶ added in v3.7.0
type ApplicationArgs struct { // Application description information. No more than 1024 characters. 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: `false`, `true`. AutoConfig pulumi.BoolPtrInput // The auto enable application scaling rule. Valid values: `false`, `true`. 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. CommandArgs pulumi.StringPtrInput // ConfigMap mount description. ConfigMapMountDesc pulumi.StringPtrInput // The CPU required for each instance, in millicores, cannot be 0. Valid values: `1000`, `16000`, `2000`, `32000`, `4000`, `500`, `8000`. Cpu pulumi.IntPtrInput // Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. CustomHostAlias pulumi.StringPtrInput // The deploy. Valid values: `false`, `true`. Deploy pulumi.BoolPtrInput // The operating environment used by the Pandora application. EdasContainerVersion pulumi.StringPtrInput // The enable ahas. EnableAhas pulumi.StringPtrInput // The enable grey tag route. EnableGreyTagRoute pulumi.BoolPtrInput // The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace. Envs 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 // 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. Liveness pulumi.StringPtrInput // The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `131072`, `16384`, `2048`, `32768`, `4096`, `65536`, `8192`. Memory pulumi.IntPtrInput // The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be. MinReadyInstances pulumi.IntPtrInput // Mount description. MountDesc pulumi.StringPtrInput // Mount point of NAS in application VPC. MountHost pulumi.StringPtrInput // 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 // ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringPtrInput // OSS AccessKey ID. OssAkId pulumi.StringPtrInput // OSS AccessKey Secret. OssAkSecret pulumi.StringPtrInput // OSS mount description information. OssMountDescs pulumi.StringPtrInput // Application package type. Support FatJar, War and Image. Valid values: `FatJar`, `Image`, `War`. 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 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"]}}. PostStart pulumi.StringPtrInput // Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. PreStop pulumi.StringPtrInput // 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`. Readiness pulumi.StringPtrInput // 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`. Status pulumi.StringPtrInput // 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, the default value is Asia/Shanghai. Timezone pulumi.StringPtrInput // Tomcat file configuration, set to “ or "{}" 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`. TomcatConfig pulumi.StringPtrInput // The update strategy. UpdateStrategy pulumi.StringPtrInput // Application version id. VersionId pulumi.StringPtrInput // The vswitch id. 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 }
The set of arguments for constructing a Application resource.
func (ApplicationArgs) ElementType ¶ added in v3.7.0
func (ApplicationArgs) ElementType() reflect.Type
type ApplicationArray ¶ added in v3.7.0
type ApplicationArray []ApplicationInput
func (ApplicationArray) ElementType ¶ added in v3.7.0
func (ApplicationArray) ElementType() reflect.Type
func (ApplicationArray) ToApplicationArrayOutput ¶ added in v3.7.0
func (i ApplicationArray) ToApplicationArrayOutput() ApplicationArrayOutput
func (ApplicationArray) ToApplicationArrayOutputWithContext ¶ added in v3.7.0
func (i ApplicationArray) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
type ApplicationArrayInput ¶ added in v3.7.0
type ApplicationArrayInput interface { pulumi.Input ToApplicationArrayOutput() ApplicationArrayOutput ToApplicationArrayOutputWithContext(context.Context) ApplicationArrayOutput }
ApplicationArrayInput is an input type that accepts ApplicationArray and ApplicationArrayOutput values. You can construct a concrete instance of `ApplicationArrayInput` via:
ApplicationArray{ ApplicationArgs{...} }
type ApplicationArrayOutput ¶ added in v3.7.0
type ApplicationArrayOutput struct{ *pulumi.OutputState }
func (ApplicationArrayOutput) ElementType ¶ added in v3.7.0
func (ApplicationArrayOutput) ElementType() reflect.Type
func (ApplicationArrayOutput) Index ¶ added in v3.7.0
func (o ApplicationArrayOutput) Index(i pulumi.IntInput) ApplicationOutput
func (ApplicationArrayOutput) ToApplicationArrayOutput ¶ added in v3.7.0
func (o ApplicationArrayOutput) ToApplicationArrayOutput() ApplicationArrayOutput
func (ApplicationArrayOutput) ToApplicationArrayOutputWithContext ¶ added in v3.7.0
func (o ApplicationArrayOutput) ToApplicationArrayOutputWithContext(ctx context.Context) ApplicationArrayOutput
type ApplicationInput ¶ added in v3.7.0
type ApplicationInput interface { pulumi.Input ToApplicationOutput() ApplicationOutput ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput }
type ApplicationMap ¶ added in v3.7.0
type ApplicationMap map[string]ApplicationInput
func (ApplicationMap) ElementType ¶ added in v3.7.0
func (ApplicationMap) ElementType() reflect.Type
func (ApplicationMap) ToApplicationMapOutput ¶ added in v3.7.0
func (i ApplicationMap) ToApplicationMapOutput() ApplicationMapOutput
func (ApplicationMap) ToApplicationMapOutputWithContext ¶ added in v3.7.0
func (i ApplicationMap) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
type ApplicationMapInput ¶ added in v3.7.0
type ApplicationMapInput interface { pulumi.Input ToApplicationMapOutput() ApplicationMapOutput ToApplicationMapOutputWithContext(context.Context) ApplicationMapOutput }
ApplicationMapInput is an input type that accepts ApplicationMap and ApplicationMapOutput values. You can construct a concrete instance of `ApplicationMapInput` via:
ApplicationMap{ "key": ApplicationArgs{...} }
type ApplicationMapOutput ¶ added in v3.7.0
type ApplicationMapOutput struct{ *pulumi.OutputState }
func (ApplicationMapOutput) ElementType ¶ added in v3.7.0
func (ApplicationMapOutput) ElementType() reflect.Type
func (ApplicationMapOutput) MapIndex ¶ added in v3.7.0
func (o ApplicationMapOutput) MapIndex(k pulumi.StringInput) ApplicationOutput
func (ApplicationMapOutput) ToApplicationMapOutput ¶ added in v3.7.0
func (o ApplicationMapOutput) ToApplicationMapOutput() ApplicationMapOutput
func (ApplicationMapOutput) ToApplicationMapOutputWithContext ¶ added in v3.7.0
func (o ApplicationMapOutput) ToApplicationMapOutputWithContext(ctx context.Context) ApplicationMapOutput
type ApplicationOutput ¶ added in v3.7.0
type ApplicationOutput struct {
*pulumi.OutputState
}
func (ApplicationOutput) ElementType ¶ added in v3.7.0
func (ApplicationOutput) ElementType() reflect.Type
func (ApplicationOutput) ToApplicationOutput ¶ added in v3.7.0
func (o ApplicationOutput) ToApplicationOutput() ApplicationOutput
func (ApplicationOutput) ToApplicationOutputWithContext ¶ added in v3.7.0
func (o ApplicationOutput) ToApplicationOutputWithContext(ctx context.Context) ApplicationOutput
func (ApplicationOutput) ToApplicationPtrOutput ¶ added in v3.7.0
func (o ApplicationOutput) ToApplicationPtrOutput() ApplicationPtrOutput
func (ApplicationOutput) ToApplicationPtrOutputWithContext ¶ added in v3.7.0
func (o ApplicationOutput) ToApplicationPtrOutputWithContext(ctx context.Context) ApplicationPtrOutput
type ApplicationPtrInput ¶ added in v3.7.0
type ApplicationPtrInput interface { pulumi.Input ToApplicationPtrOutput() ApplicationPtrOutput ToApplicationPtrOutputWithContext(ctx context.Context) ApplicationPtrOutput }
type ApplicationPtrOutput ¶ added in v3.7.0
type ApplicationPtrOutput struct {
*pulumi.OutputState
}
func (ApplicationPtrOutput) ElementType ¶ added in v3.7.0
func (ApplicationPtrOutput) ElementType() reflect.Type
func (ApplicationPtrOutput) ToApplicationPtrOutput ¶ added in v3.7.0
func (o ApplicationPtrOutput) ToApplicationPtrOutput() ApplicationPtrOutput
func (ApplicationPtrOutput) ToApplicationPtrOutputWithContext ¶ added in v3.7.0
func (o ApplicationPtrOutput) ToApplicationPtrOutputWithContext(ctx context.Context) ApplicationPtrOutput
type ApplicationState ¶ added in v3.7.0
type ApplicationState struct { // Application description information. No more than 1024 characters. 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: `false`, `true`. AutoConfig pulumi.BoolPtrInput // The auto enable application scaling rule. Valid values: `false`, `true`. 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. CommandArgs pulumi.StringPtrInput // ConfigMap mount description. ConfigMapMountDesc pulumi.StringPtrInput // The CPU required for each instance, in millicores, cannot be 0. Valid values: `1000`, `16000`, `2000`, `32000`, `4000`, `500`, `8000`. Cpu pulumi.IntPtrInput // Custom host mapping in the container. For example: [{`hostName`:`samplehost`,`ip`:`127.0.0.1`}]. CustomHostAlias pulumi.StringPtrInput // The deploy. Valid values: `false`, `true`. Deploy pulumi.BoolPtrInput // The operating environment used by the Pandora application. EdasContainerVersion pulumi.StringPtrInput // The enable ahas. EnableAhas pulumi.StringPtrInput // The enable grey tag route. EnableGreyTagRoute pulumi.BoolPtrInput // The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace. Envs 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 // 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. Liveness pulumi.StringPtrInput // The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: `1024`, `131072`, `16384`, `2048`, `32768`, `4096`, `65536`, `8192`. Memory pulumi.IntPtrInput // The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be. MinReadyInstances pulumi.IntPtrInput // Mount description. MountDesc pulumi.StringPtrInput // Mount point of NAS in application VPC. MountHost pulumi.StringPtrInput // 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 // ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringPtrInput // OSS AccessKey ID. OssAkId pulumi.StringPtrInput // OSS AccessKey Secret. OssAkSecret pulumi.StringPtrInput // OSS mount description information. OssMountDescs pulumi.StringPtrInput // Application package type. Support FatJar, War and Image. Valid values: `FatJar`, `Image`, `War`. 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 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"]}}. PostStart pulumi.StringPtrInput // Execute the script before stopping, the format is like: {`exec`:{`command`:[`cat`,"/etc/group"]}}. PreStop pulumi.StringPtrInput // 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`. Readiness pulumi.StringPtrInput // 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`. Status pulumi.StringPtrInput // 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, the default value is Asia/Shanghai. Timezone pulumi.StringPtrInput // Tomcat file configuration, set to “ or "{}" 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`. TomcatConfig pulumi.StringPtrInput // The update strategy. UpdateStrategy pulumi.StringPtrInput // Application version id. VersionId pulumi.StringPtrInput // The vswitch id. 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 ¶ added in v3.7.0
func (ApplicationState) ElementType() reflect.Type
type ConfigMap ¶ added in v3.6.0
type ConfigMap struct { pulumi.CustomResourceState // ConfigMap instance data. Data pulumi.StringOutput `pulumi:"data"` // The Description of ConfigMap. Description pulumi.StringPtrOutput `pulumi:"description"` // ConfigMap instance name. Name pulumi.StringOutput `pulumi:"name"` // The NamespaceId of ConfigMap.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}` NamespaceId pulumi.StringOutput `pulumi:"namespaceId"` }
Provides a Serverless App Engine (SAE) Config Map resource.
For information about Serverless App Engine (SAE) Config Map and how to use it, see [What is Config Map](https://help.aliyun.com/document_detail/97792.html).
> **NOTE:** Available in v1.130.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "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, "") configMapName := "examplename" if param := cfg.Get("configMapName"); param != "" { configMapName = param } exampleNamespace, err := sae.NewNamespace(ctx, "exampleNamespace", &sae.NamespaceArgs{ NamespaceId: pulumi.String("cn-hangzhou:yourname"), NamespaceName: pulumi.String("example_value"), NamespaceDescription: pulumi.String("your_description"), }) if err != nil { return err } tmpJSON0, err := json.Marshal(map[string]interface{}{ "env.home": "/root", "env.shell": "/bin/sh", }) if err != nil { return err } json0 := string(tmpJSON0) _, err = sae.NewConfigMap(ctx, "exampleConfigMap", &sae.ConfigMapArgs{ Data: pulumi.String(json0), NamespaceId: exampleNamespace.NamespaceId, }) if err != nil { return err } return nil }) }
```
## Import
Serverless App Engine (SAE) Config Map can be imported using the id, e.g.
```sh
$ pulumi import alicloud:sae/configMap:ConfigMap example <id>
```
func GetConfigMap ¶ added in v3.6.0
func GetConfigMap(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConfigMapState, opts ...pulumi.ResourceOption) (*ConfigMap, error)
GetConfigMap gets an existing ConfigMap 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 NewConfigMap ¶ added in v3.6.0
func NewConfigMap(ctx *pulumi.Context, name string, args *ConfigMapArgs, opts ...pulumi.ResourceOption) (*ConfigMap, error)
NewConfigMap registers a new resource with the given unique name, arguments, and options.
func (*ConfigMap) ElementType ¶ added in v3.6.0
func (*ConfigMap) ToConfigMapOutput ¶ added in v3.6.0
func (i *ConfigMap) ToConfigMapOutput() ConfigMapOutput
func (*ConfigMap) ToConfigMapOutputWithContext ¶ added in v3.6.0
func (i *ConfigMap) ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput
func (*ConfigMap) ToConfigMapPtrOutput ¶ added in v3.6.0
func (i *ConfigMap) ToConfigMapPtrOutput() ConfigMapPtrOutput
func (*ConfigMap) ToConfigMapPtrOutputWithContext ¶ added in v3.6.0
func (i *ConfigMap) ToConfigMapPtrOutputWithContext(ctx context.Context) ConfigMapPtrOutput
type ConfigMapArgs ¶ added in v3.6.0
type ConfigMapArgs struct { // ConfigMap instance data. Data pulumi.StringInput // The Description of ConfigMap. Description pulumi.StringPtrInput // ConfigMap instance name. Name pulumi.StringPtrInput // The NamespaceId of ConfigMap.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}` NamespaceId pulumi.StringInput }
The set of arguments for constructing a ConfigMap resource.
func (ConfigMapArgs) ElementType ¶ added in v3.6.0
func (ConfigMapArgs) ElementType() reflect.Type
type ConfigMapArray ¶ added in v3.6.0
type ConfigMapArray []ConfigMapInput
func (ConfigMapArray) ElementType ¶ added in v3.6.0
func (ConfigMapArray) ElementType() reflect.Type
func (ConfigMapArray) ToConfigMapArrayOutput ¶ added in v3.6.0
func (i ConfigMapArray) ToConfigMapArrayOutput() ConfigMapArrayOutput
func (ConfigMapArray) ToConfigMapArrayOutputWithContext ¶ added in v3.6.0
func (i ConfigMapArray) ToConfigMapArrayOutputWithContext(ctx context.Context) ConfigMapArrayOutput
type ConfigMapArrayInput ¶ added in v3.6.0
type ConfigMapArrayInput interface { pulumi.Input ToConfigMapArrayOutput() ConfigMapArrayOutput ToConfigMapArrayOutputWithContext(context.Context) ConfigMapArrayOutput }
ConfigMapArrayInput is an input type that accepts ConfigMapArray and ConfigMapArrayOutput values. You can construct a concrete instance of `ConfigMapArrayInput` via:
ConfigMapArray{ ConfigMapArgs{...} }
type ConfigMapArrayOutput ¶ added in v3.6.0
type ConfigMapArrayOutput struct{ *pulumi.OutputState }
func (ConfigMapArrayOutput) ElementType ¶ added in v3.6.0
func (ConfigMapArrayOutput) ElementType() reflect.Type
func (ConfigMapArrayOutput) Index ¶ added in v3.6.0
func (o ConfigMapArrayOutput) Index(i pulumi.IntInput) ConfigMapOutput
func (ConfigMapArrayOutput) ToConfigMapArrayOutput ¶ added in v3.6.0
func (o ConfigMapArrayOutput) ToConfigMapArrayOutput() ConfigMapArrayOutput
func (ConfigMapArrayOutput) ToConfigMapArrayOutputWithContext ¶ added in v3.6.0
func (o ConfigMapArrayOutput) ToConfigMapArrayOutputWithContext(ctx context.Context) ConfigMapArrayOutput
type ConfigMapInput ¶ added in v3.6.0
type ConfigMapInput interface { pulumi.Input ToConfigMapOutput() ConfigMapOutput ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput }
type ConfigMapMap ¶ added in v3.6.0
type ConfigMapMap map[string]ConfigMapInput
func (ConfigMapMap) ElementType ¶ added in v3.6.0
func (ConfigMapMap) ElementType() reflect.Type
func (ConfigMapMap) ToConfigMapMapOutput ¶ added in v3.6.0
func (i ConfigMapMap) ToConfigMapMapOutput() ConfigMapMapOutput
func (ConfigMapMap) ToConfigMapMapOutputWithContext ¶ added in v3.6.0
func (i ConfigMapMap) ToConfigMapMapOutputWithContext(ctx context.Context) ConfigMapMapOutput
type ConfigMapMapInput ¶ added in v3.6.0
type ConfigMapMapInput interface { pulumi.Input ToConfigMapMapOutput() ConfigMapMapOutput ToConfigMapMapOutputWithContext(context.Context) ConfigMapMapOutput }
ConfigMapMapInput is an input type that accepts ConfigMapMap and ConfigMapMapOutput values. You can construct a concrete instance of `ConfigMapMapInput` via:
ConfigMapMap{ "key": ConfigMapArgs{...} }
type ConfigMapMapOutput ¶ added in v3.6.0
type ConfigMapMapOutput struct{ *pulumi.OutputState }
func (ConfigMapMapOutput) ElementType ¶ added in v3.6.0
func (ConfigMapMapOutput) ElementType() reflect.Type
func (ConfigMapMapOutput) MapIndex ¶ added in v3.6.0
func (o ConfigMapMapOutput) MapIndex(k pulumi.StringInput) ConfigMapOutput
func (ConfigMapMapOutput) ToConfigMapMapOutput ¶ added in v3.6.0
func (o ConfigMapMapOutput) ToConfigMapMapOutput() ConfigMapMapOutput
func (ConfigMapMapOutput) ToConfigMapMapOutputWithContext ¶ added in v3.6.0
func (o ConfigMapMapOutput) ToConfigMapMapOutputWithContext(ctx context.Context) ConfigMapMapOutput
type ConfigMapOutput ¶ added in v3.6.0
type ConfigMapOutput struct {
*pulumi.OutputState
}
func (ConfigMapOutput) ElementType ¶ added in v3.6.0
func (ConfigMapOutput) ElementType() reflect.Type
func (ConfigMapOutput) ToConfigMapOutput ¶ added in v3.6.0
func (o ConfigMapOutput) ToConfigMapOutput() ConfigMapOutput
func (ConfigMapOutput) ToConfigMapOutputWithContext ¶ added in v3.6.0
func (o ConfigMapOutput) ToConfigMapOutputWithContext(ctx context.Context) ConfigMapOutput
func (ConfigMapOutput) ToConfigMapPtrOutput ¶ added in v3.6.0
func (o ConfigMapOutput) ToConfigMapPtrOutput() ConfigMapPtrOutput
func (ConfigMapOutput) ToConfigMapPtrOutputWithContext ¶ added in v3.6.0
func (o ConfigMapOutput) ToConfigMapPtrOutputWithContext(ctx context.Context) ConfigMapPtrOutput
type ConfigMapPtrInput ¶ added in v3.6.0
type ConfigMapPtrInput interface { pulumi.Input ToConfigMapPtrOutput() ConfigMapPtrOutput ToConfigMapPtrOutputWithContext(ctx context.Context) ConfigMapPtrOutput }
type ConfigMapPtrOutput ¶ added in v3.6.0
type ConfigMapPtrOutput struct {
*pulumi.OutputState
}
func (ConfigMapPtrOutput) ElementType ¶ added in v3.6.0
func (ConfigMapPtrOutput) ElementType() reflect.Type
func (ConfigMapPtrOutput) ToConfigMapPtrOutput ¶ added in v3.6.0
func (o ConfigMapPtrOutput) ToConfigMapPtrOutput() ConfigMapPtrOutput
func (ConfigMapPtrOutput) ToConfigMapPtrOutputWithContext ¶ added in v3.6.0
func (o ConfigMapPtrOutput) ToConfigMapPtrOutputWithContext(ctx context.Context) ConfigMapPtrOutput
type ConfigMapState ¶ added in v3.6.0
type ConfigMapState struct { // ConfigMap instance data. Data pulumi.StringPtrInput // The Description of ConfigMap. Description pulumi.StringPtrInput // ConfigMap instance name. Name pulumi.StringPtrInput // The NamespaceId of ConfigMap.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}` NamespaceId pulumi.StringPtrInput }
func (ConfigMapState) ElementType ¶ added in v3.6.0
func (ConfigMapState) ElementType() reflect.Type
type GetApplicationsApplication ¶ added in v3.7.0
type GetApplicationsApplication struct { // The ARN of the RAM role required when pulling images across accounts. AcrAssumeRoleArn string `pulumi:"acrAssumeRoleArn"` // Application description information. No more than 1024 characters. 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 first ID of the resource. ApplicationId string `pulumi:"applicationId"` // 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. CommandArgs string `pulumi:"commandArgs"` // ConfigMap mount description. ConfigMapMountDesc string `pulumi:"configMapMountDesc"` // The CPU required for each instance, in millicores, cannot be 0. Cpu int `pulumi:"cpu"` // Indicates That the Application of the Creation Time. CreateTime string `pulumi:"createTime"` // Custom host mapping in the container. For example: [{"hostName":"samplehost","ip":"127.0.0.1"}]. CustomHostAlias string `pulumi:"customHostAlias"` // The operating environment used by the Pandora application. EdasContainerVersion string `pulumi:"edasContainerVersion"` // The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace. Envs string `pulumi:"envs"` // The ID of the Application. Id string `pulumi:"id"` // 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"` // 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. Liveness string `pulumi:"liveness"` // The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Memory int `pulumi:"memory"` // The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be. MinReadyInstances int `pulumi:"minReadyInstances"` // Mount description. MountDesc string `pulumi:"mountDesc"` // Mount point of NAS in application VPC. MountHost string `pulumi:"mountHost"` // 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"` // ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId string `pulumi:"nasId"` // OSS AccessKey ID. OssAkId string `pulumi:"ossAkId"` // OSS AccessKey Secret. OssAkSecret string `pulumi:"ossAkSecret"` // OSS mount description information. OssMountDescs string `pulumi:"ossMountDescs"` // Application package type. Support FatJar, War and Image. 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 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"]}}. PostStart string `pulumi:"postStart"` // Execute the script before stopping, the format is like: {"exec":{"command":["cat","/etc/group"]}}. PreStop string `pulumi:"preStop"` // 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}. Readiness string `pulumi:"readiness"` RegionId string `pulumi:"regionId"` // Initial number of instances. Replicas int `pulumi:"replicas"` RepoName string `pulumi:"repoName"` RepoNamespace string `pulumi:"repoNamespace"` RepoOriginType string `pulumi:"repoOriginType"` // Security group ID. SecurityGroupId string `pulumi:"securityGroupId"` // SLS configuration. SlsConfigs string `pulumi:"slsConfigs"` // The status of the resource. Status string `pulumi:"status"` // Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. TerminationGracePeriodSeconds int `pulumi:"terminationGracePeriodSeconds"` // Time zone, the default value is Asia/Shanghai. Timezone string `pulumi:"timezone"` // Tomcat file configuration, set to "" or "{}" 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. TomcatConfig string `pulumi:"tomcatConfig"` // The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace. VpcId string `pulumi:"vpcId"` // The vswitch id. 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 GetApplicationsApplicationArgs ¶ added in v3.7.0
type GetApplicationsApplicationArgs struct { // The ARN of the RAM role required when pulling images across accounts. AcrAssumeRoleArn pulumi.StringInput `pulumi:"acrAssumeRoleArn"` // Application description information. No more than 1024 characters. AppDescription pulumi.StringInput `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.StringInput `pulumi:"appName"` // The first ID of the resource. ApplicationId pulumi.StringInput `pulumi:"applicationId"` // 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.StringInput `pulumi:"command"` // Mirror startup command parameters. The parameters required for the above start command. For example: 1d. CommandArgs pulumi.StringInput `pulumi:"commandArgs"` // ConfigMap mount description. ConfigMapMountDesc pulumi.StringInput `pulumi:"configMapMountDesc"` // The CPU required for each instance, in millicores, cannot be 0. Cpu pulumi.IntInput `pulumi:"cpu"` // Indicates That the Application of the Creation Time. CreateTime pulumi.StringInput `pulumi:"createTime"` // Custom host mapping in the container. For example: [{"hostName":"samplehost","ip":"127.0.0.1"}]. CustomHostAlias pulumi.StringInput `pulumi:"customHostAlias"` // The operating environment used by the Pandora application. EdasContainerVersion pulumi.StringInput `pulumi:"edasContainerVersion"` // The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace. Envs pulumi.StringInput `pulumi:"envs"` // The ID of the Application. Id pulumi.StringInput `pulumi:"id"` // Mirror address. Only Image type applications can configure the mirror address. ImageUrl pulumi.StringInput `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.StringInput `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.StringInput `pulumi:"jarStartOptions"` // The JDK version that the deployment package depends on. Image type applications are not supported. Jdk pulumi.StringInput `pulumi:"jdk"` // 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. Liveness pulumi.StringInput `pulumi:"liveness"` // The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Memory pulumi.IntInput `pulumi:"memory"` // The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be. MinReadyInstances pulumi.IntInput `pulumi:"minReadyInstances"` // Mount description. MountDesc pulumi.StringInput `pulumi:"mountDesc"` // Mount point of NAS in application VPC. MountHost pulumi.StringInput `pulumi:"mountHost"` // 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.StringInput `pulumi:"namespaceId"` // ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default. NasId pulumi.StringInput `pulumi:"nasId"` // OSS AccessKey ID. OssAkId pulumi.StringInput `pulumi:"ossAkId"` // OSS AccessKey Secret. OssAkSecret pulumi.StringInput `pulumi:"ossAkSecret"` // OSS mount description information. OssMountDescs pulumi.StringInput `pulumi:"ossMountDescs"` // Application package type. Support FatJar, War and Image. PackageType pulumi.StringInput `pulumi:"packageType"` // Deployment package address. Only FatJar or War type applications can configure the deployment package address. PackageUrl pulumi.StringInput `pulumi:"packageUrl"` // The version number of the deployment package. Required when the Package Type is War and FatJar. PackageVersion pulumi.StringInput `pulumi:"packageVersion"` // 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.StringInput `pulumi:"phpArmsConfigLocation"` // PHP configuration file content. PhpConfig pulumi.StringInput `pulumi:"phpConfig"` // PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file. PhpConfigLocation pulumi.StringInput `pulumi:"phpConfigLocation"` // Execute the script after startup, the format is like: {"exec":{"command":["cat","/etc/group"]}}. PostStart pulumi.StringInput `pulumi:"postStart"` // Execute the script before stopping, the format is like: {"exec":{"command":["cat","/etc/group"]}}. PreStop pulumi.StringInput `pulumi:"preStop"` // 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}. Readiness pulumi.StringInput `pulumi:"readiness"` RegionId pulumi.StringInput `pulumi:"regionId"` // Initial number of instances. Replicas pulumi.IntInput `pulumi:"replicas"` RepoName pulumi.StringInput `pulumi:"repoName"` RepoNamespace pulumi.StringInput `pulumi:"repoNamespace"` RepoOriginType pulumi.StringInput `pulumi:"repoOriginType"` // Security group ID. SecurityGroupId pulumi.StringInput `pulumi:"securityGroupId"` // SLS configuration. SlsConfigs pulumi.StringInput `pulumi:"slsConfigs"` // The status of the resource. Status pulumi.StringInput `pulumi:"status"` // Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. TerminationGracePeriodSeconds pulumi.IntInput `pulumi:"terminationGracePeriodSeconds"` // Time zone, the default value is Asia/Shanghai. Timezone pulumi.StringInput `pulumi:"timezone"` // Tomcat file configuration, set to "" or "{}" 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. TomcatConfig pulumi.StringInput `pulumi:"tomcatConfig"` // The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace. VpcId pulumi.StringInput `pulumi:"vpcId"` // The vswitch id. VswitchId pulumi.StringInput `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.StringInput `pulumi:"warStartOptions"` // The version of tomcat that the deployment package depends on. Image type applications are not supported. WebContainer pulumi.StringInput `pulumi:"webContainer"` }
func (GetApplicationsApplicationArgs) ElementType ¶ added in v3.7.0
func (GetApplicationsApplicationArgs) ElementType() reflect.Type
func (GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutput ¶ added in v3.7.0
func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
func (GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutputWithContext ¶ added in v3.7.0
func (i GetApplicationsApplicationArgs) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
type GetApplicationsApplicationArray ¶ added in v3.7.0
type GetApplicationsApplicationArray []GetApplicationsApplicationInput
func (GetApplicationsApplicationArray) ElementType ¶ added in v3.7.0
func (GetApplicationsApplicationArray) ElementType() reflect.Type
func (GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutput ¶ added in v3.7.0
func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
func (GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutputWithContext ¶ added in v3.7.0
func (i GetApplicationsApplicationArray) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
type GetApplicationsApplicationArrayInput ¶ added in v3.7.0
type GetApplicationsApplicationArrayInput interface { pulumi.Input ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput ToGetApplicationsApplicationArrayOutputWithContext(context.Context) GetApplicationsApplicationArrayOutput }
GetApplicationsApplicationArrayInput is an input type that accepts GetApplicationsApplicationArray and GetApplicationsApplicationArrayOutput values. You can construct a concrete instance of `GetApplicationsApplicationArrayInput` via:
GetApplicationsApplicationArray{ GetApplicationsApplicationArgs{...} }
type GetApplicationsApplicationArrayOutput ¶ added in v3.7.0
type GetApplicationsApplicationArrayOutput struct{ *pulumi.OutputState }
func (GetApplicationsApplicationArrayOutput) ElementType ¶ added in v3.7.0
func (GetApplicationsApplicationArrayOutput) ElementType() reflect.Type
func (GetApplicationsApplicationArrayOutput) Index ¶ added in v3.7.0
func (o GetApplicationsApplicationArrayOutput) Index(i pulumi.IntInput) GetApplicationsApplicationOutput
func (GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutput ¶ added in v3.7.0
func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutput() GetApplicationsApplicationArrayOutput
func (GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutputWithContext ¶ added in v3.7.0
func (o GetApplicationsApplicationArrayOutput) ToGetApplicationsApplicationArrayOutputWithContext(ctx context.Context) GetApplicationsApplicationArrayOutput
type GetApplicationsApplicationInput ¶ added in v3.7.0
type GetApplicationsApplicationInput interface { pulumi.Input ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput ToGetApplicationsApplicationOutputWithContext(context.Context) GetApplicationsApplicationOutput }
GetApplicationsApplicationInput is an input type that accepts GetApplicationsApplicationArgs and GetApplicationsApplicationOutput values. You can construct a concrete instance of `GetApplicationsApplicationInput` via:
GetApplicationsApplicationArgs{...}
type GetApplicationsApplicationOutput ¶ added in v3.7.0
type GetApplicationsApplicationOutput struct{ *pulumi.OutputState }
func (GetApplicationsApplicationOutput) AcrAssumeRoleArn ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) AcrAssumeRoleArn() pulumi.StringOutput
The ARN of the RAM role required when pulling images across accounts.
func (GetApplicationsApplicationOutput) AppDescription ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) AppDescription() pulumi.StringOutput
Application description information. No more than 1024 characters.
func (GetApplicationsApplicationOutput) AppName ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) AppName() pulumi.StringOutput
Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
func (GetApplicationsApplicationOutput) ApplicationId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) ApplicationId() pulumi.StringOutput
The first ID of the resource.
func (GetApplicationsApplicationOutput) Command ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Command() pulumi.StringOutput
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.
func (GetApplicationsApplicationOutput) CommandArgs ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) CommandArgs() pulumi.StringOutput
Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
func (GetApplicationsApplicationOutput) ConfigMapMountDesc ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) ConfigMapMountDesc() pulumi.StringOutput
ConfigMap mount description.
func (GetApplicationsApplicationOutput) Cpu ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Cpu() pulumi.IntOutput
The CPU required for each instance, in millicores, cannot be 0.
func (GetApplicationsApplicationOutput) CreateTime ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) CreateTime() pulumi.StringOutput
Indicates That the Application of the Creation Time.
func (GetApplicationsApplicationOutput) CustomHostAlias ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) CustomHostAlias() pulumi.StringOutput
Custom host mapping in the container. For example: [{"hostName":"samplehost","ip":"127.0.0.1"}].
func (GetApplicationsApplicationOutput) EdasContainerVersion ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) EdasContainerVersion() pulumi.StringOutput
The operating environment used by the Pandora application.
func (GetApplicationsApplicationOutput) ElementType ¶ added in v3.7.0
func (GetApplicationsApplicationOutput) ElementType() reflect.Type
func (GetApplicationsApplicationOutput) Envs ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Envs() pulumi.StringOutput
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
func (GetApplicationsApplicationOutput) Id ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Id() pulumi.StringOutput
The ID of the Application.
func (GetApplicationsApplicationOutput) ImageUrl ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) ImageUrl() pulumi.StringOutput
Mirror address. Only Image type applications can configure the mirror address.
func (GetApplicationsApplicationOutput) JarStartArgs ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) JarStartArgs() pulumi.StringOutput
The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
func (GetApplicationsApplicationOutput) JarStartOptions ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) JarStartOptions() pulumi.StringOutput
The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
func (GetApplicationsApplicationOutput) Jdk ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Jdk() pulumi.StringOutput
The JDK version that the deployment package depends on. Image type applications are not supported.
func (GetApplicationsApplicationOutput) Liveness ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Liveness() pulumi.StringOutput
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.
func (GetApplicationsApplicationOutput) Memory ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Memory() pulumi.IntOutput
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU.
func (GetApplicationsApplicationOutput) MinReadyInstances ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) MinReadyInstances() pulumi.IntOutput
The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
func (GetApplicationsApplicationOutput) MountDesc ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) MountDesc() pulumi.StringOutput
Mount description.
func (GetApplicationsApplicationOutput) MountHost ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) MountHost() pulumi.StringOutput
Mount point of NAS in application VPC.
func (GetApplicationsApplicationOutput) NamespaceId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) NamespaceId() pulumi.StringOutput
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.
func (GetApplicationsApplicationOutput) NasId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) NasId() pulumi.StringOutput
ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
func (GetApplicationsApplicationOutput) OssAkId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) OssAkId() pulumi.StringOutput
OSS AccessKey ID.
func (GetApplicationsApplicationOutput) OssAkSecret ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) OssAkSecret() pulumi.StringOutput
OSS AccessKey Secret.
func (GetApplicationsApplicationOutput) OssMountDescs ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) OssMountDescs() pulumi.StringOutput
OSS mount description information.
func (GetApplicationsApplicationOutput) PackageType ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PackageType() pulumi.StringOutput
Application package type. Support FatJar, War and Image.
func (GetApplicationsApplicationOutput) PackageUrl ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PackageUrl() pulumi.StringOutput
Deployment package address. Only FatJar or War type applications can configure the deployment package address.
func (GetApplicationsApplicationOutput) PackageVersion ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PackageVersion() pulumi.StringOutput
The version number of the deployment package. Required when the Package Type is War and FatJar.
func (GetApplicationsApplicationOutput) PhpArmsConfigLocation ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PhpArmsConfigLocation() pulumi.StringOutput
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.
func (GetApplicationsApplicationOutput) PhpConfig ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PhpConfig() pulumi.StringOutput
PHP configuration file content.
func (GetApplicationsApplicationOutput) PhpConfigLocation ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PhpConfigLocation() pulumi.StringOutput
PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
func (GetApplicationsApplicationOutput) PostStart ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PostStart() pulumi.StringOutput
Execute the script after startup, the format is like: {"exec":{"command":["cat","/etc/group"]}}.
func (GetApplicationsApplicationOutput) PreStop ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) PreStop() pulumi.StringOutput
Execute the script before stopping, the format is like: {"exec":{"command":["cat","/etc/group"]}}.
func (GetApplicationsApplicationOutput) Readiness ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Readiness() pulumi.StringOutput
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}.
func (GetApplicationsApplicationOutput) RegionId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) RegionId() pulumi.StringOutput
func (GetApplicationsApplicationOutput) Replicas ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Replicas() pulumi.IntOutput
Initial number of instances.
func (GetApplicationsApplicationOutput) RepoName ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) RepoName() pulumi.StringOutput
func (GetApplicationsApplicationOutput) RepoNamespace ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) RepoNamespace() pulumi.StringOutput
func (GetApplicationsApplicationOutput) RepoOriginType ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) RepoOriginType() pulumi.StringOutput
func (GetApplicationsApplicationOutput) SecurityGroupId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) SecurityGroupId() pulumi.StringOutput
Security group ID.
func (GetApplicationsApplicationOutput) SlsConfigs ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) SlsConfigs() pulumi.StringOutput
SLS configuration.
func (GetApplicationsApplicationOutput) Status ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Status() pulumi.StringOutput
The status of the resource.
func (GetApplicationsApplicationOutput) TerminationGracePeriodSeconds ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) TerminationGracePeriodSeconds() pulumi.IntOutput
Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60.
func (GetApplicationsApplicationOutput) Timezone ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) Timezone() pulumi.StringOutput
Time zone, the default value is Asia/Shanghai.
func (GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutput ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutput() GetApplicationsApplicationOutput
func (GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutputWithContext ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) ToGetApplicationsApplicationOutputWithContext(ctx context.Context) GetApplicationsApplicationOutput
func (GetApplicationsApplicationOutput) TomcatConfig ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) TomcatConfig() pulumi.StringOutput
Tomcat file configuration, set to "" or "{}" 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.
func (GetApplicationsApplicationOutput) VpcId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) VpcId() pulumi.StringOutput
The VPC corresponding to the SAE namespace. In SAE, a namespace can only correspond to one VPC and cannot be modified. Creating a SAE application in the namespace for the first time will form a binding relationship. Multiple namespaces can correspond to a VPC. If you leave it blank, it will default to the VPC ID bound to the namespace.
func (GetApplicationsApplicationOutput) VswitchId ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) VswitchId() pulumi.StringOutput
The vswitch id.
func (GetApplicationsApplicationOutput) WarStartOptions ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) WarStartOptions() pulumi.StringOutput
WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
func (GetApplicationsApplicationOutput) WebContainer ¶ added in v3.7.0
func (o GetApplicationsApplicationOutput) WebContainer() pulumi.StringOutput
The version of tomcat that the deployment package depends on. Image type applications are not supported.
type GetApplicationsArgs ¶ added in v3.7.0
type GetApplicationsArgs struct { // 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"` // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails *bool `pulumi:"enableDetails"` // The field type. Valid values:`appName`, `appIds`, `slbIps`, `instanceIps` FieldType *string `pulumi:"fieldType"` // The field value. FieldValue *string `pulumi:"fieldValue"` // A list of Application IDs. Ids []string `pulumi:"ids"` // 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 order by.Valid values:`running`,`instances`. OrderBy *string `pulumi:"orderBy"` OutputFile *string `pulumi:"outputFile"` // The reverse. Reverse *bool `pulumi:"reverse"` // The status of the resource. Status *string `pulumi:"status"` }
A collection of arguments for invoking getApplications.
type GetApplicationsResult ¶ added in v3.7.0
type GetApplicationsResult struct { AppName *string `pulumi:"appName"` Applications []GetApplicationsApplication `pulumi:"applications"` EnableDetails *bool `pulumi:"enableDetails"` FieldType *string `pulumi:"fieldType"` FieldValue *string `pulumi:"fieldValue"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NamespaceId *string `pulumi:"namespaceId"` OrderBy *string `pulumi:"orderBy"` OutputFile *string `pulumi:"outputFile"` Reverse *bool `pulumi:"reverse"` Status *string `pulumi:"status"` }
A collection of values returned by getApplications.
func GetApplications ¶ added in v3.7.0
func GetApplications(ctx *pulumi.Context, args *GetApplicationsArgs, opts ...pulumi.InvokeOption) (*GetApplicationsResult, error)
This data source provides the Sae Applications of the current Alibaba Cloud user.
> **NOTE:** Available in v1.133.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc" "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, "") name := "tf-testacc" if param := cfg.Get("name"); param != "" { name = param } opt0 := "VSwitch" defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{ AvailableResourceCreation: &opt0, }, nil) if err != nil { return err } vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{ VpcName: pulumi.String("tf_testacc"), CidrBlock: pulumi.String("172.16.0.0/12"), }) if err != nil { return err } vsw, err := vpc.NewSwitch(ctx, "vsw", &vpc.SwitchArgs{ VpcId: vpc.ID(), CidrBlock: pulumi.String("172.16.0.0/24"), ZoneId: pulumi.String(defaultZones.Zones[0].Id), VswitchName: pulumi.String(name), }) if err != nil { return err } defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{ NamespaceDescription: pulumi.String(name), NamespaceId: pulumi.String("cn-hangzhou:tfacctest"), NamespaceName: pulumi.String(name), }) if err != nil { return err } defaultApplication, err := sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{ AppDescription: pulumi.String("tf-testaccDescription"), AppName: pulumi.String("tf-testaccAppName131"), NamespaceId: defaultNamespace.ID(), ImageUrl: pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5"), PackageType: pulumi.String("Image"), VswitchId: vsw.ID(), Timezone: pulumi.String("Asia/Beijing"), Replicas: pulumi.Int(5), Cpu: pulumi.Int(500), Memory: pulumi.Int(2048), }) if err != nil { return err } ctx.Export("saeApplicationId", defaultApplications.ApplyT(func(defaultApplications sae.GetApplicationsResult) (string, error) { return defaultApplications.Applications[0].Id, nil }).(pulumi.StringOutput)) return nil }) }
```
type GetConfigMapsArgs ¶ added in v3.6.0
type GetConfigMapsArgs struct { // A list of Config Map IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Config Map name. NameRegex *string `pulumi:"nameRegex"` // The NamespaceId of Config Maps. NamespaceId string `pulumi:"namespaceId"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getConfigMaps.
type GetConfigMapsMap ¶ added in v3.6.0
type GetConfigMapsMap struct { // The first ID of the resource. ConfigMapId string `pulumi:"configMapId"` // The Creation Time of the ConfigMap. CreateTime string `pulumi:"createTime"` // ConfigMap instance data. The value's format is a `json` string Data string `pulumi:"data"` // The Description of Config Map. Description string `pulumi:"description"` // The ID of the Config Map. Id string `pulumi:"id"` // ConfigMap instance name. Name string `pulumi:"name"` // The NamespaceId of Config Maps. NamespaceId string `pulumi:"namespaceId"` }
type GetConfigMapsMapArgs ¶ added in v3.6.0
type GetConfigMapsMapArgs struct { // The first ID of the resource. ConfigMapId pulumi.StringInput `pulumi:"configMapId"` // The Creation Time of the ConfigMap. CreateTime pulumi.StringInput `pulumi:"createTime"` // ConfigMap instance data. The value's format is a `json` string Data pulumi.StringInput `pulumi:"data"` // The Description of Config Map. Description pulumi.StringInput `pulumi:"description"` // The ID of the Config Map. Id pulumi.StringInput `pulumi:"id"` // ConfigMap instance name. Name pulumi.StringInput `pulumi:"name"` // The NamespaceId of Config Maps. NamespaceId pulumi.StringInput `pulumi:"namespaceId"` }
func (GetConfigMapsMapArgs) ElementType ¶ added in v3.6.0
func (GetConfigMapsMapArgs) ElementType() reflect.Type
func (GetConfigMapsMapArgs) ToGetConfigMapsMapOutput ¶ added in v3.6.0
func (i GetConfigMapsMapArgs) ToGetConfigMapsMapOutput() GetConfigMapsMapOutput
func (GetConfigMapsMapArgs) ToGetConfigMapsMapOutputWithContext ¶ added in v3.6.0
func (i GetConfigMapsMapArgs) ToGetConfigMapsMapOutputWithContext(ctx context.Context) GetConfigMapsMapOutput
type GetConfigMapsMapArray ¶ added in v3.6.0
type GetConfigMapsMapArray []GetConfigMapsMapInput
func (GetConfigMapsMapArray) ElementType ¶ added in v3.6.0
func (GetConfigMapsMapArray) ElementType() reflect.Type
func (GetConfigMapsMapArray) ToGetConfigMapsMapArrayOutput ¶ added in v3.6.0
func (i GetConfigMapsMapArray) ToGetConfigMapsMapArrayOutput() GetConfigMapsMapArrayOutput
func (GetConfigMapsMapArray) ToGetConfigMapsMapArrayOutputWithContext ¶ added in v3.6.0
func (i GetConfigMapsMapArray) ToGetConfigMapsMapArrayOutputWithContext(ctx context.Context) GetConfigMapsMapArrayOutput
type GetConfigMapsMapArrayInput ¶ added in v3.6.0
type GetConfigMapsMapArrayInput interface { pulumi.Input ToGetConfigMapsMapArrayOutput() GetConfigMapsMapArrayOutput ToGetConfigMapsMapArrayOutputWithContext(context.Context) GetConfigMapsMapArrayOutput }
GetConfigMapsMapArrayInput is an input type that accepts GetConfigMapsMapArray and GetConfigMapsMapArrayOutput values. You can construct a concrete instance of `GetConfigMapsMapArrayInput` via:
GetConfigMapsMapArray{ GetConfigMapsMap{ "key": GetConfigMapsArgs{...} } }
type GetConfigMapsMapArrayOutput ¶ added in v3.6.0
type GetConfigMapsMapArrayOutput struct{ *pulumi.OutputState }
func (GetConfigMapsMapArrayOutput) ElementType ¶ added in v3.6.0
func (GetConfigMapsMapArrayOutput) ElementType() reflect.Type
func (GetConfigMapsMapArrayOutput) Index ¶ added in v3.6.0
func (o GetConfigMapsMapArrayOutput) Index(i pulumi.IntInput) GetConfigMapsMapOutput
func (GetConfigMapsMapArrayOutput) ToGetConfigMapsMapArrayOutput ¶ added in v3.6.0
func (o GetConfigMapsMapArrayOutput) ToGetConfigMapsMapArrayOutput() GetConfigMapsMapArrayOutput
func (GetConfigMapsMapArrayOutput) ToGetConfigMapsMapArrayOutputWithContext ¶ added in v3.6.0
func (o GetConfigMapsMapArrayOutput) ToGetConfigMapsMapArrayOutputWithContext(ctx context.Context) GetConfigMapsMapArrayOutput
type GetConfigMapsMapInput ¶ added in v3.6.0
type GetConfigMapsMapInput interface { pulumi.Input ToGetConfigMapsMapOutput() GetConfigMapsMapOutput ToGetConfigMapsMapOutputWithContext(context.Context) GetConfigMapsMapOutput }
GetConfigMapsMapInput is an input type that accepts GetConfigMapsMap and GetConfigMapsMapOutput values. You can construct a concrete instance of `GetConfigMapsMapInput` via:
GetConfigMapsMap{ "key": GetConfigMapsArgs{...} }
type GetConfigMapsMapOutput ¶ added in v3.6.0
type GetConfigMapsMapOutput struct{ *pulumi.OutputState }
func (GetConfigMapsMapOutput) ConfigMapId ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) ConfigMapId() pulumi.StringOutput
The first ID of the resource.
func (GetConfigMapsMapOutput) CreateTime ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) CreateTime() pulumi.StringOutput
The Creation Time of the ConfigMap.
func (GetConfigMapsMapOutput) Data ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) Data() pulumi.StringOutput
ConfigMap instance data. The value's format is a `json` string
func (GetConfigMapsMapOutput) Description ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) Description() pulumi.StringOutput
The Description of Config Map.
func (GetConfigMapsMapOutput) ElementType ¶ added in v3.6.0
func (GetConfigMapsMapOutput) ElementType() reflect.Type
func (GetConfigMapsMapOutput) Id ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) Id() pulumi.StringOutput
The ID of the Config Map.
func (GetConfigMapsMapOutput) Name ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) Name() pulumi.StringOutput
ConfigMap instance name.
func (GetConfigMapsMapOutput) NamespaceId ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) NamespaceId() pulumi.StringOutput
The NamespaceId of Config Maps.
func (GetConfigMapsMapOutput) ToGetConfigMapsMapOutput ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) ToGetConfigMapsMapOutput() GetConfigMapsMapOutput
func (GetConfigMapsMapOutput) ToGetConfigMapsMapOutputWithContext ¶ added in v3.6.0
func (o GetConfigMapsMapOutput) ToGetConfigMapsMapOutputWithContext(ctx context.Context) GetConfigMapsMapOutput
type GetConfigMapsResult ¶ added in v3.6.0
type GetConfigMapsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` Maps []GetConfigMapsMap `pulumi:"maps"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` NamespaceId string `pulumi:"namespaceId"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getConfigMaps.
func GetConfigMaps ¶ added in v3.6.0
func GetConfigMaps(ctx *pulumi.Context, args *GetConfigMapsArgs, opts ...pulumi.InvokeOption) (*GetConfigMapsResult, error)
This data source provides the Sae Config Maps of the current Alibaba Cloud user.
> **NOTE:** Available in v1.130.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "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, "") configMapName := "examplename" if param := cfg.Get("configMapName"); param != "" { configMapName = param } exampleNamespace, err := sae.NewNamespace(ctx, "exampleNamespace", &sae.NamespaceArgs{ NamespaceId: pulumi.String("cn-hangzhou:yourname"), NamespaceName: pulumi.String("example_value"), NamespaceDescription: pulumi.String("your_description"), }) if err != nil { return err } tmpJSON0, err := json.Marshal(map[string]interface{}{ "env.home": "/root", "env.shell": "/bin/sh", }) if err != nil { return err } json0 := string(tmpJSON0) _, err = sae.NewConfigMap(ctx, "exampleConfigMap", &sae.ConfigMapArgs{ Data: pulumi.String(json0), NamespaceId: exampleNamespace.NamespaceId, }) if err != nil { return err } ctx.Export("saeConfigMapId", nameRegex.ApplyT(func(nameRegex sae.GetConfigMapsResult) (string, error) { return nameRegex.Maps[0].Id, nil }).(pulumi.StringOutput)) return nil }) }
```
type GetNamespacesArgs ¶ added in v3.5.0
type GetNamespacesArgs struct { // A list of Namespace IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Namespace name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getNamespaces.
type GetNamespacesNamespace ¶ added in v3.5.0
type GetNamespacesNamespace struct { // The ID of the Namespace. Id string `pulumi:"id"` // The Description of Namespace. NamespaceDescription string `pulumi:"namespaceDescription"` // The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}. NamespaceId string `pulumi:"namespaceId"` // The Name of Namespace. NamespaceName string `pulumi:"namespaceName"` }
type GetNamespacesNamespaceArgs ¶ added in v3.5.0
type GetNamespacesNamespaceArgs struct { // The ID of the Namespace. Id pulumi.StringInput `pulumi:"id"` // The Description of Namespace. NamespaceDescription pulumi.StringInput `pulumi:"namespaceDescription"` // The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}. NamespaceId pulumi.StringInput `pulumi:"namespaceId"` // The Name of Namespace. NamespaceName pulumi.StringInput `pulumi:"namespaceName"` }
func (GetNamespacesNamespaceArgs) ElementType ¶ added in v3.5.0
func (GetNamespacesNamespaceArgs) ElementType() reflect.Type
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput ¶ added in v3.5.0
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext ¶ added in v3.5.0
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
type GetNamespacesNamespaceArray ¶ added in v3.5.0
type GetNamespacesNamespaceArray []GetNamespacesNamespaceInput
func (GetNamespacesNamespaceArray) ElementType ¶ added in v3.5.0
func (GetNamespacesNamespaceArray) ElementType() reflect.Type
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput ¶ added in v3.5.0
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext ¶ added in v3.5.0
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceArrayInput ¶ added in v3.5.0
type GetNamespacesNamespaceArrayInput interface { pulumi.Input ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput ToGetNamespacesNamespaceArrayOutputWithContext(context.Context) GetNamespacesNamespaceArrayOutput }
GetNamespacesNamespaceArrayInput is an input type that accepts GetNamespacesNamespaceArray and GetNamespacesNamespaceArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceArrayInput` via:
GetNamespacesNamespaceArray{ GetNamespacesNamespaceArgs{...} }
type GetNamespacesNamespaceArrayOutput ¶ added in v3.5.0
type GetNamespacesNamespaceArrayOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceArrayOutput) ElementType ¶ added in v3.5.0
func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceArrayOutput) Index ¶ added in v3.5.0
func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput ¶ added in v3.5.0
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext ¶ added in v3.5.0
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceInput ¶ added in v3.5.0
type GetNamespacesNamespaceInput interface { pulumi.Input ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput ToGetNamespacesNamespaceOutputWithContext(context.Context) GetNamespacesNamespaceOutput }
GetNamespacesNamespaceInput is an input type that accepts GetNamespacesNamespaceArgs and GetNamespacesNamespaceOutput values. You can construct a concrete instance of `GetNamespacesNamespaceInput` via:
GetNamespacesNamespaceArgs{...}
type GetNamespacesNamespaceOutput ¶ added in v3.5.0
type GetNamespacesNamespaceOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceOutput) ElementType ¶ added in v3.5.0
func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceOutput) Id ¶ added in v3.5.0
func (o GetNamespacesNamespaceOutput) Id() pulumi.StringOutput
The ID of the Namespace.
func (GetNamespacesNamespaceOutput) NamespaceDescription ¶ added in v3.5.0
func (o GetNamespacesNamespaceOutput) NamespaceDescription() pulumi.StringOutput
The Description of Namespace.
func (GetNamespacesNamespaceOutput) NamespaceId ¶ added in v3.5.0
func (o GetNamespacesNamespaceOutput) NamespaceId() pulumi.StringOutput
The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}.
func (GetNamespacesNamespaceOutput) NamespaceName ¶ added in v3.5.0
func (o GetNamespacesNamespaceOutput) NamespaceName() pulumi.StringOutput
The Name of Namespace.
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput ¶ added in v3.5.0
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext ¶ added in v3.5.0
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
type GetNamespacesResult ¶ added in v3.5.0
type GetNamespacesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` Namespaces []GetNamespacesNamespace `pulumi:"namespaces"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getNamespaces.
func GetNamespaces ¶ added in v3.5.0
func GetNamespaces(ctx *pulumi.Context, args *GetNamespacesArgs, opts ...pulumi.InvokeOption) (*GetNamespacesResult, error)
This data source provides the Sae Namespaces of the current Alibaba Cloud user.
> **NOTE:** Available in v1.129.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "^my-Namespace" nameRegex, err := sae.GetNamespaces(ctx, &sae.GetNamespacesArgs{ NameRegex: &opt0, }, nil) if err != nil { return err } ctx.Export("saeNamespaceId", nameRegex.Namespaces[0].Id) return nil }) }
```
type GetServiceArgs ¶
type GetServiceArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". Enable *string `pulumi:"enable"` }
A collection of arguments for invoking getService.
type GetServiceResult ¶
type GetServiceResult struct { Enable *string `pulumi:"enable"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The current service enable status. Status string `pulumi:"status"` }
A collection of values returned by getService.
func GetService ¶
func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)
Using this data source can open SAE service automatically. If the service has been opened, it will return opened.
For information about SAE and how to use it, see [What is SAE](https://help.aliyun.com/document_detail/125720.html).
> **NOTE:** Available in v1.120.0+
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "On" _, err := sae.GetService(ctx, &sae.GetServiceArgs{ Enable: &opt0, }, nil) if err != nil { return err } return nil }) }
```
type Namespace ¶ added in v3.5.0
type Namespace struct { pulumi.CustomResourceState // The Description of Namespace. NamespaceDescription pulumi.StringPtrOutput `pulumi:"namespaceDescription"` // The Id of Namespace.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}` NamespaceId pulumi.StringOutput `pulumi:"namespaceId"` // The Name of Namespace. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` }
Provides a Serverless App Engine (SAE) Namespace resource.
For information about SAE Namespace and how to use it, see [What is Namespace](https://help.aliyun.com/document_detail/97792.html).
> **NOTE:** Available in v1.129.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := sae.NewNamespace(ctx, "example", &sae.NamespaceArgs{ NamespaceDescription: pulumi.String("your_description"), NamespaceId: pulumi.String("cn-hangzhou:yourname"), NamespaceName: pulumi.String("example_value"), }) if err != nil { return err } return nil }) }
```
## Import
Serverless App Engine (SAE) Namespace can be imported using the id, e.g.
```sh
$ pulumi import alicloud:sae/namespace:Namespace example <namespace_id>
```
func GetNamespace ¶ added in v3.5.0
func GetNamespace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)
GetNamespace gets an existing Namespace 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 NewNamespace ¶ added in v3.5.0
func NewNamespace(ctx *pulumi.Context, name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)
NewNamespace registers a new resource with the given unique name, arguments, and options.
func (*Namespace) ElementType ¶ added in v3.5.0
func (*Namespace) ToNamespaceOutput ¶ added in v3.5.0
func (i *Namespace) ToNamespaceOutput() NamespaceOutput
func (*Namespace) ToNamespaceOutputWithContext ¶ added in v3.5.0
func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
func (*Namespace) ToNamespacePtrOutput ¶ added in v3.5.0
func (i *Namespace) ToNamespacePtrOutput() NamespacePtrOutput
func (*Namespace) ToNamespacePtrOutputWithContext ¶ added in v3.5.0
func (i *Namespace) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
type NamespaceArgs ¶ added in v3.5.0
type NamespaceArgs struct { // The Description of Namespace. NamespaceDescription pulumi.StringPtrInput // The Id of Namespace.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}` NamespaceId pulumi.StringInput // The Name of Namespace. NamespaceName pulumi.StringInput }
The set of arguments for constructing a Namespace resource.
func (NamespaceArgs) ElementType ¶ added in v3.5.0
func (NamespaceArgs) ElementType() reflect.Type
type NamespaceArray ¶ added in v3.5.0
type NamespaceArray []NamespaceInput
func (NamespaceArray) ElementType ¶ added in v3.5.0
func (NamespaceArray) ElementType() reflect.Type
func (NamespaceArray) ToNamespaceArrayOutput ¶ added in v3.5.0
func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArray) ToNamespaceArrayOutputWithContext ¶ added in v3.5.0
func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceArrayInput ¶ added in v3.5.0
type NamespaceArrayInput interface { pulumi.Input ToNamespaceArrayOutput() NamespaceArrayOutput ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput }
NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:
NamespaceArray{ NamespaceArgs{...} }
type NamespaceArrayOutput ¶ added in v3.5.0
type NamespaceArrayOutput struct{ *pulumi.OutputState }
func (NamespaceArrayOutput) ElementType ¶ added in v3.5.0
func (NamespaceArrayOutput) ElementType() reflect.Type
func (NamespaceArrayOutput) Index ¶ added in v3.5.0
func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutput ¶ added in v3.5.0
func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext ¶ added in v3.5.0
func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceInput ¶ added in v3.5.0
type NamespaceInput interface { pulumi.Input ToNamespaceOutput() NamespaceOutput ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput }
type NamespaceMap ¶ added in v3.5.0
type NamespaceMap map[string]NamespaceInput
func (NamespaceMap) ElementType ¶ added in v3.5.0
func (NamespaceMap) ElementType() reflect.Type
func (NamespaceMap) ToNamespaceMapOutput ¶ added in v3.5.0
func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMap) ToNamespaceMapOutputWithContext ¶ added in v3.5.0
func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceMapInput ¶ added in v3.5.0
type NamespaceMapInput interface { pulumi.Input ToNamespaceMapOutput() NamespaceMapOutput ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput }
NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:
NamespaceMap{ "key": NamespaceArgs{...} }
type NamespaceMapOutput ¶ added in v3.5.0
type NamespaceMapOutput struct{ *pulumi.OutputState }
func (NamespaceMapOutput) ElementType ¶ added in v3.5.0
func (NamespaceMapOutput) ElementType() reflect.Type
func (NamespaceMapOutput) MapIndex ¶ added in v3.5.0
func (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput
func (NamespaceMapOutput) ToNamespaceMapOutput ¶ added in v3.5.0
func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMapOutput) ToNamespaceMapOutputWithContext ¶ added in v3.5.0
func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceOutput ¶ added in v3.5.0
type NamespaceOutput struct {
*pulumi.OutputState
}
func (NamespaceOutput) ElementType ¶ added in v3.5.0
func (NamespaceOutput) ElementType() reflect.Type
func (NamespaceOutput) ToNamespaceOutput ¶ added in v3.5.0
func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
func (NamespaceOutput) ToNamespaceOutputWithContext ¶ added in v3.5.0
func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
func (NamespaceOutput) ToNamespacePtrOutput ¶ added in v3.5.0
func (o NamespaceOutput) ToNamespacePtrOutput() NamespacePtrOutput
func (NamespaceOutput) ToNamespacePtrOutputWithContext ¶ added in v3.5.0
func (o NamespaceOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
type NamespacePtrInput ¶ added in v3.5.0
type NamespacePtrInput interface { pulumi.Input ToNamespacePtrOutput() NamespacePtrOutput ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput }
type NamespacePtrOutput ¶ added in v3.5.0
type NamespacePtrOutput struct {
*pulumi.OutputState
}
func (NamespacePtrOutput) ElementType ¶ added in v3.5.0
func (NamespacePtrOutput) ElementType() reflect.Type
func (NamespacePtrOutput) ToNamespacePtrOutput ¶ added in v3.5.0
func (o NamespacePtrOutput) ToNamespacePtrOutput() NamespacePtrOutput
func (NamespacePtrOutput) ToNamespacePtrOutputWithContext ¶ added in v3.5.0
func (o NamespacePtrOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
type NamespaceState ¶ added in v3.5.0
type NamespaceState struct { // The Description of Namespace. NamespaceDescription pulumi.StringPtrInput // The Id of Namespace.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}` NamespaceId pulumi.StringPtrInput // The Name of Namespace. NamespaceName pulumi.StringPtrInput }
func (NamespaceState) ElementType ¶ added in v3.5.0
func (NamespaceState) ElementType() reflect.Type