awsconfig

package
v0.0.0-...-cb8232f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package awsconfig generates AWS client configurations optimized for use by the randomizer.

Index

Constants

View Source
const (
	// DefaultTimeout is set to half of the 3-second response time limit that
	// Slack imposes on slash commands.
	DefaultTimeout = 1500 * time.Millisecond

	// DefaultRetryMaxAttempts allows up to 2 attempts to make AWS API calls.
	// Based on Slack's 3-second response time limit and our default timeout,
	// it's unlikely that we'll get many more attempts than this.
	DefaultRetryMaxAttempts = 2
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, extraOptions ...Option) (aws.Config, error)

New creates a new AWS client configuration using reasonable default settings for timeouts and retries.

Types

type Option

type Option = func(*config.LoadOptions) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL