Documentation ¶
Index ¶
- type Rule
- func (r *Rule) Arn(arn string) *Rule
- func (r *Rule) Assert(t *testing.T, rules ...*cloudwatchevents.Rule) *Rule
- func (r *Rule) Filter(filter shared.Filter) *Rule
- func (r *Rule) First(t *testing.T, rules ...*cloudwatchevents.Rule) *Rule
- func (r *Rule) ManagedBy(name string) *Rule
- func (r *Rule) Name(name string) *Rule
- func (r *Rule) RoleArn(arn string) *Rule
- func (r *Rule) SchedExpr(expr string) *Rule
- func (r *Rule) Selected() *cloudwatchevents.Rule
- func (r *Rule) State(state string) *Rule
- func (r *Rule) Target() *target.Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
Rule contains the necessary properties for testing *cloudwatchevents.Rule objects
func (*Rule) Arn ¶
Arn adds the Arn filter to the filter list the Arn filter: filters rules by Arn where 'arn' provided is the expected Arn value
func (*Rule) Assert ¶
Assert applies all filters that have been called, resets the list of filters, fails the test if there is not exactly one match, and stores the matched rule if rules is not provided, *cloudwatchevents.Rule objects will be retreived from AWS
func (*Rule) First ¶
First applies all filters that have been called, resets the list of filters, fails the test if there are no matches, and stores the first match if rules is not provided, *cloudwatchevents.Rule objects will be retreived from AWS
func (*Rule) ManagedBy ¶
ManagedBy adds the ManagedBy filter to the filter list the ManagedBy filter: filters rules by ManagedBy where 'name' provided is the expected ManagedBy value
func (*Rule) Name ¶
Name adds the Name filter to the filter list the Name filter: filters rules by Name where 'name' provided is the expected Name value
func (*Rule) RoleArn ¶
RoleArn adds the RoleArn filter to the filter list the RoleArn filter: filters rules by RoleArn where 'arn' provided is the expected RoleArn value
func (*Rule) SchedExpr ¶
SchedExpr adds the SchedExpr filter to the filter list the SchedExpr filter: filters rules by SchedExpr where 'expr' provided is the expected ScheduleExpression value
func (*Rule) Selected ¶
func (r *Rule) Selected() *cloudwatchevents.Rule
Selected returns the currently selected *cloudwatchevents.Rule