package arn

Import Path
	github.com/aws/aws-sdk-go-v2/service/internal/s3shared/arn (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 3 packages


Package-Level Type Names (total 9, all are exported)
/* sort exporteds by: | */
AccessPointARN provides representation ARN arn.ARN AccessPointName string The ID of the AWS account that owns the resource, without the hyphens. For example, 123456789012. Note that the ARNs for some resources don't require an account number, so this component might be omitted. The partition that the resource is in. For standard AWS regions, the partition is "aws". If you have resources in other partitions, the partition is "aws-partitionname". For example, the partition for resources in the China (Beijing) region is "aws-cn". The region the resource resides in. Note that the ARNs for some resources do not require a region, so this component might be omitted. The content of this part of the ARN varies by service. It often includes an indicator of the type of resource — for example, an IAM user or Amazon RDS database - followed by a slash (/) or a colon (:), followed by the resource name itself. Some services allows paths for resource names, as described in http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arns-paths. The service namespace that identifies the AWS product (for example, Amazon S3, IAM, or Amazon RDS). For a list of namespaces, see http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces. GetARN returns the base ARN for the Access Point resource String returns the canonical representation of the ARN AccessPointARN : Resource AccessPointARN : expvar.Var AccessPointARN : fmt.Stringer func ParseAccessPointResource(a arn.ARN, resParts []string) (AccessPointARN, error)
InvalidARNError provides the error for an invalid ARN error. ARN arn.ARN Reason string Error returns a string denoting the occurred InvalidARNError InvalidARNError : error
OutpostAccessPointARN represents outpost access point ARN. AccessPointARN AccessPointARN AccessPointARN.ARN arn.ARN AccessPointARN.AccessPointName string The ID of the AWS account that owns the resource, without the hyphens. For example, 123456789012. Note that the ARNs for some resources don't require an account number, so this component might be omitted. The partition that the resource is in. For standard AWS regions, the partition is "aws". If you have resources in other partitions, the partition is "aws-partitionname". For example, the partition for resources in the China (Beijing) region is "aws-cn". The region the resource resides in. Note that the ARNs for some resources do not require a region, so this component might be omitted. The content of this part of the ARN varies by service. It often includes an indicator of the type of resource — for example, an IAM user or Amazon RDS database - followed by a slash (/) or a colon (:), followed by the resource name itself. Some services allows paths for resource names, as described in http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arns-paths. The service namespace that identifies the AWS product (for example, Amazon S3, IAM, or Amazon RDS). For a list of namespaces, see http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces. OutpostID string GetARN returns the base ARN for the Access Point resource GetOutpostID returns the outpost id of outpost access point arn String returns the canonical representation of the ARN OutpostAccessPointARN : OutpostARN OutpostAccessPointARN : Resource OutpostAccessPointARN : expvar.Var OutpostAccessPointARN : fmt.Stringer
OutpostARN interface that should be satisfied by outpost ARNs ( OutpostARN) GetARN() arn.ARN ( OutpostARN) GetOutpostID() string ( OutpostARN) String() string OutpostAccessPointARN OutpostBucketARN OutpostARN : Resource OutpostARN : expvar.Var OutpostARN : fmt.Stringer func ParseOutpostARNResource(a arn.ARN, resParts []string) (OutpostARN, error)
OutpostBucketARN represents the outpost bucket ARN. ARN arn.ARN The ID of the AWS account that owns the resource, without the hyphens. For example, 123456789012. Note that the ARNs for some resources don't require an account number, so this component might be omitted. The partition that the resource is in. For standard AWS regions, the partition is "aws". If you have resources in other partitions, the partition is "aws-partitionname". For example, the partition for resources in the China (Beijing) region is "aws-cn". The region the resource resides in. Note that the ARNs for some resources do not require a region, so this component might be omitted. The content of this part of the ARN varies by service. It often includes an indicator of the type of resource — for example, an IAM user or Amazon RDS database - followed by a slash (/) or a colon (:), followed by the resource name itself. Some services allows paths for resource names, as described in http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arns-paths. The service namespace that identifies the AWS product (for example, Amazon S3, IAM, or Amazon RDS). For a list of namespaces, see http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces. BucketName string OutpostID string GetARN retrives the base ARN from outpost bucket ARN resource GetOutpostID returns the outpost id of outpost bucket arn String returns the canonical representation of the ARN OutpostBucketARN : OutpostARN OutpostBucketARN : Resource OutpostBucketARN : expvar.Var OutpostBucketARN : fmt.Stringer
Resource provides the interfaces abstracting ARNs of specific resource types. ( Resource) GetARN() arn.ARN ( Resource) String() string AccessPointARN OutpostAccessPointARN OutpostARN (interface) OutpostBucketARN S3ObjectLambdaAccessPointARN S3ObjectLambdaARN (interface) Resource : expvar.Var Resource : fmt.Stringer func ParseResource(a arn.ARN, resParser ResourceParser) (resARN Resource, err error) func github.com/aws/aws-sdk-go-v2/service/s3/internal/arn.ParseEndpointARN(v awsarn.ARN) (Resource, error) func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewClientConfiguredForAccelerateError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewClientConfiguredForCrossRegionFIPSError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewClientConfiguredForDualStackError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewClientConfiguredForFIPSError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewClientPartitionMismatchError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewClientRegionMismatchError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewFailedToResolveEndpointError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewFIPSConfigurationError(resource Resource, clientPartitionID, clientRegion string, err error) s3shared.ConfigurationError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewInvalidARNError(resource Resource, err error) s3shared.InvalidARNError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewInvalidARNWithFIPSError(resource Resource, err error) s3shared.InvalidARNError func github.com/aws/aws-sdk-go-v2/service/internal/s3shared.NewInvalidARNWithUnsupportedPartitionError(resource Resource, err error) s3shared.InvalidARNError
ResourceParser provides the function for parsing an ARN's resource component into a typed resource. func ParseResource(a arn.ARN, resParser ResourceParser) (resARN Resource, err error)
S3ObjectLambdaAccessPointARN is an S3ObjectLambdaARN for the Access Point resource type AccessPointARN AccessPointARN AccessPointARN.ARN arn.ARN AccessPointARN.AccessPointName string The ID of the AWS account that owns the resource, without the hyphens. For example, 123456789012. Note that the ARNs for some resources don't require an account number, so this component might be omitted. The partition that the resource is in. For standard AWS regions, the partition is "aws". If you have resources in other partitions, the partition is "aws-partitionname". For example, the partition for resources in the China (Beijing) region is "aws-cn". The region the resource resides in. Note that the ARNs for some resources do not require a region, so this component might be omitted. The content of this part of the ARN varies by service. It often includes an indicator of the type of resource — for example, an IAM user or Amazon RDS database - followed by a slash (/) or a colon (:), followed by the resource name itself. Some services allows paths for resource names, as described in http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arns-paths. The service namespace that identifies the AWS product (for example, Amazon S3, IAM, or Amazon RDS). For a list of namespaces, see http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces. GetARN returns the base ARN for the Access Point resource String returns the canonical representation of the ARN S3ObjectLambdaAccessPointARN : Resource S3ObjectLambdaAccessPointARN : S3ObjectLambdaARN S3ObjectLambdaAccessPointARN : expvar.Var S3ObjectLambdaAccessPointARN : fmt.Stringer
S3ObjectLambdaARN represents an ARN for the s3-object-lambda service ( S3ObjectLambdaARN) GetARN() arn.ARN ( S3ObjectLambdaARN) String() string S3ObjectLambdaAccessPointARN S3ObjectLambdaARN : Resource S3ObjectLambdaARN : expvar.Var S3ObjectLambdaARN : fmt.Stringer
Package-Level Functions (total 8, in which 5 are exported)
IsARN returns whether the given string is an ARN
ParseAccessPointResource attempts to parse the ARN's resource as an AccessPoint resource. Supported Access point resource format: - Access point format: arn:{partition}:s3:{region}:{accountId}:accesspoint/{accesspointName} - example: arn:aws:s3:us-west-2:012345678901:accesspoint/myaccesspoint
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:{partition}:s3-outposts:{region}:{accountId}:outpost/{outpostId}/accesspoint/{accesspointName} - example: arn:aws:s3-outposts:us-west-2:012345678901:outpost/op-1234567890123456/accesspoint/myaccesspoint * Outpost Bucket ARN format: - ARN format: arn:{partition}:s3-outposts:{region}:{accountId}:outpost/{outpostId}/bucket/{bucketName} - 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.
ParseResource parses an AWS ARN into a typed resource for the S3 API.
SplitResource splits the resource components by the ARN resource delimiters.
Package-Level Variables (only one, which is unexported)