-
Notifications
You must be signed in to change notification settings - Fork 52
/
FunctionEventTrigger.cs
70 lines (61 loc) · 2.36 KB
/
FunctionEventTrigger.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Gcp.CloudFunctionsV2.Outputs
{
[OutputType]
public sealed class FunctionEventTrigger
{
/// <summary>
/// Required. The type of event to observe.
/// </summary>
public readonly string? EventType;
/// <summary>
/// The name of a Pub/Sub topic in the same project that will be used
/// as the transport topic for the event delivery.
/// </summary>
public readonly string? PubsubTopic;
/// <summary>
/// Describes the retry policy in case of function's execution failure.
/// Retried execution is charged as any other execution.
/// Possible values are `RETRY_POLICY_UNSPECIFIED`, `RETRY_POLICY_DO_NOT_RETRY`, and `RETRY_POLICY_RETRY`.
/// </summary>
public readonly string? RetryPolicy;
/// <summary>
/// The email of the service account for this function.
/// </summary>
public readonly string? ServiceAccountEmail;
/// <summary>
/// -
/// The resource name of the Eventarc trigger.
/// </summary>
public readonly string? Trigger;
/// <summary>
/// The region that the trigger will be in. The trigger will only receive
/// events originating in this region. It can be the same
/// region as the function, a different region or multi-region, or the global
/// region. If not provided, defaults to the same region as the function.
/// </summary>
public readonly string? TriggerRegion;
[OutputConstructor]
private FunctionEventTrigger(
string? eventType,
string? pubsubTopic,
string? retryPolicy,
string? serviceAccountEmail,
string? trigger,
string? triggerRegion)
{
EventType = eventType;
PubsubTopic = pubsubTopic;
RetryPolicy = retryPolicy;
ServiceAccountEmail = serviceAccountEmail;
Trigger = trigger;
TriggerRegion = triggerRegion;
}
}
}