@aws-sdk/client-codeartifact 3.535.0 → 3.539.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 (67) hide show
  1. package/README.md +149 -6
  2. package/dist-cjs/index.js +609 -2
  3. package/dist-es/Codeartifact.js +20 -0
  4. package/dist-es/commands/CreatePackageGroupCommand.js +24 -0
  5. package/dist-es/commands/DeletePackageGroupCommand.js +24 -0
  6. package/dist-es/commands/DescribePackageGroupCommand.js +24 -0
  7. package/dist-es/commands/GetAssociatedPackageGroupCommand.js +24 -0
  8. package/dist-es/commands/GetAuthorizationTokenCommand.js +2 -1
  9. package/dist-es/commands/ListAllowedRepositoriesForGroupCommand.js +24 -0
  10. package/dist-es/commands/ListAssociatedPackagesCommand.js +24 -0
  11. package/dist-es/commands/ListPackageGroupsCommand.js +24 -0
  12. package/dist-es/commands/ListSubPackageGroupsCommand.js +24 -0
  13. package/dist-es/commands/UpdatePackageGroupCommand.js +24 -0
  14. package/dist-es/commands/UpdatePackageGroupOriginConfigurationCommand.js +24 -0
  15. package/dist-es/commands/index.js +10 -0
  16. package/dist-es/models/models_0.js +22 -0
  17. package/dist-es/pagination/ListAllowedRepositoriesForGroupPaginator.js +4 -0
  18. package/dist-es/pagination/ListAssociatedPackagesPaginator.js +4 -0
  19. package/dist-es/pagination/ListPackageGroupsPaginator.js +4 -0
  20. package/dist-es/pagination/ListSubPackageGroupsPaginator.js +4 -0
  21. package/dist-es/pagination/index.js +4 -0
  22. package/dist-es/protocols/Aws_restJson1.js +347 -0
  23. package/dist-types/Codeartifact.d.ts +139 -6
  24. package/dist-types/CodeartifactClient.d.ts +81 -8
  25. package/dist-types/commands/CreatePackageGroupCommand.d.ts +129 -0
  26. package/dist-types/commands/DeletePackageCommand.d.ts +1 -1
  27. package/dist-types/commands/DeletePackageGroupCommand.d.ts +123 -0
  28. package/dist-types/commands/DescribePackageGroupCommand.d.ts +110 -0
  29. package/dist-types/commands/GetAssociatedPackageGroupCommand.d.ts +112 -0
  30. package/dist-types/commands/GetRepositoryEndpointCommand.d.ts +10 -0
  31. package/dist-types/commands/ListAllowedRepositoriesForGroupCommand.d.ts +97 -0
  32. package/dist-types/commands/ListAssociatedPackagesCommand.d.ts +92 -0
  33. package/dist-types/commands/ListPackageGroupsCommand.d.ts +114 -0
  34. package/dist-types/commands/ListSubPackageGroupsCommand.d.ts +117 -0
  35. package/dist-types/commands/PublishPackageVersionCommand.d.ts +3 -3
  36. package/dist-types/commands/UpdatePackageGroupCommand.d.ts +117 -0
  37. package/dist-types/commands/UpdatePackageGroupOriginConfigurationCommand.d.ts +141 -0
  38. package/dist-types/commands/index.d.ts +10 -0
  39. package/dist-types/index.d.ts +69 -6
  40. package/dist-types/models/models_0.d.ts +1258 -159
  41. package/dist-types/pagination/ListAllowedRepositoriesForGroupPaginator.d.ts +7 -0
  42. package/dist-types/pagination/ListAssociatedPackagesPaginator.d.ts +7 -0
  43. package/dist-types/pagination/ListPackageGroupsPaginator.d.ts +7 -0
  44. package/dist-types/pagination/ListSubPackageGroupsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/index.d.ts +4 -0
  46. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  47. package/dist-types/ts3.4/Codeartifact.d.ts +176 -0
  48. package/dist-types/ts3.4/CodeartifactClient.d.ts +60 -0
  49. package/dist-types/ts3.4/commands/CreatePackageGroupCommand.d.ts +39 -0
  50. package/dist-types/ts3.4/commands/DeletePackageGroupCommand.d.ts +39 -0
  51. package/dist-types/ts3.4/commands/DescribePackageGroupCommand.d.ts +39 -0
  52. package/dist-types/ts3.4/commands/GetAssociatedPackageGroupCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/ListAllowedRepositoriesForGroupCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/ListAssociatedPackagesCommand.d.ts +39 -0
  55. package/dist-types/ts3.4/commands/ListPackageGroupsCommand.d.ts +39 -0
  56. package/dist-types/ts3.4/commands/ListSubPackageGroupsCommand.d.ts +39 -0
  57. package/dist-types/ts3.4/commands/UpdatePackageGroupCommand.d.ts +39 -0
  58. package/dist-types/ts3.4/commands/UpdatePackageGroupOriginConfigurationCommand.d.ts +39 -0
  59. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  60. package/dist-types/ts3.4/models/models_0.d.ts +196 -6
  61. package/dist-types/ts3.4/pagination/ListAllowedRepositoriesForGroupPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/ListAssociatedPackagesPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/ListPackageGroupsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListSubPackageGroupsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  67. package/package.json +1 -1
