sae

package
v3.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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"`
	// Use designated public network SLBs that have been purchased to support non-shared instances. **NOTE:** Available in v1.139+.
	InternetIp pulumi.StringOutput `pulumi:"internetIp"`
	// public network SLB ID.
	InternetSlbId pulumi.StringPtrOutput `pulumi:"internetSlbId"`
	// Bound private network SLB. The details see Block internet.
	Internets ApplicationInternetArrayOutput `pulumi:"internets"`
	// Use the designated private network SLB that has been purchased to support non-shared instances. **NOTE:** Available in v1.139+.
	IntranetIp pulumi.StringOutput `pulumi:"intranetIp"`
	// private network SLB ID.
	IntranetSlbId pulumi.StringPtrOutput `pulumi:"intranetSlbId"`
	// Bound public network SLB. The details see Block intranet.
	Intranets ApplicationIntranetArrayOutput `pulumi:"intranets"`
	// 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. **NOTE:** the `replicas` supports modification since V1.139.0.
	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 "{}" 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 vpc id.
	VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
	// 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
		}
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, 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-testaccAppName"),
			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

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
	// public network SLB ID.
	InternetSlbId pulumi.StringPtrInput
	// Bound private network SLB. The details see Block internet.
	Internets ApplicationInternetArrayInput
	// private network SLB ID.
	IntranetSlbId pulumi.StringPtrInput
	// Bound public network SLB. The details see Block intranet.
	Intranets ApplicationIntranetArrayInput
	// 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. **NOTE:** the `replicas` supports modification since V1.139.0.
	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 "{}" 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 vpc id.
	VpcId 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 (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 ApplicationInternet added in v3.9.0

type ApplicationInternet struct {
	// SSL certificate. `httpsCertId` is required when HTTPS is selected
	HttpsCertId *string `pulumi:"httpsCertId"`
	// SLB Port.
	Port *int `pulumi:"port"`
	// Network protocol. Valid values: `TCP` ,`HTTP`,`HTTPS`.
	Protocol *string `pulumi:"protocol"`
	// Container port.
	TargetPort *int `pulumi:"targetPort"`
}

type ApplicationInternetArgs added in v3.9.0

type ApplicationInternetArgs struct {
	// SSL certificate. `httpsCertId` is required when HTTPS is selected
	HttpsCertId pulumi.StringPtrInput `pulumi:"httpsCertId"`
	// SLB Port.
	Port pulumi.IntPtrInput `pulumi:"port"`
	// Network protocol. Valid values: `TCP` ,`HTTP`,`HTTPS`.
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// Container port.
	TargetPort pulumi.IntPtrInput `pulumi:"targetPort"`
}

func (ApplicationInternetArgs) ElementType added in v3.9.0

func (ApplicationInternetArgs) ElementType() reflect.Type

func (ApplicationInternetArgs) ToApplicationInternetOutput added in v3.9.0

func (i ApplicationInternetArgs) ToApplicationInternetOutput() ApplicationInternetOutput

func (ApplicationInternetArgs) ToApplicationInternetOutputWithContext added in v3.9.0

func (i ApplicationInternetArgs) ToApplicationInternetOutputWithContext(ctx context.Context) ApplicationInternetOutput

type ApplicationInternetArray added in v3.9.0

type ApplicationInternetArray []ApplicationInternetInput

func (ApplicationInternetArray) ElementType added in v3.9.0

func (ApplicationInternetArray) ElementType() reflect.Type

func (ApplicationInternetArray) ToApplicationInternetArrayOutput added in v3.9.0

func (i ApplicationInternetArray) ToApplicationInternetArrayOutput() ApplicationInternetArrayOutput

func (ApplicationInternetArray) ToApplicationInternetArrayOutputWithContext added in v3.9.0

func (i ApplicationInternetArray) ToApplicationInternetArrayOutputWithContext(ctx context.Context) ApplicationInternetArrayOutput

type ApplicationInternetArrayInput added in v3.9.0

type ApplicationInternetArrayInput interface {
	pulumi.Input

	ToApplicationInternetArrayOutput() ApplicationInternetArrayOutput
	ToApplicationInternetArrayOutputWithContext(context.Context) ApplicationInternetArrayOutput
}

ApplicationInternetArrayInput is an input type that accepts ApplicationInternetArray and ApplicationInternetArrayOutput values. You can construct a concrete instance of `ApplicationInternetArrayInput` via:

ApplicationInternetArray{ ApplicationInternetArgs{...} }

type ApplicationInternetArrayOutput added in v3.9.0

type ApplicationInternetArrayOutput struct{ *pulumi.OutputState }

func (ApplicationInternetArrayOutput) ElementType added in v3.9.0

func (ApplicationInternetArrayOutput) Index added in v3.9.0

func (ApplicationInternetArrayOutput) ToApplicationInternetArrayOutput added in v3.9.0

func (o ApplicationInternetArrayOutput) ToApplicationInternetArrayOutput() ApplicationInternetArrayOutput

func (ApplicationInternetArrayOutput) ToApplicationInternetArrayOutputWithContext added in v3.9.0

func (o ApplicationInternetArrayOutput) ToApplicationInternetArrayOutputWithContext(ctx context.Context) ApplicationInternetArrayOutput

type ApplicationInternetInput added in v3.9.0

type ApplicationInternetInput interface {
	pulumi.Input

	ToApplicationInternetOutput() ApplicationInternetOutput
	ToApplicationInternetOutputWithContext(context.Context) ApplicationInternetOutput
}

ApplicationInternetInput is an input type that accepts ApplicationInternetArgs and ApplicationInternetOutput values. You can construct a concrete instance of `ApplicationInternetInput` via:

ApplicationInternetArgs{...}

type ApplicationInternetOutput added in v3.9.0

type ApplicationInternetOutput struct{ *pulumi.OutputState }

func (ApplicationInternetOutput) ElementType added in v3.9.0

func (ApplicationInternetOutput) ElementType() reflect.Type

func (ApplicationInternetOutput) HttpsCertId added in v3.9.0

SSL certificate. `httpsCertId` is required when HTTPS is selected

func (ApplicationInternetOutput) Port added in v3.9.0

SLB Port.

func (ApplicationInternetOutput) Protocol added in v3.9.0

Network protocol. Valid values: `TCP` ,`HTTP`,`HTTPS`.

func (ApplicationInternetOutput) TargetPort added in v3.9.0

Container port.

func (ApplicationInternetOutput) ToApplicationInternetOutput added in v3.9.0

func (o ApplicationInternetOutput) ToApplicationInternetOutput() ApplicationInternetOutput

func (ApplicationInternetOutput) ToApplicationInternetOutputWithContext added in v3.9.0

func (o ApplicationInternetOutput) ToApplicationInternetOutputWithContext(ctx context.Context) ApplicationInternetOutput

type ApplicationIntranet added in v3.9.0

type ApplicationIntranet struct {
	// SSL certificate. `httpsCertId` is required when HTTPS is selected
	HttpsCertId *string `pulumi:"httpsCertId"`
	// SLB Port.
	Port *int `pulumi:"port"`
	// Network protocol. Valid values: `TCP` ,`HTTP`,`HTTPS`.
	Protocol *string `pulumi:"protocol"`
	// Container port.
	TargetPort *int `pulumi:"targetPort"`
}

type ApplicationIntranetArgs added in v3.9.0

type ApplicationIntranetArgs struct {
	// SSL certificate. `httpsCertId` is required when HTTPS is selected
	HttpsCertId pulumi.StringPtrInput `pulumi:"httpsCertId"`
	// SLB Port.
	Port pulumi.IntPtrInput `pulumi:"port"`
	// Network protocol. Valid values: `TCP` ,`HTTP`,`HTTPS`.
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// Container port.
	TargetPort pulumi.IntPtrInput `pulumi:"targetPort"`
}

func (ApplicationIntranetArgs) ElementType added in v3.9.0

func (ApplicationIntranetArgs) ElementType() reflect.Type

func (ApplicationIntranetArgs) ToApplicationIntranetOutput added in v3.9.0

func (i ApplicationIntranetArgs) ToApplicationIntranetOutput() ApplicationIntranetOutput

func (ApplicationIntranetArgs) ToApplicationIntranetOutputWithContext added in v3.9.0

func (i ApplicationIntranetArgs) ToApplicationIntranetOutputWithContext(ctx context.Context) ApplicationIntranetOutput

type ApplicationIntranetArray added in v3.9.0

type ApplicationIntranetArray []ApplicationIntranetInput

func (ApplicationIntranetArray) ElementType added in v3.9.0

func (ApplicationIntranetArray) ElementType() reflect.Type

func (ApplicationIntranetArray) ToApplicationIntranetArrayOutput added in v3.9.0

func (i ApplicationIntranetArray) ToApplicationIntranetArrayOutput() ApplicationIntranetArrayOutput

func (ApplicationIntranetArray) ToApplicationIntranetArrayOutputWithContext added in v3.9.0

func (i ApplicationIntranetArray) ToApplicationIntranetArrayOutputWithContext(ctx context.Context) ApplicationIntranetArrayOutput

type ApplicationIntranetArrayInput added in v3.9.0

type ApplicationIntranetArrayInput interface {
	pulumi.Input

	ToApplicationIntranetArrayOutput() ApplicationIntranetArrayOutput
	ToApplicationIntranetArrayOutputWithContext(context.Context) ApplicationIntranetArrayOutput
}

ApplicationIntranetArrayInput is an input type that accepts ApplicationIntranetArray and ApplicationIntranetArrayOutput values. You can construct a concrete instance of `ApplicationIntranetArrayInput` via:

ApplicationIntranetArray{ ApplicationIntranetArgs{...} }

type ApplicationIntranetArrayOutput added in v3.9.0

type ApplicationIntranetArrayOutput struct{ *pulumi.OutputState }

func (ApplicationIntranetArrayOutput) ElementType added in v3.9.0

func (ApplicationIntranetArrayOutput) Index added in v3.9.0

func (ApplicationIntranetArrayOutput) ToApplicationIntranetArrayOutput added in v3.9.0

func (o ApplicationIntranetArrayOutput) ToApplicationIntranetArrayOutput() ApplicationIntranetArrayOutput

func (ApplicationIntranetArrayOutput) ToApplicationIntranetArrayOutputWithContext added in v3.9.0

func (o ApplicationIntranetArrayOutput) ToApplicationIntranetArrayOutputWithContext(ctx context.Context) ApplicationIntranetArrayOutput

type ApplicationIntranetInput added in v3.9.0

type ApplicationIntranetInput interface {
	pulumi.Input

	ToApplicationIntranetOutput() ApplicationIntranetOutput
	ToApplicationIntranetOutputWithContext(context.Context) ApplicationIntranetOutput
}

ApplicationIntranetInput is an input type that accepts ApplicationIntranetArgs and ApplicationIntranetOutput values. You can construct a concrete instance of `ApplicationIntranetInput` via:

ApplicationIntranetArgs{...}

type ApplicationIntranetOutput added in v3.9.0

type ApplicationIntranetOutput struct{ *pulumi.OutputState }

func (ApplicationIntranetOutput) ElementType added in v3.9.0

func (ApplicationIntranetOutput) ElementType() reflect.Type

func (ApplicationIntranetOutput) HttpsCertId added in v3.9.0

SSL certificate. `httpsCertId` is required when HTTPS is selected

func (ApplicationIntranetOutput) Port added in v3.9.0

SLB Port.

func (ApplicationIntranetOutput) Protocol added in v3.9.0

Network protocol. Valid values: `TCP` ,`HTTP`,`HTTPS`.

func (ApplicationIntranetOutput) TargetPort added in v3.9.0

Container port.

func (ApplicationIntranetOutput) ToApplicationIntranetOutput added in v3.9.0

func (o ApplicationIntranetOutput) ToApplicationIntranetOutput() ApplicationIntranetOutput

func (ApplicationIntranetOutput) ToApplicationIntranetOutputWithContext added in v3.9.0

func (o ApplicationIntranetOutput) ToApplicationIntranetOutputWithContext(ctx context.Context) ApplicationIntranetOutput

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 (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

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
	// Use designated public network SLBs that have been purchased to support non-shared instances. **NOTE:** Available in v1.139+.
	InternetIp pulumi.StringPtrInput
	// public network SLB ID.
	InternetSlbId pulumi.StringPtrInput
	// Bound private network SLB. The details see Block internet.
	Internets ApplicationInternetArrayInput
	// Use the designated private network SLB that has been purchased to support non-shared instances. **NOTE:** Available in v1.139+.
	IntranetIp pulumi.StringPtrInput
	// private network SLB ID.
	IntranetSlbId pulumi.StringPtrInput
	// Bound public network SLB. The details see Block intranet.
	Intranets ApplicationIntranetArrayInput
	// 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. **NOTE:** the `replicas` supports modification since V1.139.0.
	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 "{}" 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 vpc id.
	VpcId 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) ElementType() reflect.Type

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

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 (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 (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

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) 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) 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) Index added in v3.7.0

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

