-
Notifications
You must be signed in to change notification settings - Fork 475
/
ConfigEvent.cs
74 lines (63 loc) · 2.58 KB
/
ConfigEvent.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
71
72
73
74
namespace Amazon.Lambda.ConfigEvents
{
using System;
/// <summary>
/// AWS Config event
/// http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules.html
/// http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules_example-events.html
/// </summary>
public class ConfigEvent
{
/// <summary>
/// The ID of the AWS account that owns the rule.
/// </summary>
public string AccountId { get; set; }
/// <summary>
/// The ARN that AWS Config assigned to the rule.
/// </summary>
public string ConfigRuleArn { get; set; }
/// <summary>
/// The ID that AWS Config assigned to the rule.
/// </summary>
public string ConfigRuleId { get; set; }
/// <summary>
/// The name that you assigned to the rule that caused AWS Config
/// to publish the event and invoke the function.
/// </summary>
public string ConfigRuleName { get; set; }
/// <summary>
/// A Boolean value that indicates whether the AWS resource to be
/// evaluated has been removed from the rule's scope.
/// </summary>
public bool EventLeftScope { get; set; }
/// <summary>
/// The ARN of the IAM role that is assigned to AWS Config.
/// </summary>
public string ExecutionRoleArn { get; set; }
/// <summary>
/// If the event is published in response to a resource configuration
/// change, the value for this attribute is a string that contains
/// a JSON configuration item.
/// </summary>
public string InvokingEvent { get; set; }
/// <summary>
/// A token that the function must pass to AWS Config with the
/// PutEvaluations call.
/// </summary>
public string ResultToken { get; set; }
/// <summary>
/// Key/value pairs that the function processes as part of its
/// evaluation logic.
/// </summary>
public string RuleParameters { get; set; }
/// <summary>
/// A version number assigned by AWS.
/// The version will increment if AWS adds attributes to AWS Config
/// events.
/// If a function requires an attribute that is only in events that
/// match or exceed a specific version, then that function can check
/// the value of this attribute.
/// </summary>
public string Version { get; set; }
}
}