Documentation ¶
Index ¶
- type Target
- func (g *Target) Arn(arn string) *Target
- func (g *Target) Assert(t *testing.T, targets ...*cloudwatchevents.Target) *Target
- func (g *Target) Filter(filter shared.Filter) *Target
- func (g *Target) First(t *testing.T, targets ...*cloudwatchevents.Target) *Target
- func (g *Target) ID(id string) *Target
- func (g *Target) RoleArn(arn string) *Target
- func (g *Target) Selected() *cloudwatchevents.Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target contains the necessary properties for testing *cloudwatchevents.Target objects
func New ¶
func New(client client.ConfigProvider, rule *cloudwatchevents.Rule) *Target
New returns a new *Target
func (*Target) Arn ¶
Arn adds the Arn filter to the filter list the Arn filter: filters targets by Arn where 'arn' provided is the expected Arn value
func (*Target) 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 target if targets is not provided, *cloudwatchevents.Target objects will be retreived from AWS
func (*Target) 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 targets is not provided, *cloudwatchevents.Target objects will be retreived from AWS
func (*Target) ID ¶
ID adds the ID filter to the filter list the ID filter: filters targets by ID where 'id' provided is the expected Id value
func (*Target) RoleArn ¶
RoleArn adds the RoleArn filter to the filter list the RoleArn filter: filters targets by RoleArn where 'arn' provided is the expected RoleArn value
func (*Target) Selected ¶
func (g *Target) Selected() *cloudwatchevents.Target
Selected returns the currently selected *cloudwatchevents.Target