@aws-sdk/client-s3 3.662.0 → 3.664.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.
@@ -1,6 +1,9 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutBucketLifecycleConfigurationRequest } from "../models/models_0";
3
+ import {
4
+ PutBucketLifecycleConfigurationOutput,
5
+ PutBucketLifecycleConfigurationRequest,
6
+ } from "../models/models_0";
4
7
  import {
5
8
  S3ClientResolvedConfig,
6
9
  ServiceInputTypes,
@@ -11,7 +14,8 @@ export { $Command };
11
14
  export interface PutBucketLifecycleConfigurationCommandInput
12
15
  extends PutBucketLifecycleConfigurationRequest {}
13
16
  export interface PutBucketLifecycleConfigurationCommandOutput
14
- extends __MetadataBearer {}
17
+ extends PutBucketLifecycleConfigurationOutput,
18
+ __MetadataBearer {}
15
19
  declare const PutBucketLifecycleConfigurationCommand_base: {
16
20
  new (
17
21
  input: PutBucketLifecycleConfigurationCommandInput
@@ -37,7 +41,7 @@ export declare class PutBucketLifecycleConfigurationCommand extends PutBucketLif
37
41
  protected static __types: {
38
42
  api: {
39
43
  input: PutBucketLifecycleConfigurationRequest;
40
- output: {};
44
+ output: PutBucketLifecycleConfigurationOutput;
41
45
  };
42
46
  sdk: {
43
47
  input: PutBucketLifecycleConfigurationCommandInput;
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutBucketNotificationConfigurationRequest } from "../models/models_0";
3
+ import { PutBucketNotificationConfigurationRequest } from "../models/models_1";
4
4
  import {
5
5
  S3ClientResolvedConfig,
6
6
  ServiceInputTypes,
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutBucketOwnershipControlsRequest } from "../models/models_0";
3
+ import { PutBucketOwnershipControlsRequest } from "../models/models_1";
4
4
  import {
5
5
  S3ClientResolvedConfig,
6
6
  ServiceInputTypes,
@@ -921,8 +921,15 @@ export interface LifecycleRule {
921
921
  NoncurrentVersionExpiration?: NoncurrentVersionExpiration;
922
922
  AbortIncompleteMultipartUpload?: AbortIncompleteMultipartUpload;
923
923
  }
924
+ export declare const TransitionDefaultMinimumObjectSize: {
925
+ readonly all_storage_classes_128K: "all_storage_classes_128K";
926
+ readonly varies_by_storage_class: "varies_by_storage_class";
927
+ };
928
+ export type TransitionDefaultMinimumObjectSize =
929
+ (typeof TransitionDefaultMinimumObjectSize)[keyof typeof TransitionDefaultMinimumObjectSize];
924
930
  export interface GetBucketLifecycleConfigurationOutput {
925
931
  Rules?: LifecycleRule[];
932
+ TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize;
926
933
  }
927
934
  export interface GetBucketLifecycleConfigurationRequest {
928
935
  Bucket: string | undefined;
@@ -2036,6 +2043,9 @@ export interface PutBucketInventoryConfigurationRequest {
2036
2043
  InventoryConfiguration: InventoryConfiguration | undefined;
2037
2044
  ExpectedBucketOwner?: string;
2038
2045
  }
2046
+ export interface PutBucketLifecycleConfigurationOutput {
2047
+ TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize;
2048
+ }
2039
2049
  export interface BucketLifecycleConfiguration {
2040
2050
  Rules: LifecycleRule[] | undefined;
2041
2051
  }
@@ -2044,6 +2054,7 @@ export interface PutBucketLifecycleConfigurationRequest {
2044
2054
  ChecksumAlgorithm?: ChecksumAlgorithm;
2045
2055
  LifecycleConfiguration?: BucketLifecycleConfiguration;
2046
2056
  ExpectedBucketOwner?: string;
2057
+ TransitionDefaultMinimumObjectSize?: TransitionDefaultMinimumObjectSize;
2047
2058
  }
2048
2059
  export interface BucketLoggingStatus {
2049
2060
  LoggingEnabled?: LoggingEnabled;
@@ -2061,18 +2072,6 @@ export interface PutBucketMetricsConfigurationRequest {
2061
2072
  MetricsConfiguration: MetricsConfiguration | undefined;
2062
2073
  ExpectedBucketOwner?: string;
2063
2074
  }
2064
- export interface PutBucketNotificationConfigurationRequest {
2065
- Bucket: string | undefined;
2066
- NotificationConfiguration: NotificationConfiguration | undefined;
2067
- ExpectedBucketOwner?: string;
2068
- SkipDestinationValidation?: boolean;
2069
- }
2070
- export interface PutBucketOwnershipControlsRequest {
2071
- Bucket: string | undefined;
2072
- ContentMD5?: string;
2073
- ExpectedBucketOwner?: string;
2074
- OwnershipControls: OwnershipControls | undefined;
2075
- }
2076
2075
  export declare const CompleteMultipartUploadOutputFilterSensitiveLog: (
2077
2076
  obj: CompleteMultipartUploadOutput
2078
2077
  ) => any;
@@ -7,12 +7,14 @@ import {
7
7
  ErrorDocument,
8
8
  Grant,
9
9
  IndexDocument,
10
+ NotificationConfiguration,
10
11
  ObjectCannedACL,
11
12
  ObjectLockConfiguration,
12
13
  ObjectLockLegalHold,
13
14
  ObjectLockLegalHoldStatus,
14
15
  ObjectLockMode,
15
16
  ObjectLockRetention,
17
+ OwnershipControls,
16
18
  Payer,
17
19
  PublicAccessBlockConfiguration,
18
20
  RedirectAllRequestsTo,
@@ -26,6 +28,18 @@ import {
26
28
  Tag,
27
29
  } from "./models_0";
28
30
  import { S3ServiceException as __BaseException } from "./S3ServiceException";
31
+ export interface PutBucketNotificationConfigurationRequest {
32
+ Bucket: string | undefined;
33
+ NotificationConfiguration: NotificationConfiguration | undefined;
34
+ ExpectedBucketOwner?: string;
35
+ SkipDestinationValidation?: boolean;
36
+ }
37
+ export interface PutBucketOwnershipControlsRequest {
38
+ Bucket: string | undefined;
39
+ ContentMD5?: string;
40
+ ExpectedBucketOwner?: string;
41
+ OwnershipControls: OwnershipControls | undefined;
42
+ }
29
43
  export interface PutBucketPolicyRequest {
30
44
  Bucket: string | undefined;
31
45
  ContentMD5?: string;
@@ -9,9 +9,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
11
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
- defaultUserAgentProvider: import("@smithy/types").Provider<
13
- import("@smithy/types").UserAgent
14
- >;
12
+ defaultUserAgentProvider: (
13
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
14
+ ) => Promise<import("@smithy/types").UserAgent>;
15
15
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
16
16
  maxAttempts: number | import("@smithy/types").Provider<number>;
17
17
  md5: import("@smithy/types").HashConstructor;
@@ -48,6 +48,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
48
48
  useArnRegion: boolean | import("@smithy/types").Provider<boolean>;
49
49
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
50
50
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
51
+ userAgentAppId?:
52
+ | string
53
+ | import("@smithy/types").Provider<string | undefined>
54
+ | undefined;
51
55
  requestChecksumCalculation?:
52
56
  | import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation
53
57
  | import("@smithy/types").Provider<
@@ -14,9 +14,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
14
14
  ) => import("@aws-sdk/types").MemoizedProvider<
15
15
  import("@aws-sdk/types").AwsCredentialIdentity
16
16
  >;
17
- defaultUserAgentProvider: import("@aws-sdk/types").Provider<
18
- import("@aws-sdk/types").UserAgent
19
- >;
17
+ defaultUserAgentProvider: (
18
+ config?:
19
+ | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
20
+ | undefined
21
+ ) => Promise<import("@aws-sdk/types").UserAgent>;
20
22
  disableS3ExpressSessionAuth:
21
23
  | boolean
22
24
  | import("@aws-sdk/types").Provider<boolean>;
@@ -50,6 +52,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
50
52
  useArnRegion: boolean | import("@aws-sdk/types").Provider<boolean>;
51
53
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
52
54
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
55
+ userAgentAppId:
56
+ | string
57
+ | import("@aws-sdk/types").Provider<string | undefined>;
53
58
  apiVersion: string;
54
59
  cacheMiddleware?: boolean | undefined;
55
60
  urlParser: import("@aws-sdk/types").UrlParser;
@@ -22,9 +22,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
- defaultUserAgentProvider: import("@smithy/types").Provider<
26
- import("@smithy/types").UserAgent
27
- >;
25
+ defaultUserAgentProvider: (
26
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
27
+ ) => Promise<import("@smithy/types").UserAgent>;
28
28
  streamHasher:
29
29
  | import("@smithy/types").StreamHasher<import("stream").Readable>
30
30
  | import("@smithy/types").StreamHasher<Blob>;
@@ -52,6 +52,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
52
52
  useArnRegion: boolean | import("@smithy/types").Provider<boolean>;
53
53
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
54
54
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
55
+ userAgentAppId?:
56
+ | string
57
+ | import("@smithy/types").Provider<string | undefined>
58
+ | undefined;
55
59
  requestChecksumCalculation?:
56
60
  | import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation
57
61
  | import("@smithy/types").Provider<
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.662.0",
4
+ "version": "3.664.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -26,26 +26,26 @@
26
26
  "@aws-crypto/sha1-browser": "5.2.0",
27
27
  "@aws-crypto/sha256-browser": "5.2.0",
28
28
  "@aws-crypto/sha256-js": "5.2.0",
29
- "@aws-sdk/client-sso-oidc": "3.662.0",
30
- "@aws-sdk/client-sts": "3.662.0",
31
- "@aws-sdk/core": "3.662.0",
32
- "@aws-sdk/credential-provider-node": "3.662.0",
33
- "@aws-sdk/middleware-bucket-endpoint": "3.662.0",
34
- "@aws-sdk/middleware-expect-continue": "3.662.0",
35
- "@aws-sdk/middleware-flexible-checksums": "3.662.0",
36
- "@aws-sdk/middleware-host-header": "3.662.0",
37
- "@aws-sdk/middleware-location-constraint": "3.662.0",
38
- "@aws-sdk/middleware-logger": "3.662.0",
39
- "@aws-sdk/middleware-recursion-detection": "3.662.0",
40
- "@aws-sdk/middleware-sdk-s3": "3.662.0",
41
- "@aws-sdk/middleware-ssec": "3.662.0",
42
- "@aws-sdk/middleware-user-agent": "3.662.0",
43
- "@aws-sdk/region-config-resolver": "3.662.0",
44
- "@aws-sdk/signature-v4-multi-region": "3.662.0",
45
- "@aws-sdk/types": "3.662.0",
46
- "@aws-sdk/util-endpoints": "3.662.0",
47
- "@aws-sdk/util-user-agent-browser": "3.662.0",
48
- "@aws-sdk/util-user-agent-node": "3.662.0",
29
+ "@aws-sdk/client-sso-oidc": "3.664.0",
30
+ "@aws-sdk/client-sts": "3.664.0",
31
+ "@aws-sdk/core": "3.664.0",
32
+ "@aws-sdk/credential-provider-node": "3.664.0",
33
+ "@aws-sdk/middleware-bucket-endpoint": "3.664.0",
34
+ "@aws-sdk/middleware-expect-continue": "3.664.0",
35
+ "@aws-sdk/middleware-flexible-checksums": "3.664.0",
36
+ "@aws-sdk/middleware-host-header": "3.664.0",
37
+ "@aws-sdk/middleware-location-constraint": "3.664.0",
38
+ "@aws-sdk/middleware-logger": "3.664.0",
39
+ "@aws-sdk/middleware-recursion-detection": "3.664.0",
40
+ "@aws-sdk/middleware-sdk-s3": "3.664.0",
41
+ "@aws-sdk/middleware-ssec": "3.664.0",
42
+ "@aws-sdk/middleware-user-agent": "3.664.0",
43
+ "@aws-sdk/region-config-resolver": "3.664.0",
44
+ "@aws-sdk/signature-v4-multi-region": "3.664.0",
45
+ "@aws-sdk/types": "3.664.0",
46
+ "@aws-sdk/util-endpoints": "3.664.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.664.0",
48
+ "@aws-sdk/util-user-agent-node": "3.664.0",
49
49
  "@aws-sdk/xml-builder": "3.662.0",
50
50
  "@smithy/config-resolver": "^3.0.9",
51
51
  "@smithy/core": "^2.4.7",
@@ -83,7 +83,7 @@
83
83
  "tslib": "^2.6.2"
84
84
  },
85
85
  "devDependencies": {
86
- "@aws-sdk/signature-v4-crt": "3.662.0",
86
+ "@aws-sdk/signature-v4-crt": "3.664.0",
87
87
  "@tsconfig/node16": "16.1.3",
88
88
  "@types/chai": "^4.2.11",
89
89
  "@types/mocha": "^8.0.4",