Documentation
¶
Index ¶
- func ErrCode(msg string, err error) error
- type ResourceGroupsTaggingAPI
- func (r *ResourceGroupsTaggingAPI) GetResourcesInOrg(ctx context.Context, org, rtype, rflavor string) ([]*resourcegroupstaggingapi.ResourceTagMapping, error)
- func (r *ResourceGroupsTaggingAPI) ListResourcesWithTags(ctx context.Context, input *resourcegroupstaggingapi.GetResourcesInput) (*resourcegroupstaggingapi.GetResourcesOutput, error)
- type ResourceGroupsTaggingAPIOption
- type TagFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 New ¶
func New(opts ...ResourceGroupsTaggingAPIOption) *ResourceGroupsTaggingAPI
func (*ResourceGroupsTaggingAPI) GetResourcesInOrg ¶
func (r *ResourceGroupsTaggingAPI) GetResourcesInOrg(ctx context.Context, org, rtype, rflavor string) ([]*resourcegroupstaggingapi.ResourceTagMapping, error)
GetResourcesInOrg returns all of the resources in the specified org, with a given resource type and flavor More details about which services support the resourgroup tagging api here: https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html
func (*ResourceGroupsTaggingAPI) ListResourcesWithTags ¶
func (r *ResourceGroupsTaggingAPI) ListResourcesWithTags(ctx context.Context, input *resourcegroupstaggingapi.GetResourcesInput) (*resourcegroupstaggingapi.GetResourcesOutput, error)
type ResourceGroupsTaggingAPIOption ¶
type ResourceGroupsTaggingAPIOption func(*ResourceGroupsTaggingAPI)
func WithCredentials ¶
func WithCredentials(key, secret, token, region string) ResourceGroupsTaggingAPIOption
func WithSession ¶
func WithSession(sess *session.Session) ResourceGroupsTaggingAPIOption
Click to show internal directories.
Click to hide internal directories.