@aws-sdk/client-codeartifact 3.252.0 → 3.254.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/README.md CHANGED
@@ -15,12 +15,10 @@ share packages with development teams and pull packages. Packages can be pulled
15
15
  public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact
16
16
  repository and another repository, which effectively merges their contents from the point of
17
17
  view of a package manager client. </p>
18
-
19
18
  <p>
20
19
  <b>CodeArtifact Components</b>
21
20
  </p>
22
21
  <p>Use the information in this guide to help you work with the following CodeArtifact components:</p>
23
-
24
22
  <ul>
25
23
  <li>
26
24
  <p>
@@ -96,7 +94,6 @@ allows creating an upstream relationship between two repositories.</p>
96
94
  <code>.tgz</code> file or Maven POM and JAR files.</p>
97
95
  </li>
98
96
  </ul>
99
-
100
97
  <p>CodeArtifact supports these operations:</p>
101
98
  <ul>
102
99
  <li>
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "fn", r = "argv", s = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "fn", r = "argv", s = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://codeartifact.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
4
  export const ruleSet = _data;
@@ -43,12 +43,10 @@ import { UpdateRepositoryCommandInput, UpdateRepositoryCommandOutput } from "./c
43
43
  * public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact
44
44
  * repository and another repository, which effectively merges their contents from the point of
45
45
  * view of a package manager client. </p>
46
- *
47
46
  * <p>
48
47
  * <b>CodeArtifact Components</b>
49
48
  * </p>
50
49
  * <p>Use the information in this guide to help you work with the following CodeArtifact components:</p>
51
- *
52
50
  * <ul>
53
51
  * <li>
54
52
  * <p>
@@ -124,7 +122,6 @@ import { UpdateRepositoryCommandInput, UpdateRepositoryCommandOutput } from "./c
124
122
  * <code>.tgz</code> file or Maven POM and JAR files.</p>
125
123
  * </li>
126
124
  * </ul>
127
- *
128
125
  * <p>CodeArtifact supports these operations:</p>
129
126
  * <ul>
130
127
  * <li>
