This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.
cas¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.
- class
pulumi_alicloud.cas.AwaitableGetCertificatesResult(certificates=None, id=None, ids=None, name_regex=None, names=None, output_file=None)¶
- class
pulumi_alicloud.cas.Certificate(resource_name, opts=None, cert=None, key=None, name=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CAS Certificate resource.
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, ap-south-1, me-east-1, eu-central-1, ap-northeast-1, ap-southeast-2.
NOTE: Available in 1.35.0+ .
import pulumi import pulumi_alicloud as alicloud # Add a new Certificate. cert = alicloud.cas.Certificate("cert", cert=(lambda path: open(path).read())(f"{path['module']}/test.crt"), key=(lambda path: open(path).read())(f"{path['module']}/test.key"))
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
cert (pulumi.Input[str]) – Cert of the Certificate in which the Certificate will add.
key (pulumi.Input[str]) – Key of the Certificate in which the Certificate will add.
name (pulumi.Input[str]) – 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
.shand.telare not supported.
cert: pulumi.Output[str] = None¶Cert of the Certificate in which the Certificate will add.
key: pulumi.Output[str] = None¶Key of the Certificate in which the Certificate will add.
name: pulumi.Output[str] = None¶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
.shand.telare not supported.
- static
get(resource_name, id, opts=None, cert=None, key=None, name=None)¶ Get an existing Certificate resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
cert (pulumi.Input[str]) – Cert of the Certificate in which the Certificate will add.
key (pulumi.Input[str]) – Key of the Certificate in which the Certificate will add.
name (pulumi.Input[str]) – 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
.shand.telare not supported.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_alicloud.cas.GetCertificatesResult(certificates=None, id=None, ids=None, name_regex=None, names=None, output_file=None)¶ A collection of values returned by getCertificates.
certificates= None¶A list of apis. Each element contains the following attributes:
id= None¶The provider-assigned unique ID for this managed resource.
ids= None¶A list of cert IDs.
names= None¶A list of cert names.
pulumi_alicloud.cas.get_certificates(ids=None, name_regex=None, output_file=None, opts=None)¶This data source provides a list of CAS Certificates in an Alibaba Cloud account according to the specified filters.
import pulumi import pulumi_alicloud as alicloud certs = alicloud.cas.get_certificates(name_regex="^cas", output_file=f"{path['module']}/cas_certificates.json") pulumi.export("cert", certs.certificates[0]["id"])
- Parameters
ids (list) – A list of cert IDs.
name_regex (str) – A regex string to filter results by the certificate name.