Documentation
¶
Index ¶
- func CreateSession(config *SessionConfig) (*session.Session, error)
- type SessionConfig
- func NewSessionConfigForDestination(destination *backendconfig.DestinationT, timeout time.Duration, ...) (*SessionConfig, error)
- func NewSimpleSessionConfig(config map[string]interface{}, serviceName string) (*SessionConfig, error)
- func NewSimpleSessionConfigForDestination(destination *backendconfig.DestinationT, serviceName string) (*SessionConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSession ¶
func CreateSession(config *SessionConfig) (*session.Session, error)
Types ¶
type SessionConfig ¶
type SessionConfig struct {
Region string `mapstructure:"region"`
AccessKeyID string `mapstructure:"accessKeyID"`
AccessKey string `mapstructure:"accessKey"`
SecretAccessKey string `mapstructure:"secretAccessKey"`
RoleBasedAuth bool `mapstructure:"roleBasedAuth"`
IAMRoleARN string `mapstructure:"iamRoleARN"`
ExternalID string `mapstructure:"externalID"`
WorkspaceID string `mapstructure:"workspaceID"`
Endpoint *string `mapstructure:"endpoint"`
S3ForcePathStyle *bool `mapstructure:"s3ForcePathStyle"`
DisableSSL *bool `mapstructure:"disableSSL"`
Service string `mapstructure:"service"`
Timeout *time.Duration `mapstructure:"timeout"`
}
Some AWS destinations are using SecretAccessKey instead of accessKey
func NewSessionConfigForDestination ¶ added in v1.2.0
func NewSessionConfigForDestination(destination *backendconfig.DestinationT, timeout time.Duration, serviceName string) (*SessionConfig, error)
func NewSimpleSessionConfig ¶ added in v1.4.5
func NewSimpleSessionConfig(config map[string]interface{}, serviceName string) (*SessionConfig, error)
func NewSimpleSessionConfigForDestination ¶ added in v1.2.0
func NewSimpleSessionConfigForDestination(destination *backendconfig.DestinationT, serviceName string) (*SessionConfig, error)
Click to show internal directories.
Click to hide internal directories.