@aws-sdk/client-codeartifact 3.535.0 → 3.540.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.
Files changed (71) hide show
  1. package/README.md +149 -6
  2. package/dist-cjs/endpoint/endpointResolver.js +4 -2
  3. package/dist-cjs/index.js +608 -4
  4. package/dist-es/Codeartifact.js +20 -0
  5. package/dist-es/commands/CreatePackageGroupCommand.js +24 -0
  6. package/dist-es/commands/DeletePackageGroupCommand.js +24 -0
  7. package/dist-es/commands/DescribePackageGroupCommand.js +24 -0
  8. package/dist-es/commands/GetAssociatedPackageGroupCommand.js +24 -0
  9. package/dist-es/commands/GetAuthorizationTokenCommand.js +2 -1
  10. package/dist-es/commands/ListAllowedRepositoriesForGroupCommand.js +24 -0
  11. package/dist-es/commands/ListAssociatedPackagesCommand.js +24 -0
  12. package/dist-es/commands/ListPackageGroupsCommand.js +24 -0
  13. package/dist-es/commands/ListSubPackageGroupsCommand.js +24 -0
  14. package/dist-es/commands/UpdatePackageGroupCommand.js +24 -0
  15. package/dist-es/commands/UpdatePackageGroupOriginConfigurationCommand.js +24 -0
  16. package/dist-es/commands/index.js +10 -0
  17. package/dist-es/endpoint/endpointResolver.js +3 -1
  18. package/dist-es/index.js +0 -1
  19. package/dist-es/models/models_0.js +22 -0
  20. package/dist-es/pagination/ListAllowedRepositoriesForGroupPaginator.js +4 -0
  21. package/dist-es/pagination/ListAssociatedPackagesPaginator.js +4 -0
  22. package/dist-es/pagination/ListPackageGroupsPaginator.js +4 -0
  23. package/dist-es/pagination/ListSubPackageGroupsPaginator.js +4 -0
  24. package/dist-es/pagination/index.js +4 -0
  25. package/dist-es/protocols/Aws_restJson1.js +347 -0
  26. package/dist-types/Codeartifact.d.ts +139 -6
  27. package/dist-types/CodeartifactClient.d.ts +81 -8
  28. package/dist-types/commands/CreatePackageGroupCommand.d.ts +129 -0
  29. package/dist-types/commands/DeletePackageCommand.d.ts +1 -1
  30. package/dist-types/commands/DeletePackageGroupCommand.d.ts +123 -0
  31. package/dist-types/commands/DescribePackageGroupCommand.d.ts +110 -0
  32. package/dist-types/commands/GetAssociatedPackageGroupCommand.d.ts +112 -0
  33. package/dist-types/commands/GetRepositoryEndpointCommand.d.ts +10 -0
  34. package/dist-types/commands/ListAllowedRepositoriesForGroupCommand.d.ts +97 -0
  35. package/dist-types/commands/ListAssociatedPackagesCommand.d.ts +92 -0
  36. package/dist-types/commands/ListPackageGroupsCommand.d.ts +114 -0
  37. package/dist-types/commands/ListSubPackageGroupsCommand.d.ts +117 -0
  38. package/dist-types/commands/PublishPackageVersionCommand.d.ts +3 -3
  39. package/dist-types/commands/UpdatePackageGroupCommand.d.ts +117 -0
  40. package/dist-types/commands/UpdatePackageGroupOriginConfigurationCommand.d.ts +141 -0
  41. package/dist-types/commands/index.d.ts +10 -0
  42. package/dist-types/index.d.ts +69 -7
  43. package/dist-types/models/models_0.d.ts +1258 -159
  44. package/dist-types/pagination/ListAllowedRepositoriesForGroupPaginator.d.ts +7 -0
  45. package/dist-types/pagination/ListAssociatedPackagesPaginator.d.ts +7 -0
  46. package/dist-types/pagination/ListPackageGroupsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/ListSubPackageGroupsPaginator.d.ts +7 -0
  48. package/dist-types/pagination/index.d.ts +4 -0
  49. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  50. package/dist-types/ts3.4/Codeartifact.d.ts +176 -0
  51. package/dist-types/ts3.4/CodeartifactClient.d.ts +60 -0
  52. package/dist-types/ts3.4/commands/CreatePackageGroupCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/DeletePackageGroupCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/DescribePackageGroupCommand.d.ts +39 -0
  55. package/dist-types/ts3.4/commands/GetAssociatedPackageGroupCommand.d.ts +39 -0
  56. package/dist-types/ts3.4/commands/ListAllowedRepositoriesForGroupCommand.d.ts +39 -0
  57. package/dist-types/ts3.4/commands/ListAssociatedPackagesCommand.d.ts +39 -0
  58. package/dist-types/ts3.4/commands/ListPackageGroupsCommand.d.ts +39 -0
  59. package/dist-types/ts3.4/commands/ListSubPackageGroupsCommand.d.ts +39 -0
  60. package/dist-types/ts3.4/commands/UpdatePackageGroupCommand.d.ts +39 -0
  61. package/dist-types/ts3.4/commands/UpdatePackageGroupOriginConfigurationCommand.d.ts +39 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  63. package/dist-types/ts3.4/index.d.ts +0 -1
  64. package/dist-types/ts3.4/models/models_0.d.ts +196 -6
  65. package/dist-types/ts3.4/pagination/ListAllowedRepositoriesForGroupPaginator.d.ts +11 -0
  66. package/dist-types/ts3.4/pagination/ListAssociatedPackagesPaginator.d.ts +11 -0
  67. package/dist-types/ts3.4/pagination/ListPackageGroupsPaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/ListSubPackageGroupsPaginator.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  70. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  71. package/package.json +5 -5
