github.com/aavshr/aws-sdk-go@v1.41.3/aws/endpoints/v3model_shared_test.go (about) 1 package endpoints 2 3 import "regexp" 4 5 var testPartitions = partitions{ 6 partition{ 7 ID: "part-id", 8 Name: "partitionName", 9 DNSSuffix: "amazonaws.com", 10 RegionRegex: regionRegex{ 11 Regexp: func() *regexp.Regexp { 12 reg, _ := regexp.Compile("^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$") 13 return reg 14 }(), 15 }, 16 Defaults: endpoint{ 17 Hostname: "{service}.{region}.{dnsSuffix}", 18 Protocols: []string{"https"}, 19 SignatureVersions: []string{"v4"}, 20 }, 21 Regions: regions{ 22 "us-east-1": region{ 23 Description: "region description", 24 }, 25 "us-west-2": region{}, 26 }, 27 Services: services{ 28 "s3": service{}, 29 "service1": service{ 30 Defaults: endpoint{ 31 CredentialScope: credentialScope{ 32 Service: "service1", 33 }, 34 }, 35 Endpoints: endpoints{ 36 "us-east-1": {}, 37 "us-west-2": { 38 HasDualStack: boxedTrue, 39 DualStackHostname: "{service}.dualstack.{region}.{dnsSuffix}", 40 }, 41 }, 42 }, 43 "service2": service{ 44 Defaults: endpoint{ 45 CredentialScope: credentialScope{ 46 Service: "service2", 47 }, 48 }, 49 }, 50 "httpService": service{ 51 Defaults: endpoint{ 52 Protocols: []string{"http"}, 53 }, 54 }, 55 "globalService": service{ 56 IsRegionalized: boxedFalse, 57 PartitionEndpoint: "aws-global", 58 Endpoints: endpoints{ 59 "aws-global": endpoint{ 60 CredentialScope: credentialScope{ 61 Region: "us-east-1", 62 }, 63 Hostname: "globalService.amazonaws.com", 64 }, 65 "fips-aws-global": endpoint{ 66 CredentialScope: credentialScope{ 67 Region: "us-east-1", 68 }, 69 Hostname: "globalService-fips.amazonaws.com", 70 }, 71 }, 72 }, 73 }, 74 }, 75 }