The ARN of the RAM role required when pulling images across accounts.

func (GetApplicationsApplicationOutput) AppDescription added in v3.7.0

Application description information. No more than 1024 characters.

func (GetApplicationsApplicationOutput) AppName added in v3.7.0

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

The first ID of the resource.

func (GetApplicationsApplicationOutput) Command added in v3.7.0

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

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

The CPU required for each instance, in millicores, cannot be 0.

func (GetApplicationsApplicationOutput) CreateTime added in v3.7.0

Indicates That the Application of the Creation Time.

func (GetApplicationsApplicationOutput) CustomHostAlias added in v3.7.0

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) Envs added in v3.7.0

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

The ID of the Application.

func (GetApplicationsApplicationOutput) ImageUrl added in v3.7.0

Mirror address. Only Image type applications can configure the mirror address.

func (GetApplicationsApplicationOutput) JarStartArgs added in v3.7.0

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

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

The JDK version that the deployment package depends on. Image type applications are not supported.

func (GetApplicationsApplicationOutput) Liveness added in v3.7.0

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

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

Mount description.

func (GetApplicationsApplicationOutput) MountHost added in v3.7.0

Mount point of NAS in application VPC.

func (GetApplicationsApplicationOutput) NamespaceId added in v3.7.0

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

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

OSS AccessKey ID.

func (GetApplicationsApplicationOutput) OssAkSecret added in v3.7.0

OSS AccessKey Secret.

func (GetApplicationsApplicationOutput) OssMountDescs added in v3.7.0

OSS mount description information.

func (GetApplicationsApplicationOutput) PackageType added in v3.7.0

Application package type. Support FatJar, War and Image.

func (GetApplicationsApplicationOutput) PackageUrl added in v3.7.0

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

func (GetApplicationsApplicationOutput) PackageVersion added in v3.7.0

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

PHP configuration file content.

func (GetApplicationsApplicationOutput) PhpConfigLocation added in v3.7.0

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

Execute the script after startup, the format is like: {"exec":{"command":["cat","/etc/group"]}}.

func (GetApplicationsApplicationOutput) PreStop added in v3.7.0

Execute the script before stopping, the format is like: {"exec":{"command":["cat","/etc/group"]}}.

func (GetApplicationsApplicationOutput) Readiness added in v3.7.0

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 (GetApplicationsApplicationOutput) Replicas added in v3.7.0

Initial number of instances.

func (GetApplicationsApplicationOutput) RepoName added in v3.7.0

func (GetApplicationsApplicationOutput) RepoNamespace added in v3.7.0

func (GetApplicationsApplicationOutput) RepoOriginType added in v3.7.0

func (GetApplicationsApplicationOutput) SecurityGroupId added in v3.7.0

