esa

package
v3.72.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 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 RatePlanInstance

type RatePlanInstance struct {
	pulumi.CustomResourceState

	// Whether to pay automatically.
	AutoPay pulumi.BoolPtrOutput `pulumi:"autoPay"`
	// Auto Renew:
	//
	// true: Automatic renewal.
	//
	// false: Do not renew automatically.
	AutoRenew pulumi.BoolPtrOutput `pulumi:"autoRenew"`
	// Acceleration area:
	//
	// domestic: Mainland China only.
	//
	// global: global.
	//
	// overseas: Global (excluding Mainland China).
	Coverage pulumi.StringPtrOutput `pulumi:"coverage"`
	// The new purchase time of the package instance.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Renewing: renewing
	InstanceStatus pulumi.StringOutput `pulumi:"instanceStatus"`
	// The payment type of the resource, Valid vales: Subscription.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// Purchase cycle (in months).
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// The plan name, which is obtained from the DescribeRatePlanPrice interface.
	PlanName pulumi.StringPtrOutput `pulumi:"planName"`
	// The status of the resource
	Status pulumi.StringOutput `pulumi:"status"`
	// Site access type:
	//
	// NS:NS access.
	//
	// CNAME:CNAME access.
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

## Import

ESA Rate Plan Instance can be imported using the id, e.g.

```sh $ pulumi import alicloud:esa/ratePlanInstance:RatePlanInstance example <id> ```

func GetRatePlanInstance

func GetRatePlanInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RatePlanInstanceState, opts ...pulumi.ResourceOption) (*RatePlanInstance, error)

GetRatePlanInstance gets an existing RatePlanInstance 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 NewRatePlanInstance

func NewRatePlanInstance(ctx *pulumi.Context,
	name string, args *RatePlanInstanceArgs, opts ...pulumi.ResourceOption) (*RatePlanInstance, error)

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

func (*RatePlanInstance) ElementType

func (*RatePlanInstance) ElementType() reflect.Type

func (*RatePlanInstance) ToRatePlanInstanceOutput

func (i *RatePlanInstance) ToRatePlanInstanceOutput() RatePlanInstanceOutput

func (*RatePlanInstance) ToRatePlanInstanceOutputWithContext

func (i *RatePlanInstance) ToRatePlanInstanceOutputWithContext(ctx context.Context) RatePlanInstanceOutput

type RatePlanInstanceArgs

