@@ -14,11 +14,9 @@ import {
1414 validateCustomEndpoint ,
1515 validateDNSHostLabel ,
1616 validateMrapAlias ,
17- validateNoDualstack ,
1817 validateNoFIPS ,
1918 validateOutpostService ,
2019 validatePartition ,
21- validateRegion ,
2220 validateRegionalClient ,
2321 validateS3Service ,
2422 validateService ,
@@ -121,14 +119,6 @@ const getEndpointFromObjectLambdaArn = ({
121119} ) : BucketHostname => {
122120 const { accountId, region, service } = bucketName ;
123121 validateRegionalClient ( clientRegion ) ;
124- validateRegion ( region , {
125- useArnRegion,
126- clientRegion,
127- clientSigningRegion,
128- allowFipsRegion : true ,
129- useFipsEndpoint : fipsEndpoint ,
130- } ) ;
131- validateNoDualstack ( dualstackEndpoint ) ;
132122 const DNSHostLabel = `${ accesspointName } -${ accountId } ` ;
133123 validateDNSHostLabel ( DNSHostLabel , { tlsCompatible } ) ;
134124
@@ -155,7 +145,6 @@ const getEndpointFromMRAPArn = ({
155145 throw new Error ( "SDK is attempting to use a MRAP ARN. Please enable to feature." ) ;
156146 }
157147 validateMrapAlias ( mrapAlias ) ;
158- validateNoDualstack ( dualstackEndpoint ) ;
159148 return {
160149 bucketEndpoint : true ,
161150 hostname : `${ mrapAlias } ${ isCustomEndpoint ? "" : `.accesspoint.s3-global` } .${ hostnameSuffix } ` ,
@@ -178,14 +167,12 @@ const getEndpointFromOutpostArn = ({
178167} : ArnHostnameParams & { outpostId : string ; accesspointName : string ; hostnameSuffix : string } ) : BucketHostname => {
179168 // if this is an Outpost ARN
180169 validateRegionalClient ( clientRegion ) ;
181- validateRegion ( bucketName . region , { useArnRegion, clientRegion, clientSigningRegion, useFipsEndpoint : fipsEndpoint } ) ;
182170 const DNSHostLabel = `${ accesspointName } -${ bucketName . accountId } ` ;
183171 validateDNSHostLabel ( DNSHostLabel , { tlsCompatible } ) ;
184172 const endpointRegion = useArnRegion ? bucketName . region : clientRegion ;
185173 const signingRegion = useArnRegion ? bucketName . region : clientSigningRegion ;
186174 validateOutpostService ( bucketName . service ) ;
187175 validateDNSHostLabel ( outpostId , { tlsCompatible } ) ;
188- validateNoDualstack ( dualstackEndpoint ) ;
189176 validateNoFIPS ( fipsEndpoint ) ;
190177 const hostnamePrefix = `${ DNSHostLabel } .${ outpostId } ` ;
191178 return {
@@ -210,13 +197,6 @@ const getEndpointFromAccessPointArn = ({
210197} : ArnHostnameParams & { accesspointName : string ; hostnameSuffix : string } ) : BucketHostname => {
211198 // construct endpoint from Accesspoint ARN
212199 validateRegionalClient ( clientRegion ) ;
213- validateRegion ( bucketName . region , {
214- useArnRegion,
215- clientRegion,
216- clientSigningRegion,
217- allowFipsRegion : true ,
218- useFipsEndpoint : fipsEndpoint ,
219- } ) ;
220200 const hostnamePrefix = `${ accesspointName } -${ bucketName . accountId } ` ;
221201 validateDNSHostLabel ( hostnamePrefix , { tlsCompatible } ) ;
222202 const endpointRegion = useArnRegion ? bucketName . region : clientRegion ;
0 commit comments