arn

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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