gcore.CdnCacert
Explore with Pulumi AI
Represent CDN CA 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 cdnoptCert = new gcore.CdnCacert("cdnoptCert", {cert: cert});
import pulumi
import pulumi_gcore as gcore
config = pulumi.Config()
cert = config.require("cert")
cdnopt_cert = gcore.CdnCacert("cdnoptCert", cert=cert)
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")
_, err := gcore.NewCdnCacert(ctx, "cdnoptCert", &gcore.CdnCacertArgs{
Cert: pulumi.String(cert),
})
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 cdnoptCert = new Gcore.CdnCacert("cdnoptCert", new()
{
Cert = cert,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnCacert;
import com.pulumi.gcore.CdnCacertArgs;
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");
var cdnoptCert = new CdnCacert("cdnoptCert", CdnCacertArgs.builder()
.cert(cert)
.build());
}
}
configuration:
cert:
type: string
resources:
cdnoptCert:
type: gcore:CdnCacert
properties:
cert: ${cert}
Create CdnCacert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdnCacert(name: string, args: CdnCacertArgs, opts?: CustomResourceOptions);
@overload
def CdnCacert(resource_name: str,
args: CdnCacertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdnCacert(resource_name: str,
opts: Optional[ResourceOptions] = None,
cert: Optional[str] = None,
cdn_cacert_id: Optional[str] = None,
name: Optional[str] = None)
func NewCdnCacert(ctx *Context, name string, args CdnCacertArgs, opts ...ResourceOption) (*CdnCacert, error)
public CdnCacert(string name, CdnCacertArgs args, CustomResourceOptions? opts = null)
public CdnCacert(String name, CdnCacertArgs args)
public CdnCacert(String name, CdnCacertArgs args, CustomResourceOptions options)
type: gcore:CdnCacert
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 CdnCacertArgs
- 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 CdnCacertArgs
- 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 CdnCacertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnCacertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnCacertArgs
- 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 cdnCacertResource = new Gcore.CdnCacert("cdnCacertResource", new()
{
Cert = "string",
CdnCacertId = "string",
Name = "string",
});
example, err := gcore.NewCdnCacert(ctx, "cdnCacertResource", &gcore.CdnCacertArgs{
Cert: pulumi.String("string"),
CdnCacertId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cdnCacertResource = new CdnCacert("cdnCacertResource", CdnCacertArgs.builder()
.cert("string")
.cdnCacertId("string")
.name("string")
.build());
cdn_cacert_resource = gcore.CdnCacert("cdnCacertResource",
cert="string",
cdn_cacert_id="string",
name="string")
const cdnCacertResource = new gcore.CdnCacert("cdnCacertResource", {
cert: "string",
cdnCacertId: "string",
name: "string",
});
type: gcore:CdnCacert
properties:
cdnCacertId: string
cert: string
name: string
CdnCacert 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 CdnCacert resource accepts the following input properties:
- Cert string
- The public part of the CA certificate. It must be in the PEM format.
- Cdn
Cacert stringId - The ID of this resource.
- Name string
- Name of the CA certificate. Must be unique.
- Cert string
- The public part of the CA certificate. It must be in the PEM format.
- Cdn
Cacert stringId - The ID of this resource.
- Name string
- Name of the CA certificate. Must be unique.
- cert String
- The public part of the CA certificate. It must be in the PEM format.
- cdn
Cacert StringId - The ID of this resource.
- name String
- Name of the CA certificate. Must be unique.
- cert string
- The public part of the CA certificate. It must be in the PEM format.
- cdn
Cacert stringId - The ID of this resource.
- name string
- Name of the CA certificate. Must be unique.
- cert str
- The public part of the CA certificate. It must be in the PEM format.
- cdn_
cacert_ strid - The ID of this resource.
- name str
- Name of the CA certificate. Must be unique.
- cert String
- The public part of the CA certificate. It must be in the PEM format.
- cdn
Cacert StringId - The ID of this resource.
- name String
- Name of the CA certificate. Must be unique.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnCacert resource produces the following output properties:
- bool
- It shows if the CA certificate is used by a CDN resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- It shows if the CA certificate is used by a CDN resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Boolean
- It shows if the CA certificate is used by a CDN resource.
- id String
- The provider-assigned unique ID for this managed resource.
- boolean
- It shows if the CA certificate is used by a CDN resource.
- id string
- The provider-assigned unique ID for this managed resource.
- bool
- It shows if the CA certificate is used by a CDN resource.
- id str
- The provider-assigned unique ID for this managed resource.
- Boolean
- It shows if the CA certificate is used by a CDN resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CdnCacert Resource
Get an existing CdnCacert 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?: CdnCacertState, opts?: CustomResourceOptions): CdnCacert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdn_cacert_id: Optional[str] = None,
cert: Optional[str] = None,
has_related_resources: Optional[bool] = None,
name: Optional[str] = None) -> CdnCacert
func GetCdnCacert(ctx *Context, name string, id IDInput, state *CdnCacertState, opts ...ResourceOption) (*CdnCacert, error)
public static CdnCacert Get(string name, Input<string> id, CdnCacertState? state, CustomResourceOptions? opts = null)
public static CdnCacert get(String name, Output<String> id, CdnCacertState state, CustomResourceOptions options)
resources: _: type: gcore:CdnCacert 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.
- Cdn
Cacert stringId - The ID of this resource.
- Cert string
- The public part of the CA certificate. It must be in the PEM format.
- bool
- It shows if the CA certificate is used by a CDN resource.
- Name string
- Name of the CA certificate. Must be unique.
- Cdn
Cacert stringId - The ID of this resource.
- Cert string
- The public part of the CA certificate. It must be in the PEM format.
- bool
- It shows if the CA certificate is used by a CDN resource.
- Name string
- Name of the CA certificate. Must be unique.
- cdn
Cacert StringId - The ID of this resource.
- cert String
- The public part of the CA certificate. It must be in the PEM format.
- Boolean
- It shows if the CA certificate is used by a CDN resource.
- name String
- Name of the CA certificate. Must be unique.
- cdn
Cacert stringId - The ID of this resource.
- cert string
- The public part of the CA certificate. It must be in the PEM format.
- boolean
- It shows if the CA certificate is used by a CDN resource.
- name string
- Name of the CA certificate. Must be unique.
- cdn_
cacert_ strid - The ID of this resource.
- cert str
- The public part of the CA certificate. It must be in the PEM format.
- bool
- It shows if the CA certificate is used by a CDN resource.
- name str
- Name of the CA certificate. Must be unique.
- cdn
Cacert StringId - The ID of this resource.
- cert String
- The public part of the CA certificate. It must be in the PEM format.
- Boolean
- It shows if the CA certificate is used by a CDN resource.
- name String
- Name of the CA certificate. Must be unique.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.