Skip to content

Commit

Permalink
Merge pull request #5078 from reedloden/reed/withusefipsendpoint
Browse files Browse the repository at this point in the history
Add `WithUseFIPSEndpoint` to `aws.Config`
  • Loading branch information
lucix-aws authored Dec 22, 2023
2 parents f772167 + 28808e3 commit 04c15fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### SDK Features

### SDK Enhancements
* `aws`: Add `WithUseFIPSEndpoint` to `aws.Config`. ([#5078](https://github.com/aws/aws-sdk-go/pull/5078))
* `WithUseFIPSEndpoint` can be used to explicitly enable or disable FIPS endpoint variants.

### SDK Bugs
11 changes: 11 additions & 0 deletions aws/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,17 @@ 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(enable bool) *Config {
if enable {
c.UseFIPSEndpoint = endpoints.FIPSEndpointStateEnabled
} else {
c.UseFIPSEndpoint = endpoints.FIPSEndpointStateDisabled
}
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 04c15fc

Please sign in to comment.