resourcegroupstaggingapi

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type ResourceGroupsTaggingAPI

type ResourceGroupsTaggingAPI struct {
	Service resourcegroupstaggingapiiface.ResourceGroupsTaggingAPIAPI
	// contains filtered or unexported fields
}

ResourceGroupsTaggingAPI is a wrapper around the aws resourcegroupstaggingapi service with some default config info

func (*ResourceGroupsTaggingAPI) GetResourcesWithTags

func (r *ResourceGroupsTaggingAPI) GetResourcesWithTags(ctx context.Context, types []string, filters []*TagFilter) ([]*resourcegroupstaggingapi.ResourceTagMapping, error)

GetResourcesWithTags returns all of the resources with a type in the list of types that matches the tagfilters. More details about which services support the resourgroup tagging api is here https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html

type ResourceGroupsTaggingAPIOption

type ResourceGroupsTaggingAPIOption func(*ResourceGroupsTaggingAPI)

func WithCredentials

func WithCredentials(key, secret, token, region string) ResourceGroupsTaggingAPIOption

type TagFilter

type TagFilter struct {
	Key   string
	Value []string
}

Tag Filter is used to filter resources based on tags. The Value portion is optional.

Jump to

Keyboard shortcuts

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