Security group ID.

func (GetApplicationsApplicationOutput) SlsConfigs added in v3.7.0

SLS configuration.

func (GetApplicationsApplicationOutput) Status added in v3.7.0

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

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

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

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

The vswitch id.

func (GetApplicationsApplicationOutput) WarStartOptions added in v3.7.0

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

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 GetApplicationsOutputArgs added in v3.9.0

type GetApplicationsOutputArgs 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 pulumi.StringPtrInput `pulumi:"appName"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// The field type. Valid values:`appName`, `appIds`, `slbIps`, `instanceIps`
	FieldType pulumi.StringPtrInput `pulumi:"fieldType"`
	// The field value.
	FieldValue pulumi.StringPtrInput `pulumi:"fieldValue"`
	// A list of Application IDs.
	Ids pulumi.StringArrayInput `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 pulumi.StringPtrInput `pulumi:"namespaceId"`
	// The order by.Valid values:`running`,`instances`.
	OrderBy    pulumi.StringPtrInput `pulumi:"orderBy"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The reverse.
	Reverse pulumi.BoolPtrInput `pulumi:"reverse"`
	// The status of the resource.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getApplications.

func (GetApplicationsOutputArgs) ElementType added in v3.9.0

func (GetApplicationsOutputArgs) ElementType() reflect.Type

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
		}
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, 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
		}
		defaultApplications := sae.GetApplicationsOutput(ctx, sae.GetApplicationsOutputArgs{
			Ids: pulumi.StringArray{
				defaultApplication.ID(),
			},
		}, nil)
		ctx.Export("saeApplicationId", defaultApplications.ApplyT(func(defaultApplications sae.GetApplicationsResult) (string, error) {
			return defaultApplications.Applications[0].Id, nil
		}).(pulumi.StringOutput))
		return nil
	})
}

```

type GetApplicationsResultOutput added in v3.9.0

type GetApplicationsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getApplications.

func GetApplicationsOutput added in v3.9.0

func (GetApplicationsResultOutput) AppName added in v3.9.0

func (GetApplicationsResultOutput) Applications added in v3.9.0

func (GetApplicationsResultOutput) ElementType added in v3.9.0

func (GetApplicationsResultOutput) EnableDetails added in v3.9.0

func (GetApplicationsResultOutput) FieldType added in v3.9.0

func (GetApplicationsResultOutput) FieldValue added in v3.9.0

func (GetApplicationsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetApplicationsResultOutput) Ids added in v3.9.0

func (GetApplicationsResultOutput) NamespaceId added in v3.9.0

func (GetApplicationsResultOutput) OrderBy added in v3.9.0

func (GetApplicationsResultOutput) OutputFile added in v3.9.0

func (GetApplicationsResultOutput) Reverse added in v3.9.0

func (GetApplicationsResultOutput) Status added in v3.9.0

func (GetApplicationsResultOutput) ToGetApplicationsResultOutput added in v3.9.0

func (o GetApplicationsResultOutput) ToGetApplicationsResultOutput() GetApplicationsResultOutput

func (GetApplicationsResultOutput) ToGetApplicationsResultOutputWithContext added in v3.9.0

func (o GetApplicationsResultOutput) ToGetApplicationsResultOutputWithContext(ctx context.Context) GetApplicationsResultOutput

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{ GetConfigMapsMapArgs{...} }

type GetConfigMapsMapArrayOutput added in v3.6.0

type GetConfigMapsMapArrayOutput struct{ *pulumi.OutputState }

func (GetConfigMapsMapArrayOutput) ElementType added in v3.6.0

func (GetConfigMapsMapArrayOutput) Index added in v3.6.0

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

The Creation Time of the ConfigMap.

func (GetConfigMapsMapOutput) Data added in v3.6.0

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

The ID of the Config Map.

func (GetConfigMapsMapOutput) Name added in v3.6.0

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 GetConfigMapsOutputArgs added in v3.9.0

type GetConfigMapsOutputArgs struct {
	// A list of Config Map IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Config Map name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// The NamespaceId of Config Maps.
	NamespaceId pulumi.StringInput    `pulumi:"namespaceId"`
	OutputFile  pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getConfigMaps.

func (GetConfigMapsOutputArgs) ElementType added in v3.9.0

func (GetConfigMapsOutputArgs) ElementType() reflect.Type

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
		}
		nameRegex := sae.GetConfigMapsOutput(ctx, sae.GetConfigMapsOutputArgs{
			NamespaceId: exampleNamespace.NamespaceId,
			NameRegex:   pulumi.String("^example"),
		}, nil)
		ctx.Export("saeConfigMapId", nameRegex.ApplyT(func(nameRegex sae.GetConfigMapsResult) (string, error) {
			return nameRegex.Maps[0].Id, nil
		}).(pulumi.StringOutput))
		return nil
	})
}

