Documentation ¶
Index ¶
Constants ¶
View Source
const Ec2StateChangeNotification = "EC2 Instance State-change Notification"
Ec2StateChangeNotification defines the EC2 instance's state change notification.
Variables ¶
This section is empty.
Functions ¶
func GenerateQueueName ¶
GenerateQueueName will generate a queue name.
Types ¶
type Service ¶
type Service struct { EventBridgeClient eventbridgeiface.EventBridgeAPI SQSClient sqsiface.SQSAPI // contains filtered or unexported fields }
Service defines the specs for a service.
func NewService ¶
NewService returns a new service given the ec2 api client.
func (Service) AddInstanceToEventPattern ¶
AddInstanceToEventPattern will add an instance to an event pattern.
func (Service) DeleteEC2Events ¶
DeleteEC2Events will delete a Service's EC2 events.
func (Service) ReconcileEC2Events ¶
ReconcileEC2Events will reconcile a Service's EC2 events.
func (Service) RemoveInstanceFromEventPattern ¶
RemoveInstanceFromEventPattern attempts a best effort update to the event rule to remove the instance. Any errors encountered won't be blocking.
Directories ¶
Path | Synopsis |
---|---|
Package mock_eventbridgeiface is a generated GoMock package.
|
Package mock_eventbridgeiface is a generated GoMock package. |
Package mock_sqsiface is a generated GoMock package.
|
Package mock_sqsiface is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.