1. Packages
  2. Konnect Provider
  3. API Docs
  4. GatewayCaCertificate
konnect 2.4.1 published on Thursday, Mar 13, 2025 by kong

konnect.GatewayCaCertificate

Explore with Pulumi AI

GatewayCACertificate Resource

Example Usage

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

const myGatewaycacertificate = new konnect.GatewayCaCertificate("myGatewaycacertificate", {
    cert: "...my_cert...",
    certDigest: "...my_cert_digest...",
    controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
    gatewayCaCertificateId: "...my_id...",
    tags: ["..."],
});
Copy
import pulumi
import pulumi_konnect as konnect

my_gatewaycacertificate = konnect.GatewayCaCertificate("myGatewaycacertificate",
    cert="...my_cert...",
    cert_digest="...my_cert_digest...",
    control_plane_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
    gateway_ca_certificate_id="...my_id...",
    tags=["..."])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := konnect.NewGatewayCaCertificate(ctx, "myGatewaycacertificate", &konnect.GatewayCaCertificateArgs{
			Cert:                   pulumi.String("...my_cert..."),
			CertDigest:             pulumi.String("...my_cert_digest..."),
			ControlPlaneId:         pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
			GatewayCaCertificateId: pulumi.String("...my_id..."),
			Tags: pulumi.StringArray{
				pulumi.String("..."),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;

return await Deployment.RunAsync(() => 
{
    var myGatewaycacertificate = new Konnect.GatewayCaCertificate("myGatewaycacertificate", new()
    {
        Cert = "...my_cert...",
        CertDigest = "...my_cert_digest...",
        ControlPlaneId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
        GatewayCaCertificateId = "...my_id...",
        Tags = new[]
        {
            "...",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.GatewayCaCertificate;
import com.pulumi.konnect.GatewayCaCertificateArgs;
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) {
        var myGatewaycacertificate = new GatewayCaCertificate("myGatewaycacertificate", GatewayCaCertificateArgs.builder()
            .cert("...my_cert...")
            .certDigest("...my_cert_digest...")
            .controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
            .gatewayCaCertificateId("...my_id...")
            .tags("...")
            .build());

    }
}
Copy
resources:
  myGatewaycacertificate:
    type: konnect:GatewayCaCertificate
    properties:
      cert: '...my_cert...'
      certDigest: '...my_cert_digest...'
      controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      gatewayCaCertificateId: '...my_id...'
      tags:
        - '...'
Copy

Create GatewayCaCertificate Resource

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

Constructor syntax

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

@overload
def GatewayCaCertificate(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         cert: Optional[str] = None,
                         control_plane_id: Optional[str] = None,
                         cert_digest: Optional[str] = None,
                         gateway_ca_certificate_id: Optional[str] = None,
                         tags: Optional[Sequence[str]] = None)
func NewGatewayCaCertificate(ctx *Context, name string, args GatewayCaCertificateArgs, opts ...ResourceOption) (*GatewayCaCertificate, error)
public GatewayCaCertificate(string name, GatewayCaCertificateArgs args, CustomResourceOptions? opts = null)
public GatewayCaCertificate(String name, GatewayCaCertificateArgs args)
public GatewayCaCertificate(String name, GatewayCaCertificateArgs args, CustomResourceOptions options)
type: konnect:GatewayCaCertificate
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. GatewayCaCertificateArgs
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. GatewayCaCertificateArgs
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. GatewayCaCertificateArgs
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. GatewayCaCertificateArgs
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. GatewayCaCertificateArgs
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 gatewayCaCertificateResource = new Konnect.GatewayCaCertificate("gatewayCaCertificateResource", new()
{
    Cert = "string",
    ControlPlaneId = "string",
    CertDigest = "string",
    GatewayCaCertificateId = "string",
    Tags = new[]
    {
        "string",
    },
});
Copy
example, err := konnect.NewGatewayCaCertificate(ctx, "gatewayCaCertificateResource", &konnect.GatewayCaCertificateArgs{
Cert: pulumi.String("string"),
ControlPlaneId: pulumi.String("string"),
CertDigest: pulumi.String("string"),
GatewayCaCertificateId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var gatewayCaCertificateResource = new GatewayCaCertificate("gatewayCaCertificateResource", GatewayCaCertificateArgs.builder()
    .cert("string")
    .controlPlaneId("string")
    .certDigest("string")
    .gatewayCaCertificateId("string")
    .tags("string")
    .build());
Copy
gateway_ca_certificate_resource = konnect.GatewayCaCertificate("gatewayCaCertificateResource",
    cert="string",
    control_plane_id="string",
    cert_digest="string",
    gateway_ca_certificate_id="string",
    tags=["string"])
Copy
const gatewayCaCertificateResource = new konnect.GatewayCaCertificate("gatewayCaCertificateResource", {
    cert: "string",
    controlPlaneId: "string",
    certDigest: "string",
    gatewayCaCertificateId: "string",
    tags: ["string"],
});
Copy
type: konnect:GatewayCaCertificate
properties:
    cert: string
    certDigest: string
    controlPlaneId: string
    gatewayCaCertificateId: string
    tags:
        - string
Copy

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

Cert This property is required. string
PEM-encoded public certificate of the CA.
ControlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CertDigest string
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
GatewayCaCertificateId string
The ID of this resource.
Tags List<string>
An optional set of strings associated with the Certificate for grouping and filtering.
Cert This property is required. string
PEM-encoded public certificate of the CA.
ControlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CertDigest string
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
GatewayCaCertificateId string
The ID of this resource.
Tags []string
An optional set of strings associated with the Certificate for grouping and filtering.
cert This property is required. String
PEM-encoded public certificate of the CA.
controlPlaneId This property is required. String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
certDigest String
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
gatewayCaCertificateId String
The ID of this resource.
tags List<String>
An optional set of strings associated with the Certificate for grouping and filtering.
cert This property is required. string
PEM-encoded public certificate of the CA.
controlPlaneId This property is required. string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
certDigest string
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
gatewayCaCertificateId string
The ID of this resource.
tags string[]
An optional set of strings associated with the Certificate for grouping and filtering.
cert This property is required. str
PEM-encoded public certificate of the CA.
control_plane_id This property is required. str
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
cert_digest str
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
gateway_ca_certificate_id str
The ID of this resource.
tags Sequence[str]
An optional set of strings associated with the Certificate for grouping and filtering.
cert This property is required. String
PEM-encoded public certificate of the CA.
controlPlaneId This property is required. String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
certDigest String
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
gatewayCaCertificateId String
The ID of this resource.
tags List<String>
An optional set of strings associated with the Certificate for grouping and filtering.

Outputs

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

CreatedAt double
Unix epoch when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt double
Unix epoch when the resource was last updated.
CreatedAt float64
Unix epoch when the resource was created.
Id string
The provider-assigned unique ID for this managed resource.
UpdatedAt float64
Unix epoch when the resource was last updated.
createdAt Double
Unix epoch when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
updatedAt Double
Unix epoch when the resource was last updated.
createdAt number
Unix epoch when the resource was created.
id string
The provider-assigned unique ID for this managed resource.
updatedAt number
Unix epoch when the resource was last updated.
created_at float
Unix epoch when the resource was created.
id str
The provider-assigned unique ID for this managed resource.
updated_at float
Unix epoch when the resource was last updated.
createdAt Number
Unix epoch when the resource was created.
id String
The provider-assigned unique ID for this managed resource.
updatedAt Number
Unix epoch when the resource was last updated.

Look up Existing GatewayCaCertificate Resource

Get an existing GatewayCaCertificate 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?: GatewayCaCertificateState, opts?: CustomResourceOptions): GatewayCaCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cert: Optional[str] = None,
        cert_digest: Optional[str] = None,
        control_plane_id: Optional[str] = None,
        created_at: Optional[float] = None,
        gateway_ca_certificate_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        updated_at: Optional[float] = None) -> GatewayCaCertificate
func GetGatewayCaCertificate(ctx *Context, name string, id IDInput, state *GatewayCaCertificateState, opts ...ResourceOption) (*GatewayCaCertificate, error)
public static GatewayCaCertificate Get(string name, Input<string> id, GatewayCaCertificateState? state, CustomResourceOptions? opts = null)
public static GatewayCaCertificate get(String name, Output<String> id, GatewayCaCertificateState state, CustomResourceOptions options)
resources:  _:    type: konnect:GatewayCaCertificate    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:
Cert string
PEM-encoded public certificate of the CA.
CertDigest string
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
ControlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CreatedAt double
Unix epoch when the resource was created.
GatewayCaCertificateId string
The ID of this resource.
Tags List<string>
An optional set of strings associated with the Certificate for grouping and filtering.
UpdatedAt double
Unix epoch when the resource was last updated.
Cert string
PEM-encoded public certificate of the CA.
CertDigest string
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
ControlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
CreatedAt float64
Unix epoch when the resource was created.
GatewayCaCertificateId string
The ID of this resource.
Tags []string
An optional set of strings associated with the Certificate for grouping and filtering.
UpdatedAt float64
Unix epoch when the resource was last updated.
cert String
PEM-encoded public certificate of the CA.
certDigest String
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
controlPlaneId String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt Double
Unix epoch when the resource was created.
gatewayCaCertificateId String
The ID of this resource.
tags List<String>
An optional set of strings associated with the Certificate for grouping and filtering.
updatedAt Double
Unix epoch when the resource was last updated.
cert string
PEM-encoded public certificate of the CA.
certDigest string
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
controlPlaneId string
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt number
Unix epoch when the resource was created.
gatewayCaCertificateId string
The ID of this resource.
tags string[]
An optional set of strings associated with the Certificate for grouping and filtering.
updatedAt number
Unix epoch when the resource was last updated.
cert str
PEM-encoded public certificate of the CA.
cert_digest str
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
control_plane_id str
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
created_at float
Unix epoch when the resource was created.
gateway_ca_certificate_id str
The ID of this resource.
tags Sequence[str]
An optional set of strings associated with the Certificate for grouping and filtering.
updated_at float
Unix epoch when the resource was last updated.
cert String
PEM-encoded public certificate of the CA.
certDigest String
SHA256 hex digest of the public certificate. This field is read-only and it cannot be set by the caller, the value is automatically computed.
controlPlaneId String
The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
createdAt Number
Unix epoch when the resource was created.
gatewayCaCertificateId String
The ID of this resource.
tags List<String>
An optional set of strings associated with the Certificate for grouping and filtering.
updatedAt Number
Unix epoch when the resource was last updated.

Import

$ pulumi import konnect:index/gatewayCaCertificate:GatewayCaCertificate my_konnect_gateway_ca_certificate "{ \"ca_certificate_id\": \"3c31f18a-f27a-4f9b-8cd4-bf841554612f\", \"control_plane_id\": \"9524ec7d-36d9-465d-a8c5-83a3c9390458\"}"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
konnect kong/terraform-provider-konnect
License
Notes
This Pulumi package is based on the konnect Terraform Provider.