Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/3rdparty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'aws/aws-sdk-php/src/S3Control/EndpointArnMiddleware.php')
-rw-r--r--aws/aws-sdk-php/src/S3Control/EndpointArnMiddleware.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/aws/aws-sdk-php/src/S3Control/EndpointArnMiddleware.php b/aws/aws-sdk-php/src/S3Control/EndpointArnMiddleware.php
index c1e137ee..2e9c68f9 100644
--- a/aws/aws-sdk-php/src/S3Control/EndpointArnMiddleware.php
+++ b/aws/aws-sdk-php/src/S3Control/EndpointArnMiddleware.php
@@ -249,8 +249,11 @@ class EndpointArnMiddleware
} else {
$region = $this->region;
}
+ $fipsString = $this->config['use_fips_endpoint']->isUseFipsEndpoint()
+ ? "-fips"
+ : "";
$suffix = $this->getPartitionSuffix($arn, $this->partitionProvider);
- return "s3-outposts.{$region}.{$suffix}";
+ return "s3-outposts{$fipsString}.{$region}.{$suffix}";
}
private function generateOutpostIdHost()
@@ -313,7 +316,7 @@ class EndpointArnMiddleware
// If client partition not found, try removing pseudo-region qualifiers
if (!($clientPart->isRegionMatch($this->region, 's3'))) {
$clientPart = $this->partitionProvider->getPartition(
- $this->stripPseudoRegions($this->region),
+ \Aws\strip_fips_pseudo_regions($this->region),
's3'
);
}