published on Thursday, Mar 12, 2026 by kong
published on Thursday, Mar 12, 2026 by kong
EventGatewayStaticKey Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myEventgatewaystatickey = new konnect.EventGatewayStaticKey("my_eventgatewaystatickey", {
description: "...my_description...",
gatewayId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
labels: {
key: "value",
},
name: "...my_name...",
value: "${vault.env['MY_ENV_VAR']}",
});
import pulumi
import pulumi_konnect as konnect
my_eventgatewaystatickey = konnect.EventGatewayStaticKey("my_eventgatewaystatickey",
description="...my_description...",
gateway_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
labels={
"key": "value",
},
name="...my_name...",
value="${vault.env['MY_ENV_VAR']}")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewEventGatewayStaticKey(ctx, "my_eventgatewaystatickey", &konnect.EventGatewayStaticKeyArgs{
Description: pulumi.String("...my_description..."),
GatewayId: pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
Labels: pulumi.StringMap{
"key": pulumi.String("value"),
},
Name: pulumi.String("...my_name..."),
Value: pulumi.String("${vault.env['MY_ENV_VAR']}"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myEventgatewaystatickey = new Konnect.EventGatewayStaticKey("my_eventgatewaystatickey", new()
{
Description = "...my_description...",
GatewayId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
Labels =
{
{ "key", "value" },
},
Name = "...my_name...",
Value = "${vault.env['MY_ENV_VAR']}",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.EventGatewayStaticKey;
import com.pulumi.konnect.EventGatewayStaticKeyArgs;
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 myEventgatewaystatickey = new EventGatewayStaticKey("myEventgatewaystatickey", EventGatewayStaticKeyArgs.builder()
.description("...my_description...")
.gatewayId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
.labels(Map.of("key", "value"))
.name("...my_name...")
.value("${vault.env['MY_ENV_VAR']}")
.build());
}
}
resources:
myEventgatewaystatickey:
type: konnect:EventGatewayStaticKey
name: my_eventgatewaystatickey
properties:
description: '...my_description...'
gatewayId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
labels:
key: value
name: '...my_name...'
value: $${vault.env['MY_ENV_VAR']}
Create EventGatewayStaticKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventGatewayStaticKey(name: string, args: EventGatewayStaticKeyArgs, opts?: CustomResourceOptions);@overload
def EventGatewayStaticKey(resource_name: str,
args: EventGatewayStaticKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventGatewayStaticKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
value: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None)func NewEventGatewayStaticKey(ctx *Context, name string, args EventGatewayStaticKeyArgs, opts ...ResourceOption) (*EventGatewayStaticKey, error)public EventGatewayStaticKey(string name, EventGatewayStaticKeyArgs args, CustomResourceOptions? opts = null)
public EventGatewayStaticKey(String name, EventGatewayStaticKeyArgs args)
public EventGatewayStaticKey(String name, EventGatewayStaticKeyArgs args, CustomResourceOptions options)
type: konnect:EventGatewayStaticKey
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 EventGatewayStaticKeyArgs
- 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 EventGatewayStaticKeyArgs
- 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 EventGatewayStaticKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventGatewayStaticKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventGatewayStaticKeyArgs
- 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 eventGatewayStaticKeyResource = new Konnect.EventGatewayStaticKey("eventGatewayStaticKeyResource", new()
{
GatewayId = "string",
Value = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
});
example, err := konnect.NewEventGatewayStaticKey(ctx, "eventGatewayStaticKeyResource", &konnect.EventGatewayStaticKeyArgs{
GatewayId: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var eventGatewayStaticKeyResource = new EventGatewayStaticKey("eventGatewayStaticKeyResource", EventGatewayStaticKeyArgs.builder()
.gatewayId("string")
.value("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.build());
event_gateway_static_key_resource = konnect.EventGatewayStaticKey("eventGatewayStaticKeyResource",
gateway_id="string",
value="string",
description="string",
labels={
"string": "string",
},
name="string")
const eventGatewayStaticKeyResource = new konnect.EventGatewayStaticKey("eventGatewayStaticKeyResource", {
gatewayId: "string",
value: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
});
type: konnect:EventGatewayStaticKey
properties:
description: string
gatewayId: string
labels:
string: string
name: string
value: string
EventGatewayStaticKey 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 EventGatewayStaticKey resource accepts the following input properties:
- Gateway
Id string - The UUID of your Gateway. Requires replacement if changed.
- Value string
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- Description string
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- Labels Dictionary<string, string>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- Name string
- The unique name of the static key. Requires replacement if changed.
- Gateway
Id string - The UUID of your Gateway. Requires replacement if changed.
- Value string
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- Description string
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- Labels map[string]string
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- Name string
- The unique name of the static key. Requires replacement if changed.
- gateway
Id String - The UUID of your Gateway. Requires replacement if changed.
- value String
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- description String
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- labels Map<String,String>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name String
- The unique name of the static key. Requires replacement if changed.
- gateway
Id string - The UUID of your Gateway. Requires replacement if changed.
- value string
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- description string
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- labels {[key: string]: string}
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name string
- The unique name of the static key. Requires replacement if changed.
- gateway_
id str - The UUID of your Gateway. Requires replacement if changed.
- value str
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- description str
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- labels Mapping[str, str]
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name str
- The unique name of the static key. Requires replacement if changed.
- gateway
Id String - The UUID of your Gateway. Requires replacement if changed.
- value String
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- description String
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- labels Map<String>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name String
- The unique name of the static key. Requires replacement if changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventGatewayStaticKey resource produces the following output properties:
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
Look up Existing EventGatewayStaticKey Resource
Get an existing EventGatewayStaticKey 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?: EventGatewayStaticKeyState, opts?: CustomResourceOptions): EventGatewayStaticKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
gateway_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
updated_at: Optional[str] = None,
value: Optional[str] = None) -> EventGatewayStaticKeyfunc GetEventGatewayStaticKey(ctx *Context, name string, id IDInput, state *EventGatewayStaticKeyState, opts ...ResourceOption) (*EventGatewayStaticKey, error)public static EventGatewayStaticKey Get(string name, Input<string> id, EventGatewayStaticKeyState? state, CustomResourceOptions? opts = null)public static EventGatewayStaticKey get(String name, Output<String> id, EventGatewayStaticKeyState state, CustomResourceOptions options)resources: _: type: konnect:EventGatewayStaticKey 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.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Description string
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- Gateway
Id string - The UUID of your Gateway. Requires replacement if changed.
- Labels Dictionary<string, string>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- Name string
- The unique name of the static key. Requires replacement if changed.
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Value string
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Description string
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- Gateway
Id string - The UUID of your Gateway. Requires replacement if changed.
- Labels map[string]string
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- Name string
- The unique name of the static key. Requires replacement if changed.
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Value string
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- description String
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- gateway
Id String - The UUID of your Gateway. Requires replacement if changed.
- labels Map<String,String>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name String
- The unique name of the static key. Requires replacement if changed.
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- value String
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- description string
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- gateway
Id string - The UUID of your Gateway. Requires replacement if changed.
- labels {[key: string]: string}
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name string
- The unique name of the static key. Requires replacement if changed.
- updated
At string - An ISO-8601 timestamp representation of entity update date.
- value string
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- description str
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- gateway_
id str - The UUID of your Gateway. Requires replacement if changed.
- labels Mapping[str, str]
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name str
- The unique name of the static key. Requires replacement if changed.
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
- value str
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- description String
- A human-readable description of the static key. Default: ""; Requires replacement if changed.
- gateway
Id String - The UUID of your Gateway. Requires replacement if changed.
- labels Map<String>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- name String
- The unique name of the static key. Requires replacement if changed.
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- value String
- A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API. Requires replacement if changed.
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_event_gateway_static_key.my_konnect_event_gateway_static_key
id = jsonencode({
gateway_id = "9524ec7d-36d9-465d-a8c5-83a3c9390458"
id = "..."
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/eventGatewayStaticKey:EventGatewayStaticKey my_konnect_event_gateway_static_key '{"gateway_id": "9524ec7d-36d9-465d-a8c5-83a3c9390458", "id": "..."}'
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
konnectTerraform Provider.
published on Thursday, Mar 12, 2026 by kong
