@aws-sdk/client-artifact 3.601.0 → 3.606.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.
@@ -76,6 +76,22 @@ declare const GetAccountSettingsCommand_base: {
76
76
  * <p>Base exception class for all service exceptions from Artifact service.</p>
77
77
  *
78
78
  * @public
79
+ * @example Invoke GetAccountSettings operation
80
+ * ```javascript
81
+ * // Get the current account settings.
82
+ * const input = {};
83
+ * const command = new GetAccountSettingsCommand(input);
84
+ * const response = await client.send(command);
85
+ * /* response ==
86
+ * {
87
+ * "accountSettings": {
88
+ * "notificationSubscriptionStatus": "SUBSCRIBED"
89
+ * }
90
+ * }
91
+ * *\/
92
+ * // example id: example-1
93
+ * ```
94
+ *
79
95
  */
80
96
  export declare class GetAccountSettingsCommand extends GetAccountSettingsCommand_base {
81
97
  }
@@ -78,6 +78,26 @@ declare const GetReportCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from Artifact service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Invoke GetReport operation on the latest version of a specific report
82
+ * ```javascript
83
+ * // The GetReport operation is invoked on a reportId and on a optional version.
84
+ * // Callers must provide a termToken, which is provided by the GetTermForReport
85
+ * // operation. If callers do not provide a version, it will default to the
86
+ * // report's latest version
87
+ * const input = {
88
+ * "reportId": "report-1hVFddebtfDNJAUf",
89
+ * "termToken": "term-token-gPFEGk7CF4wS901w7ppYclt7"
90
+ * };
91
+ * const command = new GetReportCommand(input);
92
+ * const response = await client.send(command);
93
+ * /* response ==
94
+ * {
95
+ * "documentPresignedUrl": "<Presigned S3 URL>"
96
+ * }
97
+ * *\/
98
+ * // example id: example-1
99
+ * ```
100
+ *
81
101
  */
82
102
  export declare class GetReportCommand extends GetReportCommand_base {
83
103
  }
@@ -95,6 +95,38 @@ declare const GetReportMetadataCommand_base: {
95
95
  * <p>Base exception class for all service exceptions from Artifact service.</p>
96
96
  *
97
97
  * @public
98
+ * @example Invoke GetReportMetadata operation on the latest version of a specific report
99
+ * ```javascript
100
+ * // The GetReportMetadata operation is invoked on a reportId and on a optional version.
101
+ * // If callers do not provide a version, it will default to the report's latest version.
102
+ * const input = {
103
+ * "reportId": "report-bqhUJF3FrQZsMJpb"
104
+ * };
105
+ * const command = new GetReportMetadataCommand(input);
106
+ * const response = await client.send(command);
107
+ * /* response ==
108
+ * {
109
+ * "reportDetails": {
110
+ * "version": 1,
111
+ * "name": "Name of report",
112
+ * "arn": "arn:aws:artifact:us-east-1::report/report-bqhUJF3FrQZsMJpb:1",
113
+ * "category": "Artifact Category",
114
+ * "companyName": "AWS",
115
+ * "createdAt": "2022-05-27T23:17:00.343940Z",
116
+ * "description": "Description of report",
117
+ * "id": "report-bqhUJF3FrQZsMJpb",
118
+ * "periodEnd": "2022-04-01T20:32:04Z",
119
+ * "periodStart": "2022-04-01T20:32:04Z",
120
+ * "productName": "Product of report",
121
+ * "series": "Artifact Series",
122
+ * "state": "PUBLISHED",
123
+ * "termArn": "arn:aws:artifact:us-east-1::term/term-gLJGG12NyPtYcmtu:1"
124
+ * }
125
+ * }
126
+ * *\/
127
+ * // example id: example-1
128
+ * ```
129
+ *
98
130
  */
99
131
  export declare class GetReportMetadataCommand extends GetReportMetadataCommand_base {
100
132
  }
@@ -78,6 +78,24 @@ declare const GetTermForReportCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from Artifact service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Invoke GetTermForReport operation on the latest version of a specific report
82
+ * ```javascript
83
+ * // The GetTermForReport operation is invoked on a reportId and on a optional version.
84
+ * // If callers do not provide a version, it will default to the report's latest version.
85
+ * const input = {
86
+ * "reportId": "report-bqhUJF3FrQZsMJpb"
87
+ * };
88
+ * const command = new GetTermForReportCommand(input);
89
+ * const response = await client.send(command);
90
+ * /* response ==
91
+ * {
92
+ * "documentPresignedUrl": "<Presigned S3 URL>",
93
+ * "termToken": "term-token-gPFEGk7CF4wS901w7ppYclt7"
94
+ * }
95
+ * *\/
96
+ * // example id: example-1
97
+ * ```
98
+ *
81
99
  */
82
100
  export declare class GetTermForReportCommand extends GetTermForReportCommand_base {
83
101
  }
@@ -93,6 +93,36 @@ declare const ListReportsCommand_base: {
93
93
  * <p>Base exception class for all service exceptions from Artifact service.</p>
94
94
  *
95
95
  * @public
96
+ * @example Invoke ListReports operation
97
+ * ```javascript
98
+ * // The ListReports operation returns a collection of report resources.
99
+ * const input = {};
100
+ * const command = new ListReportsCommand(input);
101
+ * const response = await client.send(command);
102
+ * /* response ==
103
+ * {
104
+ * "nextToken": "gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7",
105
+ * "reports": [
106
+ * {
107
+ * "version": 1,
108
+ * "name": "Name of report",
109
+ * "arn": "arn:aws:artifact:us-east-1::report/report-bqhUJF3FrQZsMJpb",
110
+ * "category": "Artifact Category",
111
+ * "companyName": "AWS",
112
+ * "description": "Description of report",
113
+ * "id": "report-bqhUJF3FrQZsMJpb",
114
+ * "periodEnd": "2022-04-01T20:32:04Z",
115
+ * "periodStart": "2022-04-01T20:32:04Z",
116
+ * "productName": "Product of report",
117
+ * "series": "Artifact Series",
118
+ * "state": "PUBLISHED"
119
+ * }
120
+ * ]
121
+ * }
122
+ * *\/
123
+ * // example id: example-1
124
+ * ```
125
+ *
96
126
  */
97
127
  export declare class ListReportsCommand extends ListReportsCommand_base {
98
128
  }
@@ -78,6 +78,24 @@ declare const PutAccountSettingsCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from Artifact service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Invoke PutAccountSettings operation
82
+ * ```javascript
83
+ * // Set the account settings.
84
+ * const input = {
85
+ * "notificationSubscriptionStatus": "SUBSCRIBED"
86
+ * };
87
+ * const command = new PutAccountSettingsCommand(input);
88
+ * const response = await client.send(command);
89
+ * /* response ==
90
+ * {
91
+ * "accountSettings": {
92
+ * "notificationSubscriptionStatus": "SUBSCRIBED"
93
+ * }
94
+ * }
95
+ * *\/
96
+ * // example id: example-1
97
+ * ```
98
+ *
81
99
  */
82
100
  export declare class PutAccountSettingsCommand extends PutAccountSettingsCommand_base {
83
101
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-artifact",
3
3
  "description": "AWS SDK for JavaScript Artifact Client for Node.js, Browser and React Native",
4
- "version": "3.601.0",
4
+ "version": "3.606.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",
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.600.0",
24
- "@aws-sdk/client-sts": "3.600.0",
23
+ "@aws-sdk/client-sso-oidc": "3.606.0",
24
+ "@aws-sdk/client-sts": "3.606.0",
25
25
  "@aws-sdk/core": "3.598.0",
26
26
  "@aws-sdk/credential-provider-node": "3.600.0",
27
27
  "@aws-sdk/middleware-host-header": "3.598.0",