EventGateway Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myEventgateway = new konnect.EventGateway("my_eventgateway", {
description: "...my_description...",
labels: {
key: "value",
},
minRuntimeVersion: "1.1",
name: "...my_name...",
});
import pulumi
import pulumi_konnect as konnect
my_eventgateway = konnect.EventGateway("my_eventgateway",
description="...my_description...",
labels={
"key": "value",
},
min_runtime_version="1.1",
name="...my_name...")
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.NewEventGateway(ctx, "my_eventgateway", &konnect.EventGatewayArgs{
Description: pulumi.String("...my_description..."),
Labels: pulumi.StringMap{
"key": pulumi.String("value"),
},
MinRuntimeVersion: pulumi.String("1.1"),
Name: pulumi.String("...my_name..."),
})
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 myEventgateway = new Konnect.EventGateway("my_eventgateway", new()
{
Description = "...my_description...",
Labels =
{
{ "key", "value" },
},
MinRuntimeVersion = "1.1",
Name = "...my_name...",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.EventGateway;
import com.pulumi.konnect.EventGatewayArgs;
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 myEventgateway = new EventGateway("myEventgateway", EventGatewayArgs.builder()
.description("...my_description...")
.labels(Map.of("key", "value"))
.minRuntimeVersion("1.1")
.name("...my_name...")
.build());
}
}
resources:
myEventgateway:
type: konnect:EventGateway
name: my_eventgateway
properties:
description: '...my_description...'
labels:
key: value
minRuntimeVersion: '1.1'
name: '...my_name...'
Create EventGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventGateway(name: string, args?: EventGatewayArgs, opts?: CustomResourceOptions);@overload
def EventGateway(resource_name: str,
args: Optional[EventGatewayArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def EventGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
min_runtime_version: Optional[str] = None,
name: Optional[str] = None)func NewEventGateway(ctx *Context, name string, args *EventGatewayArgs, opts ...ResourceOption) (*EventGateway, error)public EventGateway(string name, EventGatewayArgs? args = null, CustomResourceOptions? opts = null)
public EventGateway(String name, EventGatewayArgs args)
public EventGateway(String name, EventGatewayArgs args, CustomResourceOptions options)
type: konnect:EventGateway
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 EventGatewayArgs
- 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 EventGatewayArgs
- 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 EventGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventGatewayArgs
- 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 eventGatewayResource = new Konnect.EventGateway("eventGatewayResource", new()
{
Description = "string",
Labels =
{
{ "string", "string" },
},
MinRuntimeVersion = "string",
Name = "string",
});
example, err := konnect.NewEventGateway(ctx, "eventGatewayResource", &konnect.EventGatewayArgs{
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MinRuntimeVersion: pulumi.String("string"),
Name: pulumi.String("string"),
})
var eventGatewayResource = new EventGateway("eventGatewayResource", EventGatewayArgs.builder()
.description("string")
.labels(Map.of("string", "string"))
.minRuntimeVersion("string")
.name("string")
.build());
event_gateway_resource = konnect.EventGateway("eventGatewayResource",
description="string",
labels={
"string": "string",
},
min_runtime_version="string",
name="string")
const eventGatewayResource = new konnect.EventGateway("eventGatewayResource", {
description: "string",
labels: {
string: "string",
},
minRuntimeVersion: "string",
name: "string",
});
type: konnect:EventGateway
properties:
description: string
labels:
string: string
minRuntimeVersion: string
name: string
EventGateway 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 EventGateway resource accepts the following input properties:
- Description string
- A human-readable description of the Gateway.
- 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.
- Min
Runtime stringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- Name string
- The name of the Gateway.
- Description string
- A human-readable description of the Gateway.
- 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.
- Min
Runtime stringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- Name string
- The name of the Gateway.
- description String
- A human-readable description of the Gateway.
- 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.
- min
Runtime StringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name String
- The name of the Gateway.
- description string
- A human-readable description of the Gateway.
- 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.
- min
Runtime stringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name string
- The name of the Gateway.
- description str
- A human-readable description of the Gateway.
- 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.
- min_
runtime_ strversion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name str
- The name of the Gateway.
- description String
- A human-readable description of the Gateway.
- labels Map<String>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- min
Runtime StringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name String
- The name of the Gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventGateway resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
Total double - The total number of nodes associated with the Event Gateway.
- Version string
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- Virtual
Clusters doubleTotal - The total number of virtual clusters associated with the Event Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
Total float64 - The total number of nodes associated with the Event Gateway.
- Version string
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- Virtual
Clusters float64Total - The total number of virtual clusters associated with the Event Gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
Total Double - The total number of nodes associated with the Event Gateway.
- version String
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual
Clusters DoubleTotal - The total number of virtual clusters associated with the Event Gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- nodes
Total number - The total number of nodes associated with the Event Gateway.
- version string
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual
Clusters numberTotal - The total number of virtual clusters associated with the Event Gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- nodes_
total float - The total number of nodes associated with the Event Gateway.
- version str
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual_
clusters_ floattotal - The total number of virtual clusters associated with the Event Gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
Total Number - The total number of nodes associated with the Event Gateway.
- version String
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual
Clusters NumberTotal - The total number of virtual clusters associated with the Event Gateway.
Look up Existing EventGateway Resource
Get an existing EventGateway 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?: EventGatewayState, opts?: CustomResourceOptions): EventGateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
min_runtime_version: Optional[str] = None,
name: Optional[str] = None,
nodes_total: Optional[float] = None,
version: Optional[str] = None,
virtual_clusters_total: Optional[float] = None) -> EventGatewayfunc GetEventGateway(ctx *Context, name string, id IDInput, state *EventGatewayState, opts ...ResourceOption) (*EventGateway, error)public static EventGateway Get(string name, Input<string> id, EventGatewayState? state, CustomResourceOptions? opts = null)public static EventGateway get(String name, Output<String> id, EventGatewayState state, CustomResourceOptions options)resources: _: type: konnect:EventGateway 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.
- Description string
- A human-readable description of the Gateway.
- 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.
- Min
Runtime stringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- Name string
- The name of the Gateway.
- Nodes
Total double - The total number of nodes associated with the Event Gateway.
- Version string
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- Virtual
Clusters doubleTotal - The total number of virtual clusters associated with the Event Gateway.
- Description string
- A human-readable description of the Gateway.
- 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.
- Min
Runtime stringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- Name string
- The name of the Gateway.
- Nodes
Total float64 - The total number of nodes associated with the Event Gateway.
- Version string
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- Virtual
Clusters float64Total - The total number of virtual clusters associated with the Event Gateway.
- description String
- A human-readable description of the Gateway.
- 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.
- min
Runtime StringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name String
- The name of the Gateway.
- nodes
Total Double - The total number of nodes associated with the Event Gateway.
- version String
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual
Clusters DoubleTotal - The total number of virtual clusters associated with the Event Gateway.
- description string
- A human-readable description of the Gateway.
- 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.
- min
Runtime stringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name string
- The name of the Gateway.
- nodes
Total number - The total number of nodes associated with the Event Gateway.
- version string
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual
Clusters numberTotal - The total number of virtual clusters associated with the Event Gateway.
- description str
- A human-readable description of the Gateway.
- 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.
- min_
runtime_ strversion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name str
- The name of the Gateway.
- nodes_
total float - The total number of nodes associated with the Event Gateway.
- version str
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual_
clusters_ floattotal - The total number of virtual clusters associated with the Event Gateway.
- description String
- A human-readable description of the Gateway.
- labels Map<String>
- Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
- min
Runtime StringVersion - The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.
- name String
- The name of the Gateway.
- nodes
Total Number - The total number of nodes associated with the Event Gateway.
- version String
- The version number of the event gateway. Every change to an entity under this gateway will modify the version.
- virtual
Clusters NumberTotal - The total number of virtual clusters associated with the Event Gateway.
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.my_konnect_event_gateway
id = “7f9fd312-a987-4628-b4c5-bb4f4fddd5f7”
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/eventGateway:EventGateway my_konnect_event_gateway "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
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.
