Documentation
¶
Overview ¶
Package arnutil provides utility functions for AWS ARNs.
Index ¶
- func BaseSNSArn(instanceProfileArn arn.ARN, region string) (string, error)
- func DetectARNPrefix(sess *session.Session) (string, error)
- func GetRegionFromARN(arnString string) string
- func InstanceProfileArn(svc *ec2metadata.EC2Metadata) (arn.ARN, error)
- func ValidateARN(arnString string) bool
- func ValidateRegionString(region string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseSNSArn ¶
BaseSNSArn calculates the base SNS arn given an instance's arn
func DetectARNPrefix ¶
DetectARNPrefix uses the EC2 metadata API to determine the current prefix.
func GetRegionFromARN ¶
GetRegionFromARN is a helper function to get region from ARNs
func InstanceProfileArn ¶
func InstanceProfileArn(svc *ec2metadata.EC2Metadata) (arn.ARN, error)
InstanceProfileArn uses the EC2 metadata API to find the role for the instance.
func ValidateARN ¶
ValidateARN is a helper function to validate ARNs
func ValidateRegionString ¶
ValidateRegionString is a helper function to validate the region string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.