eventbridge

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetPrefix = "AWSEvents."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpCtx core.HTTPContext, credentials *aws.Credentials, region string) *Client

func (*Client) CreateAPIDestination

func (c *Client) CreateAPIDestination(name, connectionArn, url string, tags []common.Tag) (string, error)

func (*Client) CreateConnection

func (c *Client) CreateConnection(name, apiKeyHeader, apiKeyValue string, tags []common.Tag) (string, error)

func (*Client) DeleteAPIDestination

func (c *Client) DeleteAPIDestination(name string) error

func (*Client) DeleteConnection

func (c *Client) DeleteConnection(name string) error

func (*Client) DeleteRule

func (c *Client) DeleteRule(rule string) error

func (*Client) DescribeAPIDestination

func (c *Client) DescribeAPIDestination(name string) (string, error)

func (*Client) DescribeConnection

func (c *Client) DescribeConnection(name string) (string, error)

func (*Client) PutRule

func (c *Client) PutRule(name, pattern string, tags []common.Tag) (string, error)

func (*Client) PutTargets

func (c *Client) PutTargets(rule string, targets []Target) error

func (*Client) RemoveTargets

func (c *Client) RemoveTargets(rule string, targetIDs []string) error

type RuleMetadata

type RuleMetadata struct {
	RuleArn  string `json:"ruleArn" mapstructure:"ruleArn"`
	TargetID string `json:"targetId" mapstructure:"targetId"`
}

func CreateRule

func CreateRule(
	integration core.IntegrationContext,
	http core.HTTPContext,
	targetRoleArn string,
	region string,
	destinationArn string,
	tags []common.Tag,
	eventPattern map[string]any,
) (*RuleMetadata, error)

type Target

type Target struct {
	ID      string `json:"Id"`
	Arn     string `json:"Arn"`
	RoleArn string `json:"RoleArn,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL