1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. ReplaceCertificate
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
volcengine logo
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine

    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:

    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource 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.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource 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.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource 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.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    certificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    oldCertificateId string
    The ID of the old certificate to be replaced.
    updateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName string
    The name of the certificate.
    certificateSource 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.
    privateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName string
    The project name of the certificate.
    publicKey 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_id str
    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_certificate_id str
    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'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource 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.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey 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) -> ReplaceCertificate
    func 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.
    The following state arguments are supported:
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    Description string
    The description of the certificate.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    CaCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    CertCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    CertificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    CertificateName string
    The name of the certificate.
    CertificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    CertificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    Description string
    The description of the certificate.
    OldCertificateId string
    The ID of the old certificate to be replaced.
    PrivateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    ProjectName string
    The project name of the certificate.
    PublicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    UpdateMode string
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description String
    The description of the certificate.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    updateMode String
    The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
    caCertificate string
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId string
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId string
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName string
    The name of the certificate.
    certificateSource string
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificateType string
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description string
    The description of the certificate.
    oldCertificateId string
    The ID of the old certificate to be replaced.
    privateKey string
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName string
    The project name of the certificate.
    publicKey string
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    updateMode 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_certificate_id str
    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_id str
    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.
    caCertificate String
    The content of the CA certificate. Required when certificate_type is 'ca' and update_mode is 'new'.
    certCenterCertificateId String
    The ID of the new certificate. Required when certificate_source is 'cert_center' and update_mode is 'stock'.
    certificateId String
    The ID of the new certificate or CA certificate. Required when certificate_source is 'alb' and update_mode is 'stock'.
    certificateName String
    The name of the certificate.
    certificateSource String
    The source of the server certificate. Valid values: alb, cert_center. Required when update_mode is 'stock'.
    certificateType String
    The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
    description String
    The description of the certificate.
    oldCertificateId String
    The ID of the old certificate to be replaced.
    privateKey String
    The private key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    projectName String
    The project name of the certificate.
    publicKey String
    The public key of the server certificate. Required when certificate_type is 'server' and update_mode is 'new'.
    updateMode 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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate