Create ReplaceCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplaceCertificate(name: string, args: ReplaceCertificateArgs, opts?: CustomResourceOptions);@overload
def ReplaceCertificate(resource_name: str,
args: ReplaceCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplaceCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_type: Optional[str] = None,
old_certificate_id: Optional[str] = None,
update_mode: Optional[str] = None,
ca_certificate: Optional[str] = None,
cert_center_certificate_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_name: Optional[str] = None,
certificate_source: Optional[str] = None,
description: Optional[str] = None,
private_key: Optional[str] = None,
project_name: Optional[str] = None,
public_key: Optional[str] = None)func NewReplaceCertificate(ctx *Context, name string, args ReplaceCertificateArgs, opts ...ResourceOption) (*ReplaceCertificate, error)public ReplaceCertificate(string name, ReplaceCertificateArgs args, CustomResourceOptions? opts = null)
public ReplaceCertificate(String name, ReplaceCertificateArgs args)
public ReplaceCertificate(String name, ReplaceCertificateArgs args, CustomResourceOptions options)
type: volcengine:alb:ReplaceCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReplaceCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReplaceCertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReplaceCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplaceCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplaceCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var replaceCertificateResource = new Volcengine.Alb.ReplaceCertificate("replaceCertificateResource", new()
{
CertificateType = "string",
OldCertificateId = "string",
UpdateMode = "string",
CaCertificate = "string",
CertCenterCertificateId = "string",
CertificateId = "string",
CertificateName = "string",
CertificateSource = "string",
Description = "string",
PrivateKey = "string",
ProjectName = "string",
PublicKey = "string",
});
example, err := alb.NewReplaceCertificate(ctx, "replaceCertificateResource", &alb.ReplaceCertificateArgs{
CertificateType: pulumi.String("string"),
OldCertificateId: pulumi.String("string"),
UpdateMode: pulumi.String("string"),
CaCertificate: pulumi.String("string"),
CertCenterCertificateId: pulumi.String("string"),
CertificateId: pulumi.String("string"),
CertificateName: pulumi.String("string"),
CertificateSource: pulumi.String("string"),
Description: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
ProjectName: pulumi.String("string"),
PublicKey: pulumi.String("string"),
})
var replaceCertificateResource = new ReplaceCertificate("replaceCertificateResource", ReplaceCertificateArgs.builder()
.certificateType("string")
.oldCertificateId("string")
.updateMode("string")
.caCertificate("string")
.certCenterCertificateId("string")
.certificateId("string")
.certificateName("string")
.certificateSource("string")
.description("string")
.privateKey("string")
.projectName("string")
.publicKey("string")
.build());
replace_certificate_resource = volcengine.alb.ReplaceCertificate("replaceCertificateResource",
certificate_type="string",
old_certificate_id="string",
update_mode="string",
ca_certificate="string",
cert_center_certificate_id="string",
certificate_id="string",
certificate_name="string",
certificate_source="string",
description="string",
private_key="string",
project_name="string",
public_key="string")
const replaceCertificateResource = new volcengine.alb.ReplaceCertificate("replaceCertificateResource", {
certificateType: "string",
oldCertificateId: "string",
updateMode: "string",
caCertificate: "string",
certCenterCertificateId: "string",
certificateId: "string",
certificateName: "string",
certificateSource: "string",
description: "string",
privateKey: "string",
projectName: "string",
publicKey: "string",
});
type: volcengine:alb:ReplaceCertificate
properties:
caCertificate: string
certCenterCertificateId: string
certificateId: string
certificateName: string
certificateSource: string
certificateType: string
description: string
oldCertificateId: string
privateKey: string
projectName: string
publicKey: string
updateMode: string
ReplaceCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplaceCertificate resource accepts the following input properties:
- Certificate
Type string - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- Old
Certificate stringId - The ID of the old certificate to be replaced.
- Update
Mode string - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- Ca
Certificate string - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- Cert
Center stringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- Certificate
Id string - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- Certificate
Name string - The name of the certificate.
- Certificate
Source string - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - Description string
- The description of the certificate.
- Private
Key string - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Project
Name string - The project name of the certificate.
- Public
Key string - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Certificate
Type string - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- Old
Certificate stringId - The ID of the old certificate to be replaced.
- Update
Mode string - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- Ca
Certificate string - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- Cert
Center stringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- Certificate
Id string - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- Certificate
Name string - The name of the certificate.
- Certificate
Source string - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - Description string
- The description of the certificate.
- Private
Key string - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Project
Name string - The project name of the certificate.
- Public
Key string - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- certificate
Type String - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- old
Certificate StringId - The ID of the old certificate to be replaced.
- update
Mode String - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca
Certificate String - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert
Center StringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate
Id String - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate
Name String - The name of the certificate.
- certificate
Source String - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - description String
- The description of the certificate.
- private
Key String - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project
Name String - The project name of the certificate.
- public
Key String - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- certificate
Type string - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- old
Certificate stringId - The ID of the old certificate to be replaced.
- update
Mode string - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca
Certificate string - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert
Center stringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate
Id string - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate
Name string - The name of the certificate.
- certificate
Source string - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - description string
- The description of the certificate.
- private
Key string - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project
Name string - The project name of the certificate.
- public
Key string - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- certificate_
type str - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- old_
certificate_ strid - The ID of the old certificate to be replaced.
- update_
mode str - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca_
certificate str - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert_
center_ strcertificate_ id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate_
id str - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate_
name str - The name of the certificate.
- certificate_
source str - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - description str
- The description of the certificate.
- private_
key str - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project_
name str - The project name of the certificate.
- public_
key str - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- certificate
Type String - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- old
Certificate StringId - The ID of the old certificate to be replaced.
- update
Mode String - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca
Certificate String - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert
Center StringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate
Id String - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate
Name String - The name of the certificate.
- certificate
Source String - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - description String
- The description of the certificate.
- private
Key String - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project
Name String - The project name of the certificate.
- public
Key String - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplaceCertificate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ReplaceCertificate Resource
Get an existing ReplaceCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReplaceCertificateState, opts?: CustomResourceOptions): ReplaceCertificate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ca_certificate: Optional[str] = None,
cert_center_certificate_id: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_name: Optional[str] = None,
certificate_source: Optional[str] = None,
certificate_type: Optional[str] = None,
description: Optional[str] = None,
old_certificate_id: Optional[str] = None,
private_key: Optional[str] = None,
project_name: Optional[str] = None,
public_key: Optional[str] = None,
update_mode: Optional[str] = None) -> ReplaceCertificatefunc GetReplaceCertificate(ctx *Context, name string, id IDInput, state *ReplaceCertificateState, opts ...ResourceOption) (*ReplaceCertificate, error)public static ReplaceCertificate Get(string name, Input<string> id, ReplaceCertificateState? state, CustomResourceOptions? opts = null)public static ReplaceCertificate get(String name, Output<String> id, ReplaceCertificateState state, CustomResourceOptions options)resources: _: type: volcengine:alb:ReplaceCertificate get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ca
Certificate string - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- Cert
Center stringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- Certificate
Id string - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- Certificate
Name string - The name of the certificate.
- Certificate
Source string - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - Certificate
Type string - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- Description string
- The description of the certificate.
- Old
Certificate stringId - The ID of the old certificate to be replaced.
- Private
Key string - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Project
Name string - The project name of the certificate.
- Public
Key string - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Update
Mode string - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- Ca
Certificate string - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- Cert
Center stringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- Certificate
Id string - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- Certificate
Name string - The name of the certificate.
- Certificate
Source string - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - Certificate
Type string - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- Description string
- The description of the certificate.
- Old
Certificate stringId - The ID of the old certificate to be replaced.
- Private
Key string - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Project
Name string - The project name of the certificate.
- Public
Key string - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- Update
Mode string - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca
Certificate String - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert
Center StringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate
Id String - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate
Name String - The name of the certificate.
- certificate
Source String - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - certificate
Type String - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- description String
- The description of the certificate.
- old
Certificate StringId - The ID of the old certificate to be replaced.
- private
Key String - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project
Name String - The project name of the certificate.
- public
Key String - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- update
Mode String - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca
Certificate string - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert
Center stringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate
Id string - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate
Name string - The name of the certificate.
- certificate
Source string - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - certificate
Type string - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- description string
- The description of the certificate.
- old
Certificate stringId - The ID of the old certificate to be replaced.
- private
Key string - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project
Name string - The project name of the certificate.
- public
Key string - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- update
Mode string - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca_
certificate str - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert_
center_ strcertificate_ id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate_
id str - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate_
name str - The name of the certificate.
- certificate_
source str - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - certificate_
type str - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- description str
- The description of the certificate.
- old_
certificate_ strid - The ID of the old certificate to be replaced.
- private_
key str - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project_
name str - The project name of the certificate.
- public_
key str - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- update_
mode str - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
- ca
Certificate String - The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
- cert
Center StringCertificate Id - The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
- certificate
Id String - The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
- certificate
Name String - The name of the certificate.
- certificate
Source String - The source of the server certificate. Valid values:
alb,cert_center. Required when update_mode is 'stock'. - certificate
Type String - The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
- description String
- The description of the certificate.
- old
Certificate StringId - The ID of the old certificate to be replaced.
- private
Key String - The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- project
Name String - The project name of the certificate.
- public
Key String - The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
- update
Mode String - The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