@@ -0,0 +1,92 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
4
+ import { ListAssociatedPackagesRequest, ListAssociatedPackagesResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListAssociatedPackagesCommand}.
13
+ */
14
+ export interface ListAssociatedPackagesCommandInput extends ListAssociatedPackagesRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListAssociatedPackagesCommand}.
20
+ */
21
+ export interface ListAssociatedPackagesCommandOutput extends ListAssociatedPackagesResult, __MetadataBearer {
22
+ }
23
+ declare const ListAssociatedPackagesCommand_base: {
24
+ new (input: ListAssociatedPackagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListAssociatedPackagesCommandInput, ListAssociatedPackagesCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListAssociatedPackagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListAssociatedPackagesCommandInput, ListAssociatedPackagesCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns a list of packages associated with the requested package group. For information package group association and matching, see
30
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package group
31
+ * definition syntax and matching behavior</a> in the <i>CodeArtifact User Guide</i>.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { CodeartifactClient, ListAssociatedPackagesCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
36
+ * // const { CodeartifactClient, ListAssociatedPackagesCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
37
+ * const client = new CodeartifactClient(config);
38
+ * const input = { // ListAssociatedPackagesRequest
39
+ * domain: "STRING_VALUE", // required
40
+ * domainOwner: "STRING_VALUE",
41
+ * packageGroup: "STRING_VALUE", // required
42
+ * maxResults: Number("int"),
43
+ * nextToken: "STRING_VALUE",
44
+ * preview: true || false,
45
+ * };
46
+ * const command = new ListAssociatedPackagesCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ListAssociatedPackagesResult
49
+ * // packages: [ // AssociatedPackageList
50
+ * // { // AssociatedPackage
51
+ * // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift",
52
+ * // namespace: "STRING_VALUE",
53
+ * // package: "STRING_VALUE",
54
+ * // associationType: "STRONG" || "WEAK",
55
+ * // },
56
+ * // ],
57
+ * // nextToken: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param ListAssociatedPackagesCommandInput - {@link ListAssociatedPackagesCommandInput}
63
+ * @returns {@link ListAssociatedPackagesCommandOutput}
64
+ * @see {@link ListAssociatedPackagesCommandInput} for command's `input` shape.
65
+ * @see {@link ListAssociatedPackagesCommandOutput} for command's `response` shape.
66
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>
70
+ * The operation did not succeed because of an unauthorized access attempt.
71
+ * </p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>
78
+ * The operation did not succeed because the resource requested is not found in the service.
79
+ * </p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>
83
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
84
+ * </p>
85
+ *
86
+ * @throws {@link CodeartifactServiceException}
87
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListAssociatedPackagesCommand extends ListAssociatedPackagesCommand_base {
92
+ }
@@ -0,0 +1,114 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
4
+ import { ListPackageGroupsRequest, ListPackageGroupsResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListPackageGroupsCommand}.
13
+ */
14
+ export interface ListPackageGroupsCommandInput extends ListPackageGroupsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListPackageGroupsCommand}.
20
+ */
21
+ export interface ListPackageGroupsCommandOutput extends ListPackageGroupsResult, __MetadataBearer {
22
+ }
23
+ declare const ListPackageGroupsCommand_base: {
24
+ new (input: ListPackageGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPackageGroupsCommandInput, ListPackageGroupsCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListPackageGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPackageGroupsCommandInput, ListPackageGroupsCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns a list of package groups in the requested domain.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { CodeartifactClient, ListPackageGroupsCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
34
+ * // const { CodeartifactClient, ListPackageGroupsCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
35
+ * const client = new CodeartifactClient(config);
36
+ * const input = { // ListPackageGroupsRequest
37
+ * domain: "STRING_VALUE", // required
38
+ * domainOwner: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * prefix: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListPackageGroupsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListPackageGroupsResult
46
+ * // packageGroups: [ // PackageGroupSummaryList
47
+ * // { // PackageGroupSummary
48
+ * // arn: "STRING_VALUE",
49
+ * // pattern: "STRING_VALUE",
50
+ * // domainName: "STRING_VALUE",
51
+ * // domainOwner: "STRING_VALUE",
52
+ * // createdTime: new Date("TIMESTAMP"),
53
+ * // contactInfo: "STRING_VALUE",
54
+ * // description: "STRING_VALUE",
55
+ * // originConfiguration: { // PackageGroupOriginConfiguration
56
+ * // restrictions: { // PackageGroupOriginRestrictions
57
+ * // "<keys>": { // PackageGroupOriginRestriction
58
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
59
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
60
+ * // inheritedFrom: { // PackageGroupReference
61
+ * // arn: "STRING_VALUE",
62
+ * // pattern: "STRING_VALUE",
63
+ * // },
64
+ * // repositoriesCount: Number("long"),
65
+ * // },
66
+ * // },
67
+ * // },
68
+ * // parent: {
69
+ * // arn: "STRING_VALUE",
70
+ * // pattern: "STRING_VALUE",
71
+ * // },
72
+ * // },
73
+ * // ],
74
+ * // nextToken: "STRING_VALUE",
75
+ * // };
76
+ *
77
+ * ```
78
+ *
79
+ * @param ListPackageGroupsCommandInput - {@link ListPackageGroupsCommandInput}
80
+ * @returns {@link ListPackageGroupsCommandOutput}
81
+ * @see {@link ListPackageGroupsCommandInput} for command's `input` shape.
82
+ * @see {@link ListPackageGroupsCommandOutput} for command's `response` shape.
83
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
84
+ *
85
+ * @throws {@link AccessDeniedException} (client fault)
86
+ * <p>
87
+ * The operation did not succeed because of an unauthorized access attempt.
88
+ * </p>
89
+ *
90
+ * @throws {@link InternalServerException} (server fault)
91
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
92
+ *
93
+ * @throws {@link ResourceNotFoundException} (client fault)
94
+ * <p>
95
+ * The operation did not succeed because the resource requested is not found in the service.
96
+ * </p>
97
+ *
98
+ * @throws {@link ThrottlingException} (client fault)
99
+ * <p>
100
+ * The operation did not succeed because too many requests are sent to the service.
101
+ * </p>
102
+ *
103
+ * @throws {@link ValidationException} (client fault)
104
+ * <p>
105
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
106
+ * </p>
107
+ *
108
+ * @throws {@link CodeartifactServiceException}
109
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
110
+ *
111
+ * @public
112
+ */
113
+ export declare class ListPackageGroupsCommand extends ListPackageGroupsCommand_base {
114
+ }
@@ -0,0 +1,117 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
4
+ import { ListSubPackageGroupsRequest, ListSubPackageGroupsResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListSubPackageGroupsCommand}.
13
+ */
14
+ export interface ListSubPackageGroupsCommandInput extends ListSubPackageGroupsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListSubPackageGroupsCommand}.
20
+ */
21
+ export interface ListSubPackageGroupsCommandOutput extends ListSubPackageGroupsResult, __MetadataBearer {
22
+ }
23
+ declare const ListSubPackageGroupsCommand_base: {
24
+ new (input: ListSubPackageGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSubPackageGroupsCommandInput, ListSubPackageGroupsCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListSubPackageGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSubPackageGroupsCommandInput, ListSubPackageGroupsCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns a list of direct children of the specified package group.</p>
30
+ * <p>For information package group hierarchy, see
31
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package group
32
+ * definition syntax and matching behavior</a> in the <i>CodeArtifact User Guide</i>.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { CodeartifactClient, ListSubPackageGroupsCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
37
+ * // const { CodeartifactClient, ListSubPackageGroupsCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
38
+ * const client = new CodeartifactClient(config);
39
+ * const input = { // ListSubPackageGroupsRequest
40
+ * domain: "STRING_VALUE", // required
41
+ * domainOwner: "STRING_VALUE",
42
+ * packageGroup: "STRING_VALUE", // required
43
+ * maxResults: Number("int"),
44
+ * nextToken: "STRING_VALUE",
45
+ * };
46
+ * const command = new ListSubPackageGroupsCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ListSubPackageGroupsResult
49
+ * // packageGroups: [ // PackageGroupSummaryList
50
+ * // { // PackageGroupSummary
51
+ * // arn: "STRING_VALUE",
52
+ * // pattern: "STRING_VALUE",
53
+ * // domainName: "STRING_VALUE",
54
+ * // domainOwner: "STRING_VALUE",
55
+ * // createdTime: new Date("TIMESTAMP"),
56
+ * // contactInfo: "STRING_VALUE",
57
+ * // description: "STRING_VALUE",
58
+ * // originConfiguration: { // PackageGroupOriginConfiguration
59
+ * // restrictions: { // PackageGroupOriginRestrictions
60
+ * // "<keys>": { // PackageGroupOriginRestriction
61
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
62
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
63
+ * // inheritedFrom: { // PackageGroupReference
64
+ * // arn: "STRING_VALUE",
65
+ * // pattern: "STRING_VALUE",
66
+ * // },
67
+ * // repositoriesCount: Number("long"),
68
+ * // },
69
+ * // },
70
+ * // },
71
+ * // parent: {
72
+ * // arn: "STRING_VALUE",
73
+ * // pattern: "STRING_VALUE",
74
+ * // },
75
+ * // },
76
+ * // ],
77
+ * // nextToken: "STRING_VALUE",
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param ListSubPackageGroupsCommandInput - {@link ListSubPackageGroupsCommandInput}
83
+ * @returns {@link ListSubPackageGroupsCommandOutput}
84
+ * @see {@link ListSubPackageGroupsCommandInput} for command's `input` shape.
85
+ * @see {@link ListSubPackageGroupsCommandOutput} for command's `response` shape.
86
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
87
+ *
88
+ * @throws {@link AccessDeniedException} (client fault)
89
+ * <p>
90
+ * The operation did not succeed because of an unauthorized access attempt.
91
+ * </p>
92
+ *
93
+ * @throws {@link InternalServerException} (server fault)
94
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>
98
+ * The operation did not succeed because the resource requested is not found in the service.
99
+ * </p>
100
+ *
101
+ * @throws {@link ThrottlingException} (client fault)
102
+ * <p>
103
+ * The operation did not succeed because too many requests are sent to the service.
104
+ * </p>
105
+ *
106
+ * @throws {@link ValidationException} (client fault)
107
+ * <p>
108
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
109
+ * </p>
110
+ *
111
+ * @throws {@link CodeartifactServiceException}
112
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
113
+ *
114
+ * @public
115
+ */
116
+ export declare class ListSubPackageGroupsCommand extends ListSubPackageGroupsCommand_base {
117
+ }
@@ -29,13 +29,13 @@ declare const PublishPackageVersionCommand_base: {
29
29
  /**
30
30
  * <p>Creates a new package version containing one or more assets (or files).</p>
31
31
  * <p>The <code>unfinished</code> flag can be used to keep the package version in the
32
- * <code>Unfinished</code> state until all of its assets have been uploaded (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact user guide</i>). To set
32
+ * <code>Unfinished</code> state until all of its assets have been uploaded (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact user guide</i>). To set
33
33
  * the package version’s status to <code>Published</code>, omit the <code>unfinished</code> flag
34
34
  * when uploading the final asset, or set the status using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionStatus</a>. Once a package version’s status is set to
35
- * <code>Published</code>, it cannot change back to <code>Unfinished</code>.</p>
35
+ * <code>Published</code>, it cannot change back to <code>Unfinished</code>.</p>
36
36
  * <note>
37
37
  * <p>Only generic packages can be published using this API. For more information, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html">Using generic
38
- * packages</a> in the <i>CodeArtifact User Guide</i>.</p>
38
+ * packages</a> in the <i>CodeArtifact User Guide</i>.</p>
39
39
  * </note>
40
40
  * @example
41
41
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,117 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
4
+ import { UpdatePackageGroupRequest, UpdatePackageGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link UpdatePackageGroupCommand}.
13
+ */
14
+ export interface UpdatePackageGroupCommandInput extends UpdatePackageGroupRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link UpdatePackageGroupCommand}.
20
+ */
21
+ export interface UpdatePackageGroupCommandOutput extends UpdatePackageGroupResult, __MetadataBearer {
22
+ }
23
+ declare const UpdatePackageGroupCommand_base: {
24
+ new (input: UpdatePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePackageGroupCommandInput, UpdatePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdatePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePackageGroupCommandInput, UpdatePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Updates a package group. This API cannot be used to update a package group's origin configuration or pattern. To update a
30
+ * package group's origin configuration, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageGroupOriginConfiguration.html">UpdatePackageGroupOriginConfiguration</a>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CodeartifactClient, UpdatePackageGroupCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
35
+ * // const { CodeartifactClient, UpdatePackageGroupCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
36
+ * const client = new CodeartifactClient(config);
37
+ * const input = { // UpdatePackageGroupRequest
38
+ * domain: "STRING_VALUE", // required
39
+ * domainOwner: "STRING_VALUE",
40
+ * packageGroup: "STRING_VALUE", // required
41
+ * contactInfo: "STRING_VALUE",
42
+ * description: "STRING_VALUE",
43
+ * };
44
+ * const command = new UpdatePackageGroupCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // UpdatePackageGroupResult
47
+ * // packageGroup: { // PackageGroupDescription
48
+ * // arn: "STRING_VALUE",
49
+ * // pattern: "STRING_VALUE",
50
+ * // domainName: "STRING_VALUE",
51
+ * // domainOwner: "STRING_VALUE",
52
+ * // createdTime: new Date("TIMESTAMP"),
53
+ * // contactInfo: "STRING_VALUE",
54
+ * // description: "STRING_VALUE",
55
+ * // originConfiguration: { // PackageGroupOriginConfiguration
56
+ * // restrictions: { // PackageGroupOriginRestrictions
57
+ * // "<keys>": { // PackageGroupOriginRestriction
58
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
59
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
60
+ * // inheritedFrom: { // PackageGroupReference
61
+ * // arn: "STRING_VALUE",
62
+ * // pattern: "STRING_VALUE",
63
+ * // },
64
+ * // repositoriesCount: Number("long"),
65
+ * // },
66
+ * // },
67
+ * // },
68
+ * // parent: {
69
+ * // arn: "STRING_VALUE",
70
+ * // pattern: "STRING_VALUE",
71
+ * // },
72
+ * // },
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param UpdatePackageGroupCommandInput - {@link UpdatePackageGroupCommandInput}
78
+ * @returns {@link UpdatePackageGroupCommandOutput}
79
+ * @see {@link UpdatePackageGroupCommandInput} for command's `input` shape.
80
+ * @see {@link UpdatePackageGroupCommandOutput} for command's `response` shape.
81
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
82
+ *
83
+ * @throws {@link AccessDeniedException} (client fault)
84
+ * <p>
85
+ * The operation did not succeed because of an unauthorized access attempt.
86
+ * </p>
87
+ *
88
+ * @throws {@link InternalServerException} (server fault)
89
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
90
+ *
91
+ * @throws {@link ResourceNotFoundException} (client fault)
92
+ * <p>
93
+ * The operation did not succeed because the resource requested is not found in the service.
94
+ * </p>
95
+ *
96
+ * @throws {@link ServiceQuotaExceededException} (client fault)
97
+ * <p>
98
+ * The operation did not succeed because it would have exceeded a service limit for your account.
99
+ * </p>
100
+ *
101
+ * @throws {@link ThrottlingException} (client fault)
102
+ * <p>
103
+ * The operation did not succeed because too many requests are sent to the service.
104
+ * </p>
105
+ *
106
+ * @throws {@link ValidationException} (client fault)
107
+ * <p>
108
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
109
+ * </p>
110
+ *
111
+ * @throws {@link CodeartifactServiceException}
112
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
113
+ *
114
+ * @public
115
+ */
116
+ export declare class UpdatePackageGroupCommand extends UpdatePackageGroupCommand_base {
117
+ }
@@ -0,0 +1,141 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
4
+ import { UpdatePackageGroupOriginConfigurationRequest, UpdatePackageGroupOriginConfigurationResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link UpdatePackageGroupOriginConfigurationCommand}.
13
+ */
14
+ export interface UpdatePackageGroupOriginConfigurationCommandInput extends UpdatePackageGroupOriginConfigurationRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link UpdatePackageGroupOriginConfigurationCommand}.
20
+ */
21
+ export interface UpdatePackageGroupOriginConfigurationCommandOutput extends UpdatePackageGroupOriginConfigurationResult, __MetadataBearer {
22
+ }
23
+ declare const UpdatePackageGroupOriginConfigurationCommand_base: {
24
+ new (input: UpdatePackageGroupOriginConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePackageGroupOriginConfigurationCommandInput, UpdatePackageGroupOriginConfigurationCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdatePackageGroupOriginConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePackageGroupOriginConfigurationCommandInput, UpdatePackageGroupOriginConfigurationCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Updates the package origin configuration for a package group.</p>
30
+ * <p>The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct
31
+ * publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source.
32
+ * For more information about package group origin controls and configuration, see
33
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-origin-controls.html">Package group origin controls</a>
34
+ * in the <i>CodeArtifact User Guide</i>.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { CodeartifactClient, UpdatePackageGroupOriginConfigurationCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
39
+ * // const { CodeartifactClient, UpdatePackageGroupOriginConfigurationCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
40
+ * const client = new CodeartifactClient(config);
41
+ * const input = { // UpdatePackageGroupOriginConfigurationRequest
42
+ * domain: "STRING_VALUE", // required
43
+ * domainOwner: "STRING_VALUE",
44
+ * packageGroup: "STRING_VALUE", // required
45
+ * restrictions: { // OriginRestrictions
46
+ * "<keys>": "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
47
+ * },
48
+ * addAllowedRepositories: [ // PackageGroupAllowedRepositoryList
49
+ * { // PackageGroupAllowedRepository
50
+ * repositoryName: "STRING_VALUE",
51
+ * originRestrictionType: "EXTERNAL_UPSTREAM" || "INTERNAL_UPSTREAM" || "PUBLISH",
52
+ * },
53
+ * ],
54
+ * removeAllowedRepositories: [
55
+ * {
56
+ * repositoryName: "STRING_VALUE",
57
+ * originRestrictionType: "EXTERNAL_UPSTREAM" || "INTERNAL_UPSTREAM" || "PUBLISH",
58
+ * },
59
+ * ],
60
+ * };
61
+ * const command = new UpdatePackageGroupOriginConfigurationCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // UpdatePackageGroupOriginConfigurationResult
64
+ * // packageGroup: { // PackageGroupDescription
65
+ * // arn: "STRING_VALUE",
66
+ * // pattern: "STRING_VALUE",
67
+ * // domainName: "STRING_VALUE",
68
+ * // domainOwner: "STRING_VALUE",
69
+ * // createdTime: new Date("TIMESTAMP"),
70
+ * // contactInfo: "STRING_VALUE",
71
+ * // description: "STRING_VALUE",
72
+ * // originConfiguration: { // PackageGroupOriginConfiguration
73
+ * // restrictions: { // PackageGroupOriginRestrictions
74
+ * // "<keys>": { // PackageGroupOriginRestriction
75
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
76
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
77
+ * // inheritedFrom: { // PackageGroupReference
78
+ * // arn: "STRING_VALUE",
79
+ * // pattern: "STRING_VALUE",
80
+ * // },
81
+ * // repositoriesCount: Number("long"),
82
+ * // },
83
+ * // },
84
+ * // },
85
+ * // parent: {
86
+ * // arn: "STRING_VALUE",
87
+ * // pattern: "STRING_VALUE",
88
+ * // },
89
+ * // },
90
+ * // allowedRepositoryUpdates: { // PackageGroupAllowedRepositoryUpdates
91
+ * // "<keys>": { // PackageGroupAllowedRepositoryUpdate
92
+ * // "<keys>": [ // RepositoryNameList
93
+ * // "STRING_VALUE",
94
+ * // ],
95
+ * // },
96
+ * // },
97
+ * // };
98
+ *
99
+ * ```
100
+ *
101
+ * @param UpdatePackageGroupOriginConfigurationCommandInput - {@link UpdatePackageGroupOriginConfigurationCommandInput}
102
+ * @returns {@link UpdatePackageGroupOriginConfigurationCommandOutput}
103
+ * @see {@link UpdatePackageGroupOriginConfigurationCommandInput} for command's `input` shape.
104
+ * @see {@link UpdatePackageGroupOriginConfigurationCommandOutput} for command's `response` shape.
105
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
106
+ *
107
+ * @throws {@link AccessDeniedException} (client fault)
108
+ * <p>
109
+ * The operation did not succeed because of an unauthorized access attempt.
110
+ * </p>
111
+ *
112
+ * @throws {@link InternalServerException} (server fault)
113
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
114
+ *
115
+ * @throws {@link ResourceNotFoundException} (client fault)
116
+ * <p>
117
+ * The operation did not succeed because the resource requested is not found in the service.
118
+ * </p>
119
+ *
120
+ * @throws {@link ServiceQuotaExceededException} (client fault)
121
+ * <p>
122
+ * The operation did not succeed because it would have exceeded a service limit for your account.
123
+ * </p>
124
+ *
125
+ * @throws {@link ThrottlingException} (client fault)
126
+ * <p>
127
+ * The operation did not succeed because too many requests are sent to the service.
128
+ * </p>
129
+ *
130
+ * @throws {@link ValidationException} (client fault)
131
+ * <p>
132
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
133
+ * </p>
134
+ *
135
+ * @throws {@link CodeartifactServiceException}
136
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
137
+ *
138
+ * @public
139
+ */
140
+ export declare class UpdatePackageGroupOriginConfigurationCommand extends UpdatePackageGroupOriginConfigurationCommand_base {
141
+ }
@@ -1,32 +1,40 @@
1
1
  export * from "./AssociateExternalConnectionCommand";
2
2
  export * from "./CopyPackageVersionsCommand";
3
3
  export * from "./CreateDomainCommand";
4
+ export * from "./CreatePackageGroupCommand";
4
5
  export * from "./CreateRepositoryCommand";
5
6
  export * from "./DeleteDomainCommand";
6
7
  export * from "./DeleteDomainPermissionsPolicyCommand";
7
8
  export * from "./DeletePackageCommand";
9
+ export * from "./DeletePackageGroupCommand";
8
10
  export * from "./DeletePackageVersionsCommand";
9
11
  export * from "./DeleteRepositoryCommand";
10
12
  export * from "./DeleteRepositoryPermissionsPolicyCommand";
11
13
  export * from "./DescribeDomainCommand";
12
14
  export * from "./DescribePackageCommand";
15
+ export * from "./DescribePackageGroupCommand";
13
16
  export * from "./DescribePackageVersionCommand";
14
17
  export * from "./DescribeRepositoryCommand";
15
18
  export * from "./DisassociateExternalConnectionCommand";
16
19
  export * from "./DisposePackageVersionsCommand";
20
+ export * from "./GetAssociatedPackageGroupCommand";
17
21
  export * from "./GetAuthorizationTokenCommand";
18
22
  export * from "./GetDomainPermissionsPolicyCommand";
19
23
  export * from "./GetPackageVersionAssetCommand";
20
24
  export * from "./GetPackageVersionReadmeCommand";
21
25
  export * from "./GetRepositoryEndpointCommand";
22
26
  export * from "./GetRepositoryPermissionsPolicyCommand";
27
+ export * from "./ListAllowedRepositoriesForGroupCommand";
28
+ export * from "./ListAssociatedPackagesCommand";
23
29
  export * from "./ListDomainsCommand";
30
+ export * from "./ListPackageGroupsCommand";
24
31
  export * from "./ListPackageVersionAssetsCommand";
25
32
  export * from "./ListPackageVersionDependenciesCommand";
26
33
  export * from "./ListPackageVersionsCommand";
27
34
  export * from "./ListPackagesCommand";
28
35
  export * from "./ListRepositoriesCommand";
29
36
  export * from "./ListRepositoriesInDomainCommand";
37
+ export * from "./ListSubPackageGroupsCommand";
30
38
  export * from "./ListTagsForResourceCommand";
31
39
  export * from "./PublishPackageVersionCommand";
32
40
  export * from "./PutDomainPermissionsPolicyCommand";
@@ -34,5 +42,7 @@ export * from "./PutPackageOriginConfigurationCommand";
34
42
  export * from "./PutRepositoryPermissionsPolicyCommand";
35
43
  export * from "./TagResourceCommand";
36
44
  export * from "./UntagResourceCommand";
45
+ export * from "./UpdatePackageGroupCommand";
46
+ export * from "./UpdatePackageGroupOriginConfigurationCommand";
37
47
  export * from "./UpdatePackageVersionsStatusCommand";
38
48
  export * from "./UpdateRepositoryCommand";