arn

package
v0.33.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARN

type ARN struct {
	arn.ARN
}

ARN - Custom ARN type for helping with formatting

func New

func New(partition string, service string, region string, accountID string, resource string) *ARN

New creates a new ARN instance

func NewFromArn

func NewFromArn(arnString string) (*ARN, error)

NewFromArn creates a new ARN instance

func (*ARN) IAMResourceName

func (a *ARN) IAMResourceName() *string

IAMResourceName returns the value from beyond the last / it will return nil if its not an IAM based arn

func (*ARN) MarshalDynamoDBAttributeValue

func (a *ARN) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error

MarshalDynamoDBAttributeValue marshaling for DynamoDB

func (*ARN) MarshalJSON

func (a *ARN) MarshalJSON() ([]byte, error)

MarshalJSON for creating a JSON string of ARN

func (*ARN) UnmarshalDynamoDBAttributeValue

func (a *ARN) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error

UnmarshalDynamoDBAttributeValue handles custom unmarshaling of an ARN

func (*ARN) UnmarshalJSON

func (a *ARN) UnmarshalJSON(data []byte) error

UnmarshalJSON - Custom unmarshalling of an ARN

Jump to

Keyboard shortcuts

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