volcengine.vefaas.KafkaTrigger
Explore with Pulumi AI
Provides a resource to manage vefaas kafka trigger
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.vefaas.KafkaTrigger("foo", {
functionId: "35ybaxxx",
mqInstanceId: "kafka-cnngmbeq10mcxxxx",
topicName: "topic",
kafkaCredentials: {
password: "Waxxxxxx",
username: "test-1",
mechanism: "PLAIN",
},
batchSize: 100,
description: "modify",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vefaas.KafkaTrigger("foo",
function_id="35ybaxxx",
mq_instance_id="kafka-cnngmbeq10mcxxxx",
topic_name="topic",
kafka_credentials=volcengine.vefaas.KafkaTriggerKafkaCredentialsArgs(
password="Waxxxxxx",
username="test-1",
mechanism="PLAIN",
),
batch_size=100,
description="modify")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vefaas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vefaas.NewKafkaTrigger(ctx, "foo", &vefaas.KafkaTriggerArgs{
FunctionId: pulumi.String("35ybaxxx"),
MqInstanceId: pulumi.String("kafka-cnngmbeq10mcxxxx"),
TopicName: pulumi.String("topic"),
KafkaCredentials: &vefaas.KafkaTriggerKafkaCredentialsArgs{
Password: pulumi.String("Waxxxxxx"),
Username: pulumi.String("test-1"),
Mechanism: pulumi.String("PLAIN"),
},
BatchSize: pulumi.Int(100),
Description: pulumi.String("modify"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Vefaas.KafkaTrigger("foo", new()
{
FunctionId = "35ybaxxx",
MqInstanceId = "kafka-cnngmbeq10mcxxxx",
TopicName = "topic",
KafkaCredentials = new Volcengine.Vefaas.Inputs.KafkaTriggerKafkaCredentialsArgs
{
Password = "Waxxxxxx",
Username = "test-1",
Mechanism = "PLAIN",
},
BatchSize = 100,
Description = "modify",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vefaas.KafkaTrigger;
import com.pulumi.volcengine.vefaas.KafkaTriggerArgs;
import com.pulumi.volcengine.vefaas.inputs.KafkaTriggerKafkaCredentialsArgs;
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 foo = new KafkaTrigger("foo", KafkaTriggerArgs.builder()
.functionId("35ybaxxx")
.mqInstanceId("kafka-cnngmbeq10mcxxxx")
.topicName("topic")
.kafkaCredentials(KafkaTriggerKafkaCredentialsArgs.builder()
.password("Waxxxxxx")
.username("test-1")
.mechanism("PLAIN")
.build())
.batchSize(100)
.description("modify")
.build());
}
}
resources:
foo:
type: volcengine:vefaas:KafkaTrigger
properties:
functionId: 35ybaxxx
mqInstanceId: kafka-cnngmbeq10mcxxxx
topicName: topic
kafkaCredentials:
password: Waxxxxxx
username: test-1
mechanism: PLAIN
batchSize: 100
description: modify
Create KafkaTrigger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KafkaTrigger(name: string, args: KafkaTriggerArgs, opts?: CustomResourceOptions);
@overload
def KafkaTrigger(resource_name: str,
args: KafkaTriggerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KafkaTrigger(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_id: Optional[str] = None,
kafka_credentials: Optional[KafkaTriggerKafkaCredentialsArgs] = None,
mq_instance_id: Optional[str] = None,
topic_name: Optional[str] = None,
batch_flush_duration_milliseconds: Optional[int] = None,
batch_size: Optional[int] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
maximum_retry_attempts: Optional[int] = None,
name: Optional[str] = None,
starting_position: Optional[str] = None)
func NewKafkaTrigger(ctx *Context, name string, args KafkaTriggerArgs, opts ...ResourceOption) (*KafkaTrigger, error)
public KafkaTrigger(string name, KafkaTriggerArgs args, CustomResourceOptions? opts = null)
public KafkaTrigger(String name, KafkaTriggerArgs args)
public KafkaTrigger(String name, KafkaTriggerArgs args, CustomResourceOptions options)
type: volcengine:vefaas:KafkaTrigger
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 KafkaTriggerArgs
- 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 KafkaTriggerArgs
- 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 KafkaTriggerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KafkaTriggerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KafkaTriggerArgs
- 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 kafkaTriggerResource = new Volcengine.Vefaas.KafkaTrigger("kafkaTriggerResource", new()
{
FunctionId = "string",
KafkaCredentials = new Volcengine.Vefaas.Inputs.KafkaTriggerKafkaCredentialsArgs
{
Mechanism = "string",
Password = "string",
Username = "string",
},
MqInstanceId = "string",
TopicName = "string",
BatchFlushDurationMilliseconds = 0,
BatchSize = 0,
Description = "string",
Enabled = false,
MaximumRetryAttempts = 0,
Name = "string",
StartingPosition = "string",
});
example, err := vefaas.NewKafkaTrigger(ctx, "kafkaTriggerResource", &vefaas.KafkaTriggerArgs{
FunctionId: pulumi.String("string"),
KafkaCredentials: &vefaas.KafkaTriggerKafkaCredentialsArgs{
Mechanism: pulumi.String("string"),
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
MqInstanceId: pulumi.String("string"),
TopicName: pulumi.String("string"),
BatchFlushDurationMilliseconds: pulumi.Int(0),
BatchSize: pulumi.Int(0),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
MaximumRetryAttempts: pulumi.Int(0),
Name: pulumi.String("string"),
StartingPosition: pulumi.String("string"),
})
var kafkaTriggerResource = new KafkaTrigger("kafkaTriggerResource", KafkaTriggerArgs.builder()
.functionId("string")
.kafkaCredentials(KafkaTriggerKafkaCredentialsArgs.builder()
.mechanism("string")
.password("string")
.username("string")
.build())
.mqInstanceId("string")
.topicName("string")
.batchFlushDurationMilliseconds(0)
.batchSize(0)
.description("string")
.enabled(false)
.maximumRetryAttempts(0)
.name("string")
.startingPosition("string")
.build());
kafka_trigger_resource = volcengine.vefaas.KafkaTrigger("kafkaTriggerResource",
function_id="string",
kafka_credentials={
"mechanism": "string",
"password": "string",
"username": "string",
},
mq_instance_id="string",
topic_name="string",
batch_flush_duration_milliseconds=0,
batch_size=0,
description="string",
enabled=False,
maximum_retry_attempts=0,
name="string",
starting_position="string")
const kafkaTriggerResource = new volcengine.vefaas.KafkaTrigger("kafkaTriggerResource", {
functionId: "string",
kafkaCredentials: {
mechanism: "string",
password: "string",
username: "string",
},
mqInstanceId: "string",
topicName: "string",
batchFlushDurationMilliseconds: 0,
batchSize: 0,
description: "string",
enabled: false,
maximumRetryAttempts: 0,
name: "string",
startingPosition: "string",
});
type: volcengine:vefaas:KafkaTrigger
properties:
batchFlushDurationMilliseconds: 0
batchSize: 0
description: string
enabled: false
functionId: string
kafkaCredentials:
mechanism: string
password: string
username: string
maximumRetryAttempts: 0
mqInstanceId: string
name: string
startingPosition: string
topicName: string
KafkaTrigger 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 KafkaTrigger resource accepts the following input properties:
- Function
Id string - The ID of Function.
- Kafka
Credentials KafkaTrigger Kafka Credentials - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Mq
Instance stringId - The instance ID of Message queue Kafka.
- Topic
Name string - The Topic name of the message queue Kafka instance.
- Batch
Flush intDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- Batch
Size int - The number of messages per batch consumed by the trigger in bulk.
- Description string
- The description of the Kafka trigger.
- Enabled bool
- Whether to enable triggers at the same time as creating them.
- Maximum
Retry intAttempts - The maximum number of retries when a function has a runtime error.
- Name string
- The name of the Kafka trigger.
- Starting
Position string - Specify the location where the messages in the Topic start to be consumed.
- Function
Id string - The ID of Function.
- Kafka
Credentials KafkaTrigger Kafka Credentials Args - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Mq
Instance stringId - The instance ID of Message queue Kafka.
- Topic
Name string - The Topic name of the message queue Kafka instance.
- Batch
Flush intDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- Batch
Size int - The number of messages per batch consumed by the trigger in bulk.
- Description string
- The description of the Kafka trigger.
- Enabled bool
- Whether to enable triggers at the same time as creating them.
- Maximum
Retry intAttempts - The maximum number of retries when a function has a runtime error.
- Name string
- The name of the Kafka trigger.
- Starting
Position string - Specify the location where the messages in the Topic start to be consumed.
- function
Id String - The ID of Function.
- kafka
Credentials KafkaTrigger Kafka Credentials - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- mq
Instance StringId - The instance ID of Message queue Kafka.
- topic
Name String - The Topic name of the message queue Kafka instance.
- batch
Flush IntegerDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- batch
Size Integer - The number of messages per batch consumed by the trigger in bulk.
- description String
- The description of the Kafka trigger.
- enabled Boolean
- Whether to enable triggers at the same time as creating them.
- maximum
Retry IntegerAttempts - The maximum number of retries when a function has a runtime error.
- name String
- The name of the Kafka trigger.
- starting
Position String - Specify the location where the messages in the Topic start to be consumed.
- function
Id string - The ID of Function.
- kafka
Credentials KafkaTrigger Kafka Credentials - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- mq
Instance stringId - The instance ID of Message queue Kafka.
- topic
Name string - The Topic name of the message queue Kafka instance.
- batch
Flush numberDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- batch
Size number - The number of messages per batch consumed by the trigger in bulk.
- description string
- The description of the Kafka trigger.
- enabled boolean
- Whether to enable triggers at the same time as creating them.
- maximum
Retry numberAttempts - The maximum number of retries when a function has a runtime error.
- name string
- The name of the Kafka trigger.
- starting
Position string - Specify the location where the messages in the Topic start to be consumed.
- function_
id str - The ID of Function.
- kafka_
credentials KafkaTrigger Kafka Credentials Args - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- mq_
instance_ strid - The instance ID of Message queue Kafka.
- topic_
name str - The Topic name of the message queue Kafka instance.
- batch_
flush_ intduration_ milliseconds - The maximum waiting time for batch consumption of triggers.
- batch_
size int - The number of messages per batch consumed by the trigger in bulk.
- description str
- The description of the Kafka trigger.
- enabled bool
- Whether to enable triggers at the same time as creating them.
- maximum_
retry_ intattempts - The maximum number of retries when a function has a runtime error.
- name str
- The name of the Kafka trigger.
- starting_
position str - Specify the location where the messages in the Topic start to be consumed.
- function
Id String - The ID of Function.
- kafka
Credentials Property Map - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- mq
Instance StringId - The instance ID of Message queue Kafka.
- topic
Name String - The Topic name of the message queue Kafka instance.
- batch
Flush NumberDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- batch
Size Number - The number of messages per batch consumed by the trigger in bulk.
- description String
- The description of the Kafka trigger.
- enabled Boolean
- Whether to enable triggers at the same time as creating them.
- maximum
Retry NumberAttempts - The maximum number of retries when a function has a runtime error.
- name String
- The name of the Kafka trigger.
- starting
Position String - Specify the location where the messages in the Topic start to be consumed.
Outputs
All input properties are implicitly available as output properties. Additionally, the KafkaTrigger resource produces the following output properties:
- Consumer
Group string - The consumer group name of the message queue Kafka instance.
- Creation
Time string - The creation time of the Kafka trigger.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The last update time of the Kafka trigger.
- Status string
- The status of Kafka trigger.
- Consumer
Group string - The consumer group name of the message queue Kafka instance.
- Creation
Time string - The creation time of the Kafka trigger.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The last update time of the Kafka trigger.
- Status string
- The status of Kafka trigger.
- consumer
Group String - The consumer group name of the message queue Kafka instance.
- creation
Time String - The creation time of the Kafka trigger.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The last update time of the Kafka trigger.
- status String
- The status of Kafka trigger.
- consumer
Group string - The consumer group name of the message queue Kafka instance.
- creation
Time string - The creation time of the Kafka trigger.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Update stringTime - The last update time of the Kafka trigger.
- status string
- The status of Kafka trigger.
- consumer_
group str - The consumer group name of the message queue Kafka instance.
- creation_
time str - The creation time of the Kafka trigger.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
update_ strtime - The last update time of the Kafka trigger.
- status str
- The status of Kafka trigger.
- consumer
Group String - The consumer group name of the message queue Kafka instance.
- creation
Time String - The creation time of the Kafka trigger.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The last update time of the Kafka trigger.
- status String
- The status of Kafka trigger.
Look up Existing KafkaTrigger Resource
Get an existing KafkaTrigger 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?: KafkaTriggerState, opts?: CustomResourceOptions): KafkaTrigger
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
batch_flush_duration_milliseconds: Optional[int] = None,
batch_size: Optional[int] = None,
consumer_group: Optional[str] = None,
creation_time: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
function_id: Optional[str] = None,
kafka_credentials: Optional[KafkaTriggerKafkaCredentialsArgs] = None,
last_update_time: Optional[str] = None,
maximum_retry_attempts: Optional[int] = None,
mq_instance_id: Optional[str] = None,
name: Optional[str] = None,
starting_position: Optional[str] = None,
status: Optional[str] = None,
topic_name: Optional[str] = None) -> KafkaTrigger
func GetKafkaTrigger(ctx *Context, name string, id IDInput, state *KafkaTriggerState, opts ...ResourceOption) (*KafkaTrigger, error)
public static KafkaTrigger Get(string name, Input<string> id, KafkaTriggerState? state, CustomResourceOptions? opts = null)
public static KafkaTrigger get(String name, Output<String> id, KafkaTriggerState state, CustomResourceOptions options)
resources: _: type: volcengine:vefaas:KafkaTrigger 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.
- Batch
Flush intDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- Batch
Size int - The number of messages per batch consumed by the trigger in bulk.
- Consumer
Group string - The consumer group name of the message queue Kafka instance.
- Creation
Time string - The creation time of the Kafka trigger.
- Description string
- The description of the Kafka trigger.
- Enabled bool
- Whether to enable triggers at the same time as creating them.
- Function
Id string - The ID of Function.
- Kafka
Credentials KafkaTrigger Kafka Credentials - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Last
Update stringTime - The last update time of the Kafka trigger.
- Maximum
Retry intAttempts - The maximum number of retries when a function has a runtime error.
- Mq
Instance stringId - The instance ID of Message queue Kafka.
- Name string
- The name of the Kafka trigger.
- Starting
Position string - Specify the location where the messages in the Topic start to be consumed.
- Status string
- The status of Kafka trigger.
- Topic
Name string - The Topic name of the message queue Kafka instance.
- Batch
Flush intDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- Batch
Size int - The number of messages per batch consumed by the trigger in bulk.
- Consumer
Group string - The consumer group name of the message queue Kafka instance.
- Creation
Time string - The creation time of the Kafka trigger.
- Description string
- The description of the Kafka trigger.
- Enabled bool
- Whether to enable triggers at the same time as creating them.
- Function
Id string - The ID of Function.
- Kafka
Credentials KafkaTrigger Kafka Credentials Args - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Last
Update stringTime - The last update time of the Kafka trigger.
- Maximum
Retry intAttempts - The maximum number of retries when a function has a runtime error.
- Mq
Instance stringId - The instance ID of Message queue Kafka.
- Name string
- The name of the Kafka trigger.
- Starting
Position string - Specify the location where the messages in the Topic start to be consumed.
- Status string
- The status of Kafka trigger.
- Topic
Name string - The Topic name of the message queue Kafka instance.
- batch
Flush IntegerDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- batch
Size Integer - The number of messages per batch consumed by the trigger in bulk.
- consumer
Group String - The consumer group name of the message queue Kafka instance.
- creation
Time String - The creation time of the Kafka trigger.
- description String
- The description of the Kafka trigger.
- enabled Boolean
- Whether to enable triggers at the same time as creating them.
- function
Id String - The ID of Function.
- kafka
Credentials KafkaTrigger Kafka Credentials - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- last
Update StringTime - The last update time of the Kafka trigger.
- maximum
Retry IntegerAttempts - The maximum number of retries when a function has a runtime error.
- mq
Instance StringId - The instance ID of Message queue Kafka.
- name String
- The name of the Kafka trigger.
- starting
Position String - Specify the location where the messages in the Topic start to be consumed.
- status String
- The status of Kafka trigger.
- topic
Name String - The Topic name of the message queue Kafka instance.
- batch
Flush numberDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- batch
Size number - The number of messages per batch consumed by the trigger in bulk.
- consumer
Group string - The consumer group name of the message queue Kafka instance.
- creation
Time string - The creation time of the Kafka trigger.
- description string
- The description of the Kafka trigger.
- enabled boolean
- Whether to enable triggers at the same time as creating them.
- function
Id string - The ID of Function.
- kafka
Credentials KafkaTrigger Kafka Credentials - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- last
Update stringTime - The last update time of the Kafka trigger.
- maximum
Retry numberAttempts - The maximum number of retries when a function has a runtime error.
- mq
Instance stringId - The instance ID of Message queue Kafka.
- name string
- The name of the Kafka trigger.
- starting
Position string - Specify the location where the messages in the Topic start to be consumed.
- status string
- The status of Kafka trigger.
- topic
Name string - The Topic name of the message queue Kafka instance.
- batch_
flush_ intduration_ milliseconds - The maximum waiting time for batch consumption of triggers.
- batch_
size int - The number of messages per batch consumed by the trigger in bulk.
- consumer_
group str - The consumer group name of the message queue Kafka instance.
- creation_
time str - The creation time of the Kafka trigger.
- description str
- The description of the Kafka trigger.
- enabled bool
- Whether to enable triggers at the same time as creating them.
- function_
id str - The ID of Function.
- kafka_
credentials KafkaTrigger Kafka Credentials Args - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- last_
update_ strtime - The last update time of the Kafka trigger.
- maximum_
retry_ intattempts - The maximum number of retries when a function has a runtime error.
- mq_
instance_ strid - The instance ID of Message queue Kafka.
- name str
- The name of the Kafka trigger.
- starting_
position str - Specify the location where the messages in the Topic start to be consumed.
- status str
- The status of Kafka trigger.
- topic_
name str - The Topic name of the message queue Kafka instance.
- batch
Flush NumberDuration Milliseconds - The maximum waiting time for batch consumption of triggers.
- batch
Size Number - The number of messages per batch consumed by the trigger in bulk.
- consumer
Group String - The consumer group name of the message queue Kafka instance.
- creation
Time String - The creation time of the Kafka trigger.
- description String
- The description of the Kafka trigger.
- enabled Boolean
- Whether to enable triggers at the same time as creating them.
- function
Id String - The ID of Function.
- kafka
Credentials Property Map - Kafka identity authentication. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- last
Update StringTime - The last update time of the Kafka trigger.
- maximum
Retry NumberAttempts - The maximum number of retries when a function has a runtime error.
- mq
Instance StringId - The instance ID of Message queue Kafka.
- name String
- The name of the Kafka trigger.
- starting
Position String - Specify the location where the messages in the Topic start to be consumed.
- status String
- The status of Kafka trigger.
- topic
Name String - The Topic name of the message queue Kafka instance.
Supporting Types
KafkaTriggerKafkaCredentials, KafkaTriggerKafkaCredentialsArgs
Import
VefaasKafkaTrigger can be imported using the id, e.g.
$ pulumi import volcengine:vefaas/kafkaTrigger:KafkaTrigger default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.