Struct: defaults.Configuration

import "../ibm-cos-sdk-go-v2/aws/defaults"

Overview

Configuration is the set of SDK configuration options that are determined based on the configured DefaultsMode.

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

ConnectTimeout *time.Duration

ConnectTimeout is the maximum amount of time a dial will wait for a connect to complete.

See pkg.go.dev/net#Dialer.Timeout

RetryMode aws.RetryMode

RetryMode is the configuration’s default retry mode API clients should use for constructing a Retryer.

TLSNegotiationTimeout *time.Duration

TLSNegotiationTimeout specifies the maximum amount of time waiting to wait for a TLS handshake.

See pkg.go.dev/net/http#Transport.TLSHandshakeTimeout

Method Details

func (c *Configuration) GetConnectTimeout() (time.Duration, bool)

GetConnectTimeout returns the ConnectTimeout value, returns false if the value is not set.



29
30
31
32
33
34
// File 'aws/defaults/configuration.go', line 29

func (c *Configuration) GetConnectTimeout() (time.Duration, bool) { if c.ConnectTimeout == nil { return 0, false } return *c.ConnectTimeout, true }

func (c *Configuration) GetTLSNegotiationTimeout() (time.Duration, bool)

GetTLSNegotiationTimeout returns the TLSNegotiationTimeout value, returns false if the value is not set.



37
38
39
40
41
42
// File 'aws/defaults/configuration.go', line 37

func (c *Configuration) GetTLSNegotiationTimeout() (time.Duration, bool) { if c.TLSNegotiationTimeout == nil { return 0, false } return *c.TLSNegotiationTimeout, true }