volcengine.alb.CACertificate
Explore with Pulumi AI
Provides a resource to manage alb ca 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.CACertificate("foo", new()
{
CaCertificate = @"-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
",
CaCertificateName = "acc-test-1",
Description = "acc-test-1",
ProjectName = "default",
});
});
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.NewCACertificate(ctx, "foo", &alb.CACertificateArgs{
CaCertificate: pulumi.String("-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----\n"),
CaCertificateName: pulumi.String("acc-test-1"),
Description: pulumi.String("acc-test-1"),
ProjectName: pulumi.String("default"),
})
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.CACertificate;
import com.pulumi.volcengine.alb.CACertificateArgs;
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 CACertificate("foo", CACertificateArgs.builder()
.caCertificate("""
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
""")
.caCertificateName("acc-test-1")
.description("acc-test-1")
.projectName("default")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.CACertificate("foo",
ca_certificate="""-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
""",
ca_certificate_name="acc-test-1",
description="acc-test-1",
project_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.alb.CACertificate("foo", {
caCertificate: `-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
`,
caCertificateName: "acc-test-1",
description: "acc-test-1",
projectName: "default",
});
resources:
foo:
type: volcengine:alb:CACertificate
properties:
caCertificate: |
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
caCertificateName: acc-test-1
description: acc-test-1
projectName: default
Create CACertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CACertificate(name: string, args: CACertificateArgs, opts?: CustomResourceOptions);
@overload
def CACertificate(resource_name: str,
args: CACertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CACertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
ca_certificate: Optional[str] = None,
ca_certificate_name: Optional[str] = None,
description: Optional[str] = None,
project_name: Optional[str] = None)
func NewCACertificate(ctx *Context, name string, args CACertificateArgs, opts ...ResourceOption) (*CACertificate, error)
public CACertificate(string name, CACertificateArgs args, CustomResourceOptions? opts = null)
public CACertificate(String name, CACertificateArgs args)
public CACertificate(String name, CACertificateArgs args, CustomResourceOptions options)
type: volcengine:alb:CACertificate
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 CACertificateArgs
- 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 CACertificateArgs
- 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 CACertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CACertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CACertificateArgs
- 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 cacertificateResource = new Volcengine.Alb.CACertificate("cacertificateResource", new()
{
CaCertificate = "string",
CaCertificateName = "string",
Description = "string",
ProjectName = "string",
});
example, err := alb.NewCACertificate(ctx, "cacertificateResource", &alb.CACertificateArgs{
CaCertificate: pulumi.String("string"),
CaCertificateName: pulumi.String("string"),
Description: pulumi.String("string"),
ProjectName: pulumi.String("string"),
})
var cacertificateResource = new CACertificate("cacertificateResource", CACertificateArgs.builder()
.caCertificate("string")
.caCertificateName("string")
.description("string")
.projectName("string")
.build());
cacertificate_resource = volcengine.alb.CACertificate("cacertificateResource",
ca_certificate="string",
ca_certificate_name="string",
description="string",
project_name="string")
const cacertificateResource = new volcengine.alb.CACertificate("cacertificateResource", {
caCertificate: "string",
caCertificateName: "string",
description: "string",
projectName: "string",
});
type: volcengine:alb:CACertificate
properties:
caCertificate: string
caCertificateName: string
description: string
projectName: string
CACertificate 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 CACertificate resource accepts the following input properties:
- Ca
Certificate string - The content of the CA certificate.
- Ca
Certificate stringName - The name of the CA certificate.
- Description string
- The description of the CA certificate.
- Project
Name string - The project name of the CA certificate.
- Ca
Certificate string - The content of the CA certificate.
- Ca
Certificate stringName - The name of the CA certificate.
- Description string
- The description of the CA certificate.
- Project
Name string - The project name of the CA certificate.
- ca
Certificate String - The content of the CA certificate.
- ca
Certificate StringName - The name of the CA certificate.
- description String
- The description of the CA certificate.
- project
Name String - The project name of the CA certificate.
- ca
Certificate string - The content of the CA certificate.
- ca
Certificate stringName - The name of the CA certificate.
- description string
- The description of the CA certificate.
- project
Name string - The project name of the CA certificate.
- ca_
certificate str - The content of the CA certificate.
- ca_
certificate_ strname - The name of the CA certificate.
- description str
- The description of the CA certificate.
- project_
name str - The project name of the CA certificate.
- ca
Certificate String - The content of the CA certificate.
- ca
Certificate StringName - The name of the CA certificate.
- description String
- The description of the CA certificate.
- project
Name String - The project name of the CA certificate.
Outputs
All input properties are implicitly available as output properties. Additionally, the CACertificate resource produces the following output properties:
- Certificate
Type string - The type of the CA Certificate.
- Create
Time string - The create time of the CA Certificate.
- Domain
Name string - The domain name of the CA Certificate.
- Expired
At string - The expire time of the CA 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 CA Certificate.
- Certificate
Type string - The type of the CA Certificate.
- Create
Time string - The create time of the CA Certificate.
- Domain
Name string - The domain name of the CA Certificate.
- Expired
At string - The expire time of the CA 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 CA Certificate.
- certificate
Type String - The type of the CA Certificate.
- create
Time String - The create time of the CA Certificate.
- domain
Name String - The domain name of the CA Certificate.
- expired
At String - The expire time of the CA 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 CA Certificate.
- certificate
Type string - The type of the CA Certificate.
- create
Time string - The create time of the CA Certificate.
- domain
Name string - The domain name of the CA Certificate.
- expired
At string - The expire time of the CA 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 CA Certificate.
- certificate_
type str - The type of the CA Certificate.
- create_
time str - The create time of the CA Certificate.
- domain_
name str - The domain name of the CA Certificate.
- expired_
at str - The expire time of the CA 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 CA Certificate.
- certificate
Type String - The type of the CA Certificate.
- create
Time String - The create time of the CA Certificate.
- domain
Name String - The domain name of the CA Certificate.
- expired
At String - The expire time of the CA 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 CA Certificate.
Look up Existing CACertificate Resource
Get an existing CACertificate 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?: CACertificateState, opts?: CustomResourceOptions): CACertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ca_certificate: Optional[str] = None,
ca_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,
project_name: Optional[str] = None,
status: Optional[str] = None) -> CACertificate
func GetCACertificate(ctx *Context, name string, id IDInput, state *CACertificateState, opts ...ResourceOption) (*CACertificate, error)
public static CACertificate Get(string name, Input<string> id, CACertificateState? state, CustomResourceOptions? opts = null)
public static CACertificate get(String name, Output<String> id, CACertificateState 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.
- Ca
Certificate string - The content of the CA certificate.
- Ca
Certificate stringName - The name of the CA certificate.
- Certificate
Type string - The type of the CA Certificate.
- Create
Time string - The create time of the CA Certificate.
- Description string
- The description of the CA certificate.
- Domain
Name string - The domain name of the CA Certificate.
- Expired
At string - The expire time of the CA Certificate.
- Listeners List<string>
- The ID list of the Listener.
- Project
Name string - The project name of the CA certificate.
- Status string
- The status of the CA Certificate.
- Ca
Certificate string - The content of the CA certificate.
- Ca
Certificate stringName - The name of the CA certificate.
- Certificate
Type string - The type of the CA Certificate.
- Create
Time string - The create time of the CA Certificate.
- Description string
- The description of the CA certificate.
- Domain
Name string - The domain name of the CA Certificate.
- Expired
At string - The expire time of the CA Certificate.
- Listeners []string
- The ID list of the Listener.
- Project
Name string - The project name of the CA certificate.
- Status string
- The status of the CA Certificate.
- ca
Certificate String - The content of the CA certificate.
- ca
Certificate StringName - The name of the CA certificate.
- certificate
Type String - The type of the CA Certificate.
- create
Time String - The create time of the CA Certificate.
- description String
- The description of the CA certificate.
- domain
Name String - The domain name of the CA Certificate.
- expired
At String - The expire time of the CA Certificate.
- listeners List<String>
- The ID list of the Listener.
- project
Name String - The project name of the CA certificate.
- status String
- The status of the CA Certificate.
- ca
Certificate string - The content of the CA certificate.
- ca
Certificate stringName - The name of the CA certificate.
- certificate
Type string - The type of the CA Certificate.
- create
Time string - The create time of the CA Certificate.
- description string
- The description of the CA certificate.
- domain
Name string - The domain name of the CA Certificate.
- expired
At string - The expire time of the CA Certificate.
- listeners string[]
- The ID list of the Listener.
- project
Name string - The project name of the CA certificate.
- status string
- The status of the CA Certificate.
- ca_
certificate str - The content of the CA certificate.
- ca_
certificate_ strname - The name of the CA certificate.
- certificate_
type str - The type of the CA Certificate.
- create_
time str - The create time of the CA Certificate.
- description str
- The description of the CA certificate.
- domain_
name str - The domain name of the CA Certificate.
- expired_
at str - The expire time of the CA Certificate.
- listeners Sequence[str]
- The ID list of the Listener.
- project_
name str - The project name of the CA certificate.
- status str
- The status of the CA Certificate.
- ca
Certificate String - The content of the CA certificate.
- ca
Certificate StringName - The name of the CA certificate.
- certificate
Type String - The type of the CA Certificate.
- create
Time String - The create time of the CA Certificate.
- description String
- The description of the CA certificate.
- domain
Name String - The domain name of the CA Certificate.
- expired
At String - The expire time of the CA Certificate.
- listeners List<String>
- The ID list of the Listener.
- project
Name String - The project name of the CA certificate.
- status String
- The status of the CA Certificate.
Import
AlbCaCertificate can be imported using the id, e.g.
$ pulumi import volcengine:alb/cACertificate:CACertificate default cert-*****
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.