Documentation ¶
Overview ¶
Package claws provides the official AWS SDK (v2)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamoEndpointDecorator ¶ added in v0.7.4
DynamoEndpointDecorator will change the resolvers to set the dynamodb endpoint since this AWS supports a local version of Dynamo.
func New ¶
func New( cfg Config, logs *zap.Logger, trp trace.TracerProvider, txtp propagation.TextMapPropagator, ) (aws.Config, error)
New initialize an AWS config to be used to create clients for individual aws services. We would like run this during fx lifecycle phase to provide it with a context because it can block. But too many dependencies would have to wait for it.
Types ¶
type Config ¶
type Config struct { // LoadConfigTimeout bounds the time given to config loading LoadConfigTimeout time.Duration `env:"LOAD_CONFIG_TIMEOUT" envDefault:"100ms"` // OverwriteAccessKeyID can be set to overwrite regular credentials loading chain and just a static key/secret OverwriteAccessKeyID string `env:"OVERWRITE_ACCESS_KEY_ID"` // If OverwriteAccessKeyID this wil be used as the secret OverwriteSecretAccessKey string `env:"OVERWRITE_SECRET_ACCESS_KEY"` // If OverwriteAccessKeyID this wil be used as the session token OverwriteSessionToken string `env:"OVERWRITE_SESSION_TOKEN"` }
Config configures this package.
Click to show internal directories.
Click to hide internal directories.