arn

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(accountID, arn string) string

func CleanList

func CleanList(accountID string, arns string) []string

Types

type ARN

type ARN struct {
	Partition,
	Service,
	Region,
	AccountID,
	ResourceType,
	Resource string
	// contains filtered or unexported fields
}

ARN represents the ARN as documented by http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

func New

func New(s string) (ARN, error)

New parses s and constructs an ARN.

func (*ARN) IsKmsAlias

func (a *ARN) IsKmsAlias() bool

IsKmsAlias returns true iff the ARN represents a KMS Alias.

func (*ARN) IsKmsKey

func (a *ARN) IsKmsKey() bool

IsKmsKey returns true iff the ARN represents a KMS Key.

func (*ARN) String

func (a *ARN) String() string

type InvalidARNError

type InvalidARNError struct {
	// contains filtered or unexported fields
}

func (*InvalidARNError) Error

func (e *InvalidARNError) Error() string

Jump to

Keyboard shortcuts

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