awsutil

package
v0.0.0-...-e2c53ed Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Package cloudeng.io/aws/awsutil

import cloudeng.io/aws/awsutil

Functions

Func AccountID
func AccountID(ctx context.Context, cfg aws.Config) (string, error)

AccountID returns the account id from the aws.Config and caches it locally.

Func IsARN
func IsARN(name string) bool

IsArn returns true if the supplied string is an ARN.

Func Region
func Region(_ context.Context, cfg aws.Config) string

Region obtains the AWS region either from the supplied config or from the environment.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountID

func AccountID(ctx context.Context, cfg aws.Config) (string, error)

AccountID returns the account id from the aws.Config and caches it locally.

func IsARN

func IsARN(name string) bool

IsArn returns true if the supplied string is an ARN.

func Region

func Region(_ context.Context, cfg aws.Config) string

Region obtains the AWS region either from the supplied config or from the environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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