...

Package endpoints

import "github.com/aws/aws-sdk-go-v2/internal/endpoints"
Overview
Index
Subdirectories

Overview ▾

func MapFIPSRegion

func MapFIPSRegion(region string) string

MapFIPSRegion extracts the intrinsic AWS region from one that may have an embedded FIPS microformat.

type CredentialScope

CredentialScope is the credential scope of a region and service

type CredentialScope struct {
    Region  string
    Service string
}

type Endpoint

Endpoint is a service endpoint description

type Endpoint struct {
    // True if the endpoint cannot be resolved for this partition/region/service
    Unresolveable aws.Ternary

    Hostname  string
    Protocols []string

    CredentialScope CredentialScope

    SignatureVersions []string `json:"signatureVersions"`
}

type Endpoints

Endpoints is a map of service config regions to endpoints

type Endpoints map[string]Endpoint

type Options

Options provide configuration needed to direct how endpoints are resolved.

type Options struct {
    // Disable usage of HTTPS (TLS / SSL)
    DisableHTTPS bool
}

type Partition

Partition is an AWS partition description for a service and its' region endpoints.

type Partition struct {
    ID                string
    RegionRegex       *regexp.Regexp
    PartitionEndpoint string
    IsRegionalized    bool
    Defaults          Endpoint
    Endpoints         Endpoints
}

func (Partition) ResolveEndpoint

func (p Partition) ResolveEndpoint(region string, options Options) (resolved aws.Endpoint, err error)

ResolveEndpoint resolves and service endpoint for the given region and options.

type Partitions

Partitions is a slice of partition

type Partitions []Partition

func (Partitions) ResolveEndpoint

func (ps Partitions) ResolveEndpoint(region string, opts Options) (aws.Endpoint, error)

ResolveEndpoint resolves a service endpoint for the given region and options.

Subdirectories

Name Synopsis
..