]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / aws / aws-sdk-go / aws / endpoints / endpoints.go
index 9c3eedb48d5df62a62d18326831a8c15752e3023..e29c095121dcc852ec7fc2656b43f169d925a47c 100644 (file)
@@ -206,10 +206,11 @@ func (p Partition) EndpointFor(service, region string, opts ...func(*Options)) (
 // enumerating over the regions in a partition.
 func (p Partition) Regions() map[string]Region {
        rs := map[string]Region{}
-       for id := range p.p.Regions {
+       for id, r := range p.p.Regions {
                rs[id] = Region{
-                       id: id,
-                       p:  p.p,
+                       id:   id,
+                       desc: r.Description,
+                       p:    p.p,
                }
        }
 
@@ -240,6 +241,10 @@ type Region struct {
 // ID returns the region's identifier.
 func (r Region) ID() string { return r.id }
 
+// Description returns the region's description. The region description
+// is free text, it can be empty, and it may change between SDK releases.
+func (r Region) Description() string { return r.desc }
+
 // ResolveEndpoint resolves an endpoint from the context of the region given
 // a service. See Partition.EndpointFor for usage and errors that can be returned.
 func (r Region) ResolveEndpoint(service string, opts ...func(*Options)) (ResolvedEndpoint, error) {
@@ -284,10 +289,11 @@ func (s Service) ResolveEndpoint(region string, opts ...func(*Options)) (Resolve
 func (s Service) Regions() map[string]Region {
        rs := map[string]Region{}
        for id := range s.p.Services[s.id].Endpoints {
-               if _, ok := s.p.Regions[id]; ok {
+               if r, ok := s.p.Regions[id]; ok {
                        rs[id] = Region{
-                               id: id,
-                               p:  s.p,
+                               id:   id,
+                               desc: r.Description,
+                               p:    s.p,
                        }
                }
        }
@@ -347,6 +353,10 @@ type ResolvedEndpoint struct {
        // The service name that should be used for signing requests.
        SigningName string
 
+       // States that the signing name for this endpoint was derived from metadata
+       // passed in, but was not explicitly modeled.
+       SigningNameDerived bool
+
        // The signing method that should be used for signing requests.
        SigningMethod string
 }