```

type GetConfigMapsResultOutput added in v3.9.0

type GetConfigMapsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConfigMaps.

func GetConfigMapsOutput added in v3.9.0

func GetConfigMapsOutput(ctx *pulumi.Context, args GetConfigMapsOutputArgs, opts ...pulumi.InvokeOption) GetConfigMapsResultOutput

func (GetConfigMapsResultOutput) ElementType added in v3.9.0

func (GetConfigMapsResultOutput) ElementType() reflect.Type

func (GetConfigMapsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetConfigMapsResultOutput) Ids added in v3.9.0

func (GetConfigMapsResultOutput) Maps added in v3.9.0

func (GetConfigMapsResultOutput) NameRegex added in v3.9.0

func (GetConfigMapsResultOutput) Names added in v3.9.0

func (GetConfigMapsResultOutput) NamespaceId added in v3.9.0

func (GetConfigMapsResultOutput) OutputFile added in v3.9.0

func (GetConfigMapsResultOutput) ToGetConfigMapsResultOutput added in v3.9.0

func (o GetConfigMapsResultOutput) ToGetConfigMapsResultOutput() GetConfigMapsResultOutput

func (GetConfigMapsResultOutput) ToGetConfigMapsResultOutputWithContext added in v3.9.0

func (o GetConfigMapsResultOutput) ToGetConfigMapsResultOutputWithContext(ctx context.Context) GetConfigMapsResultOutput

type GetIngressesArgs added in v3.8.0

type GetIngressesArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Ingress IDs.
	Ids []string `pulumi:"ids"`
	// The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}.
	NamespaceId string  `pulumi:"namespaceId"`
	OutputFile  *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getIngresses.

type GetIngressesIngress added in v3.8.0

type GetIngressesIngress struct {
	// Cert Id.
	CertId string `pulumi:"certId"`
	// Default Rule.
	DefaultRule string `pulumi:"defaultRule"`
	// Description.
	Description string `pulumi:"description"`
	// The ID of the Ingress.
	Id string `pulumi:"id"`
	// The first ID of the resource.
	IngressId string `pulumi:"ingressId"`
	// SLB listening port.
	ListenerPort int `pulumi:"listenerPort"`
	// The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}.
	NamespaceId string `pulumi:"namespaceId"`
	// SLB ID.
	SlbId string `pulumi:"slbId"`
}

type GetIngressesIngressArgs added in v3.8.0

type GetIngressesIngressArgs struct {
	// Cert Id.
	CertId pulumi.StringInput `pulumi:"certId"`
	// Default Rule.
	DefaultRule pulumi.StringInput `pulumi:"defaultRule"`
	// Description.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Ingress.
	Id pulumi.StringInput `pulumi:"id"`
	// The first ID of the resource.
	IngressId pulumi.StringInput `pulumi:"ingressId"`
	// SLB listening port.
	ListenerPort pulumi.IntInput `pulumi:"listenerPort"`
	// The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}.
	NamespaceId pulumi.StringInput `pulumi:"namespaceId"`
	// SLB ID.
	SlbId pulumi.StringInput `pulumi:"slbId"`
}

func (GetIngressesIngressArgs) ElementType added in v3.8.0

func (GetIngressesIngressArgs) ElementType() reflect.Type

func (GetIngressesIngressArgs) ToGetIngressesIngressOutput added in v3.8.0

func (i GetIngressesIngressArgs) ToGetIngressesIngressOutput() GetIngressesIngressOutput

func (GetIngressesIngressArgs) ToGetIngressesIngressOutputWithContext added in v3.8.0

func (i GetIngressesIngressArgs) ToGetIngressesIngressOutputWithContext(ctx context.Context) GetIngressesIngressOutput

type GetIngressesIngressArray added in v3.8.0

type GetIngressesIngressArray []GetIngressesIngressInput

func (GetIngressesIngressArray) ElementType added in v3.8.0

func (GetIngressesIngressArray) ElementType() reflect.Type

func (GetIngressesIngressArray) ToGetIngressesIngressArrayOutput added in v3.8.0

func (i GetIngressesIngressArray) ToGetIngressesIngressArrayOutput() GetIngressesIngressArrayOutput

func (GetIngressesIngressArray) ToGetIngressesIngressArrayOutputWithContext added in v3.8.0

func (i GetIngressesIngressArray) ToGetIngressesIngressArrayOutputWithContext(ctx context.Context) GetIngressesIngressArrayOutput

type GetIngressesIngressArrayInput added in v3.8.0

type GetIngressesIngressArrayInput interface {
	pulumi.Input

	ToGetIngressesIngressArrayOutput() GetIngressesIngressArrayOutput
	ToGetIngressesIngressArrayOutputWithContext(context.Context) GetIngressesIngressArrayOutput
}

GetIngressesIngressArrayInput is an input type that accepts GetIngressesIngressArray and GetIngressesIngressArrayOutput values. You can construct a concrete instance of `GetIngressesIngressArrayInput` via:

GetIngressesIngressArray{ GetIngressesIngressArgs{...} }

type GetIngressesIngressArrayOutput added in v3.8.0

type GetIngressesIngressArrayOutput struct{ *pulumi.OutputState }

func (GetIngressesIngressArrayOutput) ElementType added in v3.8.0

func (GetIngressesIngressArrayOutput) Index added in v3.8.0

func (GetIngressesIngressArrayOutput) ToGetIngressesIngressArrayOutput added in v3.8.0

func (o GetIngressesIngressArrayOutput) ToGetIngressesIngressArrayOutput() GetIngressesIngressArrayOutput

func (GetIngressesIngressArrayOutput) ToGetIngressesIngressArrayOutputWithContext added in v3.8.0

func (o GetIngressesIngressArrayOutput) ToGetIngressesIngressArrayOutputWithContext(ctx context.Context) GetIngressesIngressArrayOutput

type GetIngressesIngressInput added in v3.8.0

type GetIngressesIngressInput interface {
	pulumi.Input

	ToGetIngressesIngressOutput() GetIngressesIngressOutput
	ToGetIngressesIngressOutputWithContext(context.Context) GetIngressesIngressOutput
}

GetIngressesIngressInput is an input type that accepts GetIngressesIngressArgs and GetIngressesIngressOutput values. You can construct a concrete instance of `GetIngressesIngressInput` via:

GetIngressesIngressArgs{...}

type GetIngressesIngressOutput added in v3.8.0

type GetIngressesIngressOutput struct{ *pulumi.OutputState }

func (GetIngressesIngressOutput) CertId added in v3.8.0

Cert Id.

func (GetIngressesIngressOutput) DefaultRule added in v3.8.0

Default Rule.

func (GetIngressesIngressOutput) Description added in v3.8.0

Description.

func (GetIngressesIngressOutput) ElementType added in v3.8.0

func (GetIngressesIngressOutput) ElementType() reflect.Type

func (GetIngressesIngressOutput) Id added in v3.8.0

The ID of the Ingress.

func (GetIngressesIngressOutput) IngressId added in v3.8.0

The first ID of the resource.

func (GetIngressesIngressOutput) ListenerPort added in v3.8.0

func (o GetIngressesIngressOutput) ListenerPort() pulumi.IntOutput

SLB listening port.

func (GetIngressesIngressOutput) NamespaceId added in v3.8.0

The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}.

func (GetIngressesIngressOutput) SlbId added in v3.8.0

SLB ID.

func (GetIngressesIngressOutput) ToGetIngressesIngressOutput added in v3.8.0

func (o GetIngressesIngressOutput) ToGetIngressesIngressOutput() GetIngressesIngressOutput

func (GetIngressesIngressOutput) ToGetIngressesIngressOutputWithContext added in v3.8.0

func (o GetIngressesIngressOutput) ToGetIngressesIngressOutputWithContext(ctx context.Context) GetIngressesIngressOutput

type GetIngressesOutputArgs added in v3.9.0

type GetIngressesOutputArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Ingress IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The Id of Namespace.It can contain 2 to 32 characters.The value is in format {RegionId}:{namespace}.
	NamespaceId pulumi.StringInput    `pulumi:"namespaceId"`
	OutputFile  pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getIngresses.

func (GetIngressesOutputArgs) ElementType added in v3.9.0

func (GetIngressesOutputArgs) ElementType() reflect.Type

type GetIngressesResult added in v3.8.0

type GetIngressesResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id          string                `pulumi:"id"`
	Ids         []string              `pulumi:"ids"`
	Ingresses   []GetIngressesIngress `pulumi:"ingresses"`
	NamespaceId string                `pulumi:"namespaceId"`
	OutputFile  *string               `pulumi:"outputFile"`
}

A collection of values returned by getIngresses.

func GetIngresses added in v3.8.0

func GetIngresses(ctx *pulumi.Context, args *GetIngressesArgs, opts ...pulumi.InvokeOption) (*GetIngressesResult, error)

This data source provides the Sae Ingresses of the current Alibaba Cloud user.

> **NOTE:** Available in v1.137.0+.

type GetIngressesResultOutput added in v3.9.0

type GetIngressesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getIngresses.

func GetIngressesOutput added in v3.9.0

func GetIngressesOutput(ctx *pulumi.Context, args GetIngressesOutputArgs, opts ...pulumi.InvokeOption) GetIngressesResultOutput

func (GetIngressesResultOutput) ElementType added in v3.9.0

func (GetIngressesResultOutput) ElementType() reflect.Type

func (GetIngressesResultOutput) EnableDetails added in v3.9.0

func (o GetIngressesResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetIngressesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetIngressesResultOutput) Ids added in v3.9.0

func (GetIngressesResultOutput) Ingresses added in v3.9.0

func (GetIngressesResultOutput) NamespaceId added in v3.9.0

func (GetIngressesResultOutput) OutputFile added in v3.9.0

func (GetIngressesResultOutput) ToGetIngressesResultOutput added in v3.9.0

func (o GetIngressesResultOutput) ToGetIngressesResultOutput() GetIngressesResultOutput

func (GetIngressesResultOutput) ToGetIngressesResultOutputWithContext added in v3.9.0

func (o GetIngressesResultOutput) ToGetIngressesResultOutputWithContext(ctx context.Context) GetIngressesResultOutput

type GetInstanceSpecificationsArgs added in v3.9.0

type GetInstanceSpecificationsArgs struct {
	// A list of Instance Specification IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of arguments for invoking getInstanceSpecifications.

type GetInstanceSpecificationsOutputArgs added in v3.9.0

type GetInstanceSpecificationsOutputArgs struct {
	// A list of Instance Specification IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
}

A collection of arguments for invoking getInstanceSpecifications.

func (GetInstanceSpecificationsOutputArgs) ElementType added in v3.9.0

type GetInstanceSpecificationsResult added in v3.9.0

type GetInstanceSpecificationsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id             string                                   `pulumi:"id"`
	Ids            []string                                 `pulumi:"ids"`
	OutputFile     *string                                  `pulumi:"outputFile"`
	Specifications []GetInstanceSpecificationsSpecification `pulumi:"specifications"`
}

A collection of values returned by getInstanceSpecifications.

func GetInstanceSpecifications added in v3.9.0

func GetInstanceSpecifications(ctx *pulumi.Context, args *GetInstanceSpecificationsArgs, opts ...pulumi.InvokeOption) (*GetInstanceSpecificationsResult, error)

This data source provides the Sae Instance Specifications of the current Alibaba Cloud user.

> **NOTE:** Available in v1.139.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 {
		ids, err := sae.GetInstanceSpecifications(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("saeInstanceSpecificationId1", ids.Specifications[0].Id)
		return nil
	})
}

```

