cas

package
v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 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 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: Field '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"`
}

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

func (*Certificate) ToCertificatePtrOutput

func (i *Certificate) ToCertificatePtrOutput() CertificatePtrOutput

func (*Certificate) ToCertificatePtrOutputWithContext

func (i *Certificate) ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput

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: Field '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) ElementType

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) ToCertificateOutput

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext

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

func (CertificateOutput) ToCertificatePtrOutput

func (o CertificateOutput) ToCertificatePtrOutput() CertificatePtrOutput

func (CertificateOutput) ToCertificatePtrOutputWithContext

func (o CertificateOutput) ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput

type CertificatePtrInput

type CertificatePtrInput interface {
	pulumi.Input

	ToCertificatePtrOutput() CertificatePtrOutput
	ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput
}

type CertificatePtrOutput

type CertificatePtrOutput struct{ *pulumi.OutputState }

func (CertificatePtrOutput) Elem added in v3.9.0

func (CertificatePtrOutput) ElementType

func (CertificatePtrOutput) ElementType() reflect.Type

func (CertificatePtrOutput) ToCertificatePtrOutput

func (o CertificatePtrOutput) ToCertificatePtrOutput() CertificatePtrOutput

func (CertificatePtrOutput) ToCertificatePtrOutputWithContext

func (o CertificatePtrOutput) ToCertificatePtrOutputWithContext(ctx context.Context) CertificatePtrOutput

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: Field '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 remove 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 remove 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 added in v3.5.0

func (GetCertificatesCertificateOutput) CertId added in v3.5.0

func (GetCertificatesCertificateOutput) CertificateName added in v3.5.0

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

func (GetCertificatesCertificateOutput) Id

The cert's id.

func (GetCertificatesCertificateOutput) Issuer

The cert's .

func (GetCertificatesCertificateOutput) Key added in v3.5.0

func (GetCertificatesCertificateOutput) Name deprecated

The cert's name.

Deprecated: Field '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 (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 added in v3.9.0

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

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)

Deprecated: This resource has been deprecated in favour of getServiceCertificates

type GetCertificatesResultOutput added in v3.9.0

type GetCertificatesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCertificates.

func GetCertificatesOutput added in v3.9.0

func (GetCertificatesResultOutput) Certificates added in v3.9.0

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

func (GetCertificatesResultOutput) ElementType added in v3.9.0

func (GetCertificatesResultOutput) EnableDetails added in v3.9.0

func (GetCertificatesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetCertificatesResultOutput) Ids added in v3.9.0

A list of cert IDs.

func (GetCertificatesResultOutput) Lang added in v3.9.0

func (GetCertificatesResultOutput) NameRegex added in v3.9.0

func (GetCertificatesResultOutput) Names added in v3.9.0

A list of cert names.

func (GetCertificatesResultOutput) OutputFile added in v3.9.0

func (GetCertificatesResultOutput) ToGetCertificatesResultOutput added in v3.9.0

func (o GetCertificatesResultOutput) ToGetCertificatesResultOutput() GetCertificatesResultOutput

