@aws-sdk/client-artifact 3.515.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/LICENSE +201 -0
- package/README.md +253 -0
- package/dist-cjs/Artifact.js +23 -0
- package/dist-cjs/ArtifactClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/GetAccountSettingsCommand.js +28 -0
- package/dist-cjs/commands/GetReportCommand.js +28 -0
- package/dist-cjs/commands/GetReportMetadataCommand.js +28 -0
- package/dist-cjs/commands/GetTermForReportCommand.js +28 -0
- package/dist-cjs/commands/ListReportsCommand.js +28 -0
- package/dist-cjs/commands/PutAccountSettingsCommand.js +28 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/ArtifactServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +138 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListReportsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +432 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/Artifact.js +19 -0
- package/dist-es/ArtifactClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/GetAccountSettingsCommand.js +24 -0
- package/dist-es/commands/GetReportCommand.js +24 -0
- package/dist-es/commands/GetReportMetadataCommand.js +24 -0
- package/dist-es/commands/GetTermForReportCommand.js +24 -0
- package/dist-es/commands/ListReportsCommand.js +24 -0
- package/dist-es/commands/PutAccountSettingsCommand.js +24 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/ArtifactServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +128 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListReportsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +417 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/Artifact.d.ts +52 -0
- package/dist-types/ArtifactClient.d.ts +177 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +79 -0
- package/dist-types/commands/GetReportCommand.d.ts +81 -0
- package/dist-types/commands/GetReportMetadataCommand.d.ts +98 -0
- package/dist-types/commands/GetTermForReportCommand.d.ts +81 -0
- package/dist-types/commands/ListReportsCommand.d.ts +95 -0
- package/dist-types/commands/PutAccountSettingsCommand.d.ts +81 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/ArtifactServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +605 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListReportsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/Artifact.d.ts +107 -0
- package/dist-types/ts3.4/ArtifactClient.d.ts +156 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetReportCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/GetReportMetadataCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetTermForReportCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/ListReportsCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/PutAccountSettingsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/ArtifactServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +187 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListReportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ArtifactClient";
|
|
4
|
+
import { ListReportsRequest, ListReportsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link ListReportsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListReportsCommandInput extends ListReportsRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link ListReportsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListReportsCommandOutput extends ListReportsResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const ListReportsCommand_base: {
|
|
24
|
+
new (input: ListReportsCommandInput): import("@smithy/smithy-client").CommandImpl<ListReportsCommandInput, ListReportsCommandOutput, ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>List available reports.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { ArtifactClient, ListReportsCommand } from "@aws-sdk/client-artifact"; // ES Modules import
|
|
34
|
+
* // const { ArtifactClient, ListReportsCommand } = require("@aws-sdk/client-artifact"); // CommonJS import
|
|
35
|
+
* const client = new ArtifactClient(config);
|
|
36
|
+
* const input = { // ListReportsRequest
|
|
37
|
+
* maxResults: Number("int"),
|
|
38
|
+
* nextToken: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListReportsCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListReportsResponse
|
|
43
|
+
* // reports: [ // ReportsList
|
|
44
|
+
* // { // ReportSummary
|
|
45
|
+
* // id: "STRING_VALUE",
|
|
46
|
+
* // name: "STRING_VALUE",
|
|
47
|
+
* // state: "STRING_VALUE",
|
|
48
|
+
* // arn: "STRING_VALUE",
|
|
49
|
+
* // version: Number("long"),
|
|
50
|
+
* // uploadState: "STRING_VALUE",
|
|
51
|
+
* // description: "STRING_VALUE",
|
|
52
|
+
* // periodStart: new Date("TIMESTAMP"),
|
|
53
|
+
* // periodEnd: new Date("TIMESTAMP"),
|
|
54
|
+
* // series: "STRING_VALUE",
|
|
55
|
+
* // category: "STRING_VALUE",
|
|
56
|
+
* // companyName: "STRING_VALUE",
|
|
57
|
+
* // productName: "STRING_VALUE",
|
|
58
|
+
* // statusMessage: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // nextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListReportsCommandInput - {@link ListReportsCommandInput}
|
|
67
|
+
* @returns {@link ListReportsCommandOutput}
|
|
68
|
+
* @see {@link ListReportsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListReportsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link ArtifactClientResolvedConfig | config} for ArtifactClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>An unknown server exception has occurred.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p>Request references a resource which does not exist.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
82
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>Request was denied due to request throttling.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
* <p>Request fails to satisfy the constraints specified by an AWS service.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ArtifactServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from Artifact service.</p>
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListReportsCommand extends ListReportsCommand_base {
|
|
95
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ArtifactClient";
|
|
4
|
+
import { PutAccountSettingsRequest, PutAccountSettingsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link PutAccountSettingsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface PutAccountSettingsCommandInput extends PutAccountSettingsRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link PutAccountSettingsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface PutAccountSettingsCommandOutput extends PutAccountSettingsResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const PutAccountSettingsCommand_base: {
|
|
24
|
+
new (input: PutAccountSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput, ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>Put the account settings for Artifact.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { ArtifactClient, PutAccountSettingsCommand } from "@aws-sdk/client-artifact"; // ES Modules import
|
|
34
|
+
* // const { ArtifactClient, PutAccountSettingsCommand } = require("@aws-sdk/client-artifact"); // CommonJS import
|
|
35
|
+
* const client = new ArtifactClient(config);
|
|
36
|
+
* const input = { // PutAccountSettingsRequest
|
|
37
|
+
* notificationSubscriptionStatus: "STRING_VALUE",
|
|
38
|
+
* };
|
|
39
|
+
* const command = new PutAccountSettingsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // PutAccountSettingsResponse
|
|
42
|
+
* // accountSettings: { // AccountSettings
|
|
43
|
+
* // notificationSubscriptionStatus: "STRING_VALUE",
|
|
44
|
+
* // },
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param PutAccountSettingsCommandInput - {@link PutAccountSettingsCommandInput}
|
|
50
|
+
* @returns {@link PutAccountSettingsCommandOutput}
|
|
51
|
+
* @see {@link PutAccountSettingsCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link PutAccountSettingsCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link ArtifactClientResolvedConfig | config} for ArtifactClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>User does not have sufficient access to perform this action.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Request to create/modify content would result in a conflict.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>An unknown server exception has occurred.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>Request references a resource which does not exist.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
68
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
71
|
+
* <p>Request was denied due to request throttling.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>Request fails to satisfy the constraints specified by an AWS service.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ArtifactServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Artifact service.</p>
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare class PutAccountSettingsCommand extends PutAccountSettingsCommand_base {
|
|
81
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | Provider<string>;
|
|
7
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const commonParams: {
|
|
18
|
+
readonly UseFIPS: {
|
|
19
|
+
readonly type: "builtInParams";
|
|
20
|
+
readonly name: "useFipsEndpoint";
|
|
21
|
+
};
|
|
22
|
+
readonly Endpoint: {
|
|
23
|
+
readonly type: "builtInParams";
|
|
24
|
+
readonly name: "endpoint";
|
|
25
|
+
};
|
|
26
|
+
readonly Region: {
|
|
27
|
+
readonly type: "builtInParams";
|
|
28
|
+
readonly name: "region";
|
|
29
|
+
};
|
|
30
|
+
readonly UseDualStack: {
|
|
31
|
+
readonly type: "builtInParams";
|
|
32
|
+
readonly name: "useDualstackEndpoint";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
36
|
+
Region?: string;
|
|
37
|
+
UseDualStack?: boolean;
|
|
38
|
+
UseFIPS?: boolean;
|
|
39
|
+
Endpoint?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface ArtifactExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>This reference provides descriptions of the low-level AWS Artifact Service API.</p>
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./ArtifactClient";
|
|
7
|
+
export * from "./Artifact";
|
|
8
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export { ArtifactExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export * from "./pagination";
|
|
13
|
+
export * from "./models";
|
|
14
|
+
import "@aws-sdk/util-endpoints";
|
|
15
|
+
export { ArtifactServiceException } from "./models/ArtifactServiceException";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Base exception class for all service exceptions from Artifact service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ArtifactServiceException extends __ServiceException {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: __ServiceExceptionOptions);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|