type RatePlanInstanceArgs struct {
	// Whether to pay automatically.
	AutoPay pulumi.BoolPtrInput
	// Auto Renew:
	//
	// true: Automatic renewal.
	//
	// false: Do not renew automatically.
	AutoRenew pulumi.BoolPtrInput
	// Acceleration area:
	//
	// domestic: Mainland China only.
	//
	// global: global.
	//
	// overseas: Global (excluding Mainland China).
	Coverage pulumi.StringPtrInput
	// The payment type of the resource, Valid vales: Subscription.
	PaymentType pulumi.StringPtrInput
	// Purchase cycle (in months).
	Period pulumi.IntPtrInput
	// The plan name, which is obtained from the DescribeRatePlanPrice interface.
	PlanName pulumi.StringPtrInput
	// Site access type:
	//
	// NS:NS access.
	//
	// CNAME:CNAME access.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a RatePlanInstance resource.

func (RatePlanInstanceArgs) ElementType

func (RatePlanInstanceArgs) ElementType() reflect.Type

type RatePlanInstanceArray

type RatePlanInstanceArray []RatePlanInstanceInput

func (RatePlanInstanceArray) ElementType

func (RatePlanInstanceArray) ElementType() reflect.Type

func (RatePlanInstanceArray) ToRatePlanInstanceArrayOutput

func (i RatePlanInstanceArray) ToRatePlanInstanceArrayOutput() RatePlanInstanceArrayOutput

func (RatePlanInstanceArray) ToRatePlanInstanceArrayOutputWithContext

func (i RatePlanInstanceArray) ToRatePlanInstanceArrayOutputWithContext(ctx context.Context) RatePlanInstanceArrayOutput

type RatePlanInstanceArrayInput

type RatePlanInstanceArrayInput interface {
	pulumi.Input

	ToRatePlanInstanceArrayOutput() RatePlanInstanceArrayOutput
	ToRatePlanInstanceArrayOutputWithContext(context.Context) RatePlanInstanceArrayOutput
}

RatePlanInstanceArrayInput is an input type that accepts RatePlanInstanceArray and RatePlanInstanceArrayOutput values. You can construct a concrete instance of `RatePlanInstanceArrayInput` via:

RatePlanInstanceArray{ RatePlanInstanceArgs{...} }

type RatePlanInstanceArrayOutput

type RatePlanInstanceArrayOutput struct{ *pulumi.OutputState }

func (RatePlanInstanceArrayOutput) ElementType

func (RatePlanInstanceArrayOutput) Index

func (RatePlanInstanceArrayOutput) ToRatePlanInstanceArrayOutput

func (o RatePlanInstanceArrayOutput) ToRatePlanInstanceArrayOutput() RatePlanInstanceArrayOutput

func (RatePlanInstanceArrayOutput) ToRatePlanInstanceArrayOutputWithContext

func (o RatePlanInstanceArrayOutput) ToRatePlanInstanceArrayOutputWithContext(ctx context.Context) RatePlanInstanceArrayOutput

type RatePlanInstanceInput

type RatePlanInstanceInput interface {
	pulumi.Input

	ToRatePlanInstanceOutput() RatePlanInstanceOutput
	ToRatePlanInstanceOutputWithContext(ctx context.Context) RatePlanInstanceOutput
}

type RatePlanInstanceMap

type RatePlanInstanceMap map[string]RatePlanInstanceInput

func (RatePlanInstanceMap) ElementType

func (RatePlanInstanceMap) ElementType() reflect.Type

func (RatePlanInstanceMap) ToRatePlanInstanceMapOutput

func (i RatePlanInstanceMap) ToRatePlanInstanceMapOutput() RatePlanInstanceMapOutput

func (RatePlanInstanceMap) ToRatePlanInstanceMapOutputWithContext

func (i RatePlanInstanceMap) ToRatePlanInstanceMapOutputWithContext(ctx context.Context) RatePlanInstanceMapOutput

type RatePlanInstanceMapInput

type RatePlanInstanceMapInput interface {
	pulumi.Input

	ToRatePlanInstanceMapOutput() RatePlanInstanceMapOutput
	ToRatePlanInstanceMapOutputWithContext(context.Context) RatePlanInstanceMapOutput
}

RatePlanInstanceMapInput is an input type that accepts RatePlanInstanceMap and RatePlanInstanceMapOutput values. You can construct a concrete instance of `RatePlanInstanceMapInput` via:

RatePlanInstanceMap{ "key": RatePlanInstanceArgs{...} }

type RatePlanInstanceMapOutput

type RatePlanInstanceMapOutput struct{ *pulumi.OutputState }

func (RatePlanInstanceMapOutput) ElementType

func (RatePlanInstanceMapOutput) ElementType() reflect.Type

func (RatePlanInstanceMapOutput) MapIndex

func (RatePlanInstanceMapOutput) ToRatePlanInstanceMapOutput

func (o RatePlanInstanceMapOutput) ToRatePlanInstanceMapOutput() RatePlanInstanceMapOutput

func (RatePlanInstanceMapOutput) ToRatePlanInstanceMapOutputWithContext

func (o RatePlanInstanceMapOutput) ToRatePlanInstanceMapOutputWithContext(ctx context.Context) RatePlanInstanceMapOutput

type RatePlanInstanceOutput

type RatePlanInstanceOutput struct{ *pulumi.OutputState }

func (RatePlanInstanceOutput) AutoPay

Whether to pay automatically.

func (RatePlanInstanceOutput) AutoRenew

Auto Renew:

true: Automatic renewal.

false: Do not renew automatically.

func (RatePlanInstanceOutput) Coverage

Acceleration area:

domestic: Mainland China only.

global: global.

overseas: Global (excluding Mainland China).

func (RatePlanInstanceOutput) CreateTime

The new purchase time of the package instance.

func (RatePlanInstanceOutput) ElementType

func (RatePlanInstanceOutput) ElementType() reflect.Type

func (RatePlanInstanceOutput) InstanceStatus

func (o RatePlanInstanceOutput) InstanceStatus() pulumi.StringOutput

Renewing: renewing

func (RatePlanInstanceOutput) PaymentType

func (o RatePlanInstanceOutput) PaymentType() pulumi.StringOutput

The payment type of the resource, Valid vales: Subscription.

func (RatePlanInstanceOutput) Period

Purchase cycle (in months).

func (RatePlanInstanceOutput) PlanName

The plan name, which is obtained from the DescribeRatePlanPrice interface.

func (RatePlanInstanceOutput) Status

The status of the resource

func (RatePlanInstanceOutput) ToRatePlanInstanceOutput

func (o RatePlanInstanceOutput) ToRatePlanInstanceOutput() RatePlanInstanceOutput

func (RatePlanInstanceOutput) ToRatePlanInstanceOutputWithContext

func (o RatePlanInstanceOutput) ToRatePlanInstanceOutputWithContext(ctx context.Context) RatePlanInstanceOutput

func (RatePlanInstanceOutput) Type

Site access type:

NS:NS access.

CNAME:CNAME access.

type RatePlanInstanceState

type RatePlanInstanceState struct {
	// Whether to pay automatically.
	AutoPay pulumi.BoolPtrInput
	// Auto Renew:
	//
	// true: Automatic renewal.
	//
	// false: Do not renew automatically.
	AutoRenew pulumi.BoolPtrInput
	// Acceleration area:
	//
	// domestic: Mainland China only.
	//
	// global: global.
	//
	// overseas: Global (excluding Mainland China).
	Coverage pulumi.StringPtrInput
	// The new purchase time of the package instance.
	CreateTime pulumi.StringPtrInput
	// Renewing: renewing
	InstanceStatus pulumi.StringPtrInput
	// The payment type of the resource, Valid vales: Subscription.
	PaymentType pulumi.StringPtrInput
	// Purchase cycle (in months).
	Period pulumi.IntPtrInput
	// The plan name, which is obtained from the DescribeRatePlanPrice interface.
	PlanName pulumi.StringPtrInput
	// The status of the resource
	Status pulumi.StringPtrInput
	// Site access type:
	//
	// NS:NS access.
	//
	// CNAME:CNAME access.
	Type pulumi.StringPtrInput
}

func (RatePlanInstanceState) ElementType

func (RatePlanInstanceState) ElementType() reflect.Type

type Record added in v3.72.0

type Record struct {
	pulumi.CustomResourceState

	// The origin authentication information of the CNAME record. See `authConf` below.
	AuthConf RecordAuthConfPtrOutput `pulumi:"authConf"`
	// The business scenario of the record for acceleration. Valid values:
	BizName pulumi.StringPtrOutput `pulumi:"bizName"`
	// The comments of the record.
	Comment pulumi.StringPtrOutput `pulumi:"comment"`
	// The creation time of the record. The date format follows ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The DNS record information. The format of this field varies based on the record type. For more information, see [Add DNS records](https://www.alibabacloud.com/help/doc-detail/2708761.html). See `data` below.
	Data RecordDataOutput `pulumi:"data"`
	// The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
	HostPolicy pulumi.StringPtrOutput `pulumi:"hostPolicy"`
	// Filters by whether the record is proxied. Valid values:
	Proxied pulumi.BoolPtrOutput `pulumi:"proxied"`
	// The record name. This parameter specifies a filter condition for the query.
	RecordName pulumi.StringOutput `pulumi:"recordName"`
	// The DNS record type.
	RecordType pulumi.StringOutput `pulumi:"recordType"`
	// The website ID, which can be obtained by calling the [ListSites](https://www.alibabacloud.com/help/en/doc-detail/2850189.html) operation.
	SiteId pulumi.IntOutput `pulumi:"siteId"`
	// The origin type of the record. Only CNAME records can be filtered by using this field. Valid values:
	//
	// - `OSS`: OSS bucket.
	// - `S3`: S3 bucket.
	// - `LB`: load balancer.
	// - `OP`: origin pool.
	// - `Domain`: domain name.
	SourceType pulumi.StringPtrOutput `pulumi:"sourceType"`
	// The TTL of the record. Unit: seconds. The range is 30 to 86,400, or 1. If the value is 1, the TTL of the record is determined by the system.
	Ttl pulumi.IntPtrOutput `pulumi:"ttl"`
}

Provides a ESA Record resource.

For information about ESA Record and how to use it, see [What is Record](https://www.alibabacloud.com/help/en/).

> **NOTE:** Available since v1.240.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
"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 := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := esa.NewRatePlanInstance(ctx, "default", &esa.RatePlanInstanceArgs{
			Type:        pulumi.String("NS"),
			AutoRenew:   pulumi.Bool(false),
			Period:      pulumi.Int(1),
			PaymentType: pulumi.String("Subscription"),
			Coverage:    pulumi.String("overseas"),
			AutoPay:     pulumi.Bool(true),
			PlanName:    pulumi.String("high"),
		})
		if err != nil {
			return err
		}
		defaultSite, err := esa.NewSite(ctx, "default", &esa.SiteArgs{
			SiteName:   pulumi.String("idlexamplerecord.com"),
			InstanceId: _default.ID(),
			Coverage:   pulumi.String("overseas"),
			AccessType: pulumi.String("NS"),
		})
		if err != nil {
			return err
		}
		_, err = esa.NewRecord(ctx, "default", &esa.RecordArgs{
			Data: &esa.RecordDataArgs{
				Value:    pulumi.String("www.eerrraaa.com"),
				Weight:   pulumi.Int(1),
				Priority: pulumi.Int(1),
				Port:     pulumi.Int(80),
			},
			Ttl:        pulumi.Int(100),
			RecordName: pulumi.String("_udp._sip.idlexamplerecord.com"),
			Comment:    pulumi.String("This is a remark"),
			SiteId:     defaultSite.ID(),
			RecordType: pulumi.String("SRV"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ESA Record can be imported using the id, e.g.

```sh $ pulumi import alicloud:esa/record:Record example <id> ```

func GetRecord added in v3.72.0

func GetRecord(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RecordState, opts ...pulumi.ResourceOption) (*Record, error)

GetRecord gets an existing Record 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 NewRecord added in v3.72.0

func NewRecord(ctx *pulumi.Context,
	name string, args *RecordArgs, opts ...pulumi.ResourceOption) (*Record, error)

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

func (*Record) ElementType added in v3.72.0

func (*Record) ElementType() reflect.Type

func (*Record) ToRecordOutput added in v3.72.0

func (i *Record) ToRecordOutput() RecordOutput

func (*Record) ToRecordOutputWithContext added in v3.72.0

func (i *Record) ToRecordOutputWithContext(ctx context.Context) RecordOutput

type RecordArgs added in v3.72.0

type RecordArgs struct {
	// The origin authentication information of the CNAME record. See `authConf` below.
	AuthConf RecordAuthConfPtrInput
	// The business scenario of the record for acceleration. Valid values:
	BizName pulumi.StringPtrInput
	// The comments of the record.
	Comment pulumi.StringPtrInput
	// The DNS record information. The format of this field varies based on the record type. For more information, see [Add DNS records](https://www.alibabacloud.com/help/doc-detail/2708761.html). See `data` below.
	Data RecordDataInput
	// The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
	HostPolicy pulumi.StringPtrInput
	// Filters by whether the record is proxied. Valid values:
	Proxied pulumi.BoolPtrInput
	// The record name. This parameter specifies a filter condition for the query.
	RecordName pulumi.StringInput
	// The DNS record type.
	RecordType pulumi.StringInput
	// The website ID, which can be obtained by calling the [ListSites](https://www.alibabacloud.com/help/en/doc-detail/2850189.html) operation.
	SiteId pulumi.IntInput
	// The origin type of the record. Only CNAME records can be filtered by using this field. Valid values:
	//
	// - `OSS`: OSS bucket.
	// - `S3`: S3 bucket.
	// - `LB`: load balancer.
	// - `OP`: origin pool.
	// - `Domain`: domain name.
	SourceType pulumi.StringPtrInput
	// The TTL of the record. Unit: seconds. The range is 30 to 86,400, or 1. If the value is 1, the TTL of the record is determined by the system.
	Ttl pulumi.IntPtrInput
}

The set of arguments for constructing a Record resource.

func (RecordArgs) ElementType added in v3.72.0

func (RecordArgs) ElementType() reflect.Type

type RecordArray added in v3.72.0

type RecordArray []RecordInput

func (RecordArray) ElementType added in v3.72.0

func (RecordArray) ElementType() reflect.Type

func (RecordArray) ToRecordArrayOutput added in v3.72.0

func (i RecordArray) ToRecordArrayOutput() RecordArrayOutput

func (RecordArray) ToRecordArrayOutputWithContext added in v3.72.0

func (i RecordArray) ToRecordArrayOutputWithContext(ctx context.Context) RecordArrayOutput

type RecordArrayInput added in v3.72.0

type RecordArrayInput interface {
	pulumi.Input

	ToRecordArrayOutput() RecordArrayOutput
	ToRecordArrayOutputWithContext(context.Context) RecordArrayOutput
}

RecordArrayInput is an input type that accepts RecordArray and RecordArrayOutput values. You can construct a concrete instance of `RecordArrayInput` via:

RecordArray{ RecordArgs{...} }

type RecordArrayOutput added in v3.72.0

type RecordArrayOutput struct{ *pulumi.OutputState }

func (RecordArrayOutput) ElementType added in v3.72.0

func (RecordArrayOutput) ElementType() reflect.Type

func (RecordArrayOutput) Index added in v3.72.0

func (RecordArrayOutput) ToRecordArrayOutput added in v3.72.0

func (o RecordArrayOutput) ToRecordArrayOutput() RecordArrayOutput

func (RecordArrayOutput) ToRecordArrayOutputWithContext added in v3.72.0

func (o RecordArrayOutput) ToRecordArrayOutputWithContext(ctx context.Context) RecordArrayOutput

type RecordAuthConf added in v3.72.0

type RecordAuthConf struct {
	// The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
	AccessKey *string `pulumi:"accessKey"`
	// The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
	AuthType *string `pulumi:"authType"`
	// The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
	Region *string `pulumi:"region"`
	// The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
	SecretKey *string `pulumi:"secretKey"`
	// The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
	Version *string `pulumi:"version"`
}

type RecordAuthConfArgs added in v3.72.0

type RecordAuthConfArgs struct {
	// The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
	AccessKey pulumi.StringPtrInput `pulumi:"accessKey"`
	// The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
	AuthType pulumi.StringPtrInput `pulumi:"authType"`
	// The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
	SecretKey pulumi.StringPtrInput `pulumi:"secretKey"`
	// The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
	Version pulumi.StringPtrInput `pulumi:"version"`
}

func (RecordAuthConfArgs) ElementType added in v3.72.0

func (RecordAuthConfArgs) ElementType() reflect.Type

func (RecordAuthConfArgs) ToRecordAuthConfOutput added in v3.72.0

func (i RecordAuthConfArgs) ToRecordAuthConfOutput() RecordAuthConfOutput

func (RecordAuthConfArgs) ToRecordAuthConfOutputWithContext added in v3.72.0

func (i RecordAuthConfArgs) ToRecordAuthConfOutputWithContext(ctx context.Context) RecordAuthConfOutput

func (RecordAuthConfArgs) ToRecordAuthConfPtrOutput added in v3.72.0

func (i RecordAuthConfArgs) ToRecordAuthConfPtrOutput() RecordAuthConfPtrOutput

func (RecordAuthConfArgs) ToRecordAuthConfPtrOutputWithContext added in v3.72.0

func (i RecordAuthConfArgs) ToRecordAuthConfPtrOutputWithContext(ctx context.Context) RecordAuthConfPtrOutput

type RecordAuthConfInput added in v3.72.0

type RecordAuthConfInput interface {
	pulumi.Input

	ToRecordAuthConfOutput() RecordAuthConfOutput
	ToRecordAuthConfOutputWithContext(context.Context) RecordAuthConfOutput
}

RecordAuthConfInput is an input type that accepts RecordAuthConfArgs and RecordAuthConfOutput values. You can construct a concrete instance of `RecordAuthConfInput` via:

RecordAuthConfArgs{...}

type RecordAuthConfOutput added in v3.72.0

type RecordAuthConfOutput struct{ *pulumi.OutputState }

func (RecordAuthConfOutput) AccessKey added in v3.72.0

The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.

func (RecordAuthConfOutput) AuthType added in v3.72.0

The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:

func (RecordAuthConfOutput) ElementType added in v3.72.0

func (RecordAuthConfOutput) ElementType() reflect.Type

func (RecordAuthConfOutput) Region added in v3.72.0

The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:

func (RecordAuthConfOutput) SecretKey added in v3.72.0

The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.

func (RecordAuthConfOutput) ToRecordAuthConfOutput added in v3.72.0

func (o RecordAuthConfOutput) ToRecordAuthConfOutput() RecordAuthConfOutput

func (RecordAuthConfOutput) ToRecordAuthConfOutputWithContext added in v3.72.0

func (o RecordAuthConfOutput) ToRecordAuthConfOutputWithContext(ctx context.Context) RecordAuthConfOutput

func (RecordAuthConfOutput) ToRecordAuthConfPtrOutput added in v3.72.0

func (o RecordAuthConfOutput) ToRecordAuthConfPtrOutput() RecordAuthConfPtrOutput

func (RecordAuthConfOutput) ToRecordAuthConfPtrOutputWithContext added in v3.72.0

func (o RecordAuthConfOutput) ToRecordAuthConfPtrOutputWithContext(ctx context.Context) RecordAuthConfPtrOutput

func (RecordAuthConfOutput) Version added in v3.72.0

The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.

type RecordAuthConfPtrInput added in v3.72.0

type RecordAuthConfPtrInput interface {
	pulumi.Input

	ToRecordAuthConfPtrOutput() RecordAuthConfPtrOutput
	ToRecordAuthConfPtrOutputWithContext(context.Context) RecordAuthConfPtrOutput
}

RecordAuthConfPtrInput is an input type that accepts RecordAuthConfArgs, RecordAuthConfPtr and RecordAuthConfPtrOutput values. You can construct a concrete instance of `RecordAuthConfPtrInput` via:

        RecordAuthConfArgs{...}

or:

        nil

func RecordAuthConfPtr added in v3.72.0

func RecordAuthConfPtr(v *RecordAuthConfArgs) RecordAuthConfPtrInput

type RecordAuthConfPtrOutput added in v3.72.0

type RecordAuthConfPtrOutput struct{ *pulumi.OutputState }

func (RecordAuthConfPtrOutput) AccessKey added in v3.72.0

The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.

func (RecordAuthConfPtrOutput) AuthType added in v3.72.0

The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:

func (RecordAuthConfPtrOutput) Elem added in v3.72.0

func (RecordAuthConfPtrOutput) ElementType added in v3.72.0

func (RecordAuthConfPtrOutput) ElementType() reflect.Type

func (RecordAuthConfPtrOutput) Region added in v3.72.0

The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:

func (RecordAuthConfPtrOutput) SecretKey added in v3.72.0

The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.

func (RecordAuthConfPtrOutput) ToRecordAuthConfPtrOutput added in v3.72.0

func (o RecordAuthConfPtrOutput) ToRecordAuthConfPtrOutput() RecordAuthConfPtrOutput

func (RecordAuthConfPtrOutput) ToRecordAuthConfPtrOutputWithContext added in v3.72.0

func (o RecordAuthConfPtrOutput) ToRecordAuthConfPtrOutputWithContext(ctx context.Context) RecordAuthConfPtrOutput

func (RecordAuthConfPtrOutput) Version added in v3.72.0

The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.

type RecordData added in v3.72.0

type RecordData struct {
	// The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
	Algorithm *int `pulumi:"algorithm"`
	// The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
	Certificate *string `pulumi:"certificate"`
	// The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
	Fingerprint *string `pulumi:"fingerprint"`
	// The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
	Flag *int `pulumi:"flag"`
	// The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
	KeyTag *int `pulumi:"keyTag"`
	// The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
	MatchingType *int `pulumi:"matchingType"`
	// The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
	Port *int `pulumi:"port"`
	// The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
	Priority *int `pulumi:"priority"`
	// The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
	Selector *int `pulumi:"selector"`
	// The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record.
	Tag *string `pulumi:"tag"`
	// The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
	Type *int `pulumi:"type"`
	// The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
	Usage *int `pulumi:"usage"`
	// The record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on different types of records:
	//
	// - **A/AAAA**: the IP address(es). Separate multiple IPs with commas (,). You must have at least one IPv4 address.
	// - `CNAME`: the target domain name.
	// - `NS`: the name servers for the domain name.
	// - `MX`: a valid domain name of the target mail server.
	// - `TXT`: a valid text string.
	// - `CAA`: a valid domain name of the certificate authority.
	// - `SRV`: a valid domain name of the target host.
	// - `URI`: a valid URI string.
	Value *string `pulumi:"value"`
	// The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
	Weight *int `pulumi:"weight"`
}

type RecordDataArgs added in v3.72.0

type RecordDataArgs struct {
	// The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
	Algorithm pulumi.IntPtrInput `pulumi:"algorithm"`
	// The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
	Certificate pulumi.StringPtrInput `pulumi:"certificate"`
	// The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
	Fingerprint pulumi.StringPtrInput `pulumi:"fingerprint"`
	// The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
	Flag pulumi.IntPtrInput `pulumi:"flag"`
	// The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
	KeyTag pulumi.IntPtrInput `pulumi:"keyTag"`
	// The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
	MatchingType pulumi.IntPtrInput `pulumi:"matchingType"`
	// The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
	Port pulumi.IntPtrInput `pulumi:"port"`
	// The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
	Priority pulumi.IntPtrInput `pulumi:"priority"`
	// The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
	Selector pulumi.IntPtrInput `pulumi:"selector"`
	// The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record.
	Tag pulumi.StringPtrInput `pulumi:"tag"`
	// The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
	Type pulumi.IntPtrInput `pulumi:"type"`
	// The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
	Usage pulumi.IntPtrInput `pulumi:"usage"`
	// The record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on different types of records:
	//
	// - **A/AAAA**: the IP address(es). Separate multiple IPs with commas (,). You must have at least one IPv4 address.
	// - `CNAME`: the target domain name.
	// - `NS`: the name servers for the domain name.
	// - `MX`: a valid domain name of the target mail server.
	// - `TXT`: a valid text string.
	// - `CAA`: a valid domain name of the certificate authority.
	// - `SRV`: a valid domain name of the target host.
	// - `URI`: a valid URI string.
	Value pulumi.StringPtrInput `pulumi:"value"`
	// The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
	Weight pulumi.IntPtrInput `pulumi:"weight"`
}

func (RecordDataArgs) ElementType added in v3.72.0

func (RecordDataArgs) ElementType() reflect.Type

func (RecordDataArgs) ToRecordDataOutput added in v3.72.0

func (i RecordDataArgs) ToRecordDataOutput() RecordDataOutput

func (RecordDataArgs) ToRecordDataOutputWithContext added in v3.72.0

func (i RecordDataArgs) ToRecordDataOutputWithContext(ctx context.Context) RecordDataOutput

func (RecordDataArgs) ToRecordDataPtrOutput added in v3.72.0

func (i RecordDataArgs) ToRecordDataPtrOutput() RecordDataPtrOutput

func (RecordDataArgs) ToRecordDataPtrOutputWithContext added in v3.72.0

func (i RecordDataArgs) ToRecordDataPtrOutputWithContext(ctx context.Context) RecordDataPtrOutput

type RecordDataInput added in v3.72.0

type RecordDataInput interface {
	pulumi.Input

	ToRecordDataOutput() RecordDataOutput
	ToRecordDataOutputWithContext(context.Context) RecordDataOutput
}

RecordDataInput is an input type that accepts RecordDataArgs and RecordDataOutput values. You can construct a concrete instance of `RecordDataInput` via:

RecordDataArgs{...}

type RecordDataOutput added in v3.72.0

type RecordDataOutput struct{ *pulumi.OutputState }

func (RecordDataOutput) Algorithm added in v3.72.0

func (o RecordDataOutput) Algorithm() pulumi.IntPtrOutput

The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.

func (RecordDataOutput) Certificate added in v3.72.0

func (o RecordDataOutput) Certificate() pulumi.StringPtrOutput

The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.

func (RecordDataOutput) ElementType added in v3.72.0

func (RecordDataOutput) ElementType() reflect.Type

func (RecordDataOutput) Fingerprint added in v3.72.0

func (o RecordDataOutput) Fingerprint() pulumi.StringPtrOutput

The public key fingerprint of the record. This parameter is required when you add a SSHFP record.

func (RecordDataOutput) Flag added in v3.72.0

The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.

func (RecordDataOutput) KeyTag added in v3.72.0

The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.

func (RecordDataOutput) MatchingType added in v3.72.0

func (o RecordDataOutput) MatchingType() pulumi.IntPtrOutput

The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.

func (RecordDataOutput) Port added in v3.72.0

The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.

func (RecordDataOutput) Priority added in v3.72.0

func (o RecordDataOutput) Priority() pulumi.IntPtrOutput

The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.

func (RecordDataOutput) Selector added in v3.72.0

func (o RecordDataOutput) Selector() pulumi.IntPtrOutput

The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.

func (RecordDataOutput) Tag added in v3.72.0

The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record.

func (RecordDataOutput) ToRecordDataOutput added in v3.72.0

func (o RecordDataOutput) ToRecordDataOutput() RecordDataOutput

func (RecordDataOutput) ToRecordDataOutputWithContext added in v3.72.0

func (o RecordDataOutput) ToRecordDataOutputWithContext(ctx context.Context) RecordDataOutput

func (RecordDataOutput) ToRecordDataPtrOutput added in v3.72.0

func (o RecordDataOutput) ToRecordDataPtrOutput() RecordDataPtrOutput

func (RecordDataOutput) ToRecordDataPtrOutputWithContext added in v3.72.0

func (o RecordDataOutput) ToRecordDataPtrOutputWithContext(ctx context.Context) RecordDataPtrOutput

func (RecordDataOutput) Type added in v3.72.0

The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.

func (RecordDataOutput) Usage added in v3.72.0

The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.

func (RecordDataOutput) Value added in v3.72.0

The record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on different types of records:

- **A/AAAA**: the IP address(es). Separate multiple IPs with commas (,). You must have at least one IPv4 address. - `CNAME`: the target domain name. - `NS`: the name servers for the domain name. - `MX`: a valid domain name of the target mail server. - `TXT`: a valid text string. - `CAA`: a valid domain name of the certificate authority. - `SRV`: a valid domain name of the target host. - `URI`: a valid URI string.

func (RecordDataOutput) Weight added in v3.72.0

The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.

type RecordDataPtrInput added in v3.72.0

type RecordDataPtrInput interface {
	pulumi.Input

	ToRecordDataPtrOutput() RecordDataPtrOutput
	ToRecordDataPtrOutputWithContext(context.Context) RecordDataPtrOutput
}

RecordDataPtrInput is an input type that accepts RecordDataArgs, RecordDataPtr and RecordDataPtrOutput values. You can construct a concrete instance of `RecordDataPtrInput` via:

        RecordDataArgs{...}

or:

        nil

func RecordDataPtr added in v3.72.0

func RecordDataPtr(v *RecordDataArgs) RecordDataPtrInput

type RecordDataPtrOutput added in v3.72.0

type RecordDataPtrOutput struct{ *pulumi.OutputState }

func (RecordDataPtrOutput) Algorithm added in v3.72.0

func (o RecordDataPtrOutput) Algorithm() pulumi.IntPtrOutput

The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.

func (RecordDataPtrOutput) Certificate added in v3.72.0

func (o RecordDataPtrOutput) Certificate() pulumi.StringPtrOutput

The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.

func (RecordDataPtrOutput) Elem added in v3.72.0

func (RecordDataPtrOutput) ElementType added in v3.72.0

func (RecordDataPtrOutput) ElementType() reflect.Type

func (RecordDataPtrOutput) Fingerprint added in v3.72.0

func (o RecordDataPtrOutput) Fingerprint() pulumi.StringPtrOutput

The public key fingerprint of the record. This parameter is required when you add a SSHFP record.

func (RecordDataPtrOutput) Flag added in v3.72.0

The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.

func (RecordDataPtrOutput) KeyTag added in v3.72.0

The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.

func (RecordDataPtrOutput) MatchingType added in v3.72.0

func (o RecordDataPtrOutput) MatchingType() pulumi.IntPtrOutput

The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.

func (RecordDataPtrOutput) Port added in v3.72.0

The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.

func (RecordDataPtrOutput) Priority added in v3.72.0

The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.

func (RecordDataPtrOutput) Selector added in v3.72.0

The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.

func (RecordDataPtrOutput) Tag added in v3.72.0

The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record.

func (RecordDataPtrOutput) ToRecordDataPtrOutput added in v3.72.0

func (o RecordDataPtrOutput) ToRecordDataPtrOutput() RecordDataPtrOutput

func (RecordDataPtrOutput) ToRecordDataPtrOutputWithContext added in v3.72.0

func (o RecordDataPtrOutput) ToRecordDataPtrOutputWithContext(ctx context.Context) RecordDataPtrOutput

func (RecordDataPtrOutput) Type added in v3.72.0

The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.

func (RecordDataPtrOutput) Usage added in v3.72.0

The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.

func (RecordDataPtrOutput) Value added in v3.72.0

The record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on different types of records:

- **A/AAAA**: the IP address(es). Separate multiple IPs with commas (,). You must have at least one IPv4 address. - `CNAME`: the target domain name. - `NS`: the name servers for the domain name. - `MX`: a valid domain name of the target mail server. - `TXT`: a valid text string. - `CAA`: a valid domain name of the certificate authority. - `SRV`: a valid domain name of the target host. - `URI`: a valid URI string.

func (RecordDataPtrOutput) Weight added in v3.72.0

The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.

type RecordInput added in v3.72.0

type RecordInput interface {
	pulumi.Input

	ToRecordOutput() RecordOutput
	ToRecordOutputWithContext(ctx context.Context) RecordOutput
}

type RecordMap added in v3.72.0

type RecordMap map[string]RecordInput

func (RecordMap) ElementType added in v3.72.0

func (RecordMap) ElementType() reflect.Type

func (RecordMap) ToRecordMapOutput added in v3.72.0

func (i RecordMap) ToRecordMapOutput() RecordMapOutput

func (RecordMap) ToRecordMapOutputWithContext added in v3.72.0

func (i RecordMap) ToRecordMapOutputWithContext(ctx context.Context) RecordMapOutput

type RecordMapInput added in v3.72.0

type RecordMapInput interface {
	pulumi.Input

	ToRecordMapOutput() RecordMapOutput
	ToRecordMapOutputWithContext(context.Context) RecordMapOutput
}

RecordMapInput is an input type that accepts RecordMap and RecordMapOutput values. You can construct a concrete instance of `RecordMapInput` via:

RecordMap{ "key": RecordArgs{...} }

type RecordMapOutput added in v3.72.0

type RecordMapOutput struct{ *pulumi.OutputState }

func (RecordMapOutput) ElementType added in v3.72.0

func (RecordMapOutput) ElementType() reflect.Type

func (RecordMapOutput) MapIndex added in v3.72.0

func (RecordMapOutput) ToRecordMapOutput added in v3.72.0

func (o RecordMapOutput) ToRecordMapOutput() RecordMapOutput

func (RecordMapOutput) ToRecordMapOutputWithContext added in v3.72.0

func (o RecordMapOutput) ToRecordMapOutputWithContext(ctx context.Context) RecordMapOutput

type RecordOutput added in v3.72.0

type RecordOutput struct{ *pulumi.OutputState }

func (RecordOutput) AuthConf added in v3.72.0

The origin authentication information of the CNAME record. See `authConf` below.

func (RecordOutput) BizName added in v3.72.0

func (o RecordOutput) BizName() pulumi.StringPtrOutput

The business scenario of the record for acceleration. Valid values:

func (RecordOutput) Comment added in v3.72.0

func (o RecordOutput) Comment() pulumi.StringPtrOutput

The comments of the record.

func (RecordOutput) CreateTime added in v3.72.0

func (o RecordOutput) CreateTime() pulumi.StringOutput

The creation time of the record. The date format follows ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.

func (RecordOutput) Data added in v3.72.0

func (o RecordOutput) Data() RecordDataOutput

The DNS record information. The format of this field varies based on the record type. For more information, see [Add DNS records](https://www.alibabacloud.com/help/doc-detail/2708761.html). See `data` below.

func (RecordOutput) ElementType added in v3.72.0

func (RecordOutput) ElementType() reflect.Type

func (RecordOutput) HostPolicy added in v3.72.0

func (o RecordOutput) HostPolicy() pulumi.StringPtrOutput

The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:

func (RecordOutput) Proxied added in v3.72.0

func (o RecordOutput) Proxied() pulumi.BoolPtrOutput

Filters by whether the record is proxied. Valid values:

func (RecordOutput) RecordName added in v3.72.0

func (o RecordOutput) RecordName() pulumi.StringOutput

The record name. This parameter specifies a filter condition for the query.

func (RecordOutput) RecordType added in v3.72.0

func (o RecordOutput) RecordType() pulumi.StringOutput

The DNS record type.

func (RecordOutput) SiteId added in v3.72.0

func (o RecordOutput) SiteId() pulumi.IntOutput

The website ID, which can be obtained by calling the [ListSites](https://www.alibabacloud.com/help/en/doc-detail/2850189.html) operation.

func (RecordOutput) SourceType added in v3.72.0

func (o RecordOutput) SourceType() pulumi.StringPtrOutput

The origin type of the record. Only CNAME records can be filtered by using this field. Valid values:

- `OSS`: OSS bucket. - `S3`: S3 bucket. - `LB`: load balancer. - `OP`: origin pool. - `Domain`: domain name.

func (RecordOutput) ToRecordOutput added in v3.72.0

func (o RecordOutput) ToRecordOutput() RecordOutput

func (RecordOutput) ToRecordOutputWithContext added in v3.72.0

func (o RecordOutput) ToRecordOutputWithContext(ctx context.Context) RecordOutput

func (RecordOutput) Ttl added in v3.72.0

The TTL of the record. Unit: seconds. The range is 30 to 86,400, or 1. If the value is 1, the TTL of the record is determined by the system.

type RecordState added in v3.72.0

type RecordState struct {
	// The origin authentication information of the CNAME record. See `authConf` below.
	AuthConf RecordAuthConfPtrInput
	// The business scenario of the record for acceleration. Valid values:
	BizName pulumi.StringPtrInput
	// The comments of the record.
	Comment pulumi.StringPtrInput
	// The creation time of the record. The date format follows ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.
	CreateTime pulumi.StringPtrInput
	// The DNS record information. The format of this field varies based on the record type. For more information, see [Add DNS records](https://www.alibabacloud.com/help/doc-detail/2708761.html). See `data` below.
	Data RecordDataPtrInput
	// The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
	HostPolicy pulumi.StringPtrInput
	// Filters by whether the record is proxied. Valid values:
	Proxied pulumi.BoolPtrInput
	// The record name. This parameter specifies a filter condition for the query.
	RecordName pulumi.StringPtrInput
	// The DNS record type.
	RecordType pulumi.StringPtrInput
	// The website ID, which can be obtained by calling the [ListSites](https://www.alibabacloud.com/help/en/doc-detail/2850189.html) operation.
	SiteId pulumi.IntPtrInput
	// The origin type of the record. Only CNAME records can be filtered by using this field. Valid values:
	//
	// - `OSS`: OSS bucket.
	// - `S3`: S3 bucket.
	// - `LB`: load balancer.
	// - `OP`: origin pool.
	// - `Domain`: domain name.
	SourceType pulumi.StringPtrInput
	// The TTL of the record. Unit: seconds. The range is 30 to 86,400, or 1. If the value is 1, the TTL of the record is determined by the system.
	Ttl pulumi.IntPtrInput
}

func (RecordState) ElementType added in v3.72.0

func (RecordState) ElementType() reflect.Type

type Site

type Site struct {
	pulumi.CustomResourceState

	// Site Access Type
	AccessType pulumi.StringPtrOutput `pulumi:"accessType"`
	// Acceleration area
	Coverage pulumi.StringPtrOutput `pulumi:"coverage"`
	// Creation time
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The ID of the associated package instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The ID of the resource group
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// Site Name
	SiteName pulumi.StringOutput `pulumi:"siteName"`
	// The status of the resource
	Status pulumi.StringOutput `pulumi:"status"`
	// Resource tags
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Provides a ESA Site resource.

For information about ESA Site and how to use it, see [What is Site](https://www.alibabacloud.com/help/en/).

> **NOTE:** Available since v1.234.0.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
		if err != nil {
			return err
		}
		defaultIEoDfU, err := esa.NewRatePlanInstance(ctx, "defaultIEoDfU", &esa.RatePlanInstanceArgs{
			Type:        pulumi.String("NS"),
			AutoRenew:   pulumi.Bool(true),
			Period:      pulumi.Int(1),
			PaymentType: pulumi.String("Subscription"),
			Coverage:    pulumi.String("overseas"),
			AutoPay:     pulumi.Bool(true),
			PlanName:    pulumi.String("basic"),
		})
		if err != nil {
			return err
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		_, err = esa.NewSite(ctx, "default", &esa.SiteArgs{
			SiteName:        pulumi.Sprintf("bcd%v.com", defaultInteger.Result),
			Coverage:        pulumi.String("overseas"),
			AccessType:      pulumi.String("NS"),
			InstanceId:      defaultIEoDfU.ID(),
			ResourceGroupId: pulumi.String(_default.Ids[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ESA Site can be imported using the id, e.g.

```sh $ pulumi import alicloud:esa/site:Site example <id> ```

func GetSite

func GetSite(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SiteState, opts ...pulumi.ResourceOption) (*Site, error)

GetSite gets an existing Site 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 NewSite

func NewSite(ctx *pulumi.Context,
	name string, args *SiteArgs, opts ...pulumi.ResourceOption) (*Site, error)

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

func (*Site) ElementType

func (*Site) ElementType() reflect.Type

func (*Site) ToSiteOutput

func (i *Site) ToSiteOutput() SiteOutput

func (*Site) ToSiteOutputWithContext

func (i *Site) ToSiteOutputWithContext(ctx context.Context) SiteOutput

type SiteArgs

type SiteArgs struct {
	// Site Access Type
	AccessType pulumi.StringPtrInput
	// Acceleration area
	Coverage pulumi.StringPtrInput
	// The ID of the associated package instance.
	InstanceId pulumi.StringInput
	// The ID of the resource group
	ResourceGroupId pulumi.StringPtrInput
	// Site Name
	SiteName pulumi.StringInput
	// Resource tags
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Site resource.

func (SiteArgs) ElementType

func (SiteArgs) ElementType() reflect.Type

type SiteArray

type SiteArray []SiteInput

func (SiteArray) ElementType

func (SiteArray) ElementType() reflect.Type

func (SiteArray) ToSiteArrayOutput

func (i SiteArray) ToSiteArrayOutput() SiteArrayOutput

func (SiteArray) ToSiteArrayOutputWithContext

func (i SiteArray) ToSiteArrayOutputWithContext(ctx context.Context) SiteArrayOutput

type SiteArrayInput

type SiteArrayInput interface {
	pulumi.Input

	ToSiteArrayOutput() SiteArrayOutput
	ToSiteArrayOutputWithContext(context.Context) SiteArrayOutput
}

SiteArrayInput is an input type that accepts SiteArray and SiteArrayOutput values. You can construct a concrete instance of `SiteArrayInput` via:

SiteArray{ SiteArgs{...} }

type SiteArrayOutput

type SiteArrayOutput struct{ *pulumi.OutputState }

func (SiteArrayOutput) ElementType

func (SiteArrayOutput) ElementType() reflect.Type

func (SiteArrayOutput) Index

func (SiteArrayOutput) ToSiteArrayOutput

func (o SiteArrayOutput) ToSiteArrayOutput() SiteArrayOutput

func (SiteArrayOutput) ToSiteArrayOutputWithContext

func (o SiteArrayOutput) ToSiteArrayOutputWithContext(ctx context.Context) SiteArrayOutput

type SiteInput

type SiteInput interface {
	pulumi.Input

	ToSiteOutput() SiteOutput
	ToSiteOutputWithContext(ctx context.Context) SiteOutput
}

type SiteMap

type SiteMap map[string]SiteInput

func (SiteMap) ElementType

func (SiteMap) ElementType() reflect.Type

func (SiteMap) ToSiteMapOutput

func (i SiteMap) ToSiteMapOutput() SiteMapOutput

func (SiteMap) ToSiteMapOutputWithContext

func (i SiteMap) ToSiteMapOutputWithContext(ctx context.Context) SiteMapOutput

type SiteMapInput

type SiteMapInput interface {
	pulumi.Input

	ToSiteMapOutput() SiteMapOutput
	ToSiteMapOutputWithContext(context.Context) SiteMapOutput
}

SiteMapInput is an input type that accepts SiteMap and SiteMapOutput values. You can construct a concrete instance of `SiteMapInput` via:

SiteMap{ "key": SiteArgs{...} }

type SiteMapOutput

type SiteMapOutput struct{ *pulumi.OutputState }

func (SiteMapOutput) ElementType

func (SiteMapOutput) ElementType() reflect.Type

func (SiteMapOutput) MapIndex

func (SiteMapOutput) ToSiteMapOutput

func (o SiteMapOutput) ToSiteMapOutput() SiteMapOutput

func (SiteMapOutput) ToSiteMapOutputWithContext

func (o SiteMapOutput) ToSiteMapOutputWithContext(ctx context.Context) SiteMapOutput

type SiteOutput

type SiteOutput struct{ *pulumi.OutputState }

func (SiteOutput) AccessType

func (o SiteOutput) AccessType() pulumi.StringPtrOutput

Site Access Type

func (SiteOutput) Coverage

func (o SiteOutput) Coverage() pulumi.StringPtrOutput

Acceleration area

func (SiteOutput) CreateTime

func (o SiteOutput) CreateTime() pulumi.StringOutput

Creation time

func (SiteOutput) ElementType

func (SiteOutput) ElementType() reflect.Type

func (SiteOutput) InstanceId

func (o SiteOutput) InstanceId() pulumi.StringOutput

The ID of the associated package instance.

func (SiteOutput) ResourceGroupId

func (o SiteOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group

func (SiteOutput) SiteName

func (o SiteOutput) SiteName() pulumi.StringOutput

Site Name

func (SiteOutput) Status

func (o SiteOutput) Status() pulumi.StringOutput

The status of the resource

func (SiteOutput) Tags

Resource tags

func (SiteOutput) ToSiteOutput

func (o SiteOutput) ToSiteOutput() SiteOutput

func (SiteOutput) ToSiteOutputWithContext

func (o SiteOutput) ToSiteOutputWithContext(ctx context.Context) SiteOutput

type SiteState

type SiteState struct {
	// Site Access Type
	AccessType pulumi.StringPtrInput
	// Acceleration area
	Coverage pulumi.StringPtrInput
	// Creation time
	CreateTime pulumi.StringPtrInput
	// The ID of the associated package instance.
	InstanceId pulumi.StringPtrInput
	// The ID of the resource group
	ResourceGroupId pulumi.StringPtrInput
	// Site Name
	SiteName pulumi.StringPtrInput
	// The status of the resource
	Status pulumi.StringPtrInput
	// Resource tags
	Tags pulumi.StringMapInput
}

func (SiteState) ElementType

func (SiteState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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