func (GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext added in v3.9.0

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

type GetServiceCertificatesArgs added in v3.5.0

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

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

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

func (GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutput added in v3.5.0

func (i GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput

func (GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutputWithContext added in v3.5.0

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

type GetServiceCertificatesCertificateArray added in v3.5.0

type GetServiceCertificatesCertificateArray []GetServiceCertificatesCertificateInput

func (GetServiceCertificatesCertificateArray) ElementType added in v3.5.0

func (GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutput added in v3.5.0

func (i GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput

func (GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutputWithContext added in v3.5.0

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

type GetServiceCertificatesCertificateArrayInput added in v3.5.0

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

type GetServiceCertificatesCertificateArrayOutput struct{ *pulumi.OutputState }

func (GetServiceCertificatesCertificateArrayOutput) ElementType added in v3.5.0

func (GetServiceCertificatesCertificateArrayOutput) Index added in v3.5.0

func (GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutput added in v3.5.0

func (o GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput

func (GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutputWithContext added in v3.5.0

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

type GetServiceCertificatesCertificateInput added in v3.5.0

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

type GetServiceCertificatesCertificateOutput struct{ *pulumi.OutputState }

func (GetServiceCertificatesCertificateOutput) BuyInAliyun added in v3.5.0

The cert is buy from aliyun or not.

func (GetServiceCertificatesCertificateOutput) Cert added in v3.5.0

The cert's Cert.

func (GetServiceCertificatesCertificateOutput) CertId added in v3.5.0

The cert's id.

func (GetServiceCertificatesCertificateOutput) CertificateName added in v3.5.0

The cert's name.

func (GetServiceCertificatesCertificateOutput) City added in v3.5.0

The cert's city.

func (GetServiceCertificatesCertificateOutput) Common added in v3.5.0

The cert's common name.

func (GetServiceCertificatesCertificateOutput) Country added in v3.5.0

The cert's country.

func (GetServiceCertificatesCertificateOutput) ElementType added in v3.5.0

func (GetServiceCertificatesCertificateOutput) EndDate added in v3.5.0

The cert's not valid after time.

func (GetServiceCertificatesCertificateOutput) Expired added in v3.5.0

The cert is expired or not.

func (GetServiceCertificatesCertificateOutput) Fingerprint added in v3.5.0

The cert's finger.

func (GetServiceCertificatesCertificateOutput) Id added in v3.5.0

The cert's id.

func (GetServiceCertificatesCertificateOutput) Issuer added in v3.5.0

The cert's Issuer.

func (GetServiceCertificatesCertificateOutput) Key added in v3.5.0

The cert's Keye.

func (GetServiceCertificatesCertificateOutput) Name deprecated added in v3.5.0

Deprecated: Field '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 (GetServiceCertificatesCertificateOutput) OrgName added in v3.5.0

The cert's organization.

func (GetServiceCertificatesCertificateOutput) Province added in v3.5.0

The cert's province.

func (GetServiceCertificatesCertificateOutput) Sans added in v3.5.0

The cert's subject alternative name.

func (GetServiceCertificatesCertificateOutput) StartDate added in v3.5.0

The cert's not valid before time.

func (GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutput added in v3.5.0

func (o GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput

func (GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutputWithContext added in v3.5.0

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

type GetServiceCertificatesOutputArgs added in v3.9.0

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

type GetServiceCertificatesResult added in v3.5.0

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

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/v3/go/alicloud/cas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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

```

type GetServiceCertificatesResultOutput added in v3.9.0

type GetServiceCertificatesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServiceCertificates.

func GetServiceCertificatesOutput added in v3.9.0

func (GetServiceCertificatesResultOutput) Certificates added in v3.9.0

func (GetServiceCertificatesResultOutput) ElementType added in v3.9.0

func (GetServiceCertificatesResultOutput) EnableDetails added in v3.9.0

func (GetServiceCertificatesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServiceCertificatesResultOutput) Ids added in v3.9.0

func (GetServiceCertificatesResultOutput) Lang added in v3.9.0

func (GetServiceCertificatesResultOutput) NameRegex added in v3.9.0

func (GetServiceCertificatesResultOutput) Names added in v3.9.0

func (GetServiceCertificatesResultOutput) OutputFile added in v3.9.0

func (GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutput added in v3.9.0

func (o GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutput() GetServiceCertificatesResultOutput

func (GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutputWithContext added in v3.9.0

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

type ServiceCertificate added in v3.5.0

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.
	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"`
	// Deprecated: Field '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-alicloud/sdk/v3/go/alicloud/cas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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%v", path.Module, "/test.crt")),
			Key:             readFileOrPanic(fmt.Sprintf("%v%v", path.Module, "/test.key")),
		})
		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 added in v3.5.0

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

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

func (*ServiceCertificate) ElementType() reflect.Type

func (*ServiceCertificate) ToServiceCertificateOutput added in v3.5.0

func (i *ServiceCertificate) ToServiceCertificateOutput() ServiceCertificateOutput

func (*ServiceCertificate) ToServiceCertificateOutputWithContext added in v3.5.0

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

func (*ServiceCertificate) ToServiceCertificatePtrOutput added in v3.5.0

func (i *ServiceCertificate) ToServiceCertificatePtrOutput() ServiceCertificatePtrOutput

func (*ServiceCertificate) ToServiceCertificatePtrOutputWithContext added in v3.5.0

func (i *ServiceCertificate) ToServiceCertificatePtrOutputWithContext(ctx context.Context) ServiceCertificatePtrOutput

type ServiceCertificateArgs added in v3.5.0

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.
	CertificateName pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringInput
	// The lang.
	Lang pulumi.StringPtrInput
	// Deprecated: Field '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 added in v3.5.0

func (ServiceCertificateArgs) ElementType() reflect.Type

type ServiceCertificateArray added in v3.5.0

type ServiceCertificateArray []ServiceCertificateInput

func (ServiceCertificateArray) ElementType added in v3.5.0

func (ServiceCertificateArray) ElementType() reflect.Type

func (ServiceCertificateArray) ToServiceCertificateArrayOutput added in v3.5.0

func (i ServiceCertificateArray) ToServiceCertificateArrayOutput() ServiceCertificateArrayOutput

func (ServiceCertificateArray) ToServiceCertificateArrayOutputWithContext added in v3.5.0

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

type ServiceCertificateArrayInput added in v3.5.0

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

type ServiceCertificateArrayOutput struct{ *pulumi.OutputState }

func (ServiceCertificateArrayOutput) ElementType added in v3.5.0

func (ServiceCertificateArrayOutput) Index added in v3.5.0

func (ServiceCertificateArrayOutput) ToServiceCertificateArrayOutput added in v3.5.0

func (o ServiceCertificateArrayOutput) ToServiceCertificateArrayOutput() ServiceCertificateArrayOutput

func (ServiceCertificateArrayOutput) ToServiceCertificateArrayOutputWithContext added in v3.5.0

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

type ServiceCertificateInput added in v3.5.0

type ServiceCertificateInput interface {
	pulumi.Input

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

type ServiceCertificateMap added in v3.5.0

type ServiceCertificateMap map[string]ServiceCertificateInput

func (ServiceCertificateMap) ElementType added in v3.5.0

func (ServiceCertificateMap) ElementType() reflect.Type

func (ServiceCertificateMap) ToServiceCertificateMapOutput added in v3.5.0

func (i ServiceCertificateMap) ToServiceCertificateMapOutput() ServiceCertificateMapOutput

func (ServiceCertificateMap) ToServiceCertificateMapOutputWithContext added in v3.5.0

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

type ServiceCertificateMapInput added in v3.5.0

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

type ServiceCertificateMapOutput struct{ *pulumi.OutputState }

func (ServiceCertificateMapOutput) ElementType added in v3.5.0

func (ServiceCertificateMapOutput) MapIndex added in v3.5.0

func (ServiceCertificateMapOutput) ToServiceCertificateMapOutput added in v3.5.0

func (o ServiceCertificateMapOutput) ToServiceCertificateMapOutput() ServiceCertificateMapOutput

func (ServiceCertificateMapOutput) ToServiceCertificateMapOutputWithContext added in v3.5.0

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

type ServiceCertificateOutput added in v3.5.0

type ServiceCertificateOutput struct{ *pulumi.OutputState }

func (ServiceCertificateOutput) ElementType added in v3.5.0

func (ServiceCertificateOutput) ElementType() reflect.Type

func (ServiceCertificateOutput) ToServiceCertificateOutput added in v3.5.0

func (o ServiceCertificateOutput) ToServiceCertificateOutput() ServiceCertificateOutput

func (ServiceCertificateOutput) ToServiceCertificateOutputWithContext added in v3.5.0

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

func (ServiceCertificateOutput) ToServiceCertificatePtrOutput added in v3.5.0

func (o ServiceCertificateOutput) ToServiceCertificatePtrOutput() ServiceCertificatePtrOutput

func (ServiceCertificateOutput) ToServiceCertificatePtrOutputWithContext added in v3.5.0

func (o ServiceCertificateOutput) ToServiceCertificatePtrOutputWithContext(ctx context.Context) ServiceCertificatePtrOutput

type ServiceCertificatePtrInput added in v3.5.0

type ServiceCertificatePtrInput interface {
	pulumi.Input

	ToServiceCertificatePtrOutput() ServiceCertificatePtrOutput
	ToServiceCertificatePtrOutputWithContext(ctx context.Context) ServiceCertificatePtrOutput
}

type ServiceCertificatePtrOutput added in v3.5.0

type ServiceCertificatePtrOutput struct{ *pulumi.OutputState }

func (ServiceCertificatePtrOutput) Elem added in v3.9.0

func (ServiceCertificatePtrOutput) ElementType added in v3.5.0

func (ServiceCertificatePtrOutput) ToServiceCertificatePtrOutput added in v3.5.0

func (o ServiceCertificatePtrOutput) ToServiceCertificatePtrOutput() ServiceCertificatePtrOutput

func (ServiceCertificatePtrOutput) ToServiceCertificatePtrOutputWithContext added in v3.5.0

func (o ServiceCertificatePtrOutput) ToServiceCertificatePtrOutputWithContext(ctx context.Context) ServiceCertificatePtrOutput

type ServiceCertificateState added in v3.5.0

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.
	CertificateName pulumi.StringPtrInput
	// Key of the Certificate in which the Certificate will add.
	Key pulumi.StringPtrInput
	// The lang.
	Lang pulumi.StringPtrInput
	// Deprecated: Field '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 added in v3.5.0

func (ServiceCertificateState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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