Documentation
¶
Index ¶
- type Certificatedeprecated
- type CertificateArgs
- type CertificateArray
- type CertificateArrayInput
- type CertificateArrayOutput
- func (CertificateArrayOutput) ElementType() reflect.Type
- func (o CertificateArrayOutput) Index(i pulumi.IntInput) CertificateOutput
- func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput
- func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput
- type CertificateInput
- type CertificateMap
- type CertificateMapInput
- type CertificateMapOutput
- func (CertificateMapOutput) ElementType() reflect.Type
- func (o CertificateMapOutput) MapIndex(k pulumi.StringInput) CertificateOutput
- func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput
- func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput
- type CertificateOutput
- func (o CertificateOutput) Cert() pulumi.StringOutput
- func (o CertificateOutput) CertificateName() pulumi.StringOutput
- func (CertificateOutput) ElementType() reflect.Type
- func (o CertificateOutput) Key() pulumi.StringOutput
- func (o CertificateOutput) Lang() pulumi.StringPtrOutput
- func (o CertificateOutput) Name() pulumi.StringOutputdeprecated
- func (o CertificateOutput) ToCertificateOutput() CertificateOutput
- func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
- type CertificateState
- type GetCertificatesArgs
- type GetCertificatesCertificate
- type GetCertificatesCertificateArgs
- func (GetCertificatesCertificateArgs) ElementType() reflect.Type
- func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput
- func (i GetCertificatesCertificateArgs) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput
- type GetCertificatesCertificateArray
- func (GetCertificatesCertificateArray) ElementType() reflect.Type
- func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput
- func (i GetCertificatesCertificateArray) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput
- type GetCertificatesCertificateArrayInput
- type GetCertificatesCertificateArrayOutput
- func (GetCertificatesCertificateArrayOutput) ElementType() reflect.Type
- func (o GetCertificatesCertificateArrayOutput) Index(i pulumi.IntInput) GetCertificatesCertificateOutput
- func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutput() GetCertificatesCertificateArrayOutput
- func (o GetCertificatesCertificateArrayOutput) ToGetCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetCertificatesCertificateArrayOutput
- type GetCertificatesCertificateInput
- type GetCertificatesCertificateOutput
- func (o GetCertificatesCertificateOutput) BuyInAliyun() pulumi.BoolOutput
- func (o GetCertificatesCertificateOutput) Cert() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) CertId() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) CertificateName() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) City() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Common() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Country() pulumi.StringOutput
- func (GetCertificatesCertificateOutput) ElementType() reflect.Type
- func (o GetCertificatesCertificateOutput) EndDate() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Expired() pulumi.BoolOutput
- func (o GetCertificatesCertificateOutput) Fingerprint() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Id() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Issuer() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Key() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Name() pulumi.StringOutputdeprecated
- func (o GetCertificatesCertificateOutput) OrgName() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Province() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) Sans() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) StartDate() pulumi.StringOutput
- func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutput() GetCertificatesCertificateOutput
- func (o GetCertificatesCertificateOutput) ToGetCertificatesCertificateOutputWithContext(ctx context.Context) GetCertificatesCertificateOutput
- type GetCertificatesOutputArgs
- type GetCertificatesResult
- type GetCertificatesResultOutput
- func (o GetCertificatesResultOutput) Certificates() GetCertificatesCertificateArrayOutput
- func (GetCertificatesResultOutput) ElementType() reflect.Type
- func (o GetCertificatesResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetCertificatesResultOutput) Id() pulumi.StringOutput
- func (o GetCertificatesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetCertificatesResultOutput) Keyword() pulumi.StringPtrOutput
- func (o GetCertificatesResultOutput) Lang() pulumi.StringPtrOutputdeprecated
- func (o GetCertificatesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetCertificatesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetCertificatesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetCertificatesResultOutput) ToGetCertificatesResultOutput() GetCertificatesResultOutput
- func (o GetCertificatesResultOutput) ToGetCertificatesResultOutputWithContext(ctx context.Context) GetCertificatesResultOutput
- type GetServiceCertificatesArgs
- type GetServiceCertificatesCertificate
- type GetServiceCertificatesCertificateArgs
- func (GetServiceCertificatesCertificateArgs) ElementType() reflect.Type
- func (i GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput
- func (i GetServiceCertificatesCertificateArgs) ToGetServiceCertificatesCertificateOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateOutput
- type GetServiceCertificatesCertificateArray
- func (GetServiceCertificatesCertificateArray) ElementType() reflect.Type
- func (i GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput
- func (i GetServiceCertificatesCertificateArray) ToGetServiceCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateArrayOutput
- type GetServiceCertificatesCertificateArrayInput
- type GetServiceCertificatesCertificateArrayOutput
- func (GetServiceCertificatesCertificateArrayOutput) ElementType() reflect.Type
- func (o GetServiceCertificatesCertificateArrayOutput) Index(i pulumi.IntInput) GetServiceCertificatesCertificateOutput
- func (o GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutput() GetServiceCertificatesCertificateArrayOutput
- func (o GetServiceCertificatesCertificateArrayOutput) ToGetServiceCertificatesCertificateArrayOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateArrayOutput
- type GetServiceCertificatesCertificateInput
- type GetServiceCertificatesCertificateOutput
- func (o GetServiceCertificatesCertificateOutput) BuyInAliyun() pulumi.BoolOutput
- func (o GetServiceCertificatesCertificateOutput) Cert() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) CertId() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) CertificateName() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) City() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Common() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Country() pulumi.StringOutput
- func (GetServiceCertificatesCertificateOutput) ElementType() reflect.Type
- func (o GetServiceCertificatesCertificateOutput) EndDate() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Expired() pulumi.BoolOutput
- func (o GetServiceCertificatesCertificateOutput) Fingerprint() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Id() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Issuer() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Key() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Name() pulumi.StringOutputdeprecated
- func (o GetServiceCertificatesCertificateOutput) OrgName() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Province() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) Sans() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) StartDate() pulumi.StringOutput
- func (o GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutput() GetServiceCertificatesCertificateOutput
- func (o GetServiceCertificatesCertificateOutput) ToGetServiceCertificatesCertificateOutputWithContext(ctx context.Context) GetServiceCertificatesCertificateOutput
- type GetServiceCertificatesOutputArgs
- type GetServiceCertificatesResult
- type GetServiceCertificatesResultOutput
- func (o GetServiceCertificatesResultOutput) Certificates() GetServiceCertificatesCertificateArrayOutput
- func (GetServiceCertificatesResultOutput) ElementType() reflect.Type
- func (o GetServiceCertificatesResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetServiceCertificatesResultOutput) Id() pulumi.StringOutput
- func (o GetServiceCertificatesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetServiceCertificatesResultOutput) Keyword() pulumi.StringPtrOutput
- func (o GetServiceCertificatesResultOutput) Lang() pulumi.StringPtrOutputdeprecated
- func (o GetServiceCertificatesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetServiceCertificatesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetServiceCertificatesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutput() GetServiceCertificatesResultOutput
- func (o GetServiceCertificatesResultOutput) ToGetServiceCertificatesResultOutputWithContext(ctx context.Context) GetServiceCertificatesResultOutput
- type ServiceCertificate
- type ServiceCertificateArgs
- type ServiceCertificateArray
- type ServiceCertificateArrayInput
- type ServiceCertificateArrayOutput
- func (ServiceCertificateArrayOutput) ElementType() reflect.Type
- func (o ServiceCertificateArrayOutput) Index(i pulumi.IntInput) ServiceCertificateOutput
- func (o ServiceCertificateArrayOutput) ToServiceCertificateArrayOutput() ServiceCertificateArrayOutput
- func (o ServiceCertificateArrayOutput) ToServiceCertificateArrayOutputWithContext(ctx context.Context) ServiceCertificateArrayOutput
- type ServiceCertificateInput
- type ServiceCertificateMap
- type ServiceCertificateMapInput
- type ServiceCertificateMapOutput
- func (ServiceCertificateMapOutput) ElementType() reflect.Type
- func (o ServiceCertificateMapOutput) MapIndex(k pulumi.StringInput) ServiceCertificateOutput
- func (o ServiceCertificateMapOutput) ToServiceCertificateMapOutput() ServiceCertificateMapOutput
- func (o ServiceCertificateMapOutput) ToServiceCertificateMapOutputWithContext(ctx context.Context) ServiceCertificateMapOutput
- type ServiceCertificateOutput
- func (o ServiceCertificateOutput) Cert() pulumi.StringOutput
- func (o ServiceCertificateOutput) CertificateName() pulumi.StringOutput
- func (ServiceCertificateOutput) ElementType() reflect.Type
- func (o ServiceCertificateOutput) Key() pulumi.StringOutput
- func (o ServiceCertificateOutput) Lang() pulumi.StringPtrOutput
- func (o ServiceCertificateOutput) Name() pulumi.StringOutputdeprecated
- func (o ServiceCertificateOutput) ToServiceCertificateOutput() ServiceCertificateOutput
- func (o ServiceCertificateOutput) ToServiceCertificateOutputWithContext(ctx context.Context) ServiceCertificateOutput
- type ServiceCertificateState
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 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"` }
Provides a CAS 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 since v1.35.0.
> **NOTE:** Deprecated since v1.129.0.
> **NOTE:** The Certificate name which you want to add must be already registered and had not added by another account. Every Certificate name can only exist in a unique group.
> **NOTE:** The Cas Certificate region only support cn-hangzhou, me-east-1, eu-central-1, ap-northeast-1.
> **DEPRECATED:** This resource has been deprecated from version `1.129.0`. Please use new resource alicloud_ssl_certificates_service_certificate.
## Example Usage
Basic Usage ¶
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cas" "github.com/pulumi/pulumi-random/sdk/v4/go/random" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{ Min: 10000, Max: 99999, }) if err != nil { return err } _, err = cas.NewCertificate(ctx, "default", &cas.CertificateArgs{ Name: pulumi.Sprintf("tf-example-%v", _default.Result), Cert: pulumi.String(`-----BEGIN CERTIFICATE-----
MIIDeDCCAmCgAwIBAgIEN3ZT6zANBgkqhkiG9w0BAQsFADBVMQswCQYDVQQGEwJD TjEVMBMGA1UEAwwMKi50ZnRlc3QudG9wMRAwDgYDVQQIDAdCZWlKaW5nMRAwDgYD VQQHDAdCZWlKaW5nMQswCQYDVQQKDAJBQTAeFw0yMzA4MjgwNjQ5NDNaFw0yNTA4 MjcwNjQ5NDNaMFUxCzAJBgNVBAYTAkNOMRUwEwYDVQQDDAwqLnRmdGVzdC50b3Ax EDAOBgNVBAgMB0JlaUppbmcxEDAOBgNVBAcMB0JlaUppbmcxCzAJBgNVBAoMAkFB MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzkk9NJUH7PLSQK4RRrGQ Y5dVsftkhnKh9HhI6yrnlowWIDPS1PZHOU/5gQ7xPUPGdKQV5S7x8wROnAaXEimx N4GdQw25pGhRJvlwme9fzJJiSe6lG49NCxmuBiEdJAzPKaTPpK1cG1f1TqdgCfHR HAL6Jxb3ylHG2LlTNFLXikubUi5RT6/9C8psr713Zm4HveCI/cx0WdgZ+fmsc9ft rkIB1DdyV1kQ51m8r2rLi3J7aC5ggGOiex/VlGSd4e6SOQLpdQEdDbodtOJ4LgVk +arFNCMinUWIOPGFzXhdm6lssPbh4MOBrz8c/M9TcF4hoMn5/o/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lNyWUzXSVT4OIwzPobzPqG LILJ+e7bLw8RrM0HfgFnl8c= -----END PRIVATE KEY----- `),
}) 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 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 (o CertificateArrayOutput) Index(i pulumi.IntInput) CertificateOutput
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 (o CertificateMapOutput) MapIndex(k pulumi.StringInput) CertificateOutput
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 ¶ added in v3.27.0
func (o CertificateOutput) Cert() pulumi.StringOutput
Cert of the Certificate in which the Certificate will add.
func (CertificateOutput) CertificateName ¶ added in v3.27.0
func (o CertificateOutput) CertificateName() pulumi.StringOutput
func (CertificateOutput) ElementType ¶
func (CertificateOutput) ElementType() reflect.Type
func (CertificateOutput) Key ¶ added in v3.27.0
func (o CertificateOutput) Key() pulumi.StringOutput
Key of the Certificate in which the Certificate will add.
func (CertificateOutput) Lang ¶ added in v3.27.0
func (o CertificateOutput) Lang() pulumi.StringPtrOutput
func (CertificateOutput) Name
deprecated
added in
v3.27.0
func (o CertificateOutput) Name() pulumi.StringOutput
Name of the Certificate. This name 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 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"` Keyword *string `pulumi:"keyword"` // Deprecated: Field `lang` has been deprecated from provider version 1.232.0. Lang *string `pulumi:"lang"` // A regex string to filter results by the certificate name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). 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. New field `certificateName` 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. New field `certificateName` 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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetCertificatesCertificateArrayOutput) Index ¶
func (o GetCertificatesCertificateArrayOutput) Index(i pulumi.IntInput) GetCertificatesCertificateOutput
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 ¶
func (o GetCertificatesCertificateOutput) BuyInAliyun() pulumi.BoolOutput
The cert is buy from aliyun or not.
func (GetCertificatesCertificateOutput) Cert ¶ added in v3.5.0
func (o GetCertificatesCertificateOutput) Cert() pulumi.StringOutput
func (GetCertificatesCertificateOutput) CertId ¶ added in v3.5.0
func (o GetCertificatesCertificateOutput) CertId() pulumi.StringOutput
func (GetCertificatesCertificateOutput) CertificateName ¶ added in v3.5.0
func (o GetCertificatesCertificateOutput) CertificateName() pulumi.StringOutput
func (GetCertificatesCertificateOutput) City ¶
func (o GetCertificatesCertificateOutput) City() pulumi.StringOutput
The cert's city.
func (GetCertificatesCertificateOutput) Common ¶
func (o GetCertificatesCertificateOutput) Common() pulumi.StringOutput
The cert's common name.
func (GetCertificatesCertificateOutput) Country ¶
func (o GetCertificatesCertificateOutput) Country() pulumi.StringOutput
The cert's country.
func (GetCertificatesCertificateOutput) ElementType ¶
func (GetCertificatesCertificateOutput) ElementType() reflect.Type
func (GetCertificatesCertificateOutput) EndDate ¶
func (o GetCertificatesCertificateOutput) EndDate() pulumi.StringOutput
The cert's not valid after time.
func (GetCertificatesCertificateOutput) Expired ¶
func (o GetCertificatesCertificateOutput) Expired() pulumi.BoolOutput
The cert is expired or not.
func (GetCertificatesCertificateOutput) Fingerprint ¶ added in v3.5.0
func (o GetCertificatesCertificateOutput) Fingerprint() pulumi.StringOutput
func (GetCertificatesCertificateOutput) Id ¶
func (o GetCertificatesCertificateOutput) Id() pulumi.StringOutput
The cert's id.
func (GetCertificatesCertificateOutput) Issuer ¶
func (o GetCertificatesCertificateOutput) Issuer() pulumi.StringOutput
The cert's .
func (GetCertificatesCertificateOutput) Key ¶ added in v3.5.0
func (o GetCertificatesCertificateOutput) Key() pulumi.StringOutput
func (GetCertificatesCertificateOutput) Name
deprecated
func (o GetCertificatesCertificateOutput) Name() pulumi.StringOutput
The cert's name.
Deprecated: Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead.
func (GetCertificatesCertificateOutput) OrgName ¶
func (o GetCertificatesCertificateOutput) OrgName() pulumi.StringOutput
The cert's organization.
func (GetCertificatesCertificateOutput) Province ¶
func (o GetCertificatesCertificateOutput) Province() pulumi.StringOutput
The cert's province.
func (GetCertificatesCertificateOutput) Sans ¶
func (o GetCertificatesCertificateOutput) Sans() pulumi.StringOutput
The cert's subject alternative name.
func (GetCertificatesCertificateOutput) StartDate ¶
func (o GetCertificatesCertificateOutput) StartDate() pulumi.StringOutput
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"` Keyword pulumi.StringPtrInput `pulumi:"keyword"` // Deprecated: Field `lang` has been deprecated from provider version 1.232.0. Lang pulumi.StringPtrInput `pulumi:"lang"` // A regex string to filter results by the certificate name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). 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"` Keyword *string `pulumi:"keyword"` // Deprecated: Field `lang` has been deprecated from provider version 1.232.0. 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 datasource has been deprecated from version `1.129.0`. Please use new datasource alicloud_ssl_certificates_service_certificates.
This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters.
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 GetCertificatesOutput(ctx *pulumi.Context, args GetCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetCertificatesResultOutput
func (GetCertificatesResultOutput) Certificates ¶ added in v3.9.0
func (o GetCertificatesResultOutput) Certificates() GetCertificatesCertificateArrayOutput
A list of apis. Each element contains the following attributes:
func (GetCertificatesResultOutput) ElementType ¶ added in v3.9.0
func (GetCertificatesResultOutput) ElementType() reflect.Type
func (GetCertificatesResultOutput) EnableDetails ¶ added in v3.9.0
func (o GetCertificatesResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetCertificatesResultOutput) Id ¶ added in v3.9.0
func (o GetCertificatesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetCertificatesResultOutput) Ids ¶ added in v3.9.0
func (o GetCertificatesResultOutput) Ids() pulumi.StringArrayOutput
A list of cert IDs.
func (GetCertificatesResultOutput) Keyword ¶ added in v3.64.0
func (o GetCertificatesResultOutput) Keyword() pulumi.StringPtrOutput
func (GetCertificatesResultOutput) Lang
deprecated
added in
v3.9.0
func (o GetCertificatesResultOutput) Lang() pulumi.StringPtrOutput
Deprecated: Field `lang` has been deprecated from provider version 1.232.0.
func (GetCertificatesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetCertificatesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetCertificatesResultOutput) Names ¶ added in v3.9.0
func (o GetCertificatesResultOutput) Names() pulumi.StringArrayOutput
A list of cert names.
func (GetCertificatesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetCertificatesResultOutput) OutputFile() pulumi.StringPtrOutput
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 { // Whether to query the detailed list of resource attributes. Default value: `false`. EnableDetails *bool `pulumi:"enableDetails"` // A list of Ssl Certificates IDs. Ids []string `pulumi:"ids"` // The domain name that is bound or the ID of the resource. Fuzzy match is supported. Keyword *string `pulumi:"keyword"` // The language of the content within the request and response. **Note:** Field `lang` has been deprecated from provider version 1.232.0. // // Deprecated: Field `lang` has been deprecated from provider version 1.232.0. Lang *string `pulumi:"lang"` // A regex string to filter results by Ssl Certificates name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getServiceCertificates.
type GetServiceCertificatesCertificate ¶ added in v3.5.0
type GetServiceCertificatesCertificate struct { // Whether the certificate was purchased from Aliyun. **Note:** From version 1.232.0, `buyInAliyun` takes effect only if `enableDetails` is set to `true`. BuyInAliyun bool `pulumi:"buyInAliyun"` // The Cert of the certificate. **Note:** `cert` takes effect only if `enableDetails` is set to `true`. Cert string `pulumi:"cert"` // The ID of the certificate. CertId string `pulumi:"certId"` // The name of the certificate. CertificateName string `pulumi:"certificateName"` // The city in which the organization is located. City string `pulumi:"city"` // The parent domain name of the certificate. Common string `pulumi:"common"` // The code of the country in which the organization is located. Country string `pulumi:"country"` // The time at which the certificate expires. EndDate string `pulumi:"endDate"` // Whether the certificate has expired. Expired bool `pulumi:"expired"` // The fingerprint of the certificate. Fingerprint string `pulumi:"fingerprint"` // The ID of the Ssl Certificates Service Certificate. Id string `pulumi:"id"` // The issuer of the certificate. Issuer string `pulumi:"issuer"` // The Key of the certificate. **Note:** `key` takes effect only if `enableDetails` is set to `true`. Key string `pulumi:"key"` // (Deprecated since v1.129.0) The name of the certificate. **Note:** Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead. // // Deprecated: Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead. Name string `pulumi:"name"` // The name of the organization that is associated with the certificate. OrgName string `pulumi:"orgName"` // The province or autonomous region in which the organization is located. Province string `pulumi:"province"` // All domain names that are bound to the certificate. Sans string `pulumi:"sans"` // The time at which the certificate starts to take effect. StartDate string `pulumi:"startDate"` }
type GetServiceCertificatesCertificateArgs ¶ added in v3.5.0
type GetServiceCertificatesCertificateArgs struct { // Whether the certificate was purchased from Aliyun. **Note:** From version 1.232.0, `buyInAliyun` takes effect only if `enableDetails` is set to `true`. BuyInAliyun pulumi.BoolInput `pulumi:"buyInAliyun"` // The Cert of the certificate. **Note:** `cert` takes effect only if `enableDetails` is set to `true`. Cert pulumi.StringInput `pulumi:"cert"` // The ID of the certificate. CertId pulumi.StringInput `pulumi:"certId"` // The name of the certificate. CertificateName pulumi.StringInput `pulumi:"certificateName"` // The city in which the organization is located. City pulumi.StringInput `pulumi:"city"` // The parent domain name of the certificate. Common pulumi.StringInput `pulumi:"common"` // The code of the country in which the organization is located. Country pulumi.StringInput `pulumi:"country"` // The time at which the certificate expires. EndDate pulumi.StringInput `pulumi:"endDate"` // Whether the certificate has expired. Expired pulumi.BoolInput `pulumi:"expired"` // The fingerprint of the certificate. Fingerprint pulumi.StringInput `pulumi:"fingerprint"` // The ID of the Ssl Certificates Service Certificate. Id pulumi.StringInput `pulumi:"id"` // The issuer of the certificate. Issuer pulumi.StringInput `pulumi:"issuer"` // The Key of the certificate. **Note:** `key` takes effect only if `enableDetails` is set to `true`. Key pulumi.StringInput `pulumi:"key"` // (Deprecated since v1.129.0) The name of the certificate. **Note:** Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead. // // Deprecated: Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead. Name pulumi.StringInput `pulumi:"name"` // The name of the organization that is associated with the certificate. OrgName pulumi.StringInput `pulumi:"orgName"` // The province or autonomous region in which the organization is located. Province pulumi.StringInput `pulumi:"province"` // All domain names that are bound to the certificate. Sans pulumi.StringInput `pulumi:"sans"` // The time at which the certificate starts to take effect. StartDate pulumi.StringInput `pulumi:"startDate"` }
func (GetServiceCertificatesCertificateArgs) ElementType ¶ added in v3.5.0
func (GetServiceCertificatesCertificateArgs) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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
func (o GetServiceCertificatesCertificateOutput) BuyInAliyun() pulumi.BoolOutput
Whether the certificate was purchased from Aliyun. **Note:** From version 1.232.0, `buyInAliyun` takes effect only if `enableDetails` is set to `true`.
func (GetServiceCertificatesCertificateOutput) Cert ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Cert() pulumi.StringOutput
The Cert of the certificate. **Note:** `cert` takes effect only if `enableDetails` is set to `true`.
func (GetServiceCertificatesCertificateOutput) CertId ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) CertId() pulumi.StringOutput
The ID of the certificate.
func (GetServiceCertificatesCertificateOutput) CertificateName ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) CertificateName() pulumi.StringOutput
The name of the certificate.
func (GetServiceCertificatesCertificateOutput) City ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) City() pulumi.StringOutput
The city in which the organization is located.
func (GetServiceCertificatesCertificateOutput) Common ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Common() pulumi.StringOutput
The parent domain name of the certificate.
func (GetServiceCertificatesCertificateOutput) Country ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Country() pulumi.StringOutput
The code of the country in which the organization is located.
func (GetServiceCertificatesCertificateOutput) ElementType ¶ added in v3.5.0
func (GetServiceCertificatesCertificateOutput) ElementType() reflect.Type
func (GetServiceCertificatesCertificateOutput) EndDate ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) EndDate() pulumi.StringOutput
The time at which the certificate expires.
func (GetServiceCertificatesCertificateOutput) Expired ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Expired() pulumi.BoolOutput
Whether the certificate has expired.
func (GetServiceCertificatesCertificateOutput) Fingerprint ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Fingerprint() pulumi.StringOutput
The fingerprint of the certificate.
func (GetServiceCertificatesCertificateOutput) Id ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Id() pulumi.StringOutput
The ID of the Ssl Certificates Service Certificate.
func (GetServiceCertificatesCertificateOutput) Issuer ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Issuer() pulumi.StringOutput
The issuer of the certificate.
func (GetServiceCertificatesCertificateOutput) Key ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Key() pulumi.StringOutput
The Key of the certificate. **Note:** `key` takes effect only if `enableDetails` is set to `true`.
func (GetServiceCertificatesCertificateOutput) Name
deprecated
added in
v3.5.0
func (o GetServiceCertificatesCertificateOutput) Name() pulumi.StringOutput
(Deprecated since v1.129.0) The name of the certificate. **Note:** Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead.
Deprecated: Field `name` has been deprecated from provider version 1.129.0. New field `certificateName` instead.
func (GetServiceCertificatesCertificateOutput) OrgName ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) OrgName() pulumi.StringOutput
The name of the organization that is associated with the certificate.
func (GetServiceCertificatesCertificateOutput) Province ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Province() pulumi.StringOutput
The province or autonomous region in which the organization is located.
func (GetServiceCertificatesCertificateOutput) Sans ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) Sans() pulumi.StringOutput
All domain names that are bound to the certificate.
func (GetServiceCertificatesCertificateOutput) StartDate ¶ added in v3.5.0
func (o GetServiceCertificatesCertificateOutput) StartDate() pulumi.StringOutput
The time at which the certificate starts to take effect.
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 { // Whether to query the detailed list of resource attributes. Default value: `false`. EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` // A list of Ssl Certificates IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` // The domain name that is bound or the ID of the resource. Fuzzy match is supported. Keyword pulumi.StringPtrInput `pulumi:"keyword"` // The language of the content within the request and response. **Note:** Field `lang` has been deprecated from provider version 1.232.0. // // Deprecated: Field `lang` has been deprecated from provider version 1.232.0. Lang pulumi.StringPtrInput `pulumi:"lang"` // A regex string to filter results by Ssl Certificates name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getServiceCertificates.
func (GetServiceCertificatesOutputArgs) ElementType ¶ added in v3.9.0
func (GetServiceCertificatesOutputArgs) ElementType() reflect.Type
type GetServiceCertificatesResult ¶ added in v3.5.0
type GetServiceCertificatesResult struct { // A list of Ssl Certificates Service Certificates. Each element contains the following attributes: 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"` Keyword *string `pulumi:"keyword"` // Deprecated: Field `lang` has been deprecated from provider version 1.232.0. Lang *string `pulumi:"lang"` NameRegex *string `pulumi:"nameRegex"` // A list of Ssl Certificates names. 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 since 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" "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 := cas.NewServiceCertificate(ctx, "default", &cas.ServiceCertificateArgs{ CertificateName: pulumi.String(name), Cert: pulumi.String(`-----BEGIN CERTIFICATE-----
MIIDeDCCAmCgAwIBAgIEN3ZT6zANBgkqhkiG9w0BAQsFADBVMQswCQYDVQQGEwJD TjEVMBMGA1UEAwwMKi50ZnRlc3QudG9wMRAwDgYDVQQIDAdCZWlKaW5nMRAwDgYD VQQHDAdCZWlKaW5nMQswCQYDVQQKDAJBQTAeFw0yMzA4MjgwNjQ5NDNaFw0yNTA4 MjcwNjQ5NDNaMFUxCzAJBgNVBAYTAkNOMRUwEwYDVQQDDAwqLnRmdGVzdC50b3Ax EDAOBgNVBAgMB0JlaUppbmcxEDAOBgNVBAcMB0JlaUppbmcxCzAJBgNVBAoMAkFB MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzkk9NJUH7PLSQK4RRrGQ Y5dVsftkhnKh9HhI6yrnlowWIDPS1PZHOU/5gQ7xPUPGdKQV5S7x8wROnAaXEimx N4GdQw25pGhRJvlwme9fzJJiSe6lG49NCxmuBiEdJAzPKaTPpK1cG1f1TqdgCfHR HAL6Jxb3ylHG2LlTNFLXikubUi5RT6/9C8psr713Zm4HveCI/cx0WdgZ+fmsc9ft rkIB1DdyV1kQ51m8r2rLi3J7aC5ggGOiex/VlGSd4e6SOQLpdQEdDbodtOJ4LgVk +arFNCMinUWIOPGFzXhdm6lssPbh4MOBrz8c/M9TcF4hoMn5/o/9johZIZ/DOvXt ZQIDAQABo1AwTjAdBgNVHQ4EFgQUOnWiddgeZj17IeysatqhE361o5YwHwYDVR0j BBgwFoAUOnWiddgeZj17IeysatqhE361o5YwDAYDVR0TBAUwAwEB/zANBgkqhkiG 9w0BAQsFAAOCAQEAfh3cnOszHM/5wXjY7BIkmgDOReksS+87ibhBz7T2ddZj+yCF 9GdIBzXCiHpQ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q/DTjxtu2rh3I8o2CQKBgQD/5Xe7cenaOBefzPlx GOEsB+qv49UmzEPOXDNZe9hmAawuuuxPUM+xlE++P+mEgQm1LPT4WWgtFLPVuwmx ncxt4CJNZh+ZGFyAZ4dm4M4ZhIBXNonyIP+yGyAJUUVF9Iy3TYcJNiGzv2Rx9JRQ XWJMQnTDILmZbmU+ltTea7/zqwKBgQDOXqCqb17MuLt7OcKWSgthm79OlaOdzZvl i9qU6VzZKG7Axc5gA9yq6tHp3vWPI4bNdvwqIIa/nzVILjGA5fcYFbRN+7gHwo8s rNAgi5PAoKWqQRovyJRY9Eq/sn6l1jbJZAOUAMZMWDm8z89OqK7PNQSIAtfFSneo 2QxJkGeTLwKBgGJkafBB8af9b1/7YWISLepPNPbihH/BhMThAMGEdAVs2TaymtA4 g1OFck/1pSVUtFXcbmjbf8ntruQcYbLQuNz6lFXsUXP9QPwCUrbE85ouL2bZSps2 AvsJoPzUKe2nBUAp6CUrkjPaAJYsc6ae8X/fAaRRfeu33ef9+OV4yrq3AoGAYFZo ZmfrN2Kdkt7Z6dLTEVPlsMfGQ6pyNmxdM9rkzzNC0JcGymfDIb7RE35T3+hTy6La AMiCXv3xn6qAzY2NFh87tpPlyymWMOLTnf3Kkcfszlfp45idOBGCu46V9NDVbppT 2UmrSIR/H5dbTXsNcAlt/hhlpeInjhkU1VqmH10CgYEA7Kk+QhWq705SczpWjm5J 9kHqfFzJLwAWNBduiia0WypgPhLe/4wT1rYQkBtKMVKrgFo7Cvi4YKlrtlDnXyeU CIFqfEL5NriQelqrFsvgHsmD+MpvDoSWm5C8IrTubtlNyWUzXSVT4OIwzPobzPqG LILJ+e7bLw8RrM0HfgFnl8c= -----END PRIVATE KEY----- `),
}) if err != nil { return err } ids := cas.GetServiceCertificatesOutput(ctx, cas.GetServiceCertificatesOutputArgs{ Ids: pulumi.StringArray{ _default.ID(), }, }, nil) ctx.Export("sslCertificatesServiceCertificatesId0", ids.ApplyT(func(ids cas.GetServiceCertificatesResult) (*string, error) { return &ids.Certificates[0].Id, nil }).(pulumi.StringPtrOutput)) 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 GetServiceCertificatesOutput(ctx *pulumi.Context, args GetServiceCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetServiceCertificatesResultOutput
func (GetServiceCertificatesResultOutput) Certificates ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) Certificates() GetServiceCertificatesCertificateArrayOutput
A list of Ssl Certificates Service Certificates. Each element contains the following attributes:
func (GetServiceCertificatesResultOutput) ElementType ¶ added in v3.9.0
func (GetServiceCertificatesResultOutput) ElementType() reflect.Type
func (GetServiceCertificatesResultOutput) EnableDetails ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetServiceCertificatesResultOutput) Id ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetServiceCertificatesResultOutput) Ids ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) Ids() pulumi.StringArrayOutput
func (GetServiceCertificatesResultOutput) Keyword ¶ added in v3.64.0
func (o GetServiceCertificatesResultOutput) Keyword() pulumi.StringPtrOutput
func (GetServiceCertificatesResultOutput) Lang
deprecated
added in
v3.9.0
func (o GetServiceCertificatesResultOutput) Lang() pulumi.StringPtrOutput
Deprecated: Field `lang` has been deprecated from provider version 1.232.0.
func (GetServiceCertificatesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetServiceCertificatesResultOutput) Names ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) Names() pulumi.StringArrayOutput
A list of Ssl Certificates names.
func (GetServiceCertificatesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetServiceCertificatesResultOutput) OutputFile() pulumi.StringPtrOutput
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. `certificateName` 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 since v1.129.0.
## Example Usage
Basic Usage ¶
```go package main
import (
"fmt" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cas" "github.com/pulumi/pulumi-random/sdk/v4/go/random" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{ Min: 10000, Max: 99999, }) if err != nil { return err } _, err = cas.NewServiceCertificate(ctx, "default", &cas.ServiceCertificateArgs{ CertificateName: pulumi.Sprintf("terraform-example-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JNZh+ZGFyAZ4dm4M4ZhIBXNonyIP+yGyAJUUVF9Iy3TYcJNiGzv2Rx9JRQ XWJMQnTDILmZbmU+ltTea7/zqwKBgQDOXqCqb17MuLt7OcKWSgthm79OlaOdzZvl i9qU6VzZKG7Axc5gA9yq6tHp3vWPI4bNdvwqIIa/nzVILjGA5fcYFbRN+7gHwo8s rNAgi5PAoKWqQRovyJRY9Eq/sn6l1jbJZAOUAMZMWDm8z89OqK7PNQSIAtfFSneo 2QxJkGeTLwKBgGJkafBB8af9b1/7YWISLepPNPbihH/BhMThAMGEdAVs2TaymtA4 g1OFck/1pSVUtFXcbmjbf8ntruQcYbLQuNz6lFXsUXP9QPwCUrbE85ouL2bZSps2 AvsJoPzUKe2nBUAp6CUrkjPaAJYsc6ae8X/fAaRRfeu33ef9+OV4yrq3AoGAYFZo ZmfrN2Kdkt7Z6dLTEVPlsMfGQ6pyNmxdM9rkzzNC0JcGymfDIb7RE35T3+hTy6La AMiCXv3xn6qAzY2NFh87tpPlyymWMOLTnf3Kkcfszlfp45idOBGCu46V9NDVbppT 2UmrSIR/H5dbTXsNcAlt/hhlpeInjhkU1VqmH10CgYEA7Kk+QhWq705SczpWjm5J 9kHqfFzJLwAWNBduiia0WypgPhLe/4wT1rYQkBtKMVKrgFo7Cvi4YKlrtlDnXyeU CIFqfEL5NriQelqrFsvgHsmD+MpvDoSWm5C8IrTubtlNyWUzXSVT4OIwzPobzPqG LILJ+e7bLw8RrM0HfgFnl8c= -----END PRIVATE 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
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. `certificateName` 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 ¶ 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) ElementType() reflect.Type
func (ServiceCertificateArrayOutput) Index ¶ added in v3.5.0
func (o ServiceCertificateArrayOutput) Index(i pulumi.IntInput) ServiceCertificateOutput
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) ElementType() reflect.Type
func (ServiceCertificateMapOutput) MapIndex ¶ added in v3.5.0
func (o ServiceCertificateMapOutput) MapIndex(k pulumi.StringInput) ServiceCertificateOutput
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) Cert ¶ added in v3.27.0
func (o ServiceCertificateOutput) Cert() pulumi.StringOutput
Cert of the Certificate in which the Certificate will add.
func (ServiceCertificateOutput) CertificateName ¶ added in v3.27.0
func (o ServiceCertificateOutput) CertificateName() pulumi.StringOutput
Name of the Certificate. `certificateName` 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 ¶ added in v3.5.0
func (ServiceCertificateOutput) ElementType() reflect.Type
func (ServiceCertificateOutput) Key ¶ added in v3.27.0
func (o ServiceCertificateOutput) Key() pulumi.StringOutput
Key of the Certificate in which the Certificate will add.
func (ServiceCertificateOutput) Lang ¶ added in v3.27.0
func (o ServiceCertificateOutput) Lang() pulumi.StringPtrOutput
The lang.
func (ServiceCertificateOutput) Name
deprecated
added in
v3.27.0
func (o ServiceCertificateOutput) Name() pulumi.StringOutput
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 ¶ 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
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. `certificateName` 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 ¶ added in v3.5.0
func (ServiceCertificateState) ElementType() reflect.Type