@@ -338,7 +335,6 @@ export declare class Codeartifact extends CodeartifactClient {
338
335
  * repositories owned by different Amazon Web Services accounts. An asset is stored only once
339
336
  * in a domain, even if it's in multiple repositories.
340
337
  * </p>
341
- *
342
338
  * <p>Although you can have multiple domains, we recommend a single production domain that contains all
343
339
  * published artifacts so that your development teams can find and share packages. You can use a second
344
340
  * pre-production domain to test changes to the production domain configuration.
@@ -377,7 +373,7 @@ export declare class Codeartifact extends CodeartifactClient {
377
373
  * in your repository. If you want to remove a package version from your repository and be able
378
374
  * to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
379
375
  * downloaded from a repository and don't show up with list package APIs (for example,
380
- * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
376
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
381
377
  */
382
378
  deletePackageVersions(args: DeletePackageVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DeletePackageVersionsCommandOutput>;
383
379
  deletePackageVersions(args: DeletePackageVersionsCommandInput, cb: (err: any, data?: DeletePackageVersionsCommandOutput) => void): void;
@@ -455,13 +451,11 @@ export declare class Codeartifact extends CodeartifactClient {
455
451
  * Deletes the assets in package versions and sets the package versions' status to <code>Disposed</code>.
456
452
  * A disposed package version cannot be restored in your repository because its assets are deleted.
457
453
  * </p>
458
- *
459
454
  * <p>
460
455
  * To view all disposed package versions in a repository, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a> and set the
461
456
  * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax">status</a> parameter
462
457
  * to <code>Disposed</code>.
463
458
  * </p>
464
- *
465
459
  * <p>
466
460
  * To view information about a disposed package version, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html">DescribePackageVersion</a>.
467
461
  * </p>
@@ -522,9 +516,7 @@ export declare class Codeartifact extends CodeartifactClient {
522
516
  getPackageVersionAsset(args: GetPackageVersionAssetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPackageVersionAssetCommandOutput) => void): void;
523
517
  /**
524
518
  * <p>
525
- * Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact
526
- * extracts a description from a metadata file. For example, from the <code><description></code> element in the
527
- * <code>pom.xml</code> file of a Maven package.
519
+ * Gets the readme file or descriptive text for a package version.
528
520
  * </p>
529
521
  * <p>
530
522
  * The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { AssociateExternalConnectionCommandInput, AssociateExternalConnectionCommandOutput } from "./commands/AssociateExternalConnectionCommand";
11
11
  import { CopyPackageVersionsCommandInput, CopyPackageVersionsCommandOutput } from "./commands/CopyPackageVersionsCommand";
12
12
  import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/CreateDomainCommand";
@@ -52,11 +52,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
52
52
  */
53
53
  requestHandler?: __HttpHandler;
54
54
  /**
55
- * A constructor for a class implementing the {@link __Hash} interface
55
+ * A constructor for a class implementing the {@link __Checksum} interface
56
56
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
57
57
  * @internal
58
58
  */
59
- sha256?: __HashConstructor;
59
+ sha256?: __ChecksumConstructor | __HashConstructor;
60
60
  /**
61
61
  * The function that will be used to convert strings into HTTP endpoints.
62
62
  * @internal
@@ -170,12 +170,10 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
170
170
  * public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact
171
171
  * repository and another repository, which effectively merges their contents from the point of
172
172
  * view of a package manager client. </p>
173
- *
174
173
  * <p>
175
174
  * <b>CodeArtifact Components</b>
176
175
  * </p>
177
176
  * <p>Use the information in this guide to help you work with the following CodeArtifact components:</p>
178
- *
179
177
  * <ul>
180
178
  * <li>
181
179
  * <p>
@@ -251,7 +249,6 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
251
249
  * <code>.tgz</code> file or Maven POM and JAR files.</p>
252
250
  * </li>
253
251
  * </ul>
254
- *
255
252
  * <p>CodeArtifact supports these operations:</p>
256
253
  * <ul>
257
254
  * <li>
@@ -14,7 +14,6 @@ export interface CreateDomainCommandOutput extends CreateDomainResult, __Metadat
14
14
  * repositories owned by different Amazon Web Services accounts. An asset is stored only once
15
15
  * in a domain, even if it's in multiple repositories.
16
16
  * </p>
17
- *
18
17
  * <p>Although you can have multiple domains, we recommend a single production domain that contains all
19
18
  * published artifacts so that your development teams can find and share packages. You can use a second
20
19
  * pre-production domain to test changes to the production domain configuration.
@@ -12,7 +12,7 @@ export interface DeletePackageVersionsCommandOutput extends DeletePackageVersion
12
12
  * in your repository. If you want to remove a package version from your repository and be able
13
13
  * to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
14
14
  * downloaded from a repository and don't show up with list package APIs (for example,
15
- * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
15
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
16
16
  * @example
17
17
  * Use a bare-bones client and the command you need to make an API call.
18
18
  * ```javascript
@@ -12,13 +12,11 @@ export interface DisposePackageVersionsCommandOutput extends DisposePackageVersi
12
12
  * Deletes the assets in package versions and sets the package versions' status to <code>Disposed</code>.
13
13
  * A disposed package version cannot be restored in your repository because its assets are deleted.
14
14
  * </p>
15
- *
16
15
  * <p>
17
16
  * To view all disposed package versions in a repository, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a> and set the
18
17
  * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax">status</a> parameter
19
18
  * to <code>Disposed</code>.
20
19
  * </p>
21
- *
22
20
  * <p>
23
21
  * To view information about a disposed package version, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html">DescribePackageVersion</a>.
24
22
  * </p>
@@ -9,9 +9,7 @@ export interface GetPackageVersionReadmeCommandOutput extends GetPackageVersionR
9
9
  }
10
10
  /**
11
11
  * <p>
12
- * Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact
13
- * extracts a description from a metadata file. For example, from the <code><description></code> element in the
14
- * <code>pom.xml</code> file of a Maven package.
12
+ * Gets the readme file or descriptive text for a package version.
15
13
  * </p>
16
14
  * <p>
17
15
  * The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -84,6 +84,11 @@ export interface AssociateExternalConnectionRequest {
84
84
  * </li>
85
85
  * <li>
86
86
  * <p>
87
+ * <code>public:nuget-org</code> - for the NuGet Gallery.
88
+ * </p>
89
+ * </li>
90
+ * <li>
91
+ * <p>
87
92
  * <code>public:pypi</code> - for the Python Package Index.
88
93
  * </p>
89
94
  * </li>
@@ -412,7 +417,6 @@ export interface CopyPackageVersionsRequest {
412
417
  /**
413
418
  * <p>The namespace of the package versions to be copied. The package version component that specifies its
414
419
  * namespace depends on its type. For example:</p>
415
- *
416
420
  * <ul>
417
421
  * <li>
418
422
  * <p>
@@ -879,7 +883,6 @@ export interface DeletePackageVersionsRequest {
879
883
  /**
880
884
  * <p>The namespace of the package versions to be deleted. The package version component that specifies its
881
885
  * namespace depends on its type. For example:</p>
882
- *
883
886
  * <ul>
884
887
  * <li>
885
888
  * <p>
@@ -1077,7 +1080,6 @@ export interface DescribePackageRequest {
1077
1080
  /**
1078
1081
  * <p>The namespace of the requested package. The package component that specifies its
1079
1082
  * namespace depends on its type. For example:</p>
1080
- *
1081
1083
  * <ul>
1082
1084
  * <li>
1083
1085
  * <p>
@@ -1139,7 +1141,6 @@ export interface PackageDescription {
1139
1141
  /**
1140
1142
  * <p>The namespace of the package. The package component that specifies its
1141
1143
  * namespace depends on its type. For example:</p>
1142
- *
1143
1144
  * <ul>
1144
1145
  * <li>
1145
1146
  * <p>
@@ -1203,7 +1204,6 @@ export interface DescribePackageVersionRequest {
1203
1204
  /**
1204
1205
  * <p>The namespace of the requested package version. The package version component that specifies its
1205
1206
  * namespace depends on its type. For example:</p>
1206
- *
1207
1207
  * <ul>
1208
1208
  * <li>
1209
1209
  * <p>
@@ -1304,7 +1304,6 @@ export interface PackageVersionDescription {
1304
1304
  /**
1305
1305
  * <p>The namespace of the package version. The package version component that specifies its
1306
1306
  * namespace depends on its type. For example:</p>
1307
- *
1308
1307
  * <ul>
1309
1308
  * <li>
1310
1309
  * <p>
@@ -1492,7 +1491,6 @@ export interface DisposePackageVersionsRequest {
1492
1491
  /**
1493
1492
  * <p>The namespace of the package versions to be disposed. The package version component that specifies its
1494
1493
  * namespace depends on its type. For example:</p>
1495
- *
1496
1494
  * <ul>
1497
1495
  * <li>
1498
1496
  * <p>
@@ -1673,7 +1671,6 @@ export interface GetPackageVersionAssetRequest {
1673
1671
  /**
1674
1672
  * <p>The namespace of the package version with the requested asset file. The package version component that specifies its
1675
1673
  * namespace depends on its type. For example:</p>
1676
- *
1677
1674
  * <ul>
1678
1675
  * <li>
1679
1676
  * <p>
@@ -1767,12 +1764,15 @@ export interface GetPackageVersionReadmeRequest {
1767
1764
  * <p>
1768
1765
  * A format that specifies the type of the package version with the requested readme file.
1769
1766
  * </p>
1767
+ * <note>
1768
+ * <p>Although <code>maven</code> is
1769
+ * listed as a valid value, CodeArtifact does not support displaying readme files for Maven packages.</p>
1770
+ * </note>
1770
1771
  */
1771
1772
  format: PackageFormat | string | undefined;
1772
1773
  /**
1773
1774
  * <p>The namespace of the package version with the requested readme file. The package version component that specifies its
1774
1775
  * namespace depends on its type. For example:</p>
1775
- *
1776
1776
  * <ul>
1777
1777
  * <li>
1778
1778
  * <p>
@@ -1816,7 +1816,6 @@ export interface GetPackageVersionReadmeResult {
1816
1816
  /**
1817
1817
  * <p>The namespace of the package version with the requested readme file. The package version component that specifies its
1818
1818
  * namespace depends on its type. For example:</p>
1819
- *
1820
1819
  * <ul>
1821
1820
  * <li>
1822
1821
  * <p>
@@ -2024,9 +2023,8 @@ export interface ListPackagesRequest {
2024
2023
  */
2025
2024
  format?: PackageFormat | string;
2026
2025
  /**
2027
- * <p>The namespace used to filter requested packages. Only packages with the provided namespace will be returned.
2028
- * The package component that specifies its namespace depends on its type. For example:</p>
2029
- *
2026
+ * <p>The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called <code>--namespace</code> and not <code>--namespace-prefix</code>, it has prefix-matching behavior.</p>
2027
+ * <p>Each package format uses namespace as follows:</p>
2030
2028
  * <ul>
2031
2029
  * <li>
2032
2030
  * <p>
@@ -2095,7 +2093,6 @@ export interface PackageSummary {
2095
2093
  /**
2096
2094
  * <p>The namespace of the package. The package component that specifies its
2097
2095
  * namespace depends on its type. For example:</p>
2098
- *
2099
2096
  * <ul>
2100
2097
  * <li>
2101
2098
  * <p>
@@ -2173,7 +2170,6 @@ export interface ListPackageVersionAssetsRequest {
2173
2170
  /**
2174
2171
  * <p>The namespace of the package version that contains the requested package version assets. The package version component that specifies its
2175
2172
  * namespace depends on its type. For example:</p>
2176
- *
2177
2173
  * <ul>
2178
2174
  * <li>
2179
2175
  * <p>
@@ -2229,7 +2225,6 @@ export interface ListPackageVersionAssetsResult {
2229
2225
  /**
2230
2226
  * <p>The namespace of the package version that contains the requested package version assets. The package version component that specifies its
2231
2227
  * namespace depends on its type. For example:</p>
2232
- *
2233
2228
  * <ul>
2234
2229
  * <li>
2235
2230
  * <p>
@@ -2310,7 +2305,6 @@ export interface ListPackageVersionDependenciesRequest {
2310
2305
  /**
2311
2306
  * <p>The namespace of the package version with the requested dependencies. The package version component that specifies its
2312
2307
  * namespace depends on its type. For example:</p>
2313
- *
2314
2308
  * <ul>
2315
2309
  * <li>
2316
2310
  * <p>
@@ -2359,7 +2353,6 @@ export interface PackageDependency {
2359
2353
  /**
2360
2354
  * <p>The namespace of the package that this package depends on. The package component that specifies its
2361
2355
  * namespace depends on its type. For example:</p>
2362
- *
2363
2356
  * <ul>
2364
2357
  * <li>
2365
2358
  * <p>
@@ -2387,9 +2380,26 @@ export interface PackageDependency {
2387
2380
  */
2388
2381
  package?: string;
2389
2382
  /**
2390
- * <p> The type of a package dependency. The possible values depend on the package type.
2391
- * Example types are <code>compile</code>, <code>runtime</code>, and <code>test</code> for Maven
2392
- * packages, and <code>dev</code>, <code>prod</code>, and <code>optional</code> for npm packages. </p>
2383
+ * <p> The type of a package dependency. The possible values depend on the package type.</p>
2384
+ * <ul>
2385
+ * <li>
2386
+ * <p>npm: <code>regular</code>, <code>dev</code>, <code>peer</code>, <code>optional</code>
2387
+ * </p>
2388
+ * </li>
2389
+ * <li>
2390
+ * <p>maven: <code>optional</code>, <code>parent</code>, <code>compile</code>, <code>runtime</code>, <code>test</code>, <code>system</code>, <code>provided</code>.</p>
2391
+ * <note>
2392
+ * <p>Note that <code>parent</code> is not a regular Maven dependency type; instead this is extracted from the <code><parent></code> element if one is defined in the package version's POM file.</p>
2393
+ * </note>
2394
+ * </li>
2395
+ * <li>
2396
+ * <p>nuget: The <code>dependencyType</code> field is never set for NuGet packages.</p>
2397
+ * </li>
2398
+ * <li>
2399
+ * <p>pypi: <code>Requires-Dist</code>
2400
+ * </p>
2401
+ * </li>
2402
+ * </ul>
2393
2403
  */
2394
2404
  dependencyType?: string;
2395
2405
  /**
@@ -2411,7 +2421,6 @@ export interface ListPackageVersionDependenciesResult {
2411
2421
  /**
2412
2422
  * <p>The namespace of the package version that contains the returned dependencies. The package version component that specifies its
2413
2423
  * namespace depends on its type. For example:</p>
2414
- *
2415
2424
  * <ul>
2416
2425
  * <li>
2417
2426
  * <p>
@@ -2495,7 +2504,6 @@ export interface ListPackageVersionsRequest {
2495
2504
  /**
2496
2505
  * <p>The namespace of the package that contains the requested package versions. The package component that specifies its
2497
2506
  * namespace depends on its type. For example:</p>
2498
- *
2499
2507
  * <ul>
2500
2508
  * <li>
2501
2509
  * <p>
@@ -2613,7 +2621,6 @@ export interface ListPackageVersionsResult {
2613
2621
  /**
2614
2622
  * <p>The namespace of the package that contains the requested package versions. The package component that specifies its
2615
2623
  * namespace depends on its type. For example:</p>
2616
- *
2617
2624
  * <ul>
2618
2625
  * <li>
2619
2626
  * <p>
@@ -2853,7 +2860,6 @@ export interface PutPackageOriginConfigurationRequest {
2853
2860
  /**
2854
2861
  * <p>The namespace of the package to be updated. The package component that specifies its
2855
2862
  * namespace depends on its type. For example:</p>
2856
- *
2857
2863
  * <ul>
2858
2864
  * <li>
2859
2865
  * <p>
@@ -2883,7 +2889,6 @@ export interface PutPackageOriginConfigurationRequest {
2883
2889
  * object that contains information about the <code>upstream</code> and <code>publish</code> package origin restrictions.
2884
2890
  * The <code>upstream</code> restriction determines if new package versions can be ingested or retained from external connections or upstream repositories.
2885
2891
  * The <code>publish</code> restriction determines if new package versions can be published directly to the repository.</p>
2886
- *
2887
2892
  * <p>You must include both the desired <code>upstream</code> and <code>publish</code> restrictions.</p>
2888
2893
  */
2889
2894
  restrictions: PackageOriginRestrictions | undefined;
@@ -2988,7 +2993,6 @@ export interface UpdatePackageVersionsStatusRequest {
2988
2993
  /**
2989
2994
  * <p>The namespace of the package version to be updated. The package version component that specifies its
2990
2995
  * namespace depends on its type. For example:</p>
2991
- *
2992
2996
  * <ul>
2993
2997
  * <li>
2994
2998
  * <p>
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -270,7 +271,7 @@ export declare type ServiceOutputTypes =
270
271
  export interface ClientDefaults
271
272
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
272
273
  requestHandler?: __HttpHandler;
273
- sha256?: __HashConstructor;
274
+ sha256?: __ChecksumConstructor | __HashConstructor;
274
275
  urlParser?: __UrlParser;
275
276
  bodyLengthChecker?: __BodyLengthCalculator;
276
277
  streamCollector?: __StreamCollector;
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeartifact",
3
3
  "description": "AWS SDK for JavaScript Codeartifact Client for Node.js, Browser and React Native",
4
- "version": "3.252.0",
4
+ "version": "3.254.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,41 +18,41 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-stream-browser": "3.226.0",
53
- "@aws-sdk/util-stream-node": "3.226.0",
54
- "@aws-sdk/util-user-agent-browser": "3.226.0",
55
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-stream-browser": "3.254.0",
53
+ "@aws-sdk/util-stream-node": "3.254.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
55
+ "@aws-sdk/util-user-agent-node": "3.254.0",
56
56
  "@aws-sdk/util-utf8-browser": "3.188.0",
57
57
  "@aws-sdk/util-utf8-node": "3.208.0",
58
58
  "tslib": "^2.3.1"