arn

package
v0.0.0-...-d322cf2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arn

type Arn struct {
	Arn       string `json:"arn"`
	Partition string `json:"partition"`
	Service   string `json:"service"`
	// omitempty is not set because the output is not easy to use
	Region       string `json:"region"`
	AccountID    string `json:"account_id"`
	ResourceType string `json:"resource_type"`
	ResourceID   string `json:"resource_id"`
}

func New

func New(arn string) (*Arn, error)

func (*Arn) String

func (a *Arn) String() string

type Arns

type Arns []*Arn

func (Arns) Sort

func (arns Arns) Sort() Arns

func (Arns) Unique

func (arns Arns) Unique() Arns

type Collector

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

func NewCollector

func NewCollector() *Collector

func (*Collector) CollectArns

func (c *Collector) CollectArns(ctx context.Context, cfg aws.Config) (Arns, error)

Jump to

Keyboard shortcuts

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