cas

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Certificate deprecated

type Certificate struct {
	pulumi.CustomResourceState

	// Cert of the Certificate in which the Certificate will add.
	Cert            pulumi.StringOutput `pulumi:"cert"`
	CertificateName pulumi.StringOutput `pulumi:"certificateName"`
	// Key of the Certificate in which the Certificate will add.
	Key  pulumi.StringOutput    `pulumi:"key"`
	Lang pulumi.StringPtrOutput `pulumi:"lang"`
	// Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
	//
	// Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringOutput `pulumi:"name"`
}

## Example Usage

```go package main

import (

"fmt"
"io/ioutil"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cas"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cas.NewCertificate(ctx, "cert", &cas.CertificateArgs{
			Cert: readFileOrPanic(fmt.Sprintf("%v/test.crt", path.Module)),
			Key:  readFileOrPanic(fmt.Sprintf("%v/test.key", path.Module)),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Deprecated: This resource has been deprecated in favour of ServiceCertificate

func GetCertificate

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate 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 NewCertificate

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

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

func (*Certificate) ElementType

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateArgs

type CertificateArgs struct {
	// Cert of the Certificate in which the Certificate will add.
	Cert            pulumi.StringInput
	CertificateName pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key  pulumi.StringInput
	Lang pulumi.StringPtrInput
	// Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
	//
	// Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Certificate resource.

func (CertificateArgs) ElementType

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray

type CertificateArray []CertificateInput

func (CertificateArray) ElementType

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index

func (CertificateArrayOutput) ToCertificateArrayOutput

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateInput

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateMap

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex

func (CertificateMapOutput) ToCertificateMapOutput

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Cert

Cert of the Certificate in which the Certificate will add.

func (CertificateOutput) CertificateName

func (o CertificateOutput) CertificateName() pulumi.StringOutput

func (CertificateOutput) ElementType

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Key

Key of the Certificate in which the Certificate will add.

func (CertificateOutput) Lang

func (CertificateOutput) Name deprecated

Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.

Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.

func (CertificateOutput) ToCertificateOutput

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateState

type CertificateState struct {
	// Cert of the Certificate in which the Certificate will add.
	Cert            pulumi.StringPtrInput
	CertificateName pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key  pulumi.StringPtrInput
	Lang pulumi.StringPtrInput
	// Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix `.sh` and `.tel` are not supported.
	//
	// Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringPtrInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type GetCertificatesArgs

type GetCertificatesArgs struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of cert IDs.
	Ids  []string `pulumi:"ids"`
	Lang *string  `pulumi:"lang"`
	// A regex string to filter results by the certificate name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getCertificates.

type GetCertificatesCertificate

type GetCertificatesCertificate struct {
	// The cert is buy from aliyun or not.
	BuyInAliyun     bool   `pulumi:"buyInAliyun"`
	Cert            string `pulumi:"cert"`
	CertId          string `pulumi:"certId"`
	CertificateName string `pulumi:"certificateName"`
	// The cert's city.
	City string `pulumi:"city"`
	// The cert's common name.
	Common string `pulumi:"common"`
	// The cert's country.
	Country string `pulumi:"country"`
	// The cert's not valid after time.
	EndDate string `pulumi:"endDate"`
	// The cert is expired or not.
	Expired     bool   `pulumi:"expired"`
	Fingerprint string `pulumi:"fingerprint"`
	// The cert's id.
	Id string `pulumi:"id"`
	// The cert's .
	Issuer string `pulumi:"issuer"`
	Key    string `pulumi:"key"`
	// The cert's name.
	//
	// Deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.
	Name string `pulumi:"name"`
	// The cert's organization.
	OrgName string `pulumi:"orgName"`
	// The cert's province.
	Province string `pulumi:"province"`
	// The cert's subject alternative name.
	Sans string `pulumi:"sans"`
	// The cert's not valid before time.
	StartDate string `pulumi:"startDate"`
}

type GetCertificatesCertificateArgs

type GetCertificatesCertificateArgs struct {
	// The cert is buy from aliyun or not.
	BuyInAliyun     pulumi.BoolInput   `pulumi:"buyInAliyun"`
	Cert            pulumi.StringInput `pulumi:"cert"`
	CertId          pulumi.StringInput `pulumi:"certId"`
	CertificateName pulumi.StringInput `pulumi:"certificateName"`
	// The cert's city.
	City pulumi.StringInput `pulumi:"city"`
	// The cert's common name.
	Common pulumi.StringInput `pulumi:"common"`
	// The cert's country.
	Country pulumi.StringInput `pulumi:"country"`
	// The cert's not valid after time.
	EndDate pulumi.StringInput `pulumi:"endDate"`
	// The cert is expired or not.
	Expired     pulumi.BoolInput   `pulumi:"expired"`
	Fingerprint pulumi.StringInput `pulumi:"fingerprint"`
	// The cert's id.
	Id pulumi.StringInput `pulumi:"id"`
	// The cert's .
	Issuer pulumi.StringInput `pulumi:"issuer"`
	Key    pulumi.StringInput `pulumi:"key"`
	// The cert's name.
	//
	// Deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringInput `pulumi:"name"`
	// The cert's organization.
	OrgName pulumi.StringInput `pulumi:"orgName"`
	// The cert's province.
	Province pulumi.StringInput `pulumi:"province"`
	// The cert's subject alternative name.
	Sans pulumi.StringInput `pulumi:"sans"`
	// The cert's not valid before time.
	StartDate pulumi.StringInput `pulumi:"startDate"`
}

func (GetCertificatesCertificateArgs) ElementType

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext

func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

type GetCertificatesCertificateArray

type GetCertificatesCertificateArray []GetCertificatesCertificateInput

func (GetCertificatesCertificateArray) ElementType

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext

func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayInput

type GetCertificatesCertificateArrayInput interface {
	pulumi.Input

	ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput
	ToGetCertificatesCertificateArrayOutputWithContext(context.Context) GetCertificatesCertificateArrayOutput
}

GetCertificatesCertificateArrayInput is an input type that accepts GetCertificatesCertificateArray and GetCertificatesCertificateArrayOutput values. You can construct a concrete instance of `GetCertificatesCertificateArrayInput` via:

GetCertificatesCertificateArray{ GetCertificatesCertificateArgs{...} }

type GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateArrayOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateArrayOutput) ElementType

func (GetCertificatesCertificateArrayOutput) Index

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput

func (GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext

func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput

type GetCertificatesCertificateInput

type GetCertificatesCertificateInput interface {
	pulumi.Input

	ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput
	ToGetCertificatesCertificateOutputWithContext(context.Context) GetCertificatesCertificateOutput
}

GetCertificatesCertificateInput is an input type that accepts GetCertificatesCertificateArgs and GetCertificatesCertificateOutput values. You can construct a concrete instance of `GetCertificatesCertificateInput` via:

GetCertificatesCertificateArgs{...}

type GetCertificatesCertificateOutput

type GetCertificatesCertificateOutput struct{ *pulumi.OutputState }

func (GetCertificatesCertificateOutput) BuyInAliyun

The cert is buy from aliyun or not.

func (GetCertificatesCertificateOutput) Cert

func (GetCertificatesCertificateOutput) CertId

func (GetCertificatesCertificateOutput) CertificateName

func (GetCertificatesCertificateOutput) City

The cert's city.

func (GetCertificatesCertificateOutput) Common

The cert's common name.

func (GetCertificatesCertificateOutput) Country

The cert's country.

func (GetCertificatesCertificateOutput) ElementType

func (GetCertificatesCertificateOutput) EndDate

The cert's not valid after time.

func (GetCertificatesCertificateOutput) Expired

The cert is expired or not.

func (GetCertificatesCertificateOutput) Fingerprint

func (GetCertificatesCertificateOutput) Id

The cert's id.

func (GetCertificatesCertificateOutput) Issuer

The cert's .

func (GetCertificatesCertificateOutput) Key

func (GetCertificatesCertificateOutput) Name deprecated

The cert's name.

Deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.

func (GetCertificatesCertificateOutput) OrgName

The cert's organization.

func (GetCertificatesCertificateOutput) Province

The cert's province.

func (GetCertificatesCertificateOutput) Sans

The cert's subject alternative name.

func (GetCertificatesCertificateOutput) StartDate

The cert's not valid before time.

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput

func (GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext

func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput

type GetCertificatesOutputArgs

type GetCertificatesOutputArgs struct {
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of cert IDs.
	Ids  pulumi.StringArrayInput `pulumi:"ids"`
	Lang pulumi.StringPtrInput   `pulumi:"lang"`
	// A regex string to filter results by the certificate name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getCertificates.

func (GetCertificatesOutputArgs) ElementType

func (GetCertificatesOutputArgs) ElementType() reflect.Type

type GetCertificatesResult

type GetCertificatesResult struct {
	// A list of apis. Each element contains the following attributes:
	Certificates  []GetCertificatesCertificate `pulumi:"certificates"`
	EnableDetails *bool                        `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of cert IDs.
	Ids       []string `pulumi:"ids"`
	Lang      *string  `pulumi:"lang"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of cert names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getCertificates.

func GetCertificates deprecated

func GetCertificates(ctx *pulumi.Context, args *GetCertificatesArgs, opts ...pulumi.InvokeOption) (*GetCertificatesResult, error)

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cas"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		certs, err := cas.GetCertificates(ctx, &cas.GetCertificatesArgs{
			NameRegex:  pulumi.StringRef("^cas"),
			OutputFile: pulumi.StringRef(fmt.Sprintf("%v/cas_certificates.json", path.Module)),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cert", certs.Certificates[0].Id)
		return nil
	})
}

```

Deprecated: This resource has been deprecated in favour of getServiceCertificates

type GetCertificatesResultOutput

type GetCertificatesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCertificates.

func (GetCertificatesResultOutput) Certificates

A list of apis. Each element contains the following attributes:

func (GetCertificatesResultOutput) ElementType

func (GetCertificatesResultOutput) EnableDetails

func (GetCertificatesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetCertificatesResultOutput) Ids

A list of cert IDs.

func (GetCertificatesResultOutput) Lang

func (GetCertificatesResultOutput) NameRegex

func (GetCertificatesResultOutput) Names

A list of cert names.

func (GetCertificatesResultOutput) OutputFile

func (GetCertificatesResultOutput) ToGetCertificatesResultOutput

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutput() GetCertificatesResultOutput

func (GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext(ctx context.Context) GetCertificatesResultOutput

type GetServiceCertificatesArgs

type GetServiceCertificatesArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Certificate IDs.
	Ids []string `pulumi:"ids"`
	// The lang.
	Lang *string `pulumi:"lang"`
	// A regex string to filter results by Certificate name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServiceCertificates.

type GetServiceCertificatesCertificate

type GetServiceCertificatesCertificate struct {
	// The cert is buy from aliyun or not.
	BuyInAliyun bool `pulumi:"buyInAliyun"`
	// The cert's Cert.
	Cert string `pulumi:"cert"`
	// The cert's id.
	CertId string `pulumi:"certId"`
	// The cert's name.
	CertificateName string `pulumi:"certificateName"`
	// The cert's city.
	City string `pulumi:"city"`
	// The cert's common name.
	Common string `pulumi:"common"`
	// The cert's country.
	Country string `pulumi:"country"`
	// The cert's not valid after time.
	EndDate string `pulumi:"endDate"`
	// The cert is expired or not.
	Expired bool `pulumi:"expired"`
	// The cert's finger.
	Fingerprint string `pulumi:"fingerprint"`
	// The cert's id.
	Id string `pulumi:"id"`
	// The cert's Issuer.
	Issuer string `pulumi:"issuer"`
	// The cert's Keye.
	Key string `pulumi:"key"`
	// Deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.
	Name string `pulumi:"name"`
	// The cert's organization.
	OrgName string `pulumi:"orgName"`
	// The cert's province.
	Province string `pulumi:"province"`
	// The cert's subject alternative name.
	Sans string `pulumi:"sans"`
	// The cert's not valid before time.
	StartDate string `pulumi:"startDate"`
}

type GetServiceCertificatesCertificateArgs

type GetServiceCertificatesCertificateArgs struct {
	// The cert is buy from aliyun or not.
	BuyInAliyun pulumi.BoolInput `pulumi:"buyInAliyun"`
	// The cert's Cert.
	Cert pulumi.StringInput `pulumi:"cert"`
	// The cert's id.
	CertId pulumi.StringInput `pulumi:"certId"`
	// The cert's name.
	CertificateName pulumi.StringInput `pulumi:"certificateName"`
	// The cert's city.
	City pulumi.StringInput `pulumi:"city"`
	// The cert's common name.
	Common pulumi.StringInput `pulumi:"common"`
	// The cert's country.
	Country pulumi.StringInput `pulumi:"country"`
	// The cert's not valid after time.
	EndDate pulumi.StringInput `pulumi:"endDate"`
	// The cert is expired or not.
	Expired pulumi.BoolInput `pulumi:"expired"`
	// The cert's finger.
	Fingerprint pulumi.StringInput `pulumi:"fingerprint"`
	// The cert's id.
	Id pulumi.StringInput `pulumi:"id"`
	// The cert's Issuer.
	Issuer pulumi.StringInput `pulumi:"issuer"`
	// The cert's Keye.
	Key pulumi.StringInput `pulumi:"key"`
	// Deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringInput `pulumi:"name"`
	// The cert's organization.
	OrgName pulumi.StringInput `pulumi:"orgName"`
	// The cert's province.
	Province pulumi.StringInput `pulumi:"province"`
	// The cert's subject alternative name.
	Sans pulumi.StringInput `pulumi:"sans"`
	// The cert's not valid before time.
	StartDate pulumi.StringInput `pulumi:"startDate"`
}

func (GetServiceCertificatesCertificateArgs) ElementType

func (GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutput

func (i GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput

func (GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutputWithContext

func (i GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateOutput

type GetServiceCertificatesCertificateArray

type GetServiceCertificatesCertificateArray []GetServiceCertificatesCertificateInput

func (GetServiceCertificatesCertificateArray) ElementType

func (GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutput

func (i GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput

func (GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutputWithContext

func (i GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateArrayOutput

type GetServiceCertificatesCertificateArrayInput

type GetServiceCertificatesCertificateArrayInput interface {
	pulumi.Input

	ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput
	ToGetServiceCertificatesCertificateArrayOutputWithContext(context.Context) GetServiceCertificatesCertificateArrayOutput
}

GetServiceCertificatesCertificateArrayInput is an input type that accepts GetServiceCertificatesCertificateArray and GetServiceCertificatesCertificateArrayOutput values. You can construct a concrete instance of `GetServiceCertificatesCertificateArrayInput` via:

GetServiceCertificatesCertificateArray{ GetServiceCertificatesCertificateArgs{...} }

type GetServiceCertificatesCertificateArrayOutput

type GetServiceCertificatesCertificateArrayOutput struct{ *pulumi.OutputState }

func (GetServiceCertificatesCertificateArrayOutput) ElementType

func (GetServiceCertificatesCertificateArrayOutput) Index

func (GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutput

func (o GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput

func (GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutputWithContext

func (o GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateArrayOutput

type GetServiceCertificatesCertificateInput

type GetServiceCertificatesCertificateInput interface {
	pulumi.Input

	ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput
	ToGetServiceCertificatesCertificateOutputWithContext(context.Context) GetServiceCertificatesCertificateOutput
}

GetServiceCertificatesCertificateInput is an input type that accepts GetServiceCertificatesCertificateArgs and GetServiceCertificatesCertificateOutput values. You can construct a concrete instance of `GetServiceCertificatesCertificateInput` via:

GetServiceCertificatesCertificateArgs{...}

type GetServiceCertificatesCertificateOutput

type GetServiceCertificatesCertificateOutput struct{ *pulumi.OutputState }

func (GetServiceCertificatesCertificateOutput) BuyInAliyun

The cert is buy from aliyun or not.

func (GetServiceCertificatesCertificateOutput) Cert

The cert's Cert.

func (GetServiceCertificatesCertificateOutput) CertId

The cert's id.

func (GetServiceCertificatesCertificateOutput) CertificateName

The cert's name.

func (GetServiceCertificatesCertificateOutput) City

The cert's city.

func (GetServiceCertificatesCertificateOutput) Common

The cert's common name.

func (GetServiceCertificatesCertificateOutput) Country

The cert's country.

func (GetServiceCertificatesCertificateOutput) ElementType

func (GetServiceCertificatesCertificateOutput) EndDate

The cert's not valid after time.

func (GetServiceCertificatesCertificateOutput) Expired

The cert is expired or not.

func (GetServiceCertificatesCertificateOutput) Fingerprint

The cert's finger.

func (GetServiceCertificatesCertificateOutput) Id

The cert's id.

func (GetServiceCertificatesCertificateOutput) Issuer

The cert's Issuer.

func (GetServiceCertificatesCertificateOutput) Key

The cert's Keye.

func (GetServiceCertificatesCertificateOutput) Name deprecated

Deprecated: Field 'name' has been deprecated from provider version 1.129.0 and it will be removed in the future version. Please use the new attribute 'certificate_name' instead.

func (GetServiceCertificatesCertificateOutput) OrgName

The cert's organization.

func (GetServiceCertificatesCertificateOutput) Province

The cert's province.

func (GetServiceCertificatesCertificateOutput) Sans

The cert's subject alternative name.

func (GetServiceCertificatesCertificateOutput) StartDate

The cert's not valid before time.

func (GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutput

func (o GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput

func (GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutputWithContext

func (o GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateOutput

type GetServiceCertificatesOutputArgs

type GetServiceCertificatesOutputArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Certificate IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The lang.
	Lang pulumi.StringPtrInput `pulumi:"lang"`
	// A regex string to filter results by Certificate name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getServiceCertificates.

func (GetServiceCertificatesOutputArgs) ElementType

type GetServiceCertificatesResult

type GetServiceCertificatesResult struct {
	Certificates  []GetServiceCertificatesCertificate `pulumi:"certificates"`
	EnableDetails *bool                               `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	Lang       *string  `pulumi:"lang"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getServiceCertificates.

func GetServiceCertificates

func GetServiceCertificates(ctx *pulumi.Context, args *GetServiceCertificatesArgs, opts ...pulumi.InvokeOption) (*GetServiceCertificatesResult, error)

This data source provides the Ssl Certificates Service Certificates of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cas"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		certs, err := cas.GetCertificates(ctx, &cas.GetCertificatesArgs{
			NameRegex: pulumi.StringRef("^cas"),
			Ids: []string{
				"Certificate Id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cert", certs.Certificates[0].Id)
		return nil
	})
}

```

type GetServiceCertificatesResultOutput

type GetServiceCertificatesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServiceCertificates.

func (GetServiceCertificatesResultOutput) Certificates

func (GetServiceCertificatesResultOutput) ElementType

func (GetServiceCertificatesResultOutput) EnableDetails

func (GetServiceCertificatesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServiceCertificatesResultOutput) Ids

func (GetServiceCertificatesResultOutput) Lang

func (GetServiceCertificatesResultOutput) NameRegex

func (GetServiceCertificatesResultOutput) Names

func (GetServiceCertificatesResultOutput) OutputFile

func (GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutput

func (o GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutput() GetServiceCertificatesResultOutput

func (GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutputWithContext

func (o GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutputWithContext(ctx context.Context) GetServiceCertificatesResultOutput

type ServiceCertificate

type ServiceCertificate struct {
	pulumi.CustomResourceState

	// Cert of the Certificate in which the Certificate will add.
	Cert pulumi.StringOutput `pulumi:"cert"`
	// Name of the Certificate.
	// This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-",
	// and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time.
	// Suffix .sh and .tel are not supported.
	// **NOTE:** One of `certificateName` and `name` must be specified.
	CertificateName pulumi.StringOutput `pulumi:"certificateName"`
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringOutput `pulumi:"key"`
	// The lang.
	Lang pulumi.StringPtrOutput `pulumi:"lang"`
	// It has been deprecated from version 1.129.0 and using `certificateName` instead.
	//
	// Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringOutput `pulumi:"name"`
}

Provides a SSL Certificates Certificate resource.

For information about SSL Certificates Certificate and how to use it, see [What is Certificate](https://www.alibabacloud.com/help/product/28533.html).

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

## Example Usage

Basic Usage

```go package main

import (

"fmt"
"io/ioutil"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cas"

)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cas.NewServiceCertificate(ctx, "example", &cas.ServiceCertificateArgs{
			CertificateName: pulumi.String("test"),
			Cert:            readFileOrPanic(fmt.Sprintf("%v/test.crt", path.Module)),
			Key:             readFileOrPanic(fmt.Sprintf("%v/test.key", path.Module)),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

SSL Certificates Certificate can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cas/serviceCertificate:ServiceCertificate example <id>

```

func GetServiceCertificate

func GetServiceCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceCertificateState, opts ...pulumi.ResourceOption) (*ServiceCertificate, error)

GetServiceCertificate gets an existing ServiceCertificate 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 NewServiceCertificate

func NewServiceCertificate(ctx *pulumi.Context,
	name string, args *ServiceCertificateArgs, opts ...pulumi.ResourceOption) (*ServiceCertificate, error)

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

func (*ServiceCertificate) ElementType

func (*ServiceCertificate) ElementType() reflect.Type

func (*ServiceCertificate) ToServiceCertificateOutput

func (i *ServiceCertificate) ToServiceCertificateOutput() ServiceCertificateOutput

func (*ServiceCertificate) ToServiceCertificateOutputWithContext

func (i *ServiceCertificate) ToServiceCertificateOutputWithContext(ctx context.Context) ServiceCertificateOutput

type ServiceCertificateArgs

type ServiceCertificateArgs struct {
	// Cert of the Certificate in which the Certificate will add.
	Cert pulumi.StringInput
	// Name of the Certificate.
	// This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-",
	// and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time.
	// Suffix .sh and .tel are not supported.
	// **NOTE:** One of `certificateName` and `name` must be specified.
	CertificateName pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringInput
	// The lang.
	Lang pulumi.StringPtrInput
	// It has been deprecated from version 1.129.0 and using `certificateName` instead.
	//
	// Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a ServiceCertificate resource.

func (ServiceCertificateArgs) ElementType

func (ServiceCertificateArgs) ElementType() reflect.Type

type ServiceCertificateArray

type ServiceCertificateArray []ServiceCertificateInput

func (ServiceCertificateArray) ElementType

func (ServiceCertificateArray) ElementType() reflect.Type

func (ServiceCertificateArray) ToServiceCertificateArrayOutput

func (i ServiceCertificateArray) ToServiceCertificateArrayOutput() ServiceCertificateArrayOutput

func (ServiceCertificateArray) ToServiceCertificateArrayOutputWithContext

func (i ServiceCertificateArray) ToServiceCertificateArrayOutputWithContext(ctx context.Context) ServiceCertificateArrayOutput

type ServiceCertificateArrayInput

type ServiceCertificateArrayInput interface {
	pulumi.Input

	ToServiceCertificateArrayOutput() ServiceCertificateArrayOutput
	ToServiceCertificateArrayOutputWithContext(context.Context) ServiceCertificateArrayOutput
}

ServiceCertificateArrayInput is an input type that accepts ServiceCertificateArray and ServiceCertificateArrayOutput values. You can construct a concrete instance of `ServiceCertificateArrayInput` via:

ServiceCertificateArray{ ServiceCertificateArgs{...} }

type ServiceCertificateArrayOutput

type ServiceCertificateArrayOutput struct{ *pulumi.OutputState }

func (ServiceCertificateArrayOutput) ElementType

func (ServiceCertificateArrayOutput) Index

func (ServiceCertificateArrayOutput) ToServiceCertificateArrayOutput

func (o ServiceCertificateArrayOutput) ToServiceCertificateArrayOutput() ServiceCertificateArrayOutput

func (ServiceCertificateArrayOutput) ToServiceCertificateArrayOutputWithContext

func (o ServiceCertificateArrayOutput) ToServiceCertificateArrayOutputWithContext(ctx context.Context) ServiceCertificateArrayOutput

type ServiceCertificateInput

type ServiceCertificateInput interface {
	pulumi.Input

	ToServiceCertificateOutput() ServiceCertificateOutput
	ToServiceCertificateOutputWithContext(ctx context.Context) ServiceCertificateOutput
}

type ServiceCertificateMap

type ServiceCertificateMap map[string]ServiceCertificateInput

func (ServiceCertificateMap) ElementType

func (ServiceCertificateMap) ElementType() reflect.Type

func (ServiceCertificateMap) ToServiceCertificateMapOutput

func (i ServiceCertificateMap) ToServiceCertificateMapOutput() ServiceCertificateMapOutput

func (ServiceCertificateMap) ToServiceCertificateMapOutputWithContext

func (i ServiceCertificateMap) ToServiceCertificateMapOutputWithContext(ctx context.Context) ServiceCertificateMapOutput

type ServiceCertificateMapInput

type ServiceCertificateMapInput interface {
	pulumi.Input

	ToServiceCertificateMapOutput() ServiceCertificateMapOutput
	ToServiceCertificateMapOutputWithContext(context.Context) ServiceCertificateMapOutput
}

ServiceCertificateMapInput is an input type that accepts ServiceCertificateMap and ServiceCertificateMapOutput values. You can construct a concrete instance of `ServiceCertificateMapInput` via:

ServiceCertificateMap{ "key": ServiceCertificateArgs{...} }

type ServiceCertificateMapOutput

type ServiceCertificateMapOutput struct{ *pulumi.OutputState }

func (ServiceCertificateMapOutput) ElementType

func (ServiceCertificateMapOutput) MapIndex

func (ServiceCertificateMapOutput) ToServiceCertificateMapOutput

func (o ServiceCertificateMapOutput) ToServiceCertificateMapOutput() ServiceCertificateMapOutput

func (ServiceCertificateMapOutput) ToServiceCertificateMapOutputWithContext

func (o ServiceCertificateMapOutput) ToServiceCertificateMapOutputWithContext(ctx context.Context) ServiceCertificateMapOutput

type ServiceCertificateOutput

type ServiceCertificateOutput struct{ *pulumi.OutputState }

func (ServiceCertificateOutput) Cert

Cert of the Certificate in which the Certificate will add.

func (ServiceCertificateOutput) CertificateName

func (o ServiceCertificateOutput) CertificateName() pulumi.StringOutput

Name of the Certificate. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported. **NOTE:** One of `certificateName` and `name` must be specified.

func (ServiceCertificateOutput) ElementType

func (ServiceCertificateOutput) ElementType() reflect.Type

func (ServiceCertificateOutput) Key

Key of the Certificate in which the Certificate will add.

func (ServiceCertificateOutput) Lang

The lang.

func (ServiceCertificateOutput) Name deprecated

It has been deprecated from version 1.129.0 and using `certificateName` instead.

Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.

func (ServiceCertificateOutput) ToServiceCertificateOutput

func (o ServiceCertificateOutput) ToServiceCertificateOutput() ServiceCertificateOutput

func (ServiceCertificateOutput) ToServiceCertificateOutputWithContext

func (o ServiceCertificateOutput) ToServiceCertificateOutputWithContext(ctx context.Context) ServiceCertificateOutput

type ServiceCertificateState

type ServiceCertificateState struct {
	// Cert of the Certificate in which the Certificate will add.
	Cert pulumi.StringPtrInput
	// Name of the Certificate.
	// This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-",
	// and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time.
	// Suffix .sh and .tel are not supported.
	// **NOTE:** One of `certificateName` and `name` must be specified.
	CertificateName pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringPtrInput
	// The lang.
	Lang pulumi.StringPtrInput
	// It has been deprecated from version 1.129.0 and using `certificateName` instead.
	//
	// Deprecated: attribute 'name' has been deprecated from provider version 1.129.0 and it will be remove in the future version. Please use the new attribute 'certificate_name' instead.
	Name pulumi.StringPtrInput
}

func (ServiceCertificateState) ElementType

func (ServiceCertificateState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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