-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break out container and task events into their own classes and update tests.
- Loading branch information
Showing
6 changed files
with
269 additions
and
84 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
Libraries/src/Amazon.Lambda.CloudWatchEvents/ECSEvents/Attachment.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Amazon.Lambda.CloudWatchEvents.ECSEvents | ||
{ | ||
/// <summary> | ||
/// An object representing a container instance or task attachment. | ||
/// https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Attachment.html | ||
/// </summary> | ||
public class Attachment | ||
{ | ||
/// <summary> | ||
/// Details of the attachment. For elastic network interfaces, this includes the | ||
/// network interface ID, the MAC address, the subnet ID, and the private IPv4 address. | ||
/// </summary> | ||
public List<KeyValuePair<string, string>> Details { get; set; } | ||
|
||
/// <summary> | ||
/// The unique identifier for the attachment. | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The status of the attachment. Valid values are PRECREATED, CREATED, ATTACHING, | ||
/// ATTACHED, DETACHING, DETACHED, and DELETED. | ||
/// </summary> | ||
public string Status { get; set; } | ||
|
||
/// <summary> | ||
/// The type of the attachment, such as ElasticNetworkInterface. | ||
/// </summary> | ||
public string Type { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Libraries/src/Amazon.Lambda.CloudWatchEvents/ECSEvents/ECSTaskStateChangeEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using CloudWatchEvents; | ||
|
||
namespace Amazon.Lambda.CloudWatchEvents.ECSEvents | ||
{ | ||
/// <summary> | ||
/// /// AWS ECS task state change 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 | ||
/// https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_cwe_events.html | ||
/// </summary> | ||
public class ECSTaskStateChangeEvent : CloudWatchEvent<Task> | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.