Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("Remediation not associated with policy")
)
Functions ¶
This section is empty.
Types ¶
type Invoker ¶
type Invoker struct {
// contains filtered or unexported fields
}
Invoker is responsible for invoking Remediation Lambda
func NewInvoker ¶
NewInvoker method returns a new instance of Invoker
func (*Invoker) GetRemediations ¶
func (remediator *Invoker) GetRemediations() (*remediationmodels.Remediations, error)
GetRemediations invokes the Lambda in customer account and retrieves the list of available remediations
func (*Invoker) Remediate ¶
func (remediator *Invoker) Remediate(remediation *remediationmodels.RemediateResource) error
Remediate will invoke remediation action in an AWS account
type InvokerAPI ¶
type InvokerAPI interface { Remediate(*models.RemediateResource) error GetRemediations() (*models.Remediations, error) }
InvokerAPI is the interface for the Invoker, the component that is responsible for invoking Remediation Lambda
type LambdaInput ¶
type LambdaInput struct { Action *string `json:"action"` Payload interface{} `json:"payload,omitempty"` }
LambdaInput is the input to the Remediation Lambda running in customer account
Click to show internal directories.
Click to hide internal directories.