Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

getFunctionTrigger

Get information about a Yandex Cloud Function Trigger. For more information about Yandex Cloud Functions, see Yandex Cloud Functions.

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

const myTrigger = pulumi.output(yandex.getFunctionTrigger({
    triggerId: "are1sampletrigger11",
}));
import pulumi
import pulumi_yandex as yandex

my_trigger = yandex.get_function_trigger(trigger_id="are1sampletrigger11")
using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var myTrigger = Output.Create(Yandex.GetFunctionTrigger.InvokeAsync(new Yandex.GetFunctionTriggerArgs
        {
            TriggerId = "are1sampletrigger11",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "are1sampletrigger11"
		_, err := yandex.LookupFunctionTrigger(ctx, &GetFunctionTriggerArgs{
			TriggerId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

This data source is used to define Yandex Cloud Functions Trigger that can be used by other resources.

Using getFunctionTrigger

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getFunctionTrigger(args: GetFunctionTriggerArgs, opts?: InvokeOptions): Promise<GetFunctionTriggerResult>
function getFunctionTriggerOutput(args: GetFunctionTriggerOutputArgs, opts?: InvokeOptions): Output<GetFunctionTriggerResult>
def get_function_trigger(folder_id: Optional[str] = None,
                         name: Optional[str] = None,
                         trigger_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFunctionTriggerResult
def get_function_trigger_output(folder_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         trigger_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFunctionTriggerResult]
func LookupFunctionTrigger(ctx *Context, args *LookupFunctionTriggerArgs, opts ...InvokeOption) (*LookupFunctionTriggerResult, error)
func LookupFunctionTriggerOutput(ctx *Context, args *LookupFunctionTriggerOutputArgs, opts ...InvokeOption) LookupFunctionTriggerResultOutput

> Note: This function is named LookupFunctionTrigger in the Go SDK.

public static class GetFunctionTrigger 
{
    public static Task<GetFunctionTriggerResult> InvokeAsync(GetFunctionTriggerArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionTriggerResult> Invoke(GetFunctionTriggerInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

FolderId string
Folder ID for the Yandex Cloud Functions Trigger
Name string
Yandex Cloud Functions Trigger name used to define trigger
TriggerId string
Yandex Cloud Functions Trigger id used to define trigger
FolderId string
Folder ID for the Yandex Cloud Functions Trigger
Name string
Yandex Cloud Functions Trigger name used to define trigger
TriggerId string
Yandex Cloud Functions Trigger id used to define trigger
folderId string
Folder ID for the Yandex Cloud Functions Trigger
name string
Yandex Cloud Functions Trigger name used to define trigger
triggerId string
Yandex Cloud Functions Trigger id used to define trigger
folder_id str
Folder ID for the Yandex Cloud Functions Trigger
name str
Yandex Cloud Functions Trigger name used to define trigger
trigger_id str
Yandex Cloud Functions Trigger id used to define trigger

getFunctionTrigger Result

The following output properties are available:

CreatedAt string
Creation timestamp of the Yandex Cloud Functions Trigger
Description string
Description of the Yandex Cloud Functions Trigger
Dlq GetFunctionTriggerDlq

Dead Letter Queue settings definition for Yandex Cloud Functions Trigger

  • dlq.0.queue_id - ID of Dead Letter Queue for Trigger (Queue ARN)
  • dlq.0.service_account_id - Service Account ID for Dead Letter Queue for Yandex Cloud Functions Trigger
Function GetFunctionTriggerFunction

Yandex.Cloud Function settings definition for Yandex Cloud Functions Trigger

  • function.0.id - Yandex.Cloud Function ID for Yandex Cloud Functions Trigger
  • function.0.service_account_id - Service account ID for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.tag - Tag for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_attempts - Retry attempts for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_interval - Retry interval in seconds for Yandex.Cloud Function for Yandex Cloud Functions Trigger
Id string
The provider-assigned unique ID for this managed resource.
Iot GetFunctionTriggerIot

IoT settings definition for Yandex Cloud Functions Trigger, if present

  • iot.0.registry_id - IoT Registry ID for Yandex Cloud Functions Trigger
  • iot.0.device_id - IoT Device ID for Yandex Cloud Functions Trigger
  • iot.0.topic - IoT Topic for Yandex Cloud Functions Trigger
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Yandex Cloud Functions Trigger
LogGroup GetFunctionTriggerLogGroup
Logging GetFunctionTriggerLogging
MessageQueue GetFunctionTriggerMessageQueue

Message Queue settings definition for Yandex Cloud Functions Trigger, if present

  • message_queue.0.queue_id - Message Queue ID for Yandex Cloud Functions Trigger
  • message_queue.0.service_account_id - Message Queue Service Account ID for Yandex Cloud Functions Trigger
  • message_queue.0.batch_cutoff - Batch Duration in seconds for Yandex Cloud Functions Trigger
  • message_queue.0.batch_size - Batch Size for Yandex Cloud Functions Trigger
  • message_queue.0.visibility_timeout - Visibility timeout for Yandex Cloud Functions Trigger
ObjectStorage GetFunctionTriggerObjectStorage

Object Storage settings definition for Yandex Cloud Functions Trigger, if present

  • object_storage.0.bucket_id - Object Storage Bucket ID for Yandex Cloud Functions Trigger
  • object_storage.0.prefix - Prefix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.suffix - Suffix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.create - Boolean flag for setting create event for Yandex Cloud Functions Trigger
  • object_storage.0.update - Boolean flag for setting update event for Yandex Cloud Functions Trigger
  • object_storage.0.delete - Boolean flag for setting delete event for Yandex Cloud Functions Trigger
Timer GetFunctionTriggerTimer

Timer settings definition for Yandex Cloud Functions Trigger, if present

  • timer.0.cron_expression - Cron expression for timer for Yandex Cloud Functions Trigger
FolderId string
Folder ID for the Yandex Cloud Functions Trigger
Name string
TriggerId string
CreatedAt string
Creation timestamp of the Yandex Cloud Functions Trigger
Description string
Description of the Yandex Cloud Functions Trigger
Dlq GetFunctionTriggerDlq

Dead Letter Queue settings definition for Yandex Cloud Functions Trigger

  • dlq.0.queue_id - ID of Dead Letter Queue for Trigger (Queue ARN)
  • dlq.0.service_account_id - Service Account ID for Dead Letter Queue for Yandex Cloud Functions Trigger
Function GetFunctionTriggerFunction

Yandex.Cloud Function settings definition for Yandex Cloud Functions Trigger

  • function.0.id - Yandex.Cloud Function ID for Yandex Cloud Functions Trigger
  • function.0.service_account_id - Service account ID for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.tag - Tag for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_attempts - Retry attempts for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_interval - Retry interval in seconds for Yandex.Cloud Function for Yandex Cloud Functions Trigger
Id string
The provider-assigned unique ID for this managed resource.
Iot GetFunctionTriggerIot

IoT settings definition for Yandex Cloud Functions Trigger, if present

  • iot.0.registry_id - IoT Registry ID for Yandex Cloud Functions Trigger
  • iot.0.device_id - IoT Device ID for Yandex Cloud Functions Trigger
  • iot.0.topic - IoT Topic for Yandex Cloud Functions Trigger
Labels map[string]string
A set of key/value label pairs to assign to the Yandex Cloud Functions Trigger
LogGroup GetFunctionTriggerLogGroup
Logging GetFunctionTriggerLogging
MessageQueue GetFunctionTriggerMessageQueue

Message Queue settings definition for Yandex Cloud Functions Trigger, if present

  • message_queue.0.queue_id - Message Queue ID for Yandex Cloud Functions Trigger
  • message_queue.0.service_account_id - Message Queue Service Account ID for Yandex Cloud Functions Trigger
  • message_queue.0.batch_cutoff - Batch Duration in seconds for Yandex Cloud Functions Trigger
  • message_queue.0.batch_size - Batch Size for Yandex Cloud Functions Trigger
  • message_queue.0.visibility_timeout - Visibility timeout for Yandex Cloud Functions Trigger
ObjectStorage GetFunctionTriggerObjectStorage

Object Storage settings definition for Yandex Cloud Functions Trigger, if present

  • object_storage.0.bucket_id - Object Storage Bucket ID for Yandex Cloud Functions Trigger
  • object_storage.0.prefix - Prefix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.suffix - Suffix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.create - Boolean flag for setting create event for Yandex Cloud Functions Trigger
  • object_storage.0.update - Boolean flag for setting update event for Yandex Cloud Functions Trigger
  • object_storage.0.delete - Boolean flag for setting delete event for Yandex Cloud Functions Trigger
Timer GetFunctionTriggerTimer

Timer settings definition for Yandex Cloud Functions Trigger, if present

  • timer.0.cron_expression - Cron expression for timer for Yandex Cloud Functions Trigger
FolderId string
Folder ID for the Yandex Cloud Functions Trigger
Name string
TriggerId string
createdAt string
Creation timestamp of the Yandex Cloud Functions Trigger
description string
Description of the Yandex Cloud Functions Trigger
dlq GetFunctionTriggerDlq

Dead Letter Queue settings definition for Yandex Cloud Functions Trigger

  • dlq.0.queue_id - ID of Dead Letter Queue for Trigger (Queue ARN)
  • dlq.0.service_account_id - Service Account ID for Dead Letter Queue for Yandex Cloud Functions Trigger
function GetFunctionTriggerFunction

Yandex.Cloud Function settings definition for Yandex Cloud Functions Trigger

  • function.0.id - Yandex.Cloud Function ID for Yandex Cloud Functions Trigger
  • function.0.service_account_id - Service account ID for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.tag - Tag for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_attempts - Retry attempts for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_interval - Retry interval in seconds for Yandex.Cloud Function for Yandex Cloud Functions Trigger
id string
The provider-assigned unique ID for this managed resource.
iot GetFunctionTriggerIot

IoT settings definition for Yandex Cloud Functions Trigger, if present

  • iot.0.registry_id - IoT Registry ID for Yandex Cloud Functions Trigger
  • iot.0.device_id - IoT Device ID for Yandex Cloud Functions Trigger
  • iot.0.topic - IoT Topic for Yandex Cloud Functions Trigger
labels {[key: string]: string}
A set of key/value label pairs to assign to the Yandex Cloud Functions Trigger
logGroup GetFunctionTriggerLogGroup
logging GetFunctionTriggerLogging
messageQueue GetFunctionTriggerMessageQueue

Message Queue settings definition for Yandex Cloud Functions Trigger, if present

  • message_queue.0.queue_id - Message Queue ID for Yandex Cloud Functions Trigger
  • message_queue.0.service_account_id - Message Queue Service Account ID for Yandex Cloud Functions Trigger
  • message_queue.0.batch_cutoff - Batch Duration in seconds for Yandex Cloud Functions Trigger
  • message_queue.0.batch_size - Batch Size for Yandex Cloud Functions Trigger
  • message_queue.0.visibility_timeout - Visibility timeout for Yandex Cloud Functions Trigger
objectStorage GetFunctionTriggerObjectStorage

Object Storage settings definition for Yandex Cloud Functions Trigger, if present

  • object_storage.0.bucket_id - Object Storage Bucket ID for Yandex Cloud Functions Trigger
  • object_storage.0.prefix - Prefix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.suffix - Suffix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.create - Boolean flag for setting create event for Yandex Cloud Functions Trigger
  • object_storage.0.update - Boolean flag for setting update event for Yandex Cloud Functions Trigger
  • object_storage.0.delete - Boolean flag for setting delete event for Yandex Cloud Functions Trigger
timer GetFunctionTriggerTimer

Timer settings definition for Yandex Cloud Functions Trigger, if present

  • timer.0.cron_expression - Cron expression for timer for Yandex Cloud Functions Trigger
folderId string
Folder ID for the Yandex Cloud Functions Trigger
name string
triggerId string
created_at str
Creation timestamp of the Yandex Cloud Functions Trigger
description str
Description of the Yandex Cloud Functions Trigger
dlq GetFunctionTriggerDlq

Dead Letter Queue settings definition for Yandex Cloud Functions Trigger

  • dlq.0.queue_id - ID of Dead Letter Queue for Trigger (Queue ARN)
  • dlq.0.service_account_id - Service Account ID for Dead Letter Queue for Yandex Cloud Functions Trigger
function GetFunctionTriggerFunction

Yandex.Cloud Function settings definition for Yandex Cloud Functions Trigger

  • function.0.id - Yandex.Cloud Function ID for Yandex Cloud Functions Trigger
  • function.0.service_account_id - Service account ID for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.tag - Tag for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_attempts - Retry attempts for Yandex.Cloud Function for Yandex Cloud Functions Trigger
  • function.0.retry_interval - Retry interval in seconds for Yandex.Cloud Function for Yandex Cloud Functions Trigger
id str
The provider-assigned unique ID for this managed resource.
iot GetFunctionTriggerIot

IoT settings definition for Yandex Cloud Functions Trigger, if present

  • iot.0.registry_id - IoT Registry ID for Yandex Cloud Functions Trigger
  • iot.0.device_id - IoT Device ID for Yandex Cloud Functions Trigger
  • iot.0.topic - IoT Topic for Yandex Cloud Functions Trigger
labels Mapping[str, str]
A set of key/value label pairs to assign to the Yandex Cloud Functions Trigger
log_group GetFunctionTriggerLogGroup
logging GetFunctionTriggerLogging
message_queue GetFunctionTriggerMessageQueue

Message Queue settings definition for Yandex Cloud Functions Trigger, if present

  • message_queue.0.queue_id - Message Queue ID for Yandex Cloud Functions Trigger
  • message_queue.0.service_account_id - Message Queue Service Account ID for Yandex Cloud Functions Trigger
  • message_queue.0.batch_cutoff - Batch Duration in seconds for Yandex Cloud Functions Trigger
  • message_queue.0.batch_size - Batch Size for Yandex Cloud Functions Trigger
  • message_queue.0.visibility_timeout - Visibility timeout for Yandex Cloud Functions Trigger
object_storage GetFunctionTriggerObjectStorage

Object Storage settings definition for Yandex Cloud Functions Trigger, if present

  • object_storage.0.bucket_id - Object Storage Bucket ID for Yandex Cloud Functions Trigger
  • object_storage.0.prefix - Prefix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.suffix - Suffix for Object Storage for Yandex Cloud Functions Trigger
  • object_storage.0.create - Boolean flag for setting create event for Yandex Cloud Functions Trigger
  • object_storage.0.update - Boolean flag for setting update event for Yandex Cloud Functions Trigger
  • object_storage.0.delete - Boolean flag for setting delete event for Yandex Cloud Functions Trigger
timer GetFunctionTriggerTimer

Timer settings definition for Yandex Cloud Functions Trigger, if present

  • timer.0.cron_expression - Cron expression for timer for Yandex Cloud Functions Trigger
folder_id str
Folder ID for the Yandex Cloud Functions Trigger
name str
trigger_id str

Supporting Types

GetFunctionTriggerDlq

GetFunctionTriggerFunction

Id string
RetryAttempts string
RetryInterval string
ServiceAccountId string
Tag string
Id string
RetryAttempts string
RetryInterval string
ServiceAccountId string
Tag string
id string
retryAttempts string
retryInterval string
serviceAccountId string
tag string

GetFunctionTriggerIot

DeviceId string
RegistryId string
Topic string
DeviceId string
RegistryId string
Topic string
deviceId string
registryId string
topic string

GetFunctionTriggerLogGroup

BatchCutoff string
BatchSize string
LogGroupIds List<string>
BatchCutoff string
BatchSize string
LogGroupIds []string
batchCutoff string
batchSize string
logGroupIds string[]

GetFunctionTriggerLogging

BatchCutoff string
BatchSize string
GroupId string
Levels List<string>
ResourceIds List<string>
ResourceTypes List<string>
BatchCutoff string
BatchSize string
GroupId string
Levels []string
ResourceIds []string
ResourceTypes []string
batchCutoff string
batchSize string
groupId string
levels string[]
resourceIds string[]
resourceTypes string[]
batch_cutoff str
batch_size str
group_id str
levels Sequence[str]
resource_ids Sequence[str]
resource_types Sequence[str]

GetFunctionTriggerMessageQueue

GetFunctionTriggerObjectStorage

BucketId string
Create bool
Delete bool
Prefix string
Suffix string
Update bool
BucketId string
Create bool
Delete bool
Prefix string
Suffix string
Update bool
bucketId string
create boolean
delete boolean
prefix string
suffix string
update boolean
bucket_id str
create bool
delete bool
prefix str
suffix str
update bool

GetFunctionTriggerTimer

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.