Skip to content

Commit

Permalink
DefaultsMode Documentation Fixes (#1599)
Browse files Browse the repository at this point in the history
Regenerates API clients to refer to correct DefaultMode constants.
  • Loading branch information
skmcgrail authored Feb 24, 2022
1 parent 07719a1 commit c214cb6
Show file tree
Hide file tree
Showing 312 changed files with 617 additions and 617 deletions.
2 changes: 1 addition & 1 deletion aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type Config struct {
DefaultsMode DefaultsMode

// The RuntimeEnvironment configuration, only populated if the DefaultsMode
// is set to AutoDefaultsMode and is initialized by
// is set to DefaultsModeAuto and is initialized by
// `config.LoadDefaultConfig`. You should not populate this structure
// programmatically, or rely on the values here within your applications.
RuntimeEnvironment RuntimeEnvironment
Expand Down
2 changes: 1 addition & 1 deletion aws/defaults/auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var getGOOS = func() string {
}

// ResolveDefaultsModeAuto is used to determine the effective aws.DefaultsMode when the mode
// is set to aws.AutoDefaultsMode.
// is set to aws.DefaultsModeAuto.
func ResolveDefaultsModeAuto(region string, environment aws.RuntimeEnvironment) aws.DefaultsMode {
goos := getGOOS()
if goos == "android" || goos == "ios" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class AddAwsConfigFields implements GoIntegration {
.type(getAwsCoreSymbol("RuntimeEnvironment"))
.documentation("""
The RuntimeEnvironment configuration, only populated if the DefaultsMode is set to
AutoDefaultsMode and is initialized using `config.LoadDefaultConfig`. You should not
DefaultsModeAuto and is initialized using `config.LoadDefaultConfig`. You should not
populate this structure programmatically, or rely on the values here within your
applications.
""")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class ClientResolvedDefaultsMode implements GoIntegration {
.build())
.documentation("""
The initial DefaultsMode used when the client options were constructed. If the
DefaultsMode was set to aws.AutoDefaultsMode this will store what the resolved value
DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved value
was at that point in time.
Currently does not support per operation call overrides, may in the future.
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var defaultAWSConfigResolvers = []awsConfigResolver{
resolveAPIOptions,

// Resolves the DefaultsMode that should be used by SDK clients. If this
// mode is set to AutoDefaultsMode.
// mode is set to DefaultsModeAuto.
//
// Comes after HTTPClient and CustomCABundle to ensure the HTTP client is
// configured if provided before invoking IMDS if mode is auto. Comes
Expand Down
2 changes: 1 addition & 1 deletion config/defaultsmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type DefaultsModeOptions struct {
Mode aws.DefaultsMode

// The EC2 Instance Metadata Client that should be used when performing environment
// discovery when aws.AutoDefaultsMode is set.
// discovery when aws.DefaultsModeAuto is set.
//
// If not specified the SDK will construct a client if the instance metadata service has not been disabled by
// the AWS_EC2_METADATA_DISABLED environment variable.
Expand Down
2 changes: 1 addition & 1 deletion config/load_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ func (o LoadOptions) GetUseFIPSEndpoint(ctx context.Context) (value aws.FIPSEndp
// WithDefaultsMode sets the SDK defaults configuration mode to the value provided.
//
// Zero or more functional options can be provided to provide configuration options for performing
// environment discovery when using aws.AutoDefaultsMode.
// environment discovery when using aws.DefaultsModeAuto.
func WithDefaultsMode(mode aws.DefaultsMode, optFns ...func(options *DefaultsModeOptions)) LoadOptionsFunc {
do := DefaultsModeOptions{
Mode: mode,
Expand Down
4 changes: 2 additions & 2 deletions internal/protocoltest/awsrestjson/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/protocoltest/ec2query/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/protocoltest/jsonrpc/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/protocoltest/jsonrpc10/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/protocoltest/query/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/protocoltest/restxml/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/protocoltest/restxmlwithnamespace/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/accessanalyzer/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/account/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/acm/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/acmpca/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/alexaforbusiness/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/amp/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/amplify/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/amplifybackend/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/amplifyuibuilder/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/apigateway/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/apigatewaymanagementapi/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions service/apigatewayv2/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c214cb6

Please sign in to comment.