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,
});
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)
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
})
}
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,
});
});
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());
}
}
configuration:
cert:
type: string
privateKey:
type: string
resources:
cdnoptCert:
type: edgecenter:CdnSslcert
properties:
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: edgecenter: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 Edgecenter.CdnSslcert("cdnSslcertResource", new()
{
Cert = "string",
PrivateKey = "string",
CdnSslcertId = "string",
Name = "string",
});
example, err := edgecenter.NewCdnSslcert(ctx, "cdnSslcertResource", &edgecenter.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 = edgecenter.CdnSslcert("cdnSslcertResource",
cert="string",
private_key="string",
cdn_sslcert_id="string",
name="string")
const cdnSslcertResource = new edgecenter.CdnSslcert("cdnSslcertResource", {
cert: "string",
privateKey: "string",
cdnSslcertId: "string",
name: "string",
});
type: edgecenter: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
- Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
- Private
Key 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.
- Cdn
Sslcert stringId - The ID of this resource.
- Name string
- Enter the SSL certificate name. It must be unique.
- Cert string
- Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
- Private
Key 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.
- Cdn
Sslcert stringId - The ID of this resource.
- Name string
- Enter the SSL certificate name. It must be unique.
- cert String
- Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
- private
Key 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.
- cdn
Sslcert StringId - The ID of this resource.
- name String
- Enter the SSL certificate name. It must be unique.
- cert string
- Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
- private
Key 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.
- cdn
Sslcert stringId - The ID of this resource.
- name string
- Enter the SSL certificate name. It must be unique.
- cert str
- Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
- 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.
- cdn_
sslcert_ strid - The ID of this resource.
- name str
- Enter the SSL certificate name. It must be unique.
- cert String
- Enter the public part of the SSL certificate. Add all the certificate chains. Each certificate chain should be separated by '\n'.
- private
Key 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.
- cdn
Sslcert StringId - 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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
- 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 stringId - 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'.
- 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.
- Private
Key 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 stringId - 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'.
- 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.
- Private
Key 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.
- cdn
Sslcert StringId - 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'.
- 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.
- private
Key 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.
- cdn
Sslcert stringId - 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'.
- 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.
- private
Key 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_ strid - 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'.
- 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.
- cdn
Sslcert StringId - 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'.
- 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.
- private
Key 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.