@@ -0,0 +1,129 @@
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 { CreatePackageGroupRequest, CreatePackageGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link CreatePackageGroupCommand}.
13
+ */
14
+ export interface CreatePackageGroupCommandInput extends CreatePackageGroupRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link CreatePackageGroupCommand}.
20
+ */
21
+ export interface CreatePackageGroupCommandOutput extends CreatePackageGroupResult, __MetadataBearer {
22
+ }
23
+ declare const CreatePackageGroupCommand_base: {
24
+ new (input: CreatePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePackageGroupCommandInput, CreatePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CreatePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePackageGroupCommandInput, CreatePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>
30
+ * Creates a package group. For more information about creating package groups, including example CLI commands, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/create-package-group.html">Create a package group</a> in the <i>CodeArtifact User Guide</i>.
31
+ * </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { CodeartifactClient, CreatePackageGroupCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
36
+ * // const { CodeartifactClient, CreatePackageGroupCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
37
+ * const client = new CodeartifactClient(config);
38
+ * const input = { // CreatePackageGroupRequest
39
+ * domain: "STRING_VALUE", // required
40
+ * domainOwner: "STRING_VALUE",
41
+ * packageGroup: "STRING_VALUE", // required
42
+ * contactInfo: "STRING_VALUE",
43
+ * description: "STRING_VALUE",
44
+ * tags: [ // TagList
45
+ * { // Tag
46
+ * key: "STRING_VALUE", // required
47
+ * value: "STRING_VALUE", // required
48
+ * },
49
+ * ],
50
+ * };
51
+ * const command = new CreatePackageGroupCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // CreatePackageGroupResult
54
+ * // packageGroup: { // PackageGroupDescription
55
+ * // arn: "STRING_VALUE",
56
+ * // pattern: "STRING_VALUE",
57
+ * // domainName: "STRING_VALUE",
58
+ * // domainOwner: "STRING_VALUE",
59
+ * // createdTime: new Date("TIMESTAMP"),
60
+ * // contactInfo: "STRING_VALUE",
61
+ * // description: "STRING_VALUE",
62
+ * // originConfiguration: { // PackageGroupOriginConfiguration
63
+ * // restrictions: { // PackageGroupOriginRestrictions
64
+ * // "<keys>": { // PackageGroupOriginRestriction
65
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
66
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
67
+ * // inheritedFrom: { // PackageGroupReference
68
+ * // arn: "STRING_VALUE",
69
+ * // pattern: "STRING_VALUE",
70
+ * // },
71
+ * // repositoriesCount: Number("long"),
72
+ * // },
73
+ * // },
74
+ * // },
75
+ * // parent: {
76
+ * // arn: "STRING_VALUE",
77
+ * // pattern: "STRING_VALUE",
78
+ * // },
79
+ * // },
80
+ * // };
81
+ *
82
+ * ```
83
+ *
84
+ * @param CreatePackageGroupCommandInput - {@link CreatePackageGroupCommandInput}
85
+ * @returns {@link CreatePackageGroupCommandOutput}
86
+ * @see {@link CreatePackageGroupCommandInput} for command's `input` shape.
87
+ * @see {@link CreatePackageGroupCommandOutput} for command's `response` shape.
88
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
89
+ *
90
+ * @throws {@link AccessDeniedException} (client fault)
91
+ * <p>
92
+ * The operation did not succeed because of an unauthorized access attempt.
93
+ * </p>
94
+ *
95
+ * @throws {@link ConflictException} (client fault)
96
+ * <p>
97
+ * The operation did not succeed because prerequisites are not met.
98
+ * </p>
99
+ *
100
+ * @throws {@link InternalServerException} (server fault)
101
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
102
+ *
103
+ * @throws {@link ResourceNotFoundException} (client fault)
104
+ * <p>
105
+ * The operation did not succeed because the resource requested is not found in the service.
106
+ * </p>
107
+ *
108
+ * @throws {@link ServiceQuotaExceededException} (client fault)
109
+ * <p>
110
+ * The operation did not succeed because it would have exceeded a service limit for your account.
111
+ * </p>
112
+ *
113
+ * @throws {@link ThrottlingException} (client fault)
114
+ * <p>
115
+ * The operation did not succeed because too many requests are sent to the service.
116
+ * </p>
117
+ *
118
+ * @throws {@link ValidationException} (client fault)
119
+ * <p>
120
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
121
+ * </p>
122
+ *
123
+ * @throws {@link CodeartifactServiceException}
124
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
125
+ *
126
+ * @public
127
+ */
128
+ export declare class CreatePackageGroupCommand extends CreatePackageGroupCommand_base {
129
+ }
@@ -27,7 +27,7 @@ declare const DeletePackageCommand_base: {
27
27
  };
28
28
  /**
29
29
  * <p>Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the
30
- * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html">DeletePackageVersions</a> API.</p>
30
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html">DeletePackageVersions</a> API.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -0,0 +1,123 @@
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 { DeletePackageGroupRequest, DeletePackageGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeletePackageGroupCommand}.
13
+ */
14
+ export interface DeletePackageGroupCommandInput extends DeletePackageGroupRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeletePackageGroupCommand}.
20
+ */
21
+ export interface DeletePackageGroupCommandOutput extends DeletePackageGroupResult, __MetadataBearer {
22
+ }
23
+ declare const DeletePackageGroupCommand_base: {
24
+ new (input: DeletePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePackageGroupCommandInput, DeletePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeletePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePackageGroupCommandInput, DeletePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Deletes a package group.
30
+ * Deleting a package group does not delete packages or package versions associated with the package group.
31
+ * When a package group is deleted, the direct child package groups will become children of the package
32
+ * group's direct parent package group. Therefore, if any of the child groups are inheriting any settings
33
+ * from the parent, those settings could change.</p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { CodeartifactClient, DeletePackageGroupCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
38
+ * // const { CodeartifactClient, DeletePackageGroupCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
39
+ * const client = new CodeartifactClient(config);
40
+ * const input = { // DeletePackageGroupRequest
41
+ * domain: "STRING_VALUE", // required
42
+ * domainOwner: "STRING_VALUE",
43
+ * packageGroup: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DeletePackageGroupCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // DeletePackageGroupResult
48
+ * // packageGroup: { // PackageGroupDescription
49
+ * // arn: "STRING_VALUE",
50
+ * // pattern: "STRING_VALUE",
51
+ * // domainName: "STRING_VALUE",
52
+ * // domainOwner: "STRING_VALUE",
53
+ * // createdTime: new Date("TIMESTAMP"),
54
+ * // contactInfo: "STRING_VALUE",
55
+ * // description: "STRING_VALUE",
56
+ * // originConfiguration: { // PackageGroupOriginConfiguration
57
+ * // restrictions: { // PackageGroupOriginRestrictions
58
+ * // "<keys>": { // PackageGroupOriginRestriction
59
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
60
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
61
+ * // inheritedFrom: { // PackageGroupReference
62
+ * // arn: "STRING_VALUE",
63
+ * // pattern: "STRING_VALUE",
64
+ * // },
65
+ * // repositoriesCount: Number("long"),
66
+ * // },
67
+ * // },
68
+ * // },
69
+ * // parent: {
70
+ * // arn: "STRING_VALUE",
71
+ * // pattern: "STRING_VALUE",
72
+ * // },
73
+ * // },
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param DeletePackageGroupCommandInput - {@link DeletePackageGroupCommandInput}
79
+ * @returns {@link DeletePackageGroupCommandOutput}
80
+ * @see {@link DeletePackageGroupCommandInput} for command's `input` shape.
81
+ * @see {@link DeletePackageGroupCommandOutput} for command's `response` shape.
82
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>
86
+ * The operation did not succeed because of an unauthorized access attempt.
87
+ * </p>
88
+ *
89
+ * @throws {@link ConflictException} (client fault)
90
+ * <p>
91
+ * The operation did not succeed because prerequisites are not met.
92
+ * </p>
93
+ *
94
+ * @throws {@link InternalServerException} (server fault)
95
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
96
+ *
97
+ * @throws {@link ResourceNotFoundException} (client fault)
98
+ * <p>
99
+ * The operation did not succeed because the resource requested is not found in the service.
100
+ * </p>
101
+ *
102
+ * @throws {@link ServiceQuotaExceededException} (client fault)
103
+ * <p>
104
+ * The operation did not succeed because it would have exceeded a service limit for your account.
105
+ * </p>
106
+ *
107
+ * @throws {@link ThrottlingException} (client fault)
108
+ * <p>
109
+ * The operation did not succeed because too many requests are sent to the service.
110
+ * </p>
111
+ *
112
+ * @throws {@link ValidationException} (client fault)
113
+ * <p>
114
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
115
+ * </p>
116
+ *
117
+ * @throws {@link CodeartifactServiceException}
118
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
119
+ *
120
+ * @public
121
+ */
122
+ export declare class DeletePackageGroupCommand extends DeletePackageGroupCommand_base {
123
+ }
@@ -0,0 +1,110 @@
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 { DescribePackageGroupRequest, DescribePackageGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DescribePackageGroupCommand}.
13
+ */
14
+ export interface DescribePackageGroupCommandInput extends DescribePackageGroupRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DescribePackageGroupCommand}.
20
+ */
21
+ export interface DescribePackageGroupCommandOutput extends DescribePackageGroupResult, __MetadataBearer {
22
+ }
23
+ declare const DescribePackageGroupCommand_base: {
24
+ new (input: DescribePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DescribePackageGroupCommandInput, DescribePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DescribePackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DescribePackageGroupCommandInput, DescribePackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns a <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object that
30
+ * contains information about the requested package group.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CodeartifactClient, DescribePackageGroupCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
35
+ * // const { CodeartifactClient, DescribePackageGroupCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
36
+ * const client = new CodeartifactClient(config);
37
+ * const input = { // DescribePackageGroupRequest
38
+ * domain: "STRING_VALUE", // required
39
+ * domainOwner: "STRING_VALUE",
40
+ * packageGroup: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DescribePackageGroupCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DescribePackageGroupResult
45
+ * // packageGroup: { // PackageGroupDescription
46
+ * // arn: "STRING_VALUE",
47
+ * // pattern: "STRING_VALUE",
48
+ * // domainName: "STRING_VALUE",
49
+ * // domainOwner: "STRING_VALUE",
50
+ * // createdTime: new Date("TIMESTAMP"),
51
+ * // contactInfo: "STRING_VALUE",
52
+ * // description: "STRING_VALUE",
53
+ * // originConfiguration: { // PackageGroupOriginConfiguration
54
+ * // restrictions: { // PackageGroupOriginRestrictions
55
+ * // "<keys>": { // PackageGroupOriginRestriction
56
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
57
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
58
+ * // inheritedFrom: { // PackageGroupReference
59
+ * // arn: "STRING_VALUE",
60
+ * // pattern: "STRING_VALUE",
61
+ * // },
62
+ * // repositoriesCount: Number("long"),
63
+ * // },
64
+ * // },
65
+ * // },
66
+ * // parent: {
67
+ * // arn: "STRING_VALUE",
68
+ * // pattern: "STRING_VALUE",
69
+ * // },
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param DescribePackageGroupCommandInput - {@link DescribePackageGroupCommandInput}
76
+ * @returns {@link DescribePackageGroupCommandOutput}
77
+ * @see {@link DescribePackageGroupCommandInput} for command's `input` shape.
78
+ * @see {@link DescribePackageGroupCommandOutput} for command's `response` shape.
79
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
80
+ *
81
+ * @throws {@link AccessDeniedException} (client fault)
82
+ * <p>
83
+ * The operation did not succeed because of an unauthorized access attempt.
84
+ * </p>
85
+ *
86
+ * @throws {@link InternalServerException} (server fault)
87
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
88
+ *
89
+ * @throws {@link ResourceNotFoundException} (client fault)
90
+ * <p>
91
+ * The operation did not succeed because the resource requested is not found in the service.
92
+ * </p>
93
+ *
94
+ * @throws {@link ThrottlingException} (client fault)
95
+ * <p>
96
+ * The operation did not succeed because too many requests are sent to the service.
97
+ * </p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>
101
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
102
+ * </p>
103
+ *
104
+ * @throws {@link CodeartifactServiceException}
105
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
106
+ *
107
+ * @public
108
+ */
109
+ export declare class DescribePackageGroupCommand extends DescribePackageGroupCommand_base {
110
+ }
@@ -0,0 +1,112 @@
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 { GetAssociatedPackageGroupRequest, GetAssociatedPackageGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetAssociatedPackageGroupCommand}.
13
+ */
14
+ export interface GetAssociatedPackageGroupCommandInput extends GetAssociatedPackageGroupRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetAssociatedPackageGroupCommand}.
20
+ */
21
+ export interface GetAssociatedPackageGroupCommandOutput extends GetAssociatedPackageGroupResult, __MetadataBearer {
22
+ }
23
+ declare const GetAssociatedPackageGroupCommand_base: {
24
+ new (input: GetAssociatedPackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<GetAssociatedPackageGroupCommandInput, GetAssociatedPackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetAssociatedPackageGroupCommandInput): import("@smithy/smithy-client").CommandImpl<GetAssociatedPackageGroupCommandInput, GetAssociatedPackageGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns the most closely associated package group to the specified package. This API does not require that the package exist
30
+ * in any repository in the domain. As such, <code>GetAssociatedPackageGroup</code> can be used to see which package group's origin configuration
31
+ * applies to a package before that package is in a repository. This can be helpful to check if public packages are blocked without ingesting them.</p>
32
+ * <p>For information package group association and matching, see
33
+ * <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package group
34
+ * definition syntax and matching behavior</a> 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, GetAssociatedPackageGroupCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
39
+ * // const { CodeartifactClient, GetAssociatedPackageGroupCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
40
+ * const client = new CodeartifactClient(config);
41
+ * const input = { // GetAssociatedPackageGroupRequest
42
+ * domain: "STRING_VALUE", // required
43
+ * domainOwner: "STRING_VALUE",
44
+ * format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "swift", // required
45
+ * namespace: "STRING_VALUE",
46
+ * package: "STRING_VALUE", // required
47
+ * };
48
+ * const command = new GetAssociatedPackageGroupCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // GetAssociatedPackageGroupResult
51
+ * // packageGroup: { // PackageGroupDescription
52
+ * // arn: "STRING_VALUE",
53
+ * // pattern: "STRING_VALUE",
54
+ * // domainName: "STRING_VALUE",
55
+ * // domainOwner: "STRING_VALUE",
56
+ * // createdTime: new Date("TIMESTAMP"),
57
+ * // contactInfo: "STRING_VALUE",
58
+ * // description: "STRING_VALUE",
59
+ * // originConfiguration: { // PackageGroupOriginConfiguration
60
+ * // restrictions: { // PackageGroupOriginRestrictions
61
+ * // "<keys>": { // PackageGroupOriginRestriction
62
+ * // mode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
63
+ * // effectiveMode: "ALLOW" || "ALLOW_SPECIFIC_REPOSITORIES" || "BLOCK" || "INHERIT",
64
+ * // inheritedFrom: { // PackageGroupReference
65
+ * // arn: "STRING_VALUE",
66
+ * // pattern: "STRING_VALUE",
67
+ * // },
68
+ * // repositoriesCount: Number("long"),
69
+ * // },
70
+ * // },
71
+ * // },
72
+ * // parent: {
73
+ * // arn: "STRING_VALUE",
74
+ * // pattern: "STRING_VALUE",
75
+ * // },
76
+ * // },
77
+ * // associationType: "STRONG" || "WEAK",
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param GetAssociatedPackageGroupCommandInput - {@link GetAssociatedPackageGroupCommandInput}
83
+ * @returns {@link GetAssociatedPackageGroupCommandOutput}
84
+ * @see {@link GetAssociatedPackageGroupCommandInput} for command's `input` shape.
85
+ * @see {@link GetAssociatedPackageGroupCommandOutput} 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 ValidationException} (client fault)
102
+ * <p>
103
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
104
+ * </p>
105
+ *
106
+ * @throws {@link CodeartifactServiceException}
107
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
108
+ *
109
+ * @public
110
+ */
111
+ export declare class GetAssociatedPackageGroupCommand extends GetAssociatedPackageGroupCommand_base {
112
+ }
@@ -33,6 +33,11 @@ declare const GetRepositoryEndpointCommand_base: {
33
33
  * <ul>
34
34
  * <li>
35
35
  * <p>
36
+ * <code>generic</code>
37
+ * </p>
38
+ * </li>
39
+ * <li>
40
+ * <p>
36
41
  * <code>maven</code>
37
42
  * </p>
38
43
  * </li>
@@ -51,6 +56,11 @@ declare const GetRepositoryEndpointCommand_base: {
51
56
  * <code>pypi</code>
52
57
  * </p>
53
58
  * </li>
59
+ * <li>
60
+ * <p>
61
+ * <code>swift</code>
62
+ * </p>
63
+ * </li>
54
64
  * </ul>
55
65
  * @example
56
66
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,97 @@
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 { ListAllowedRepositoriesForGroupRequest, ListAllowedRepositoriesForGroupResult } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListAllowedRepositoriesForGroupCommand}.
13
+ */
14
+ export interface ListAllowedRepositoriesForGroupCommandInput extends ListAllowedRepositoriesForGroupRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListAllowedRepositoriesForGroupCommand}.
20
+ */
21
+ export interface ListAllowedRepositoriesForGroupCommandOutput extends ListAllowedRepositoriesForGroupResult, __MetadataBearer {
22
+ }
23
+ declare const ListAllowedRepositoriesForGroupCommand_base: {
24
+ new (input: ListAllowedRepositoriesForGroupCommandInput): import("@smithy/smithy-client").CommandImpl<ListAllowedRepositoriesForGroupCommandInput, ListAllowedRepositoriesForGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListAllowedRepositoriesForGroupCommandInput): import("@smithy/smithy-client").CommandImpl<ListAllowedRepositoriesForGroupCommandInput, ListAllowedRepositoriesForGroupCommandOutput, CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Lists the repositories in the added repositories list of the specified restriction type for a package group. For more information about restriction types
30
+ * and added repository lists, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-origin-controls.html">Package group origin controls</a> in the <i>CodeArtifact User Guide</i>.
31
+ * </p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { CodeartifactClient, ListAllowedRepositoriesForGroupCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
36
+ * // const { CodeartifactClient, ListAllowedRepositoriesForGroupCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
37
+ * const client = new CodeartifactClient(config);
38
+ * const input = { // ListAllowedRepositoriesForGroupRequest
39
+ * domain: "STRING_VALUE", // required
40
+ * domainOwner: "STRING_VALUE",
41
+ * packageGroup: "STRING_VALUE", // required
42
+ * originRestrictionType: "EXTERNAL_UPSTREAM" || "INTERNAL_UPSTREAM" || "PUBLISH", // required
43
+ * maxResults: Number("int"),
44
+ * nextToken: "STRING_VALUE",
45
+ * };
46
+ * const command = new ListAllowedRepositoriesForGroupCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ListAllowedRepositoriesForGroupResult
49
+ * // allowedRepositories: [ // RepositoryNameList
50
+ * // "STRING_VALUE",
51
+ * // ],
52
+ * // nextToken: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListAllowedRepositoriesForGroupCommandInput - {@link ListAllowedRepositoriesForGroupCommandInput}
58
+ * @returns {@link ListAllowedRepositoriesForGroupCommandOutput}
59
+ * @see {@link ListAllowedRepositoriesForGroupCommandInput} for command's `input` shape.
60
+ * @see {@link ListAllowedRepositoriesForGroupCommandOutput} for command's `response` shape.
61
+ * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>
65
+ * The operation did not succeed because of an unauthorized access attempt.
66
+ * </p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p> The operation did not succeed because of an error that occurred inside CodeArtifact. </p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>
73
+ * The operation did not succeed because the resource requested is not found in the service.
74
+ * </p>
75
+ *
76
+ * @throws {@link ServiceQuotaExceededException} (client fault)
77
+ * <p>
78
+ * The operation did not succeed because it would have exceeded a service limit for your account.
79
+ * </p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>
83
+ * The operation did not succeed because too many requests are sent to the service.
84
+ * </p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>
88
+ * The operation did not succeed because a parameter in the request was sent with an invalid value.
89
+ * </p>
90
+ *
91
+ * @throws {@link CodeartifactServiceException}
92
+ * <p>Base exception class for all service exceptions from Codeartifact service.</p>
93
+ *
94
+ * @public
95
+ */
96
+ export declare class ListAllowedRepositoriesForGroupCommand extends ListAllowedRepositoriesForGroupCommand_base {
97
+ }