volcengine.alb.Certificate
Explore with Pulumi AI
Provides a resource to manage alb certificate
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Alb.Certificate("foo", new()
{
Description = "test123",
PrivateKey = "private key",
PublicKey = "public key",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alb.NewCertificate(ctx, "foo", &alb.CertificateArgs{
Description: pulumi.String("test123"),
PrivateKey: pulumi.String("private key"),
PublicKey: pulumi.String("public key"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.Certificate;
import com.pulumi.volcengine.alb.CertificateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Certificate("foo", CertificateArgs.builder()
.description("test123")
.privateKey("private key")
.publicKey("public key")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.Certificate("foo",
description="test123",
private_key="private key",
public_key="public key")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.alb.Certificate("foo", {
description: "test123",
privateKey: "private key",
publicKey: "public key",
});
resources:
foo:
type: volcengine:alb:Certificate
properties:
description: test123
privateKey: private key
publicKey: public key
Create Certificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
args: CertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Certificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
private_key: Optional[str] = None,
public_key: Optional[str] = None,
certificate_name: Optional[str] = None,
description: Optional[str] = None,
project_name: Optional[str] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: volcengine:alb:Certificate
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 CertificateArgs
- 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 CertificateArgs
- 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 CertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateArgs
- 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 certificateResource = new Volcengine.Alb.Certificate("certificateResource", new()
{
PrivateKey = "string",
PublicKey = "string",
CertificateName = "string",
Description = "string",
ProjectName = "string",
});
example, err := alb.NewCertificate(ctx, "certificateResource", &alb.CertificateArgs{
PrivateKey: pulumi.String("string"),
PublicKey: pulumi.String("string"),
CertificateName: pulumi.String("string"),
Description: pulumi.String("string"),
ProjectName: pulumi.String("string"),
})
var certificateResource = new Certificate("certificateResource", CertificateArgs.builder()
.privateKey("string")
.publicKey("string")
.certificateName("string")
.description("string")
.projectName("string")
.build());
certificate_resource = volcengine.alb.Certificate("certificateResource",
private_key="string",
public_key="string",
certificate_name="string",
description="string",
project_name="string")
const certificateResource = new volcengine.alb.Certificate("certificateResource", {
privateKey: "string",
publicKey: "string",
certificateName: "string",
description: "string",
projectName: "string",
});
type: volcengine:alb:Certificate
properties:
certificateName: string
description: string
privateKey: string
projectName: string
publicKey: string
Certificate 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 Certificate resource accepts the following input properties:
- Private
Key string - The private key of the Certificate.
- Public
Key string - The public key of the Certificate.
- Certificate
Name string - The name of the Certificate.
- Description string
- The description of the Certificate.
- Project
Name string - The project name of the Certificate.
- Private
Key string - The private key of the Certificate.
- Public
Key string - The public key of the Certificate.
- Certificate
Name string - The name of the Certificate.
- Description string
- The description of the Certificate.
- Project
Name string - The project name of the Certificate.
- private
Key String - The private key of the Certificate.
- public
Key String - The public key of the Certificate.
- certificate
Name String - The name of the Certificate.
- description String
- The description of the Certificate.
- project
Name String - The project name of the Certificate.
- private
Key string - The private key of the Certificate.
- public
Key string - The public key of the Certificate.
- certificate
Name string - The name of the Certificate.
- description string
- The description of the Certificate.
- project
Name string - The project name of the Certificate.
- private_
key str - The private key of the Certificate.
- public_
key str - The public key of the Certificate.
- certificate_
name str - The name of the Certificate.
- description str
- The description of the Certificate.
- project_
name str - The project name of the Certificate.
- private
Key String - The private key of the Certificate.
- public
Key String - The public key of the Certificate.
- certificate
Name String - The name of the Certificate.
- description String
- The description of the Certificate.
- project
Name String - The project name of the Certificate.
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Certificate
Type string - The type of the Certificate.
- Create
Time string - The create time of the Certificate.
- Domain
Name string - The domain name of the Certificate.
- Expired
At string - The expire time of the Certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners List<string>
- The ID list of the Listener.
- Status string
- The status of the Certificate.
- Certificate
Type string - The type of the Certificate.
- Create
Time string - The create time of the Certificate.
- Domain
Name string - The domain name of the Certificate.
- Expired
At string - The expire time of the Certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners []string
- The ID list of the Listener.
- Status string
- The status of the Certificate.
- certificate
Type String - The type of the Certificate.
- create
Time String - The create time of the Certificate.
- domain
Name String - The domain name of the Certificate.
- expired
At String - The expire time of the Certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- listeners List<String>
- The ID list of the Listener.
- status String
- The status of the Certificate.
- certificate
Type string - The type of the Certificate.
- create
Time string - The create time of the Certificate.
- domain
Name string - The domain name of the Certificate.
- expired
At string - The expire time of the Certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- listeners string[]
- The ID list of the Listener.
- status string
- The status of the Certificate.
- certificate_
type str - The type of the Certificate.
- create_
time str - The create time of the Certificate.
- domain_
name str - The domain name of the Certificate.
- expired_
at str - The expire time of the Certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- listeners Sequence[str]
- The ID list of the Listener.
- status str
- The status of the Certificate.
- certificate
Type String - The type of the Certificate.
- create
Time String - The create time of the Certificate.
- domain
Name String - The domain name of the Certificate.
- expired
At String - The expire time of the Certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- listeners List<String>
- The ID list of the Listener.
- status String
- The status of the Certificate.
Look up Existing Certificate Resource
Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_name: Optional[str] = None,
certificate_type: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
domain_name: Optional[str] = None,
expired_at: Optional[str] = None,
listeners: Optional[Sequence[str]] = None,
private_key: Optional[str] = None,
project_name: Optional[str] = None,
public_key: Optional[str] = None,
status: Optional[str] = None) -> Certificate
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Certificate
Name string - The name of the Certificate.
- Certificate
Type string - The type of the Certificate.
- Create
Time string - The create time of the Certificate.
- Description string
- The description of the Certificate.
- Domain
Name string - The domain name of the Certificate.
- Expired
At string - The expire time of the Certificate.
- Listeners List<string>
- The ID list of the Listener.
- Private
Key string - The private key of the Certificate.
- Project
Name string - The project name of the Certificate.
- Public
Key string - The public key of the Certificate.
- Status string
- The status of the Certificate.
- Certificate
Name string - The name of the Certificate.
- Certificate
Type string - The type of the Certificate.
- Create
Time string - The create time of the Certificate.
- Description string
- The description of the Certificate.
- Domain
Name string - The domain name of the Certificate.
- Expired
At string - The expire time of the Certificate.
- Listeners []string
- The ID list of the Listener.
- Private
Key string - The private key of the Certificate.
- Project
Name string - The project name of the Certificate.
- Public
Key string - The public key of the Certificate.
- Status string
- The status of the Certificate.
- certificate
Name String - The name of the Certificate.
- certificate
Type String - The type of the Certificate.
- create
Time String - The create time of the Certificate.
- description String
- The description of the Certificate.
- domain
Name String - The domain name of the Certificate.
- expired
At String - The expire time of the Certificate.
- listeners List<String>
- The ID list of the Listener.
- private
Key String - The private key of the Certificate.
- project
Name String - The project name of the Certificate.
- public
Key String - The public key of the Certificate.
- status String
- The status of the Certificate.
- certificate
Name string - The name of the Certificate.
- certificate
Type string - The type of the Certificate.
- create
Time string - The create time of the Certificate.
- description string
- The description of the Certificate.
- domain
Name string - The domain name of the Certificate.
- expired
At string - The expire time of the Certificate.
- listeners string[]
- The ID list of the Listener.
- private
Key string - The private key of the Certificate.
- project
Name string - The project name of the Certificate.
- public
Key string - The public key of the Certificate.
- status string
- The status of the Certificate.
- certificate_
name str - The name of the Certificate.
- certificate_
type str - The type of the Certificate.
- create_
time str - The create time of the Certificate.
- description str
- The description of the Certificate.
- domain_
name str - The domain name of the Certificate.
- expired_
at str - The expire time of the Certificate.
- listeners Sequence[str]
- The ID list of the Listener.
- private_
key str - The private key of the Certificate.
- project_
name str - The project name of the Certificate.
- public_
key str - The public key of the Certificate.
- status str
- The status of the Certificate.
- certificate
Name String - The name of the Certificate.
- certificate
Type String - The type of the Certificate.
- create
Time String - The create time of the Certificate.
- description String
- The description of the Certificate.
- domain
Name String - The domain name of the Certificate.
- expired
At String - The expire time of the Certificate.
- listeners List<String>
- The ID list of the Listener.
- private
Key String - The private key of the Certificate.
- project
Name String - The project name of the Certificate.
- public
Key String - The public key of the Certificate.
- status String
- The status of the Certificate.
Import
Certificate can be imported using the id, e.g.
$ pulumi import volcengine:alb/certificate:Certificate default cert-2fe5k****c16o5oxruvtk3qf5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.