1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. CdnSslcert
edgecenter 0.7.34 published on Monday, Apr 14, 2025 by edge-center

edgecenter.CdnSslcert

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";

const config = new pulumi.Config();
const cert = config.require("cert");
const privateKey = config.require("privateKey");
const cdnoptCert = new edgecenter.CdnSslcert("cdnoptCert", {
    cert: cert,
    privateKey: privateKey,
});
Copy
import pulumi
import pulumi_edgecenter as edgecenter

config = pulumi.Config()
cert = config.require("cert")
private_key = config.require("privateKey")
cdnopt_cert = edgecenter.CdnSslcert("cdnoptCert",
    cert=cert,
    private_key=private_key)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		cert := cfg.Require("cert")
		privateKey := cfg.Require("privateKey")
		_, err := edgecenter.NewCdnSslcert(ctx, "cdnoptCert", &edgecenter.CdnSslcertArgs{
			Cert:       pulumi.String(cert),
			PrivateKey: pulumi.String(privateKey),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var cert = config.Require("cert");
    var privateKey = config.Require("privateKey");
    var cdnoptCert = new Edgecenter.CdnSslcert("cdnoptCert", new()
    {
        Cert = cert,
        PrivateKey = privateKey,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.CdnSslcert;
import com.pulumi.edgecenter.CdnSslcertArgs;
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) {
        final var config = ctx.config();
        final var cert = config.get("cert");
        final var privateKey = config.get("privateKey");
        var cdnoptCert = new CdnSslcert("cdnoptCert", CdnSslcertArgs.builder()
            .cert(cert)
            .privateKey(privateKey)
            .build());

    }
}
Copy
configuration:
  cert:
    type: string
  privateKey:
    type: string
resources:
  cdnoptCert:
    type: edgecenter:CdnSslcert
    properties:
      cert: ${cert}
      privateKey: ${privateKey}
Copy

Create CdnSslcert Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CdnSslcert(name: string, args: CdnSslcertArgs, opts?: CustomResourceOptions);
@overload
def CdnSslcert(resource_name: str,
               args: CdnSslcertArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def CdnSslcert(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               cert: Optional[str] = None,
               private_key: Optional[str] = None,
               cdn_sslcert_id: Optional[str] = None,
               name: Optional[str] = None)
func NewCdnSslcert(ctx *Context, name string, args CdnSslcertArgs, opts ...ResourceOption) (*CdnSslcert, error)
public CdnSslcert(string name, CdnSslcertArgs args, CustomResourceOptions? opts = null)
public CdnSslcert(String name, CdnSslcertArgs args)
public CdnSslcert(String name, CdnSslcertArgs args, CustomResourceOptions options)
type: edgecenter:CdnSslcert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CdnSslcertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CdnSslcertArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CdnSslcertArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CdnSslcertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CdnSslcertArgs
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 cdnSslcertResource = new Edgecenter.CdnSslcert("cdnSslcertResource", new()
{
    Cert = "string",
    PrivateKey = "string",
    CdnSslcertId = "string",
    Name = "string",
});
Copy
example, err := edgecenter.NewCdnSslcert(ctx, "cdnSslcertResource", &edgecenter.CdnSslcertArgs{
	Cert:         pulumi.String("string"),
	PrivateKey:   pulumi.String("string"),
	CdnSslcertId: pulumi.String("string"),
	Name:         pulumi.String("string"),
})
Copy
var cdnSslcertResource = new CdnSslcert("cdnSslcertResource", CdnSslcertArgs.builder()
    .cert("string")
    .privateKey("string")
    .cdnSslcertId("string")
    .name("string")
    .build());
Copy
cdn_sslcert_resource = edgecenter.CdnSslcert("cdnSslcertResource",
    cert="string",
    private_key="string",
    cdn_sslcert_id="string",
    name="string")
Copy
const cdnSslcertResource = new edgecenter.CdnSslcert("cdnSslcertResource", {
    cert: "string",
    privateKey: "string",
    cdnSslcertId: "string",
    name: "string",
});
Copy
type: edgecenter:CdnSslcert
properties:
    cdnSslcertId: string
    cert: string
    name: string
    privateKey: string
Copy

CdnSslcert 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 CdnSslcert resource accepts the following input properties:

Cert This property is required. string
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
PrivateKey This property is required. string
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
CdnSslcertId string
The ID of this resource.
Name string
Enter the SSL certificate name. It must be unique.
Cert This property is required. string
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
PrivateKey This property is required. string
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
CdnSslcertId string
The ID of this resource.
Name string
Enter the SSL certificate name. It must be unique.
cert This property is required. String
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
privateKey This property is required. String
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
cdnSslcertId String
The ID of this resource.
name String
Enter the SSL certificate name. It must be unique.
cert This property is required. string
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
privateKey This property is required. string
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
cdnSslcertId string
The ID of this resource.
name string
Enter the SSL certificate name. It must be unique.
cert This property is required. str
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
private_key This property is required. str
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
cdn_sslcert_id str
The ID of this resource.
name str
Enter the SSL certificate name. It must be unique.
cert This property is required. String
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
privateKey This property is required. String
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
cdnSslcertId String
The ID of this resource.
name String
Enter the SSL certificate name. It must be unique.

Outputs

All input properties are implicitly available as output properties. Additionally, the CdnSslcert resource produces the following output properties:

Automated bool
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
HasRelatedResources bool
If set to "true", the SSL certificate is used by a CDN resource.
Id string
The provider-assigned unique ID for this managed resource.
Automated bool
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
HasRelatedResources bool
If set to "true", the SSL certificate is used by a CDN resource.
Id string
The provider-assigned unique ID for this managed resource.
automated Boolean
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
hasRelatedResources Boolean
If set to "true", the SSL certificate is used by a CDN resource.
id String
The provider-assigned unique ID for this managed resource.
automated boolean
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
hasRelatedResources boolean
If set to "true", the SSL certificate is used by a CDN resource.
id string
The provider-assigned unique ID for this managed resource.
automated bool
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
has_related_resources bool
If set to "true", the SSL certificate is used by a CDN resource.
id str
The provider-assigned unique ID for this managed resource.
automated Boolean
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
hasRelatedResources Boolean
If set to "true", the SSL certificate is used by a CDN resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CdnSslcert Resource

Get an existing CdnSslcert 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?: CdnSslcertState, opts?: CustomResourceOptions): CdnSslcert
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        automated: Optional[bool] = None,
        cdn_sslcert_id: Optional[str] = None,
        cert: Optional[str] = None,
        has_related_resources: Optional[bool] = None,
        name: Optional[str] = None,
        private_key: Optional[str] = None) -> CdnSslcert
func GetCdnSslcert(ctx *Context, name string, id IDInput, state *CdnSslcertState, opts ...ResourceOption) (*CdnSslcert, error)
public static CdnSslcert Get(string name, Input<string> id, CdnSslcertState? state, CustomResourceOptions? opts = null)
public static CdnSslcert get(String name, Output<String> id, CdnSslcertState state, CustomResourceOptions options)
resources:  _:    type: edgecenter:CdnSslcert    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Automated bool
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
CdnSslcertId string
The ID of this resource.
Cert string
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
HasRelatedResources bool
If set to "true", the SSL certificate is used by a CDN resource.
Name string
Enter the SSL certificate name. It must be unique.
PrivateKey string
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
Automated bool
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
CdnSslcertId string
The ID of this resource.
Cert string
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
HasRelatedResources bool
If set to "true", the SSL certificate is used by a CDN resource.
Name string
Enter the SSL certificate name. It must be unique.
PrivateKey string
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
automated Boolean
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
cdnSslcertId String
The ID of this resource.
cert String
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
hasRelatedResources Boolean
If set to "true", the SSL certificate is used by a CDN resource.
name String
Enter the SSL certificate name. It must be unique.
privateKey String
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
automated boolean
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
cdnSslcertId string
The ID of this resource.
cert string
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
hasRelatedResources boolean
If set to "true", the SSL certificate is used by a CDN resource.
name string
Enter the SSL certificate name. It must be unique.
privateKey string
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
automated bool
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
cdn_sslcert_id str
The ID of this resource.
cert str
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
has_related_resources bool
If set to "true", the SSL certificate is used by a CDN resource.
name str
Enter the SSL certificate name. It must be unique.
private_key str
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.
automated Boolean
Shows how the SSL certificate was added to the account. If set to "true", this is an automatically issued Let's Encrypt certificate. If set to "false", the SSL certificate was added by a user.
cdnSslcertId String
The ID of this resource.
cert String
Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
hasRelatedResources Boolean
If set to "true", the SSL certificate is used by a CDN resource.
name String
Enter the SSL certificate name. It must be unique.
privateKey String
Enter the private key of the SSL certificate. Add all the certificate chains. The private key should be separated by '\n', as shown in the example.

Package Details

Repository
edgecenter edge-center/terraform-provider-edgecenter
License
Notes
This Pulumi package is based on the edgecenter Terraform Provider.