type GetInstanceSpecificationsResultOutput added in v3.9.0

type GetInstanceSpecificationsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstanceSpecifications.

func (GetInstanceSpecificationsResultOutput) ElementType added in v3.9.0

func (GetInstanceSpecificationsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstanceSpecificationsResultOutput) Ids added in v3.9.0

func (GetInstanceSpecificationsResultOutput) OutputFile added in v3.9.0

func (GetInstanceSpecificationsResultOutput) Specifications added in v3.9.0

func (GetInstanceSpecificationsResultOutput) ToGetInstanceSpecificationsResultOutput added in v3.9.0

func (o GetInstanceSpecificationsResultOutput) ToGetInstanceSpecificationsResultOutput() GetInstanceSpecificationsResultOutput

func (GetInstanceSpecificationsResultOutput) ToGetInstanceSpecificationsResultOutputWithContext added in v3.9.0

func (o GetInstanceSpecificationsResultOutput) ToGetInstanceSpecificationsResultOutputWithContext(ctx context.Context) GetInstanceSpecificationsResultOutput

type GetInstanceSpecificationsSpecification added in v3.9.0

type GetInstanceSpecificationsSpecification struct {
	// CPU Size, Specifications for Micronucleus.
	Cpu int `pulumi:"cpu"`
	// Whether the instance is available. The value description is as follows:
	Enable bool `pulumi:"enable"`
	// The ID of the Instance Specification.
	Id string `pulumi:"id"`
	// The first ID of the resource.
	InstanceSpecificationId string `pulumi:"instanceSpecificationId"`
	// The Memory specifications for the MB.
	Memory int `pulumi:"memory"`
	// The specification configuration name.
	SpecInfo string `pulumi:"specInfo"`
	// The specification configuration version.
	Version int `pulumi:"version"`
}

type GetInstanceSpecificationsSpecificationArgs added in v3.9.0

type GetInstanceSpecificationsSpecificationArgs struct {
	// CPU Size, Specifications for Micronucleus.
	Cpu pulumi.IntInput `pulumi:"cpu"`
	// Whether the instance is available. The value description is as follows:
	Enable pulumi.BoolInput `pulumi:"enable"`
	// The ID of the Instance Specification.
	Id pulumi.StringInput `pulumi:"id"`
	// The first ID of the resource.
	InstanceSpecificationId pulumi.StringInput `pulumi:"instanceSpecificationId"`
	// The Memory specifications for the MB.
	Memory pulumi.IntInput `pulumi:"memory"`
	// The specification configuration name.
	SpecInfo pulumi.StringInput `pulumi:"specInfo"`
	// The specification configuration version.
	Version pulumi.IntInput `pulumi:"version"`
}

func (GetInstanceSpecificationsSpecificationArgs) ElementType added in v3.9.0

func (GetInstanceSpecificationsSpecificationArgs) ToGetInstanceSpecificationsSpecificationOutput added in v3.9.0

func (i GetInstanceSpecificationsSpecificationArgs) ToGetInstanceSpecificationsSpecificationOutput() GetInstanceSpecificationsSpecificationOutput

func (GetInstanceSpecificationsSpecificationArgs) ToGetInstanceSpecificationsSpecificationOutputWithContext added in v3.9.0

func (i GetInstanceSpecificationsSpecificationArgs) ToGetInstanceSpecificationsSpecificationOutputWithContext(ctx context.Context) GetInstanceSpecificationsSpecificationOutput

type GetInstanceSpecificationsSpecificationArray added in v3.9.0

type GetInstanceSpecificationsSpecificationArray []GetInstanceSpecificationsSpecificationInput

func (GetInstanceSpecificationsSpecificationArray) ElementType added in v3.9.0

func (GetInstanceSpecificationsSpecificationArray) ToGetInstanceSpecificationsSpecificationArrayOutput added in v3.9.0

func (i GetInstanceSpecificationsSpecificationArray) ToGetInstanceSpecificationsSpecificationArrayOutput() GetInstanceSpecificationsSpecificationArrayOutput

func (GetInstanceSpecificationsSpecificationArray) ToGetInstanceSpecificationsSpecificationArrayOutputWithContext added in v3.9.0

func (i GetInstanceSpecificationsSpecificationArray) ToGetInstanceSpecificationsSpecificationArrayOutputWithContext(ctx context.Context) GetInstanceSpecificationsSpecificationArrayOutput

type GetInstanceSpecificationsSpecificationArrayInput added in v3.9.0

type GetInstanceSpecificationsSpecificationArrayInput interface {
	pulumi.Input

	ToGetInstanceSpecificationsSpecificationArrayOutput() GetInstanceSpecificationsSpecificationArrayOutput
	ToGetInstanceSpecificationsSpecificationArrayOutputWithContext(context.Context) GetInstanceSpecificationsSpecificationArrayOutput
}

GetInstanceSpecificationsSpecificationArrayInput is an input type that accepts GetInstanceSpecificationsSpecificationArray and GetInstanceSpecificationsSpecificationArrayOutput values. You can construct a concrete instance of `GetInstanceSpecificationsSpecificationArrayInput` via:

GetInstanceSpecificationsSpecificationArray{ GetInstanceSpecificationsSpecificationArgs{...} }

type GetInstanceSpecificationsSpecificationArrayOutput added in v3.9.0

type GetInstanceSpecificationsSpecificationArrayOutput struct{ *pulumi.OutputState }

func (GetInstanceSpecificationsSpecificationArrayOutput) ElementType added in v3.9.0

func (GetInstanceSpecificationsSpecificationArrayOutput) Index added in v3.9.0

func (GetInstanceSpecificationsSpecificationArrayOutput) ToGetInstanceSpecificationsSpecificationArrayOutput added in v3.9.0

func (o GetInstanceSpecificationsSpecificationArrayOutput) ToGetInstanceSpecificationsSpecificationArrayOutput() GetInstanceSpecificationsSpecificationArrayOutput

func (GetInstanceSpecificationsSpecificationArrayOutput) ToGetInstanceSpecificationsSpecificationArrayOutputWithContext added in v3.9.0

func (o GetInstanceSpecificationsSpecificationArrayOutput) ToGetInstanceSpecificationsSpecificationArrayOutputWithContext(ctx context.Context) GetInstanceSpecificationsSpecificationArrayOutput

type GetInstanceSpecificationsSpecificationInput added in v3.9.0

type GetInstanceSpecificationsSpecificationInput interface {
	pulumi.Input

	ToGetInstanceSpecificationsSpecificationOutput() GetInstanceSpecificationsSpecificationOutput
	ToGetInstanceSpecificationsSpecificationOutputWithContext(context.Context) GetInstanceSpecificationsSpecificationOutput
}

GetInstanceSpecificationsSpecificationInput is an input type that accepts GetInstanceSpecificationsSpecificationArgs and GetInstanceSpecificationsSpecificationOutput values. You can construct a concrete instance of `GetInstanceSpecificationsSpecificationInput` via:

GetInstanceSpecificationsSpecificationArgs{...}

type GetInstanceSpecificationsSpecificationOutput added in v3.9.0

type GetInstanceSpecificationsSpecificationOutput struct{ *pulumi.OutputState }

