Documentation ¶
Index ¶
- Variables
- func EnvAthenaEndpoint() string
- func EnvCloudwatchLogsEndpoint() string
- func EnvDynamoDBEndpoint() string
- func EnvEC2Endpoint() string
- func EnvEndpoint() string
- func EnvKMSEndpoint() string
- func EnvPinpointEmailEndpoint() string
- func EnvRegion() string
- func EnvS3Endpoint() string
- func EnvSESEndpoint() string
- func EnvSNSEndpoint() string
- func EnvSQSEndpoint() string
- func EnvSSMEndpoint() string
- type Config
- type DebugTransport
- type Endpoints
- func (e Endpoints) GetAthena() aws.ResolveWithEndpoint
- func (e Endpoints) GetCloudwatchLogs() aws.ResolveWithEndpoint
- func (e Endpoints) GetDynamoDB() aws.ResolveWithEndpoint
- func (e Endpoints) GetEC2() aws.ResolveWithEndpoint
- func (e Endpoints) GetKMS() aws.ResolveWithEndpoint
- func (e Endpoints) GetPinpointEmail() aws.ResolveWithEndpoint
- func (e Endpoints) GetS3() aws.ResolveWithEndpoint
- func (e Endpoints) GetSES() aws.ResolveWithEndpoint
- func (e Endpoints) GetSSM() aws.ResolveWithEndpoint
- func (e Endpoints) HasAthena() bool
- func (e Endpoints) HasCloudwatchLogs() bool
- func (e Endpoints) HasDynamoDB() bool
- func (e Endpoints) HasEC2() bool
- func (e Endpoints) HasKMS() bool
- func (e Endpoints) HasPinpointEmail() bool
- func (e Endpoints) HasS3() bool
- func (e Endpoints) HasSES() bool
- func (e Endpoints) HasSSM() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDebugTransport = &DebugTransport{ Transport: http.DefaultTransport, }
Functions ¶
func EnvAthenaEndpoint ¶ added in v0.2.6
func EnvAthenaEndpoint() string
EnvAthenaEndpoint get Athena endpoint from env vars.
func EnvCloudwatchLogsEndpoint ¶ added in v0.2.4
func EnvCloudwatchLogsEndpoint() string
EnvCloudwatchLogsEndpoint get CloudwatchLogs endpoint from env vars.
func EnvDynamoDBEndpoint ¶
func EnvDynamoDBEndpoint() string
EnvDynamoDBEndpoint get DynamoDB endpoint from env vars.
func EnvKMSEndpoint ¶ added in v0.0.4
func EnvKMSEndpoint() string
EnvKMSEndpoint get KMS endpoint from env vars.
func EnvPinpointEmailEndpoint ¶ added in v0.2.3
func EnvPinpointEmailEndpoint() string
EnvPinpointEmailEndpoint get PinpointEmail endpoint from env vars.
func EnvSESEndpoint ¶ added in v0.2.7
func EnvSESEndpoint() string
EnvSESEndpoint get SES endpoint from env vars.
func EnvSSMEndpoint ¶ added in v0.2.1
func EnvSSMEndpoint() string
EnvSSMEndpoint get SSM endpoint from env vars.
Types ¶
type Config ¶
type Config struct { Region string CommonEndpoint string Endpoints Endpoints Logger log.Logger EnableDefaultCreds bool // Static Credentials AccessKey string SecretKey string // File Credentials Filename string Profile string // DefaultPrefix is used for service resource prefix // e.g.) DynamoDB table, S3 bucket, SQS Queue DefaultPrefix string // Specific sevice's options S3ForcePathStyle bool // Custom Function to wrap errors. ErrWrap func(errors.ErrorData) error // Custom HTTP Client CustomHTTPClient *http.Client // Showing req/resp data when `true` (Cannot use with CustomHTTPClient) UseDebugRequest bool }
Config has AWS settings.
type DebugTransport ¶ added in v0.2.0
type DebugTransport struct {
Transport http.RoundTripper
}
DebugTransport implements http.RoundTripper and showing request/response contents.
type Endpoints ¶
type Endpoints struct { Athena string CloudwatchLogs string DynamoDB string EC2 string KMS string PinpointEmail string S3 string SES string SSM string }
func (Endpoints) GetAthena ¶ added in v0.2.6
func (e Endpoints) GetAthena() aws.ResolveWithEndpoint
func (Endpoints) GetCloudwatchLogs ¶ added in v0.2.4
func (e Endpoints) GetCloudwatchLogs() aws.ResolveWithEndpoint
func (Endpoints) GetDynamoDB ¶ added in v0.0.3
func (e Endpoints) GetDynamoDB() aws.ResolveWithEndpoint
func (Endpoints) GetEC2 ¶
func (e Endpoints) GetEC2() aws.ResolveWithEndpoint
func (Endpoints) GetKMS ¶ added in v0.0.4
func (e Endpoints) GetKMS() aws.ResolveWithEndpoint
func (Endpoints) GetPinpointEmail ¶ added in v0.2.3
func (e Endpoints) GetPinpointEmail() aws.ResolveWithEndpoint
func (Endpoints) GetS3 ¶
func (e Endpoints) GetS3() aws.ResolveWithEndpoint
func (Endpoints) GetSES ¶ added in v0.2.7
func (e Endpoints) GetSES() aws.ResolveWithEndpoint
func (Endpoints) GetSSM ¶ added in v0.2.1
func (e Endpoints) GetSSM() aws.ResolveWithEndpoint
func (Endpoints) HasCloudwatchLogs ¶ added in v0.2.4
func (Endpoints) HasDynamoDB ¶ added in v0.0.3
func (Endpoints) HasPinpointEmail ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.