@aws-sdk/middleware-bucket-endpoint 3.168.0 → 3.170.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-bucket-endpoint
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/middleware-bucket-endpoint
@@ -1,4 +1,6 @@
1
- import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2
- export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
3
- export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
4
- export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
1
+ import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2
+ export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME =
3
+ "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
4
+ export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME =
5
+ "s3_disable_multiregion_access_points";
6
+ export declare const NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -1,5 +1,5 @@
1
- import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2
- export declare const NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
3
- export declare const NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
4
-
5
- export declare const NODE_USE_ARN_REGION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
1
+ import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2
+ export declare const NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
3
+ export declare const NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
4
+
5
+ export declare const NODE_USE_ARN_REGION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -1,5 +1,13 @@
1
- import { BuildMiddleware, Pluggable, RelativeMiddlewareOptions } from "@aws-sdk/types";
2
- import { BucketEndpointResolvedConfig } from "./configurations";
3
- export declare const bucketEndpointMiddleware: (options: BucketEndpointResolvedConfig) => BuildMiddleware<any, any>;
4
- export declare const bucketEndpointMiddlewareOptions: RelativeMiddlewareOptions;
5
- export declare const getBucketEndpointPlugin: (options: BucketEndpointResolvedConfig) => Pluggable<any, any>;
1
+ import {
2
+ BuildMiddleware,
3
+ Pluggable,
4
+ RelativeMiddlewareOptions,
5
+ } from "@aws-sdk/types";
6
+ import { BucketEndpointResolvedConfig } from "./configurations";
7
+ export declare const bucketEndpointMiddleware: (
8
+ options: BucketEndpointResolvedConfig
9
+ ) => BuildMiddleware<any, any>;
10
+ export declare const bucketEndpointMiddlewareOptions: RelativeMiddlewareOptions;
11
+ export declare const getBucketEndpointPlugin: (
12
+ options: BucketEndpointResolvedConfig
13
+ ) => Pluggable<any, any>;
@@ -1,8 +1,10 @@
1
- import { ArnHostnameParams, BucketHostnameParams } from "./bucketHostnameUtils";
2
- export interface BucketHostname {
3
- hostname: string;
4
- bucketEndpoint: boolean;
5
- signingRegion?: string;
6
- signingService?: string;
7
- }
8
- export declare const bucketHostname: (options: BucketHostnameParams | ArnHostnameParams) => BucketHostname;
1
+ import { ArnHostnameParams, BucketHostnameParams } from "./bucketHostnameUtils";
2
+ export interface BucketHostname {
3
+ hostname: string;
4
+ bucketEndpoint: boolean;
5
+ signingRegion?: string;
6
+ signingService?: string;
7
+ }
8
+ export declare const bucketHostname: (
9
+ options: BucketHostnameParams | ArnHostnameParams
10
+ ) => BucketHostname;
@@ -1,80 +1,95 @@
1
- import { ARN } from "@aws-sdk/util-arn-parser";
2
- export declare const DOT_PATTERN: RegExp;
3
- export declare const S3_HOSTNAME_PATTERN: RegExp;
4
- export interface AccessPointArn extends ARN {
5
- accessPointName: string;
6
- }
7
- export interface BucketHostnameParams {
8
- isCustomEndpoint: boolean;
9
- baseHostname: string;
10
- bucketName: string;
11
- clientRegion: string;
12
- accelerateEndpoint?: boolean;
13
- dualstackEndpoint?: boolean;
14
- fipsEndpoint?: boolean;
15
- pathStyleEndpoint?: boolean;
16
- tlsCompatible?: boolean;
17
- }
18
- export interface ArnHostnameParams extends Pick<BucketHostnameParams, Exclude<keyof BucketHostnameParams, "bucketName">> {
19
- bucketName: ARN;
20
- clientSigningRegion?: string;
21
- clientPartition?: string;
22
- useArnRegion?: boolean;
23
- disableMultiregionAccessPoints?: boolean;
24
- }
25
- export declare const isBucketNameOptions: (options: BucketHostnameParams | ArnHostnameParams) => options is BucketHostnameParams;
26
-
27
- export declare const isDnsCompatibleBucketName: (bucketName: string) => boolean;
28
- export declare const getSuffix: (hostname: string) => [
29
- string,
30
- string
31
- ];
32
-
33
- export declare const getSuffixForArnEndpoint: (hostname: string) => [
34
- string,
35
- string
36
- ];
37
- export declare const validateArnEndpointOptions: (options: {
38
- accelerateEndpoint?: boolean;
39
- tlsCompatible?: boolean;
40
- pathStyleEndpoint?: boolean;
41
- }) => void;
42
- export declare const validateService: (service: string) => void;
43
- export declare const validateS3Service: (service: string) => void;
44
- export declare const validateOutpostService: (service: string) => void;
45
-
46
- export declare const validatePartition: (partition: string, options: {
47
- clientPartition: string;
48
- }) => void;
49
-
50
- export declare const validateRegion: (region: string, options: {
51
- useArnRegion?: boolean;
52
- allowFipsRegion?: boolean;
53
- clientRegion: string;
54
- clientSigningRegion: string;
55
- useFipsEndpoint: boolean;
56
- }) => void;
57
-
58
- export declare const validateRegionalClient: (region: string) => void;
59
-
60
- export declare const validateAccountId: (accountId: string) => void;
61
-
62
- export declare const validateDNSHostLabel: (label: string, options?: {
63
- tlsCompatible?: boolean;
64
- }) => void;
65
- export declare const validateCustomEndpoint: (options: {
66
- isCustomEndpoint?: boolean;
67
- dualstackEndpoint?: boolean;
68
- accelerateEndpoint?: boolean;
69
- }) => void;
70
-
71
- export declare const getArnResources: (resource: string) => {
72
- accesspointName: string;
73
- outpostId?: string;
74
- };
75
-
76
- export declare const validateNoDualstack: (dualstackEndpoint?: boolean | undefined) => void;
77
-
78
- export declare const validateNoFIPS: (useFipsEndpoint?: boolean | undefined) => void;
79
-
80
- export declare const validateMrapAlias: (name: string) => void;
1
+ import { ARN } from "@aws-sdk/util-arn-parser";
2
+ export declare const DOT_PATTERN: RegExp;
3
+ export declare const S3_HOSTNAME_PATTERN: RegExp;
4
+ export interface AccessPointArn extends ARN {
5
+ accessPointName: string;
6
+ }
7
+ export interface BucketHostnameParams {
8
+ isCustomEndpoint: boolean;
9
+ baseHostname: string;
10
+ bucketName: string;
11
+ clientRegion: string;
12
+ accelerateEndpoint?: boolean;
13
+ dualstackEndpoint?: boolean;
14
+ fipsEndpoint?: boolean;
15
+ pathStyleEndpoint?: boolean;
16
+ tlsCompatible?: boolean;
17
+ }
18
+ export interface ArnHostnameParams
19
+ extends Pick<
20
+ BucketHostnameParams,
21
+ Exclude<keyof BucketHostnameParams, "bucketName">
22
+ > {
23
+ bucketName: ARN;
24
+ clientSigningRegion?: string;
25
+ clientPartition?: string;
26
+ useArnRegion?: boolean;
27
+ disableMultiregionAccessPoints?: boolean;
28
+ }
29
+ export declare const isBucketNameOptions: (
30
+ options: BucketHostnameParams | ArnHostnameParams
31
+ ) => options is BucketHostnameParams;
32
+
33
+ export declare const isDnsCompatibleBucketName: (bucketName: string) => boolean;
34
+ export declare const getSuffix: (hostname: string) => [string, string];
35
+
36
+ export declare const getSuffixForArnEndpoint: (
37
+ hostname: string
38
+ ) => [string, string];
39
+ export declare const validateArnEndpointOptions: (options: {
40
+ accelerateEndpoint?: boolean;
41
+ tlsCompatible?: boolean;
42
+ pathStyleEndpoint?: boolean;
43
+ }) => void;
44
+ export declare const validateService: (service: string) => void;
45
+ export declare const validateS3Service: (service: string) => void;
46
+ export declare const validateOutpostService: (service: string) => void;
47
+
48
+ export declare const validatePartition: (
49
+ partition: string,
50
+ options: {
51
+ clientPartition: string;
52
+ }
53
+ ) => void;
54
+
55
+ export declare const validateRegion: (
56
+ region: string,
57
+ options: {
58
+ useArnRegion?: boolean;
59
+ allowFipsRegion?: boolean;
60
+ clientRegion: string;
61
+ clientSigningRegion: string;
62
+ useFipsEndpoint: boolean;
63
+ }
64
+ ) => void;
65
+
66
+ export declare const validateRegionalClient: (region: string) => void;
67
+
68
+ export declare const validateAccountId: (accountId: string) => void;
69
+
70
+ export declare const validateDNSHostLabel: (
71
+ label: string,
72
+ options?: {
73
+ tlsCompatible?: boolean;
74
+ }
75
+ ) => void;
76
+ export declare const validateCustomEndpoint: (options: {
77
+ isCustomEndpoint?: boolean;
78
+ dualstackEndpoint?: boolean;
79
+ accelerateEndpoint?: boolean;
80
+ }) => void;
81
+
82
+ export declare const getArnResources: (resource: string) => {
83
+ accesspointName: string;
84
+ outpostId?: string;
85
+ };
86
+
87
+ export declare const validateNoDualstack: (
88
+ dualstackEndpoint?: boolean | undefined
89
+ ) => void;
90
+
91
+ export declare const validateNoFIPS: (
92
+ useFipsEndpoint?: boolean | undefined
93
+ ) => void;
94
+
95
+ export declare const validateMrapAlias: (name: string) => void;
@@ -1,43 +1,43 @@
1
- import { Provider, RegionInfoProvider } from "@aws-sdk/types";
2
- export interface BucketEndpointInputConfig {
3
-
4
- bucketEndpoint?: boolean;
5
-
6
- forcePathStyle?: boolean;
7
-
8
- useAccelerateEndpoint?: boolean;
9
-
10
- useArnRegion?: boolean | Provider<boolean>;
11
-
12
- disableMultiregionAccessPoints?: boolean | Provider<boolean>;
13
- }
14
- interface PreviouslyResolved {
15
- isCustomEndpoint: boolean;
16
- region: Provider<string>;
17
- regionInfoProvider: RegionInfoProvider;
18
- useFipsEndpoint: Provider<boolean>;
19
- useDualstackEndpoint: Provider<boolean>;
20
- }
21
- export interface BucketEndpointResolvedConfig {
22
-
23
- isCustomEndpoint: boolean;
24
-
25
- bucketEndpoint: boolean;
26
-
27
- forcePathStyle: boolean;
28
-
29
- useAccelerateEndpoint: boolean;
30
-
31
- useFipsEndpoint: Provider<boolean>;
32
-
33
- useDualstackEndpoint: Provider<boolean>;
34
-
35
- useArnRegion: Provider<boolean>;
36
-
37
- region: Provider<string>;
38
-
39
- regionInfoProvider: RegionInfoProvider;
40
- disableMultiregionAccessPoints: Provider<boolean>;
41
- }
42
- export declare function resolveBucketEndpointConfig<T>(input: T & PreviouslyResolved & BucketEndpointInputConfig): T & BucketEndpointResolvedConfig;
43
- export {};
1
+ import { Provider, RegionInfoProvider } from "@aws-sdk/types";
2
+ export interface BucketEndpointInputConfig {
3
+ bucketEndpoint?: boolean;
4
+
5
+ forcePathStyle?: boolean;
6
+
7
+ useAccelerateEndpoint?: boolean;
8
+
9
+ useArnRegion?: boolean | Provider<boolean>;
10
+
11
+ disableMultiregionAccessPoints?: boolean | Provider<boolean>;
12
+ }
13
+ interface PreviouslyResolved {
14
+ isCustomEndpoint: boolean;
15
+ region: Provider<string>;
16
+ regionInfoProvider: RegionInfoProvider;
17
+ useFipsEndpoint: Provider<boolean>;
18
+ useDualstackEndpoint: Provider<boolean>;
19
+ }
20
+ export interface BucketEndpointResolvedConfig {
21
+ isCustomEndpoint: boolean;
22
+
23
+ bucketEndpoint: boolean;
24
+
25
+ forcePathStyle: boolean;
26
+
27
+ useAccelerateEndpoint: boolean;
28
+
29
+ useFipsEndpoint: Provider<boolean>;
30
+
31
+ useDualstackEndpoint: Provider<boolean>;
32
+
33
+ useArnRegion: Provider<boolean>;
34
+
35
+ region: Provider<string>;
36
+
37
+ regionInfoProvider: RegionInfoProvider;
38
+ disableMultiregionAccessPoints: Provider<boolean>;
39
+ }
40
+ export declare function resolveBucketEndpointConfig<T>(
41
+ input: T & PreviouslyResolved & BucketEndpointInputConfig
42
+ ): T & BucketEndpointResolvedConfig;
43
+ export {};
@@ -1,6 +1,16 @@
1
- export * from "./NodeDisableMultiregionAccessPointConfigOptions";
2
- export * from "./NodeUseArnRegionConfigOptions";
3
- export * from "./bucketEndpointMiddleware";
4
- export * from "./bucketHostname";
5
- export * from "./configurations";
6
- export { getArnResources, getSuffixForArnEndpoint, validateOutpostService, validatePartition, validateAccountId, validateRegion, validateDNSHostLabel, validateNoDualstack, validateNoFIPS, } from "./bucketHostnameUtils";
1
+ export * from "./NodeDisableMultiregionAccessPointConfigOptions";
2
+ export * from "./NodeUseArnRegionConfigOptions";
3
+ export * from "./bucketEndpointMiddleware";
4
+ export * from "./bucketHostname";
5
+ export * from "./configurations";
6
+ export {
7
+ getArnResources,
8
+ getSuffixForArnEndpoint,
9
+ validateOutpostService,
10
+ validatePartition,
11
+ validateAccountId,
12
+ validateRegion,
13
+ validateDNSHostLabel,
14
+ validateNoDualstack,
15
+ validateNoFIPS,
16
+ } from "./bucketHostnameUtils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-bucket-endpoint",
3
- "version": "3.168.0",
3
+ "version": "3.170.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,18 +20,18 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/protocol-http": "3.168.0",
24
- "@aws-sdk/types": "3.168.0",
25
- "@aws-sdk/util-arn-parser": "3.168.0",
26
- "@aws-sdk/util-config-provider": "3.168.0",
23
+ "@aws-sdk/protocol-http": "3.170.0",
24
+ "@aws-sdk/types": "3.170.0",
25
+ "@aws-sdk/util-arn-parser": "3.170.0",
26
+ "@aws-sdk/util-config-provider": "3.170.0",
27
27
  "tslib": "^2.3.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@aws-sdk/middleware-stack": "3.168.0",
31
- "@aws-sdk/node-config-provider": "3.168.0",
30
+ "@aws-sdk/middleware-stack": "3.170.0",
31
+ "@aws-sdk/node-config-provider": "3.170.0",
32
32
  "@tsconfig/recommended": "1.0.1",
33
33
  "concurrently": "7.0.0",
34
- "downlevel-dts": "0.7.0",
34
+ "downlevel-dts": "0.10.1",
35
35
  "rimraf": "3.0.2",
36
36
  "typedoc": "0.19.2",
37
37
  "typescript": "~4.6.2"