func (GetInstanceSpecificationsSpecificationOutput) Cpu added in v3.9.0

CPU Size, Specifications for Micronucleus.

func (GetInstanceSpecificationsSpecificationOutput) ElementType added in v3.9.0

func (GetInstanceSpecificationsSpecificationOutput) Enable added in v3.9.0

Whether the instance is available. The value description is as follows:

func (GetInstanceSpecificationsSpecificationOutput) Id added in v3.9.0

The ID of the Instance Specification.

func (GetInstanceSpecificationsSpecificationOutput) InstanceSpecificationId added in v3.9.0

The first ID of the resource.

func (GetInstanceSpecificationsSpecificationOutput) Memory added in v3.9.0

The Memory specifications for the MB.

func (GetInstanceSpecificationsSpecificationOutput) SpecInfo added in v3.9.0

The specification configuration name.

func (GetInstanceSpecificationsSpecificationOutput) ToGetInstanceSpecificationsSpecificationOutput added in v3.9.0

func (o GetInstanceSpecificationsSpecificationOutput) ToGetInstanceSpecificationsSpecificationOutput() GetInstanceSpecificationsSpecificationOutput

func (GetInstanceSpecificationsSpecificationOutput) ToGetInstanceSpecificationsSpecificationOutputWithContext added in v3.9.0

func (o GetInstanceSpecificationsSpecificationOutput) ToGetInstanceSpecificationsSpecificationOutputWithContext(ctx context.Context) GetInstanceSpecificationsSpecificationOutput

func (GetInstanceSpecificationsSpecificationOutput) Version added in v3.9.0

The specification configuration version.

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) 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) Index added in v3.5.0

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) Id added in v3.5.0

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

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

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 GetNamespacesOutputArgs added in v3.9.0

