Struct: kms.Options

import "../ibm-cos-sdk-go-v2/service/kms"

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

AppID string

The optional application specific identifier appended to the User-Agent header.

AuthSchemeResolver AuthSchemeResolver

The auth scheme resolver which determines how to authenticate for each operation.

AuthSchemes []smithyhttp.AuthScheme

The list of auth schemes supported by the client.

BaseEndpoint *string

This endpoint will be given as input to an EndpointResolverV2. It is used for providing a custom base endpoint that is subject to modifications by the processing EndpointResolverV2.

ClientLogMode aws.ClientLogMode

Configures the events that will be sent to the configured logger.

Credentials aws.CredentialsProvider

The credentials object to use when signing requests.

DefaultsMode aws.DefaultsMode

The configuration DefaultsMode that the SDK should use when constructing the clients initial default settings.

EndpointOptions EndpointResolverOptions

The endpoint options to be used when attempting to resolve an endpoint.

EndpointResolver EndpointResolver

The service endpoint resolver.

Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.

To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.

EndpointResolverV2 EndpointResolverV2

Resolves the endpoint used for a particular service operation. This should be used over the deprecated EndpointResolver.

HTTPClient HTTPClient

The HTTP client to invoke API calls with. Defaults to client’s default HTTP implementation if nil.

HTTPSignerV4 HTTPSignerV4

Signature Version 4 (SigV4) Signer

Logger logging.Logger

The logger writer interface to write logging messages to.

MeterProvider metrics.MeterProvider

The client meter provider.

Region string

The region to send requests to. (Required)

RetryMaxAttempts int

RetryMaxAttempts specifies the maximum number attempts an API client will call an operation that fails with a retryable error. A value of 0 is ignored, and will not be used to configure the API client created default retryer, or modify per operation call’s retry max attempts.

If specified in an operation call’s functional options with a value that is different than the constructed client’s Options, the Client’s Retryer will be wrapped to use the operation’s specific RetryMaxAttempts value.

RetryMode aws.RetryMode

RetryMode specifies the retry mode the API client will be created with, if Retryer option is not also specified.

When creating a new API Clients this member will only be used if the Retryer Options member is nil. This value will be ignored if Retryer is not nil.

Currently does not support per operation call overrides, may in the future.

Retryer aws.Retryer

Retryer guides how HTTP requests should be retried in case of recoverable failures. When nil the API client will use a default retryer. The kind of default retry created by the API client can be changed with the RetryMode option.

RuntimeEnvironment aws.RuntimeEnvironment

The RuntimeEnvironment configuration, only populated if the DefaultsMode is set to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You should not populate this structure programmatically, or rely on the values here within your applications.

TracerProvider tracing.TracerProvider

The client tracer provider.

Method Details

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.



130
131
132
133
134
135
136
// File 'service/kms/options.go', line 130

func (o Options) Copy() Options { to := o to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) copy(to.APIOptions, o.APIOptions) return to }

func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver



138
139
140
141
142
143
144
145
146
// File 'service/kms/options.go', line 138

func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver { if schemeID == "aws.auth#sigv4" { return getSigV4IdentityResolver(o) } if schemeID == "smithy.api#noAuth" { return &smithyauth.AnonymousIdentityResolver{} } return nil }