From 13251299180f7d772ef40a41a3a2167a7dbfb72c Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Tue, 21 Nov 2023 03:34:14 -0800 Subject: [PATCH] Add `WithUseFIPSEndpoint` to `aws.Config` --- CHANGELOG_PENDING.md | 1 + aws/config.go | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 8a1927a39ca..ba6d2929b8b 100644 --- a/CHANGELOG_PENDING.md +++ b/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 diff --git a/aws/config.go b/aws/config.go index 776e31b21d6..ca89895242a 100644 --- a/aws/config.go +++ b/aws/config.go @@ -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 {