Skip to content

Commit

Permalink
Add WithUseFIPSEndpoint to aws.Config
Browse files Browse the repository at this point in the history
  • Loading branch information
reedloden committed Nov 21, 2023
1 parent 933cc70 commit 1325129
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_PENDING.md
@@ -1,5 +1,6 @@
### SDK Features

### SDK Enhancements
* `aws`: Add `WithUseFIPSEndpoint` to `aws.Config`. ([#5078](https://github.com/aws/aws-sdk-go/pull/5078))

### SDK Bugs
7 changes: 7 additions & 0 deletions aws/config.go
Expand Up @@ -442,6 +442,13 @@ func (c *Config) WithUseDualStack(enable bool) *Config {
return c
}

// WithUseFIPSEndpoint sets a config UseFIPSEndpoint value returning a Config
// pointer for chaining.
func (c *Config) WithUseFIPSEndpoint(fes endpoints.FIPSEndpointState) *Config {
c.UseFIPSEndpoint = fes
return c
}

// WithEC2MetadataDisableTimeoutOverride sets a config EC2MetadataDisableTimeoutOverride value
// returning a Config pointer for chaining.
func (c *Config) WithEC2MetadataDisableTimeoutOverride(enable bool) *Config {
Expand Down

0 comments on commit 1325129

Please sign in to comment.