1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. esa
  5. HttpsApplicationConfiguration
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.esa.HttpsApplicationConfiguration

Explore with Pulumi AI

Provides a ESA Https Application Configuration resource.

For information about ESA Https Application Configuration and how to use it, see What is Https Application Configuration.

NOTE: Available since v1.244.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.esa.getSites({
    planSubscribeType: "enterpriseplan",
});
const defaultSite = new alicloud.esa.Site("default", {
    siteName: "httpsapplicationconfiguration.example.com",
    instanceId: _default.then(_default => _default.sites?.[0]?.instanceId),
    coverage: "domestic",
    accessType: "NS",
});
const defaultHttpsApplicationConfiguration = new alicloud.esa.HttpsApplicationConfiguration("default", {
    hstsMaxAge: "31536000",
    altSvcClear: "off",
    rule: "http.host eq \"video.example.com\"",
    httpsForce: "off",
    altSvcMa: "86400",
    hsts: "off",
    ruleName: "rule_example",
    ruleEnable: "off",
    siteId: defaultSite.id,
    altSvcPersist: "off",
    hstsPreload: "off",
    hstsIncludeSubdomains: "off",
    altSvc: "off",
    httpsForceCode: "301",
    siteVersion: 0,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.esa.get_sites(plan_subscribe_type="enterpriseplan")
default_site = alicloud.esa.Site("default",
    site_name="httpsapplicationconfiguration.example.com",
    instance_id=default.sites[0].instance_id,
    coverage="domestic",
    access_type="NS")
default_https_application_configuration = alicloud.esa.HttpsApplicationConfiguration("default",
    hsts_max_age="31536000",
    alt_svc_clear="off",
    rule="http.host eq \"video.example.com\"",
    https_force="off",
    alt_svc_ma="86400",
    hsts="off",
    rule_name="rule_example",
    rule_enable="off",
    site_id=default_site.id,
    alt_svc_persist="off",
    hsts_preload="off",
    hsts_include_subdomains="off",
    alt_svc="off",
    https_force_code="301",
    site_version=0)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := esa.GetSites(ctx, &esa.GetSitesArgs{
			PlanSubscribeType: pulumi.StringRef("enterpriseplan"),
		}, nil)
		if err != nil {
			return err
		}
		defaultSite, err := esa.NewSite(ctx, "default", &esa.SiteArgs{
			SiteName:   pulumi.String("httpsapplicationconfiguration.example.com"),
			InstanceId: pulumi.String(_default.Sites[0].InstanceId),
			Coverage:   pulumi.String("domestic"),
			AccessType: pulumi.String("NS"),
		})
		if err != nil {
			return err
		}
		_, err = esa.NewHttpsApplicationConfiguration(ctx, "default", &esa.HttpsApplicationConfigurationArgs{
			HstsMaxAge:            pulumi.String("31536000"),
			AltSvcClear:           pulumi.String("off"),
			Rule:                  pulumi.String("http.host eq \"video.example.com\""),
			HttpsForce:            pulumi.String("off"),
			AltSvcMa:              pulumi.String("86400"),
			Hsts:                  pulumi.String("off"),
			RuleName:              pulumi.String("rule_example"),
			RuleEnable:            pulumi.String("off"),
			SiteId:                defaultSite.ID(),
			AltSvcPersist:         pulumi.String("off"),
			HstsPreload:           pulumi.String("off"),
			HstsIncludeSubdomains: pulumi.String("off"),
			AltSvc:                pulumi.String("off"),
			HttpsForceCode:        pulumi.String("301"),
			SiteVersion:           pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Esa.GetSites.Invoke(new()
    {
        PlanSubscribeType = "enterpriseplan",
    });

    var defaultSite = new AliCloud.Esa.Site("default", new()
    {
        SiteName = "httpsapplicationconfiguration.example.com",
        InstanceId = @default.Apply(@default => @default.Apply(getSitesResult => getSitesResult.Sites[0]?.InstanceId)),
        Coverage = "domestic",
        AccessType = "NS",
    });

    var defaultHttpsApplicationConfiguration = new AliCloud.Esa.HttpsApplicationConfiguration("default", new()
    {
        HstsMaxAge = "31536000",
        AltSvcClear = "off",
        Rule = "http.host eq \"video.example.com\"",
        HttpsForce = "off",
        AltSvcMa = "86400",
        Hsts = "off",
        RuleName = "rule_example",
        RuleEnable = "off",
        SiteId = defaultSite.Id,
        AltSvcPersist = "off",
        HstsPreload = "off",
        HstsIncludeSubdomains = "off",
        AltSvc = "off",
        HttpsForceCode = "301",
        SiteVersion = 0,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.esa.EsaFunctions;
import com.pulumi.alicloud.esa.inputs.GetSitesArgs;
import com.pulumi.alicloud.esa.Site;
import com.pulumi.alicloud.esa.SiteArgs;
import com.pulumi.alicloud.esa.HttpsApplicationConfiguration;
import com.pulumi.alicloud.esa.HttpsApplicationConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var default = EsaFunctions.getSites(GetSitesArgs.builder()
            .planSubscribeType("enterpriseplan")
            .build());

        var defaultSite = new Site("defaultSite", SiteArgs.builder()
            .siteName("httpsapplicationconfiguration.example.com")
            .instanceId(default_.sites()[0].instanceId())
            .coverage("domestic")
            .accessType("NS")
            .build());

        var defaultHttpsApplicationConfiguration = new HttpsApplicationConfiguration("defaultHttpsApplicationConfiguration", HttpsApplicationConfigurationArgs.builder()
            .hstsMaxAge("31536000")
            .altSvcClear("off")
            .rule("http.host eq \"video.example.com\"")
            .httpsForce("off")
            .altSvcMa("86400")
            .hsts("off")
            .ruleName("rule_example")
            .ruleEnable("off")
            .siteId(defaultSite.id())
            .altSvcPersist("off")
            .hstsPreload("off")
            .hstsIncludeSubdomains("off")
            .altSvc("off")
            .httpsForceCode("301")
            .siteVersion("0")
            .build());

    }
}
Copy
resources:
  defaultSite:
    type: alicloud:esa:Site
    name: default
    properties:
      siteName: httpsapplicationconfiguration.example.com
      instanceId: ${default.sites[0].instanceId}
      coverage: domestic
      accessType: NS
  defaultHttpsApplicationConfiguration:
    type: alicloud:esa:HttpsApplicationConfiguration
    name: default
    properties:
      hstsMaxAge: '31536000'
      altSvcClear: off
      rule: http.host eq "video.example.com"
      httpsForce: off
      altSvcMa: '86400'
      hsts: off
      ruleName: rule_example
      ruleEnable: off
      siteId: ${defaultSite.id}
      altSvcPersist: off
      hstsPreload: off
      hstsIncludeSubdomains: off
      altSvc: off
      httpsForceCode: '301'
      siteVersion: '0'
variables:
  default:
    fn::invoke:
      function: alicloud:esa:getSites
      arguments:
        planSubscribeType: enterpriseplan
Copy

Create HttpsApplicationConfiguration Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new HttpsApplicationConfiguration(name: string, args: HttpsApplicationConfigurationArgs, opts?: CustomResourceOptions);
@overload
def HttpsApplicationConfiguration(resource_name: str,
                                  args: HttpsApplicationConfigurationArgs,
                                  opts: Optional[ResourceOptions] = None)

@overload
def HttpsApplicationConfiguration(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  site_id: Optional[int] = None,
                                  hsts_max_age: Optional[str] = None,
                                  https_force: Optional[str] = None,
                                  alt_svc_persist: Optional[str] = None,
                                  hsts: Optional[str] = None,
                                  hsts_include_subdomains: Optional[str] = None,
                                  alt_svc: Optional[str] = None,
                                  hsts_preload: Optional[str] = None,
                                  alt_svc_ma: Optional[str] = None,
                                  https_force_code: Optional[str] = None,
                                  rule: Optional[str] = None,
                                  rule_enable: Optional[str] = None,
                                  rule_name: Optional[str] = None,
                                  alt_svc_clear: Optional[str] = None,
                                  site_version: Optional[int] = None)
func NewHttpsApplicationConfiguration(ctx *Context, name string, args HttpsApplicationConfigurationArgs, opts ...ResourceOption) (*HttpsApplicationConfiguration, error)
public HttpsApplicationConfiguration(string name, HttpsApplicationConfigurationArgs args, CustomResourceOptions? opts = null)
public HttpsApplicationConfiguration(String name, HttpsApplicationConfigurationArgs args)
public HttpsApplicationConfiguration(String name, HttpsApplicationConfigurationArgs args, CustomResourceOptions options)
type: alicloud:esa:HttpsApplicationConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. HttpsApplicationConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. HttpsApplicationConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. HttpsApplicationConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. HttpsApplicationConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. HttpsApplicationConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var httpsApplicationConfigurationResource = new AliCloud.Esa.HttpsApplicationConfiguration("httpsApplicationConfigurationResource", new()
{
    SiteId = 0,
    HstsMaxAge = "string",
    HttpsForce = "string",
    AltSvcPersist = "string",
    Hsts = "string",
    HstsIncludeSubdomains = "string",
    AltSvc = "string",
    HstsPreload = "string",
    AltSvcMa = "string",
    HttpsForceCode = "string",
    Rule = "string",
    RuleEnable = "string",
    RuleName = "string",
    AltSvcClear = "string",
    SiteVersion = 0,
});
Copy
example, err := esa.NewHttpsApplicationConfiguration(ctx, "httpsApplicationConfigurationResource", &esa.HttpsApplicationConfigurationArgs{
	SiteId:                pulumi.Int(0),
	HstsMaxAge:            pulumi.String("string"),
	HttpsForce:            pulumi.String("string"),
	AltSvcPersist:         pulumi.String("string"),
	Hsts:                  pulumi.String("string"),
	HstsIncludeSubdomains: pulumi.String("string"),
	AltSvc:                pulumi.String("string"),
	HstsPreload:           pulumi.String("string"),
	AltSvcMa:              pulumi.String("string"),
	HttpsForceCode:        pulumi.String("string"),
	Rule:                  pulumi.String("string"),
	RuleEnable:            pulumi.String("string"),
	RuleName:              pulumi.String("string"),
	AltSvcClear:           pulumi.String("string"),
	SiteVersion:           pulumi.Int(0),
})
Copy
var httpsApplicationConfigurationResource = new HttpsApplicationConfiguration("httpsApplicationConfigurationResource", HttpsApplicationConfigurationArgs.builder()
    .siteId(0)
    .hstsMaxAge("string")
    .httpsForce("string")
    .altSvcPersist("string")
    .hsts("string")
    .hstsIncludeSubdomains("string")
    .altSvc("string")
    .hstsPreload("string")
    .altSvcMa("string")
    .httpsForceCode("string")
    .rule("string")
    .ruleEnable("string")
    .ruleName("string")
    .altSvcClear("string")
    .siteVersion(0)
    .build());
Copy
https_application_configuration_resource = alicloud.esa.HttpsApplicationConfiguration("httpsApplicationConfigurationResource",
    site_id=0,
    hsts_max_age="string",
    https_force="string",
    alt_svc_persist="string",
    hsts="string",
    hsts_include_subdomains="string",
    alt_svc="string",
    hsts_preload="string",
    alt_svc_ma="string",
    https_force_code="string",
    rule="string",
    rule_enable="string",
    rule_name="string",
    alt_svc_clear="string",
    site_version=0)
Copy
const httpsApplicationConfigurationResource = new alicloud.esa.HttpsApplicationConfiguration("httpsApplicationConfigurationResource", {
    siteId: 0,
    hstsMaxAge: "string",
    httpsForce: "string",
    altSvcPersist: "string",
    hsts: "string",
    hstsIncludeSubdomains: "string",
    altSvc: "string",
    hstsPreload: "string",
    altSvcMa: "string",
    httpsForceCode: "string",
    rule: "string",
    ruleEnable: "string",
    ruleName: "string",
    altSvcClear: "string",
    siteVersion: 0,
});
Copy
type: alicloud:esa:HttpsApplicationConfiguration
properties:
    altSvc: string
    altSvcClear: string
    altSvcMa: string
    altSvcPersist: string
    hsts: string
    hstsIncludeSubdomains: string
    hstsMaxAge: string
    hstsPreload: string
    httpsForce: string
    httpsForceCode: string
    rule: string
    ruleEnable: string
    ruleName: string
    siteId: 0
    siteVersion: 0
Copy

HttpsApplicationConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The HttpsApplicationConfiguration resource accepts the following input properties:

SiteId
This property is required.
Changes to this property will trigger replacement.
int
The site ID, which can be obtained by calling the ListSites API.
AltSvc string
Function switch, default off. Value range:
AltSvcClear string
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
AltSvcMa string
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
AltSvcPersist string
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
Hsts string
Whether to enable HSTS. It is disabled by default. Value range:
HstsIncludeSubdomains string
Whether to include subdomains in HSTS is disabled by default. Value range:
HstsMaxAge string
The expiration time of HSTS, in seconds.
HstsPreload string
Whether to enable HSTS preloading. It is disabled by default. Value range:
HttpsForce string
Whether to enable forced HTTPS. It is disabled by default. Value range:
HttpsForceCode string
Forced HTTPS jump status code, value range:
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
SiteVersion Changes to this property will trigger replacement. int
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
SiteId
This property is required.
Changes to this property will trigger replacement.
int
The site ID, which can be obtained by calling the ListSites API.
AltSvc string
Function switch, default off. Value range:
AltSvcClear string
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
AltSvcMa string
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
AltSvcPersist string
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
Hsts string
Whether to enable HSTS. It is disabled by default. Value range:
HstsIncludeSubdomains string
Whether to include subdomains in HSTS is disabled by default. Value range:
HstsMaxAge string
The expiration time of HSTS, in seconds.
HstsPreload string
Whether to enable HSTS preloading. It is disabled by default. Value range:
HttpsForce string
Whether to enable forced HTTPS. It is disabled by default. Value range:
HttpsForceCode string
Forced HTTPS jump status code, value range:
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
SiteVersion Changes to this property will trigger replacement. int
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
siteId
This property is required.
Changes to this property will trigger replacement.
Integer
The site ID, which can be obtained by calling the ListSites API.
altSvc String
Function switch, default off. Value range:
altSvcClear String
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
altSvcMa String
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
altSvcPersist String
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
hsts String
Whether to enable HSTS. It is disabled by default. Value range:
hstsIncludeSubdomains String
Whether to include subdomains in HSTS is disabled by default. Value range:
hstsMaxAge String
The expiration time of HSTS, in seconds.
hstsPreload String
Whether to enable HSTS preloading. It is disabled by default. Value range:
httpsForce String
Whether to enable forced HTTPS. It is disabled by default. Value range:
httpsForceCode String
Forced HTTPS jump status code, value range:
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
siteVersion Changes to this property will trigger replacement. Integer
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
siteId
This property is required.
Changes to this property will trigger replacement.
number
The site ID, which can be obtained by calling the ListSites API.
altSvc string
Function switch, default off. Value range:
altSvcClear string
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
altSvcMa string
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
altSvcPersist string
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
hsts string
Whether to enable HSTS. It is disabled by default. Value range:
hstsIncludeSubdomains string
Whether to include subdomains in HSTS is disabled by default. Value range:
hstsMaxAge string
The expiration time of HSTS, in seconds.
hstsPreload string
Whether to enable HSTS preloading. It is disabled by default. Value range:
httpsForce string
Whether to enable forced HTTPS. It is disabled by default. Value range:
httpsForceCode string
Forced HTTPS jump status code, value range:
rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
ruleName string
Rule name. When adding global configuration, this parameter does not need to be set.
siteVersion Changes to this property will trigger replacement. number
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
site_id
This property is required.
Changes to this property will trigger replacement.
int
The site ID, which can be obtained by calling the ListSites API.
alt_svc str
Function switch, default off. Value range:
alt_svc_clear str
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
alt_svc_ma str
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
alt_svc_persist str
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
hsts str
Whether to enable HSTS. It is disabled by default. Value range:
hsts_include_subdomains str
Whether to include subdomains in HSTS is disabled by default. Value range:
hsts_max_age str
The expiration time of HSTS, in seconds.
hsts_preload str
Whether to enable HSTS preloading. It is disabled by default. Value range:
https_force str
Whether to enable forced HTTPS. It is disabled by default. Value range:
https_force_code str
Forced HTTPS jump status code, value range:
rule str
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
rule_enable str
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
rule_name str
Rule name. When adding global configuration, this parameter does not need to be set.
site_version Changes to this property will trigger replacement. int
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
siteId
This property is required.
Changes to this property will trigger replacement.
Number
The site ID, which can be obtained by calling the ListSites API.
altSvc String
Function switch, default off. Value range:
altSvcClear String
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
altSvcMa String
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
altSvcPersist String
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
hsts String
Whether to enable HSTS. It is disabled by default. Value range:
hstsIncludeSubdomains String
Whether to include subdomains in HSTS is disabled by default. Value range:
hstsMaxAge String
The expiration time of HSTS, in seconds.
hstsPreload String
Whether to enable HSTS preloading. It is disabled by default. Value range:
httpsForce String
Whether to enable forced HTTPS. It is disabled by default. Value range:
httpsForceCode String
Forced HTTPS jump status code, value range:
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
siteVersion Changes to this property will trigger replacement. Number
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.

Outputs

All input properties are implicitly available as output properties. Additionally, the HttpsApplicationConfiguration resource produces the following output properties:

ConfigId int
Config Id
Id string
The provider-assigned unique ID for this managed resource.
ConfigId int
Config Id
Id string
The provider-assigned unique ID for this managed resource.
configId Integer
Config Id
id String
The provider-assigned unique ID for this managed resource.
configId number
Config Id
id string
The provider-assigned unique ID for this managed resource.
config_id int
Config Id
id str
The provider-assigned unique ID for this managed resource.
configId Number
Config Id
id String
The provider-assigned unique ID for this managed resource.

Look up Existing HttpsApplicationConfiguration Resource

Get an existing HttpsApplicationConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: HttpsApplicationConfigurationState, opts?: CustomResourceOptions): HttpsApplicationConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alt_svc: Optional[str] = None,
        alt_svc_clear: Optional[str] = None,
        alt_svc_ma: Optional[str] = None,
        alt_svc_persist: Optional[str] = None,
        config_id: Optional[int] = None,
        hsts: Optional[str] = None,
        hsts_include_subdomains: Optional[str] = None,
        hsts_max_age: Optional[str] = None,
        hsts_preload: Optional[str] = None,
        https_force: Optional[str] = None,
        https_force_code: Optional[str] = None,
        rule: Optional[str] = None,
        rule_enable: Optional[str] = None,
        rule_name: Optional[str] = None,
        site_id: Optional[int] = None,
        site_version: Optional[int] = None) -> HttpsApplicationConfiguration
func GetHttpsApplicationConfiguration(ctx *Context, name string, id IDInput, state *HttpsApplicationConfigurationState, opts ...ResourceOption) (*HttpsApplicationConfiguration, error)
public static HttpsApplicationConfiguration Get(string name, Input<string> id, HttpsApplicationConfigurationState? state, CustomResourceOptions? opts = null)
public static HttpsApplicationConfiguration get(String name, Output<String> id, HttpsApplicationConfigurationState state, CustomResourceOptions options)
resources:  _:    type: alicloud:esa:HttpsApplicationConfiguration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AltSvc string
Function switch, default off. Value range:
AltSvcClear string
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
AltSvcMa string
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
AltSvcPersist string
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
ConfigId int
Config Id
Hsts string
Whether to enable HSTS. It is disabled by default. Value range:
HstsIncludeSubdomains string
Whether to include subdomains in HSTS is disabled by default. Value range:
HstsMaxAge string
The expiration time of HSTS, in seconds.
HstsPreload string
Whether to enable HSTS preloading. It is disabled by default. Value range:
HttpsForce string
Whether to enable forced HTTPS. It is disabled by default. Value range:
HttpsForceCode string
Forced HTTPS jump status code, value range:
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
SiteId Changes to this property will trigger replacement. int
The site ID, which can be obtained by calling the ListSites API.
SiteVersion Changes to this property will trigger replacement. int
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
AltSvc string
Function switch, default off. Value range:
AltSvcClear string
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
AltSvcMa string
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
AltSvcPersist string
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
ConfigId int
Config Id
Hsts string
Whether to enable HSTS. It is disabled by default. Value range:
HstsIncludeSubdomains string
Whether to include subdomains in HSTS is disabled by default. Value range:
HstsMaxAge string
The expiration time of HSTS, in seconds.
HstsPreload string
Whether to enable HSTS preloading. It is disabled by default. Value range:
HttpsForce string
Whether to enable forced HTTPS. It is disabled by default. Value range:
HttpsForceCode string
Forced HTTPS jump status code, value range:
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
SiteId Changes to this property will trigger replacement. int
The site ID, which can be obtained by calling the ListSites API.
SiteVersion Changes to this property will trigger replacement. int
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
altSvc String
Function switch, default off. Value range:
altSvcClear String
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
altSvcMa String
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
altSvcPersist String
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
configId Integer
Config Id
hsts String
Whether to enable HSTS. It is disabled by default. Value range:
hstsIncludeSubdomains String
Whether to include subdomains in HSTS is disabled by default. Value range:
hstsMaxAge String
The expiration time of HSTS, in seconds.
hstsPreload String
Whether to enable HSTS preloading. It is disabled by default. Value range:
httpsForce String
Whether to enable forced HTTPS. It is disabled by default. Value range:
httpsForceCode String
Forced HTTPS jump status code, value range:
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
siteId Changes to this property will trigger replacement. Integer
The site ID, which can be obtained by calling the ListSites API.
siteVersion Changes to this property will trigger replacement. Integer
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
altSvc string
Function switch, default off. Value range:
altSvcClear string
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
altSvcMa string
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
altSvcPersist string
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
configId number
Config Id
hsts string
Whether to enable HSTS. It is disabled by default. Value range:
hstsIncludeSubdomains string
Whether to include subdomains in HSTS is disabled by default. Value range:
hstsMaxAge string
The expiration time of HSTS, in seconds.
hstsPreload string
Whether to enable HSTS preloading. It is disabled by default. Value range:
httpsForce string
Whether to enable forced HTTPS. It is disabled by default. Value range:
httpsForceCode string
Forced HTTPS jump status code, value range:
rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
ruleName string
Rule name. When adding global configuration, this parameter does not need to be set.
siteId Changes to this property will trigger replacement. number
The site ID, which can be obtained by calling the ListSites API.
siteVersion Changes to this property will trigger replacement. number
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
alt_svc str
Function switch, default off. Value range:
alt_svc_clear str
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
alt_svc_ma str
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
alt_svc_persist str
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
config_id int
Config Id
hsts str
Whether to enable HSTS. It is disabled by default. Value range:
hsts_include_subdomains str
Whether to include subdomains in HSTS is disabled by default. Value range:
hsts_max_age str
The expiration time of HSTS, in seconds.
hsts_preload str
Whether to enable HSTS preloading. It is disabled by default. Value range:
https_force str
Whether to enable forced HTTPS. It is disabled by default. Value range:
https_force_code str
Forced HTTPS jump status code, value range:
rule str
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
rule_enable str
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
rule_name str
Rule name. When adding global configuration, this parameter does not need to be set.
site_id Changes to this property will trigger replacement. int
The site ID, which can be obtained by calling the ListSites API.
site_version Changes to this property will trigger replacement. int
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
altSvc String
Function switch, default off. Value range:
altSvcClear String
Alt-Svc whether The header contains the clear parameter. This parameter is disabled by default. Value range:
altSvcMa String
The effective time of the Alt-Svc, in seconds. The default value is 86400 seconds.
altSvcPersist String
Alt-Svc whether The header contains the persist parameter. This parameter is disabled by default. Value range:
configId Number
Config Id
hsts String
Whether to enable HSTS. It is disabled by default. Value range:
hstsIncludeSubdomains String
Whether to include subdomains in HSTS is disabled by default. Value range:
hstsMaxAge String
The expiration time of HSTS, in seconds.
hstsPreload String
Whether to enable HSTS preloading. It is disabled by default. Value range:
httpsForce String
Whether to enable forced HTTPS. It is disabled by default. Value range:
httpsForceCode String
Forced HTTPS jump status code, value range:
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
siteId Changes to this property will trigger replacement. Number
The site ID, which can be obtained by calling the ListSites API.
siteVersion Changes to this property will trigger replacement. Number
The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.

Import

ESA Https Application Configuration can be imported using the id, e.g.

$ pulumi import alicloud:esa/httpsApplicationConfiguration:HttpsApplicationConfiguration example <site_id>:<config_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.