type GetNamespacesOutputArgs struct {
	// A list of Namespace IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Namespace name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getNamespaces.

func (GetNamespacesOutputArgs) ElementType added in v3.9.0

func (GetNamespacesOutputArgs) ElementType() reflect.Type

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 {
		nameRegex, err := sae.GetNamespaces(ctx, &sae.GetNamespacesArgs{
			NameRegex: pulumi.StringRef("^my-Namespace"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("saeNamespaceId", nameRegex.Namespaces[0].Id)
		return nil
	})
}

```

type GetNamespacesResultOutput added in v3.9.0

type GetNamespacesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNamespaces.

func GetNamespacesOutput added in v3.9.0

func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput

func (GetNamespacesResultOutput) ElementType added in v3.9.0

func (GetNamespacesResultOutput) ElementType() reflect.Type

func (GetNamespacesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetNamespacesResultOutput) Ids added in v3.9.0

func (GetNamespacesResultOutput) NameRegex added in v3.9.0

func (GetNamespacesResultOutput) Names added in v3.9.0

func (GetNamespacesResultOutput) Namespaces added in v3.9.0

func (GetNamespacesResultOutput) OutputFile added in v3.9.0

func (GetNamespacesResultOutput) ToGetNamespacesResultOutput added in v3.9.0

func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput

func (GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext added in v3.9.0

func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput

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 GetServiceOutputArgs added in v3.9.0

type GetServiceOutputArgs 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 pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType added in v3.9.0

func (GetServiceOutputArgs) ElementType() reflect.Type

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+

> **NOTE:** The SAE service is not support in the international site.

## 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 {
		_, err := sae.GetService(ctx, &sae.GetServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetServiceResultOutput added in v3.9.0

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func GetServiceOutput added in v3.9.0

func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput

func (GetServiceResultOutput) ElementType added in v3.9.0

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable added in v3.9.0

func (GetServiceResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status added in v3.9.0

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput

type Ingress added in v3.8.0

type Ingress struct {
	pulumi.CustomResourceState

	// Cert Id.
	CertId pulumi.StringPtrOutput `pulumi:"certId"`
	// Default Rule.
	DefaultRule IngressDefaultRulePtrOutput `pulumi:"defaultRule"`
	// Description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// SLB listening port.
	ListenerPort pulumi.IntOutput `pulumi:"listenerPort"`
	// The Id of Namespace.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}`
	NamespaceId pulumi.StringOutput `pulumi:"namespaceId"`
	// Forwarding rules. Forward traffic to the specified application according to the domain name and path.
	Rules IngressRuleArrayOutput `pulumi:"rules"`
	// SLB ID.
	SlbId pulumi.StringOutput `pulumi:"slbId"`
}

Provides a Serverless App Engine (SAE) Ingress resource.

For information about Serverless App Engine (SAE) Ingress and how to use it, see [What is Ingress](https://help.aliyun.com/document_detail/97792.html).

> **NOTE:** Available in v1.137.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/slb"
"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 := "example_value"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		_, err = vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultLoadBalancer, err := slb.NewLoadBalancer(ctx, "defaultLoadBalancer", &slb.LoadBalancerArgs{
			Specification: pulumi.String("slb.s2.small"),
			VswitchId:     pulumi.Any(data.Alicloud_vswitches.Default.Ids[0]),
		})
		if err != nil {
			return err
		}
		namespaceId := "cn-hangzhou:yourname"
		if param := cfg.Get("namespaceId"); param != "" {
			namespaceId = param
		}
		defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{
			NamespaceId:          pulumi.String(namespaceId),
			NamespaceName:        pulumi.String(name),
			NamespaceDescription: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultApplication, err := sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{
			AppDescription: pulumi.String("your_app_description"),
			AppName:        pulumi.String("your_app_name"),
			NamespaceId:    pulumi.String("your_namespace_id"),
			PackageUrl:     pulumi.String("your_package_url"),
			PackageType:    pulumi.String("your_package_url"),
			Jdk:            pulumi.String("jdk_specifications"),
			VswitchId:      pulumi.Any(data.Alicloud_vswitches.Default.Ids[0]),
			Replicas:       pulumi.Int("your_replicas"),
			Cpu:            pulumi.Int("cpu_specifications"),
			Memory:         pulumi.Int("memory_specifications"),
		})
		if err != nil {
			return err
		}
		_, err = sae.NewIngress(ctx, "defaultIngress", &sae.IngressArgs{
			SlbId:        defaultLoadBalancer.ID(),
			NamespaceId:  defaultNamespace.ID(),
			ListenerPort: pulumi.Int("your_listener_port"),
			Rules: sae.IngressRuleArray{
				&sae.IngressRuleArgs{
					AppId:         defaultApplication.ID(),
					ContainerPort: pulumi.Int("your_container_port"),
					Domain:        pulumi.String("your_domain"),
					AppName:       pulumi.String("your_name"),
					Path:          pulumi.String("your_path"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Serverless App Engine (SAE) Ingress can be imported using the id, e.g.

```sh

$ pulumi import alicloud:sae/ingress:Ingress example <id>

```

func GetIngress added in v3.8.0

func GetIngress(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IngressState, opts ...pulumi.ResourceOption) (*Ingress, error)

GetIngress gets an existing Ingress 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 NewIngress added in v3.8.0

func NewIngress(ctx *pulumi.Context,
	name string, args *IngressArgs, opts ...pulumi.ResourceOption) (*Ingress, error)

NewIngress registers a new resource with the given unique name, arguments, and options.

func (*Ingress) ElementType added in v3.8.0

func (*Ingress) ElementType() reflect.Type

func (*Ingress) ToIngressOutput added in v3.8.0

func (i *Ingress) ToIngressOutput() IngressOutput

func (*Ingress) ToIngressOutputWithContext added in v3.8.0

func (i *Ingress) ToIngressOutputWithContext(ctx context.Context) IngressOutput

type IngressArgs added in v3.8.0

type IngressArgs struct {
	// Cert Id.
	CertId pulumi.StringPtrInput
	// Default Rule.
	DefaultRule IngressDefaultRulePtrInput
	// Description.
	Description pulumi.StringPtrInput
	// SLB listening port.
	ListenerPort pulumi.IntInput
	// The Id of Namespace.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}`
	NamespaceId pulumi.StringInput
	// Forwarding rules. Forward traffic to the specified application according to the domain name and path.
	Rules IngressRuleArrayInput
	// SLB ID.
	SlbId pulumi.StringInput
}

The set of arguments for constructing a Ingress resource.

func (IngressArgs) ElementType added in v3.8.0

func (IngressArgs) ElementType() reflect.Type

type IngressArray added in v3.8.0

type IngressArray []IngressInput

func (IngressArray) ElementType added in v3.8.0

func (IngressArray) ElementType() reflect.Type

func (IngressArray) ToIngressArrayOutput added in v3.8.0

func (i IngressArray) ToIngressArrayOutput() IngressArrayOutput

func (IngressArray) ToIngressArrayOutputWithContext added in v3.8.0

func (i IngressArray) ToIngressArrayOutputWithContext(ctx context.Context) IngressArrayOutput

type IngressArrayInput added in v3.8.0

type IngressArrayInput interface {
	pulumi.Input

	ToIngressArrayOutput() IngressArrayOutput
	ToIngressArrayOutputWithContext(context.Context) IngressArrayOutput
}

IngressArrayInput is an input type that accepts IngressArray and IngressArrayOutput values. You can construct a concrete instance of `IngressArrayInput` via:

IngressArray{ IngressArgs{...} }

type IngressArrayOutput added in v3.8.0

type IngressArrayOutput struct{ *pulumi.OutputState }

func (IngressArrayOutput) ElementType added in v3.8.0

func (IngressArrayOutput) ElementType() reflect.Type

func (IngressArrayOutput) Index added in v3.8.0

func (IngressArrayOutput) ToIngressArrayOutput added in v3.8.0

func (o IngressArrayOutput) ToIngressArrayOutput() IngressArrayOutput

func (IngressArrayOutput) ToIngressArrayOutputWithContext added in v3.8.0

func (o IngressArrayOutput) ToIngressArrayOutputWithContext(ctx context.Context) IngressArrayOutput

type IngressDefaultRule added in v3.8.0

type IngressDefaultRule struct {
	// Target application ID.
	AppId *string `pulumi:"appId"`
	// Target application name.
	AppName *string `pulumi:"appName"`
	// Application backend port.
	ContainerPort *int `pulumi:"containerPort"`
}

type IngressDefaultRuleArgs added in v3.8.0

type IngressDefaultRuleArgs struct {
	// Target application ID.
	AppId pulumi.StringPtrInput `pulumi:"appId"`
	// Target application name.
	AppName pulumi.StringPtrInput `pulumi:"appName"`
	// Application backend port.
	ContainerPort pulumi.IntPtrInput `pulumi:"containerPort"`
}

func (IngressDefaultRuleArgs) ElementType added in v3.8.0

func (IngressDefaultRuleArgs) ElementType() reflect.Type

func (IngressDefaultRuleArgs) ToIngressDefaultRuleOutput added in v3.8.0

func (i IngressDefaultRuleArgs) ToIngressDefaultRuleOutput() IngressDefaultRuleOutput

func (IngressDefaultRuleArgs) ToIngressDefaultRuleOutputWithContext added in v3.8.0

func (i IngressDefaultRuleArgs) ToIngressDefaultRuleOutputWithContext(ctx context.Context) IngressDefaultRuleOutput

func (IngressDefaultRuleArgs) ToIngressDefaultRulePtrOutput added in v3.8.0

func (i IngressDefaultRuleArgs) ToIngressDefaultRulePtrOutput() IngressDefaultRulePtrOutput

func (IngressDefaultRuleArgs) ToIngressDefaultRulePtrOutputWithContext added in v3.8.0

func (i IngressDefaultRuleArgs) ToIngressDefaultRulePtrOutputWithContext(ctx context.Context) IngressDefaultRulePtrOutput

type IngressDefaultRuleInput added in v3.8.0

type IngressDefaultRuleInput interface {
	pulumi.Input

	ToIngressDefaultRuleOutput() IngressDefaultRuleOutput
	ToIngressDefaultRuleOutputWithContext(context.Context) IngressDefaultRuleOutput
}

IngressDefaultRuleInput is an input type that accepts IngressDefaultRuleArgs and IngressDefaultRuleOutput values. You can construct a concrete instance of `IngressDefaultRuleInput` via:

IngressDefaultRuleArgs{...}

type IngressDefaultRuleOutput added in v3.8.0

type IngressDefaultRuleOutput struct{ *pulumi.OutputState }

func (IngressDefaultRuleOutput) AppId added in v3.8.0

Target application ID.

func (IngressDefaultRuleOutput) AppName added in v3.8.0

Target application name.

func (IngressDefaultRuleOutput) ContainerPort added in v3.8.0

func (o IngressDefaultRuleOutput) ContainerPort() pulumi.IntPtrOutput

Application backend port.

func (IngressDefaultRuleOutput) ElementType added in v3.8.0

func (IngressDefaultRuleOutput) ElementType() reflect.Type

func (IngressDefaultRuleOutput) ToIngressDefaultRuleOutput added in v3.8.0

func (o IngressDefaultRuleOutput) ToIngressDefaultRuleOutput() IngressDefaultRuleOutput

func (IngressDefaultRuleOutput) ToIngressDefaultRuleOutputWithContext added in v3.8.0

func (o IngressDefaultRuleOutput) ToIngressDefaultRuleOutputWithContext(ctx context.Context) IngressDefaultRuleOutput

func (IngressDefaultRuleOutput) ToIngressDefaultRulePtrOutput added in v3.8.0

func (o IngressDefaultRuleOutput) ToIngressDefaultRulePtrOutput() IngressDefaultRulePtrOutput

func (IngressDefaultRuleOutput) ToIngressDefaultRulePtrOutputWithContext added in v3.8.0

func (o IngressDefaultRuleOutput) ToIngressDefaultRulePtrOutputWithContext(ctx context.Context) IngressDefaultRulePtrOutput

type IngressDefaultRulePtrInput added in v3.8.0

type IngressDefaultRulePtrInput interface {
	pulumi.Input

	ToIngressDefaultRulePtrOutput() IngressDefaultRulePtrOutput
	ToIngressDefaultRulePtrOutputWithContext(context.Context) IngressDefaultRulePtrOutput
}

IngressDefaultRulePtrInput is an input type that accepts IngressDefaultRuleArgs, IngressDefaultRulePtr and IngressDefaultRulePtrOutput values. You can construct a concrete instance of `IngressDefaultRulePtrInput` via:

        IngressDefaultRuleArgs{...}

or:

        nil

func IngressDefaultRulePtr added in v3.8.0

func IngressDefaultRulePtr(v *IngressDefaultRuleArgs) IngressDefaultRulePtrInput

type IngressDefaultRulePtrOutput added in v3.8.0

type IngressDefaultRulePtrOutput struct{ *pulumi.OutputState }

func (IngressDefaultRulePtrOutput) AppId added in v3.8.0

Target application ID.

func (IngressDefaultRulePtrOutput) AppName added in v3.8.0

Target application name.

func (IngressDefaultRulePtrOutput) ContainerPort added in v3.8.0

Application backend port.

func (IngressDefaultRulePtrOutput) Elem added in v3.8.0

func (IngressDefaultRulePtrOutput) ElementType added in v3.8.0

func (IngressDefaultRulePtrOutput) ToIngressDefaultRulePtrOutput added in v3.8.0

func (o IngressDefaultRulePtrOutput) ToIngressDefaultRulePtrOutput() IngressDefaultRulePtrOutput

func (IngressDefaultRulePtrOutput) ToIngressDefaultRulePtrOutputWithContext added in v3.8.0

func (o IngressDefaultRulePtrOutput) ToIngressDefaultRulePtrOutputWithContext(ctx context.Context) IngressDefaultRulePtrOutput

type IngressInput added in v3.8.0

type IngressInput interface {
	pulumi.Input

	ToIngressOutput() IngressOutput
	ToIngressOutputWithContext(ctx context.Context) IngressOutput
}

type IngressMap added in v3.8.0

type IngressMap map[string]IngressInput

func (IngressMap) ElementType added in v3.8.0

func (IngressMap) ElementType() reflect.Type

func (IngressMap) ToIngressMapOutput added in v3.8.0

func (i IngressMap) ToIngressMapOutput() IngressMapOutput

func (IngressMap) ToIngressMapOutputWithContext added in v3.8.0

func (i IngressMap) ToIngressMapOutputWithContext(ctx context.Context) IngressMapOutput

type IngressMapInput added in v3.8.0

type IngressMapInput interface {
	pulumi.Input

	ToIngressMapOutput() IngressMapOutput
	ToIngressMapOutputWithContext(context.Context) IngressMapOutput
}

IngressMapInput is an input type that accepts IngressMap and IngressMapOutput values. You can construct a concrete instance of `IngressMapInput` via:

IngressMap{ "key": IngressArgs{...} }

type IngressMapOutput added in v3.8.0

type IngressMapOutput struct{ *pulumi.OutputState }

func (IngressMapOutput) ElementType added in v3.8.0

func (IngressMapOutput) ElementType() reflect.Type

func (IngressMapOutput) MapIndex added in v3.8.0

func (IngressMapOutput) ToIngressMapOutput added in v3.8.0

func (o IngressMapOutput) ToIngressMapOutput() IngressMapOutput

func (IngressMapOutput) ToIngressMapOutputWithContext added in v3.8.0

func (o IngressMapOutput) ToIngressMapOutputWithContext(ctx context.Context) IngressMapOutput

type IngressOutput added in v3.8.0

type IngressOutput struct{ *pulumi.OutputState }

func (IngressOutput) ElementType added in v3.8.0

func (IngressOutput) ElementType() reflect.Type

func (IngressOutput) ToIngressOutput added in v3.8.0

func (o IngressOutput) ToIngressOutput() IngressOutput

func (IngressOutput) ToIngressOutputWithContext added in v3.8.0

func (o IngressOutput) ToIngressOutputWithContext(ctx context.Context) IngressOutput

type IngressRule added in v3.8.0

type IngressRule struct {
	// Target application ID.
	AppId string `pulumi:"appId"`
	// Target application name.
	AppName string `pulumi:"appName"`
	// Application backend port.
	ContainerPort int `pulumi:"containerPort"`
	// Application domain name.
	Domain string `pulumi:"domain"`
	// URL path.
	Path string `pulumi:"path"`
}

type IngressRuleArgs added in v3.8.0

type IngressRuleArgs struct {
	// Target application ID.
	AppId pulumi.StringInput `pulumi:"appId"`
	// Target application name.
	AppName pulumi.StringInput `pulumi:"appName"`
	// Application backend port.
	ContainerPort pulumi.IntInput `pulumi:"containerPort"`
	// Application domain name.
	Domain pulumi.StringInput `pulumi:"domain"`
	// URL path.
	Path pulumi.StringInput `pulumi:"path"`
}

func (IngressRuleArgs) ElementType added in v3.8.0

func (IngressRuleArgs) ElementType() reflect.Type

func (IngressRuleArgs) ToIngressRuleOutput added in v3.8.0

func (i IngressRuleArgs) ToIngressRuleOutput() IngressRuleOutput

func (IngressRuleArgs) ToIngressRuleOutputWithContext added in v3.8.0

func (i IngressRuleArgs) ToIngressRuleOutputWithContext(ctx context.Context) IngressRuleOutput

type IngressRuleArray added in v3.8.0

type IngressRuleArray []IngressRuleInput

func (IngressRuleArray) ElementType added in v3.8.0

func (IngressRuleArray) ElementType() reflect.Type

func (IngressRuleArray) ToIngressRuleArrayOutput added in v3.8.0

func (i IngressRuleArray) ToIngressRuleArrayOutput() IngressRuleArrayOutput

func (IngressRuleArray) ToIngressRuleArrayOutputWithContext added in v3.8.0

func (i IngressRuleArray) ToIngressRuleArrayOutputWithContext(ctx context.Context) IngressRuleArrayOutput

type IngressRuleArrayInput added in v3.8.0

type IngressRuleArrayInput interface {
	pulumi.Input

	ToIngressRuleArrayOutput() IngressRuleArrayOutput
	ToIngressRuleArrayOutputWithContext(context.Context) IngressRuleArrayOutput
}

IngressRuleArrayInput is an input type that accepts IngressRuleArray and IngressRuleArrayOutput values. You can construct a concrete instance of `IngressRuleArrayInput` via:

IngressRuleArray{ IngressRuleArgs{...} }

type IngressRuleArrayOutput added in v3.8.0

type IngressRuleArrayOutput struct{ *pulumi.OutputState }

func (IngressRuleArrayOutput) ElementType added in v3.8.0

func (IngressRuleArrayOutput) ElementType() reflect.Type

func (IngressRuleArrayOutput) Index added in v3.8.0

func (IngressRuleArrayOutput) ToIngressRuleArrayOutput added in v3.8.0

func (o IngressRuleArrayOutput) ToIngressRuleArrayOutput() IngressRuleArrayOutput

func (IngressRuleArrayOutput) ToIngressRuleArrayOutputWithContext added in v3.8.0

func (o IngressRuleArrayOutput) ToIngressRuleArrayOutputWithContext(ctx context.Context) IngressRuleArrayOutput

type IngressRuleInput added in v3.8.0

type IngressRuleInput interface {
	pulumi.Input

	ToIngressRuleOutput() IngressRuleOutput
	ToIngressRuleOutputWithContext(context.Context) IngressRuleOutput
}

IngressRuleInput is an input type that accepts IngressRuleArgs and IngressRuleOutput values. You can construct a concrete instance of `IngressRuleInput` via:

IngressRuleArgs{...}

type IngressRuleOutput added in v3.8.0

type IngressRuleOutput struct{ *pulumi.OutputState }

func (IngressRuleOutput) AppId added in v3.8.0

Target application ID.

func (IngressRuleOutput) AppName added in v3.8.0

Target application name.

func (IngressRuleOutput) ContainerPort added in v3.8.0

func (o IngressRuleOutput) ContainerPort() pulumi.IntOutput

Application backend port.

func (IngressRuleOutput) Domain added in v3.8.0

Application domain name.

func (IngressRuleOutput) ElementType added in v3.8.0

func (IngressRuleOutput) ElementType() reflect.Type

func (IngressRuleOutput) Path added in v3.8.0

URL path.

func (IngressRuleOutput) ToIngressRuleOutput added in v3.8.0

func (o IngressRuleOutput) ToIngressRuleOutput() IngressRuleOutput

func (IngressRuleOutput) ToIngressRuleOutputWithContext added in v3.8.0

func (o IngressRuleOutput) ToIngressRuleOutputWithContext(ctx context.Context) IngressRuleOutput

type IngressState added in v3.8.0

type IngressState struct {
	// Cert Id.
	CertId pulumi.StringPtrInput
	// Default Rule.
	DefaultRule IngressDefaultRulePtrInput
	// Description.
	Description pulumi.StringPtrInput
	// SLB listening port.
	ListenerPort pulumi.IntPtrInput
	// The Id of Namespace.It can contain 2 to 32 lowercase characters.The value is in format `{RegionId}:{namespace}`
	NamespaceId pulumi.StringPtrInput
	// Forwarding rules. Forward traffic to the specified application according to the domain name and path.
	Rules IngressRuleArrayInput
	// SLB ID.
	SlbId pulumi.StringPtrInput
}

func (IngressState) ElementType added in v3.8.0

func (IngressState) ElementType() reflect.Type

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) ElementType() reflect.Type

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

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 (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 (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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL