Package: arn
Type Summary collapse
-
AccessPointARN
struct
AccessPointARN provides representation.
-
InvalidARNError
struct
InvalidARNError provides the error for an invalid ARN error.
-
OutpostAccessPointARN
struct
OutpostAccessPointARN represents outpost access point ARN.
-
OutpostBucketARN
struct
OutpostBucketARN represents the outpost bucket ARN.
-
S3ObjectLambdaAccessPointARN
struct
S3ObjectLambdaAccessPointARN is an S3ObjectLambdaARN for the Access Point resource type.
Interface Summary collapse
-
OutpostARN
interface
OutpostARN interface that should be satisfied by outpost ARNs.
-
Resource
interface
Resource provides the interfaces abstracting ARNs of specific resource types.
-
S3ObjectLambdaARN
interface
S3ObjectLambdaARN represents an ARN for the s3-object-lambda service.
Function Summary collapse
-
func GetARNField(input interface{}) (*string, bool)
GetARNField would be called during middleware execution to retrieve a member value that is an ARN in need of processing.
-
func IsARN(s string) bool
IsARN returns whether the given string is an ARN.
-
func ParseAccessPointResource(a arn.ARN, resParts []string) (AccessPointARN, error)
ParseAccessPointResource attempts to parse the ARN’s resource as an AccessPoint resource.
-
func ParseOutpostARNResource(a arn.ARN, resParts []string) (OutpostARN, error)
ParseOutpostARNResource will parse a provided ARNs resource using the appropriate ARN format and return a specific OutpostARN type.
-
func ParseResource(a arn.ARN, resParser ResourceParser) (resARN Resource, err error)
ParseResource parses an AWS ARN into a typed resource for the S3 API.
-
func SetARNField(input interface{}, v string) error
SetARNField would called during middleware exeuction to set a member value that required ARN processing.
-
func SplitResource(v string) []string
SplitResource splits the resource components by the ARN resource delimiters.
Function Details
func GetARNField(input interface{}) (*string, bool)
GetARNField would be called during middleware execution to retrieve a member value that is an ARN in need of processing.
15 16 17 18 19 20 21 |
// File 'service/internal/s3shared/arn/arn_member.go', line 15
|
func IsARN(s string) bool
IsARN returns whether the given string is an ARN
71 72 73 |
// File 'service/internal/s3shared/arn/arn.go', line 71
|
func ParseAccessPointResource(a arn.ARN, resParts []string) (AccessPointARN, error)
ParseAccessPointResource attempts to parse the ARN’s resource as an AccessPoint resource.
Supported Access point resource format: - Access point format: arn:service/internal/s3shared/arnpartition:s3:service/internal/s3shared/arnregion:service/internal/s3shared/arnaccountId:accesspoint/service/internal/s3shared/arnaccesspointName - example: arn:aws:s3:us-west-2:012345678901:accesspoint/myaccesspoint
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
// File 'service/internal/s3shared/arn/accesspoint_arn.go', line 25
|
func ParseOutpostARNResource(a arn.ARN, resParts []string) (OutpostARN, error)
ParseOutpostARNResource will parse a provided ARNs resource using the appropriate ARN format and return a specific OutpostARN type
Currently supported outpost ARN formats: * Outpost AccessPoint ARN format: - ARN format: arn:service/internal/s3shared/arnpartition:s3-outposts:service/internal/s3shared/arnregion:service/internal/s3shared/arnaccountId:outpost/service/internal/s3shared/arnoutpostId/accesspoint/service/internal/s3shared/arnaccesspointName - example: arn:aws:s3-outposts:us-west-2:012345678901:outpost/op-1234567890123456/accesspoint/myaccesspoint
-
Outpost Bucket ARN format:
-
ARN format: arn:service/internal/s3shared/arnpartition:s3-outposts:service/internal/s3shared/arnregion:service/internal/s3shared/arnaccountId:outpost/service/internal/s3shared/arnoutpostId/bucket/service/internal/s3shared/arnbucketName
-
example: arn:aws:s3-outposts:us-west-2:012345678901:outpost/op-1234567890123456/bucket/mybucket
Other outpost ARN formats may be supported and added in the future.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
// File 'service/internal/s3shared/arn/outpost_arn.go', line 27
|
func ParseResource(a arn.ARN, resParser ResourceParser) (resARN Resource, err error)
ParseResource parses an AWS ARN into a typed resource for the S3 API.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
// File 'service/internal/s3shared/arn/arn.go', line 36
|
func SetARNField(input interface{}, v string) error
SetARNField would called during middleware exeuction to set a member value that required ARN processing.
25 26 27 28 29 30 31 |
// File 'service/internal/s3shared/arn/arn_member.go', line 25
|
func SplitResource(v string) []string
SplitResource splits the resource components by the ARN resource delimiters.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
// File 'service/internal/s3shared/arn/arn.go', line 53
|