gcorelabs.CdnSslcert
Explore with Pulumi AI
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.index.Gcore_cdn_sslcert("cdnoptCert", {
name: "Test cert for cdnopt_bookatest_by",
cert: cert,
privateKey: privateKey,
});
import pulumi
import pulumi_gcore as gcore
config = pulumi.Config()
cert = config.require("cert")
private_key = config.require("privateKey")
cdnopt_cert = gcore.index.Gcore_cdn_sslcert("cdnoptCert",
name=Test cert for cdnopt_bookatest_by,
cert=cert,
private_key=private_key)
package main
import (
"github.com/pulumi/pulumi-gcore/sdk/go/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.NewGcore_cdn_sslcert(ctx, "cdnoptCert", &gcore.Gcore_cdn_sslcertArgs{
Name: "Test cert for cdnopt_bookatest_by",
Cert: cert,
PrivateKey: privateKey,
})
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.Index.Gcore_cdn_sslcert("cdnoptCert", new()
{
Name = "Test cert for cdnopt_bookatest_by",
Cert = cert,
PrivateKey = privateKey,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.gcore_cdn_sslcert;
import com.pulumi.gcore.Gcore_cdn_sslcertArgs;
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 Gcore_cdn_sslcert("cdnoptCert", Gcore_cdn_sslcertArgs.builder()
.name("Test cert for cdnopt_bookatest_by")
.cert(cert)
.privateKey(privateKey)
.build());
}
}
configuration:
cert:
type: string
privateKey:
type: string
resources:
cdnoptCert:
type: gcore:gcore_cdn_sslcert
properties:
name: Test cert for cdnopt_bookatest_by
cert: ${cert}
privateKey: ${privateKey}
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: gcorelabs: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 Gcorelabs.CdnSslcert("cdnSslcertResource", new()
{
Cert = "string",
PrivateKey = "string",
CdnSslcertId = "string",
Name = "string",
});
example, err := gcorelabs.NewCdnSslcert(ctx, "cdnSslcertResource", &gcorelabs.CdnSslcertArgs{
Cert: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
CdnSslcertId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cdnSslcertResource = new CdnSslcert("cdnSslcertResource", CdnSslcertArgs.builder()
.cert("string")
.privateKey("string")
.cdnSslcertId("string")
.name("string")
.build());
cdn_sslcert_resource = gcorelabs.CdnSslcert("cdnSslcertResource",
cert="string",
private_key="string",
cdn_sslcert_id="string",
name="string")
const cdnSslcertResource = new gcorelabs.CdnSslcert("cdnSslcertResource", {
cert: "string",
privateKey: "string",
cdnSslcertId: "string",
name: "string",
});
type: gcorelabs:CdnSslcert
properties:
cdnSslcertId: string
cert: string
name: string
privateKey: string
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 string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- Private
Key string - The private key of the SSL certificate.
- Cdn
Sslcert stringId - The ID of this resource.
- Name string
- Name of the SSL certificate. Must be unique.
- Cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- Private
Key string - The private key of the SSL certificate.
- Cdn
Sslcert stringId - The ID of this resource.
- Name string
- Name of the SSL certificate. Must be unique.
- cert String
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- private
Key String - The private key of the SSL certificate.
- cdn
Sslcert StringId - The ID of this resource.
- name String
- Name of the SSL certificate. Must be unique.
- cert string
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- private
Key string - The private key of the SSL certificate.
- cdn
Sslcert stringId - The ID of this resource.
- name string
- Name of the SSL certificate. Must be unique.
- cert str
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- private_
key str - The private key of the SSL certificate.
- cdn_
sslcert_ strid - The ID of this resource.
- name str
- Name of the SSL certificate. Must be unique.
- cert String
- The public part of the SSL certificate. All chain of the SSL certificate should be added.
- private
Key String - The private key of the SSL certificate.
- cdn
Sslcert StringId - The ID of this resource.
- name String
- Name of the SSL certificate. Must be unique.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnSslcert resource produces the following output properties:
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: gcorelabs: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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.