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 ¶
- func BuildARN(service, region, accountID, resourceType, resourceID string) string
- func GetAWSRegions(ctx context.Context, cfg aws.Config, selectedRegions []string) ([]string, error)
- func GetAccountID(ctx context.Context, awsConfig aws.Config) (string, error)
- func GetGeneralRegionsList() []string
- func GetRegionsToCheck(ctx context.Context, selectedRegions []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildARN ¶ added in v0.0.55
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 GetAccountID ¶ added in v0.0.48
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.