utils

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package utils provides common utility functions used across the methodaws codebase.

Package utils provides common utility functions used across the methodaws codebase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildARN added in v0.0.55

func BuildARN(service, region, accountID, resourceType, resourceID string) string

BuildARN constructs an AWS ARN (Amazon Resource Name) with the standard format: arn:aws:service:region:account-id:resource-type/resource-id

func GetAWSRegions added in v0.0.55

func GetAWSRegions(ctx context.Context, cfg aws.Config, selectedRegions []string) ([]string, error)

func GetAccountID added in v0.0.48

func GetAccountID(ctx context.Context, awsConfig aws.Config) (string, error)

GetAccountID retrieves the account ID for the given AWS configuration. It returns the account ID as a string and an error if the account ID cannot be retrieved.

func GetGeneralRegionsList added in v0.0.55

func GetGeneralRegionsList() []string

GetGeneralRegionsList returns a list of known AWS regions.

func GetRegionsToCheck added in v0.0.55

func GetRegionsToCheck(ctx context.Context, selectedRegions []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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