gcore.CdnSslcert
Explore with Pulumi AI
Represent CDN SSL Certificate
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const config = new pulumi.Config();
const cert = config.require("cert");
const privateKey = config.require("privateKey");
const cdnoptCert = new gcore.CdnSslcert("cdnoptCert", {
cert: cert,
privateKey: privateKey,
});
const letsEncryptCert = new gcore.CdnSslcert("letsEncryptCert", {automated: true});
import pulumi
import pulumi_gcore as gcore
config = pulumi.Config()
cert = config.require("cert")
private_key = config.require("privateKey")
cdnopt_cert = gcore.CdnSslcert("cdnoptCert",
cert=cert,
private_key=private_key)
lets_encrypt_cert = gcore.CdnSslcert("letsEncryptCert", automated=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"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 := gcore.NewCdnSslcert(ctx, "cdnoptCert", &gcore.CdnSslcertArgs{
Cert: pulumi.String(cert),
PrivateKey: pulumi.String(privateKey),
})
if err != nil {
return err
}
_, err = gcore.NewCdnSslcert(ctx, "letsEncryptCert", &gcore.CdnSslcertArgs{
Automated: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var cert = config.Require("cert");
var privateKey = config.Require("privateKey");
var cdnoptCert = new Gcore.CdnSslcert("cdnoptCert", new()
{
Cert = cert,
PrivateKey = privateKey,
});
var letsEncryptCert = new Gcore.CdnSslcert("letsEncryptCert", new()
{
Automated = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnSslcert;
import com.pulumi.gcore.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());
var letsEncryptCert = new CdnSslcert("letsEncryptCert", CdnSslcertArgs.builder()
.automated(true)
.build());
}
}
configuration:
cert:
type: string
privateKey:
type: string
resources:
cdnoptCert:
type: gcore:CdnSslcert
properties:
cert: ${cert}
privateKey: ${privateKey}
letsEncryptCert:
type: gcore:CdnSslcert
properties:
automated: true
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: Optional[CdnSslcertArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CdnSslcert(resource_name: str,
opts: Optional[ResourceOptions] = None,
automated: Optional[bool] = None,
cdn_sslcert_id: Optional[str] = None,
cert: Optional[str] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
validate_root_ca: Optional[bool] = None)
func NewCdnSslcert(ctx *Context, name string, args *CdnSslcertArgs, opts ...ResourceOption) (*CdnSslcert, error)
public CdnSslcert(string name, CdnSslcertArgs? args = null, CustomResourceOptions? opts = null)
public CdnSslcert(String name, CdnSslcertArgs args)
public CdnSslcert(String name, CdnSslcertArgs args, CustomResourceOptions options)
type: gcore:CdnSslcert
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 CdnSslcertArgs
- 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 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 string
- The unique name of the resource.
- args CdnSslcertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnSslcertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 Gcore.CdnSslcert("cdnSslcertResource", new()
{
Automated = false,
CdnSslcertId = "string",
Cert = "string",
Name = "string",
PrivateKey = "string",
ValidateRootCa = false,
});
example, err := gcore.NewCdnSslcert(ctx, "cdnSslcertResource", &gcore.CdnSslcertArgs{
Automated: pulumi.Bool(false),
CdnSslcertId: pulumi.String("string"),
Cert: pulumi.String("string"),
Name: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
ValidateRootCa: pulumi.Bool(false),
})
var cdnSslcertResource = new CdnSslcert("cdnSslcertResource", CdnSslcertArgs.builder()
.automated(false)
.cdnSslcertId("string")
.cert("string")
.name("string")
.privateKey("string")
.validateRootCa(false)
.build());
cdn_sslcert_resource = gcore.CdnSslcert("cdnSslcertResource",
automated=False,
cdn_sslcert_id="string",
cert="string",
name="string",
private_key="string",
validate_root_ca=False)
const cdnSslcertResource = new gcore.CdnSslcert("cdnSslcertResource", {
automated: false,
cdnSslcertId: "string",
cert: "string",
name: "string",
privateKey: "string",
validateRootCa: false,
});
type: gcore:CdnSslcert
properties:
automated: false
cdnSslcertId: string
cert: string
name: string
privateKey: string
validateRootCa: false
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:
- Automated bool
- The way SSL certificate was issued.
- Cdn
Sslcert stringId - The ID of this resource.
- Cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- Name string
- Name of the SSL certificate. Must be unique.
- Private
Key string - The private key of the SSL certificate.
- Validate
Root boolCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- Automated bool
- The way SSL certificate was issued.
- Cdn
Sslcert stringId - The ID of this resource.
- Cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- Name string
- Name of the SSL certificate. Must be unique.
- Private
Key string - The private key of the SSL certificate.
- Validate
Root boolCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated Boolean
- The way SSL certificate was issued.
- cdn
Sslcert StringId - The ID of this resource.
- cert String
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- name String
- Name of the SSL certificate. Must be unique.
- private
Key String - The private key of the SSL certificate.
- validate
Root BooleanCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated boolean
- The way SSL certificate was issued.
- cdn
Sslcert stringId - The ID of this resource.
- cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- name string
- Name of the SSL certificate. Must be unique.
- private
Key string - The private key of the SSL certificate.
- validate
Root booleanCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated bool
- The way SSL certificate was issued.
- cdn_
sslcert_ strid - The ID of this resource.
- cert str
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- name str
- Name of the SSL certificate. Must be unique.
- private_
key str - The private key of the SSL certificate.
- validate_
root_ boolca - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated Boolean
- The way SSL certificate was issued.
- cdn
Sslcert StringId - The ID of this resource.
- cert String
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- name String
- Name of the SSL certificate. Must be unique.
- private
Key String - The private key of the SSL certificate.
- validate
Root BooleanCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnSslcert resource produces the following output properties:
- bool
- It shows if the SSL certificate is used by a CDN resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- It shows if the SSL certificate is used by a CDN resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Boolean
- It shows if the SSL certificate is used by a CDN resource.
- id String
- The provider-assigned unique ID for this managed resource.
- boolean
- It shows if the SSL certificate is used by a CDN resource.
- id string
- The provider-assigned unique ID for this managed resource.
- bool
- It shows if the SSL certificate is used by a CDN resource.
- id str
- The provider-assigned unique ID for this managed resource.
- Boolean
- It shows if 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,
validate_root_ca: Optional[bool] = 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: gcore:CdnSslcert 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.
- Automated bool
- The way SSL certificate was issued.
- Cdn
Sslcert stringId - The ID of this resource.
- Cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- bool
- It shows if the SSL certificate is used by a CDN resource.
- Name string
- Name of the SSL certificate. Must be unique.
- Private
Key string - The private key of the SSL certificate.
- Validate
Root boolCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- Automated bool
- The way SSL certificate was issued.
- Cdn
Sslcert stringId - The ID of this resource.
- Cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- bool
- It shows if the SSL certificate is used by a CDN resource.
- Name string
- Name of the SSL certificate. Must be unique.
- Private
Key string - The private key of the SSL certificate.
- Validate
Root boolCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated Boolean
- The way SSL certificate was issued.
- cdn
Sslcert StringId - The ID of this resource.
- cert String
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- Boolean
- It shows if the SSL certificate is used by a CDN resource.
- name String
- Name of the SSL certificate. Must be unique.
- private
Key String - The private key of the SSL certificate.
- validate
Root BooleanCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated boolean
- The way SSL certificate was issued.
- cdn
Sslcert stringId - The ID of this resource.
- cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- boolean
- It shows if the SSL certificate is used by a CDN resource.
- name string
- Name of the SSL certificate. Must be unique.
- private
Key string - The private key of the SSL certificate.
- validate
Root booleanCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated bool
- The way SSL certificate was issued.
- cdn_
sslcert_ strid - The ID of this resource.
- cert str
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- bool
- It shows if the SSL certificate is used by a CDN resource.
- name str
- Name of the SSL certificate. Must be unique.
- private_
key str - The private key of the SSL certificate.
- validate_
root_ boolca - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
- automated Boolean
- The way SSL certificate was issued.
- cdn
Sslcert StringId - The ID of this resource.
- cert String
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- Boolean
- It shows if the SSL certificate is used by a CDN resource.
- name String
- Name of the SSL certificate. Must be unique.
- private
Key String - The private key of the SSL certificate.
- validate
Root BooleanCa - Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.