@aws-sdk/client-dataexchange 3.670.0 → 3.675.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 (69) hide show
  1. package/README.md +71 -13
  2. package/dist-cjs/index.js +467 -40
  3. package/dist-es/DataExchange.js +14 -0
  4. package/dist-es/commands/AcceptDataGrantCommand.js +22 -0
  5. package/dist-es/commands/CreateDataGrantCommand.js +22 -0
  6. package/dist-es/commands/DeleteDataGrantCommand.js +22 -0
  7. package/dist-es/commands/GetDataGrantCommand.js +22 -0
  8. package/dist-es/commands/GetReceivedDataGrantCommand.js +22 -0
  9. package/dist-es/commands/ListDataGrantsCommand.js +22 -0
  10. package/dist-es/commands/ListReceivedDataGrantsCommand.js +22 -0
  11. package/dist-es/commands/index.js +7 -0
  12. package/dist-es/models/models_0.js +44 -29
  13. package/dist-es/pagination/ListDataGrantsPaginator.js +4 -0
  14. package/dist-es/pagination/ListReceivedDataGrantsPaginator.js +4 -0
  15. package/dist-es/pagination/index.js +2 -0
  16. package/dist-es/protocols/Aws_restJson1.js +280 -3
  17. package/dist-types/DataExchange.d.ts +66 -13
  18. package/dist-types/DataExchangeClient.d.ts +24 -15
  19. package/dist-types/commands/AcceptDataGrantCommand.d.ts +102 -0
  20. package/dist-types/commands/CancelJobCommand.d.ts +4 -2
  21. package/dist-types/commands/CreateDataGrantCommand.d.ts +113 -0
  22. package/dist-types/commands/CreateDataSetCommand.d.ts +1 -0
  23. package/dist-types/commands/CreateJobCommand.d.ts +2 -1
  24. package/dist-types/commands/DeleteAssetCommand.d.ts +2 -1
  25. package/dist-types/commands/DeleteDataGrantCommand.d.ts +84 -0
  26. package/dist-types/commands/DeleteDataSetCommand.d.ts +2 -1
  27. package/dist-types/commands/DeleteRevisionCommand.d.ts +2 -1
  28. package/dist-types/commands/GetDataGrantCommand.d.ts +102 -0
  29. package/dist-types/commands/GetDataSetCommand.d.ts +1 -0
  30. package/dist-types/commands/GetReceivedDataGrantCommand.d.ts +98 -0
  31. package/dist-types/commands/ListDataGrantsCommand.d.ts +103 -0
  32. package/dist-types/commands/ListDataSetRevisionsCommand.d.ts +2 -1
  33. package/dist-types/commands/ListDataSetsCommand.d.ts +3 -1
  34. package/dist-types/commands/ListReceivedDataGrantsCommand.d.ts +105 -0
  35. package/dist-types/commands/ListRevisionAssetsCommand.d.ts +2 -1
  36. package/dist-types/commands/RevokeRevisionCommand.d.ts +2 -1
  37. package/dist-types/commands/SendApiAssetCommand.d.ts +2 -1
  38. package/dist-types/commands/SendDataSetNotificationCommand.d.ts +2 -1
  39. package/dist-types/commands/StartJobCommand.d.ts +2 -1
  40. package/dist-types/commands/UpdateAssetCommand.d.ts +2 -1
  41. package/dist-types/commands/UpdateDataSetCommand.d.ts +1 -0
  42. package/dist-types/commands/UpdateRevisionCommand.d.ts +2 -1
  43. package/dist-types/commands/index.d.ts +7 -0
  44. package/dist-types/index.d.ts +15 -13
  45. package/dist-types/models/models_0.d.ts +1016 -282
  46. package/dist-types/pagination/ListDataGrantsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/ListReceivedDataGrantsPaginator.d.ts +7 -0
  48. package/dist-types/pagination/index.d.ts +2 -0
  49. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/runtimeConfig.native.d.ts +1 -1
  52. package/dist-types/ts3.4/DataExchange.d.ts +121 -0
  53. package/dist-types/ts3.4/DataExchangeClient.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/AcceptDataGrantCommand.d.ts +50 -0
  55. package/dist-types/ts3.4/commands/CreateDataGrantCommand.d.ts +50 -0
  56. package/dist-types/ts3.4/commands/DeleteDataGrantCommand.d.ts +45 -0
  57. package/dist-types/ts3.4/commands/GetDataGrantCommand.d.ts +47 -0
  58. package/dist-types/ts3.4/commands/GetReceivedDataGrantCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/ListDataGrantsCommand.d.ts +50 -0
  60. package/dist-types/ts3.4/commands/ListReceivedDataGrantsCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +229 -78
  63. package/dist-types/ts3.4/pagination/ListDataGrantsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListReceivedDataGrantsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  67. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
  68. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
  69. package/package.json +6 -6
@@ -7,24 +7,31 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { AcceptDataGrantCommandInput, AcceptDataGrantCommandOutput } from "./commands/AcceptDataGrantCommand";
10
11
  import { CancelJobCommandInput, CancelJobCommandOutput } from "./commands/CancelJobCommand";
12
+ import { CreateDataGrantCommandInput, CreateDataGrantCommandOutput } from "./commands/CreateDataGrantCommand";
11
13
  import { CreateDataSetCommandInput, CreateDataSetCommandOutput } from "./commands/CreateDataSetCommand";
12
14
  import { CreateEventActionCommandInput, CreateEventActionCommandOutput } from "./commands/CreateEventActionCommand";
13
15
  import { CreateJobCommandInput, CreateJobCommandOutput } from "./commands/CreateJobCommand";
14
16
  import { CreateRevisionCommandInput, CreateRevisionCommandOutput } from "./commands/CreateRevisionCommand";
15
17
  import { DeleteAssetCommandInput, DeleteAssetCommandOutput } from "./commands/DeleteAssetCommand";
18
+ import { DeleteDataGrantCommandInput, DeleteDataGrantCommandOutput } from "./commands/DeleteDataGrantCommand";
16
19
  import { DeleteDataSetCommandInput, DeleteDataSetCommandOutput } from "./commands/DeleteDataSetCommand";
17
20
  import { DeleteEventActionCommandInput, DeleteEventActionCommandOutput } from "./commands/DeleteEventActionCommand";
18
21
  import { DeleteRevisionCommandInput, DeleteRevisionCommandOutput } from "./commands/DeleteRevisionCommand";
19
22
  import { GetAssetCommandInput, GetAssetCommandOutput } from "./commands/GetAssetCommand";
23
+ import { GetDataGrantCommandInput, GetDataGrantCommandOutput } from "./commands/GetDataGrantCommand";
20
24
  import { GetDataSetCommandInput, GetDataSetCommandOutput } from "./commands/GetDataSetCommand";
21
25
  import { GetEventActionCommandInput, GetEventActionCommandOutput } from "./commands/GetEventActionCommand";
22
26
  import { GetJobCommandInput, GetJobCommandOutput } from "./commands/GetJobCommand";
27
+ import { GetReceivedDataGrantCommandInput, GetReceivedDataGrantCommandOutput } from "./commands/GetReceivedDataGrantCommand";
23
28
  import { GetRevisionCommandInput, GetRevisionCommandOutput } from "./commands/GetRevisionCommand";
29
+ import { ListDataGrantsCommandInput, ListDataGrantsCommandOutput } from "./commands/ListDataGrantsCommand";
24
30
  import { ListDataSetRevisionsCommandInput, ListDataSetRevisionsCommandOutput } from "./commands/ListDataSetRevisionsCommand";
25
31
  import { ListDataSetsCommandInput, ListDataSetsCommandOutput } from "./commands/ListDataSetsCommand";
26
32
  import { ListEventActionsCommandInput, ListEventActionsCommandOutput } from "./commands/ListEventActionsCommand";
27
33
  import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
34
+ import { ListReceivedDataGrantsCommandInput, ListReceivedDataGrantsCommandOutput } from "./commands/ListReceivedDataGrantsCommand";
28
35
  import { ListRevisionAssetsCommandInput, ListRevisionAssetsCommandOutput } from "./commands/ListRevisionAssetsCommand";
29
36
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
30
37
  import { RevokeRevisionCommandInput, RevokeRevisionCommandOutput } from "./commands/RevokeRevisionCommand";
@@ -43,11 +50,11 @@ export { __Client };
43
50
  /**
44
51
  * @public
45
52
  */
46
- export type ServiceInputTypes = CancelJobCommandInput | CreateDataSetCommandInput | CreateEventActionCommandInput | CreateJobCommandInput | CreateRevisionCommandInput | DeleteAssetCommandInput | DeleteDataSetCommandInput | DeleteEventActionCommandInput | DeleteRevisionCommandInput | GetAssetCommandInput | GetDataSetCommandInput | GetEventActionCommandInput | GetJobCommandInput | GetRevisionCommandInput | ListDataSetRevisionsCommandInput | ListDataSetsCommandInput | ListEventActionsCommandInput | ListJobsCommandInput | ListRevisionAssetsCommandInput | ListTagsForResourceCommandInput | RevokeRevisionCommandInput | SendApiAssetCommandInput | SendDataSetNotificationCommandInput | StartJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssetCommandInput | UpdateDataSetCommandInput | UpdateEventActionCommandInput | UpdateRevisionCommandInput;
53
+ export type ServiceInputTypes = AcceptDataGrantCommandInput | CancelJobCommandInput | CreateDataGrantCommandInput | CreateDataSetCommandInput | CreateEventActionCommandInput | CreateJobCommandInput | CreateRevisionCommandInput | DeleteAssetCommandInput | DeleteDataGrantCommandInput | DeleteDataSetCommandInput | DeleteEventActionCommandInput | DeleteRevisionCommandInput | GetAssetCommandInput | GetDataGrantCommandInput | GetDataSetCommandInput | GetEventActionCommandInput | GetJobCommandInput | GetReceivedDataGrantCommandInput | GetRevisionCommandInput | ListDataGrantsCommandInput | ListDataSetRevisionsCommandInput | ListDataSetsCommandInput | ListEventActionsCommandInput | ListJobsCommandInput | ListReceivedDataGrantsCommandInput | ListRevisionAssetsCommandInput | ListTagsForResourceCommandInput | RevokeRevisionCommandInput | SendApiAssetCommandInput | SendDataSetNotificationCommandInput | StartJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAssetCommandInput | UpdateDataSetCommandInput | UpdateEventActionCommandInput | UpdateRevisionCommandInput;
47
54
  /**
48
55
  * @public
49
56
  */
50
- export type ServiceOutputTypes = CancelJobCommandOutput | CreateDataSetCommandOutput | CreateEventActionCommandOutput | CreateJobCommandOutput | CreateRevisionCommandOutput | DeleteAssetCommandOutput | DeleteDataSetCommandOutput | DeleteEventActionCommandOutput | DeleteRevisionCommandOutput | GetAssetCommandOutput | GetDataSetCommandOutput | GetEventActionCommandOutput | GetJobCommandOutput | GetRevisionCommandOutput | ListDataSetRevisionsCommandOutput | ListDataSetsCommandOutput | ListEventActionsCommandOutput | ListJobsCommandOutput | ListRevisionAssetsCommandOutput | ListTagsForResourceCommandOutput | RevokeRevisionCommandOutput | SendApiAssetCommandOutput | SendDataSetNotificationCommandOutput | StartJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssetCommandOutput | UpdateDataSetCommandOutput | UpdateEventActionCommandOutput | UpdateRevisionCommandOutput;
57
+ export type ServiceOutputTypes = AcceptDataGrantCommandOutput | CancelJobCommandOutput | CreateDataGrantCommandOutput | CreateDataSetCommandOutput | CreateEventActionCommandOutput | CreateJobCommandOutput | CreateRevisionCommandOutput | DeleteAssetCommandOutput | DeleteDataGrantCommandOutput | DeleteDataSetCommandOutput | DeleteEventActionCommandOutput | DeleteRevisionCommandOutput | GetAssetCommandOutput | GetDataGrantCommandOutput | GetDataSetCommandOutput | GetEventActionCommandOutput | GetJobCommandOutput | GetReceivedDataGrantCommandOutput | GetRevisionCommandOutput | ListDataGrantsCommandOutput | ListDataSetRevisionsCommandOutput | ListDataSetsCommandOutput | ListEventActionsCommandOutput | ListJobsCommandOutput | ListReceivedDataGrantsCommandOutput | ListRevisionAssetsCommandOutput | ListTagsForResourceCommandOutput | RevokeRevisionCommandOutput | SendApiAssetCommandOutput | SendDataSetNotificationCommandOutput | StartJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAssetCommandOutput | UpdateDataSetCommandOutput | UpdateEventActionCommandOutput | UpdateRevisionCommandOutput;
51
58
  /**
52
59
  * @public
53
60
  */
@@ -181,21 +188,23 @@ export type DataExchangeClientResolvedConfigType = __SmithyResolvedConfiguration
181
188
  export interface DataExchangeClientResolvedConfig extends DataExchangeClientResolvedConfigType {
182
189
  }
183
190
  /**
184
- * <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.</p>
185
- * <p>As a subscriber, you can view and access the data sets that you have an entitlement to through
186
- * a subscription. You can use the APIs to download or copy your entitled data sets to Amazon
187
- * Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine
188
- * learning services.</p>
189
- * <p>As a provider, you can create and manage your data sets that you would like to publish to a
190
- * product. Being able to package and provide your data sets into products requires a few
191
+ * <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in
192
+ * the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access
193
+ * file-based data set in the AWS Cloud.</p>
194
+ * <p>As a subscriber, you can view and access the data sets that you have an entitlement to
195
+ * through a subscription. You can use the APIs to download or copy your entitled data sets to
196
+ * Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and
197
+ * machine learning services.</p>
198
+ * <p>As a provider, you can create and manage your data sets that you would like to publish
199
+ * to a product. Being able to package and provide your data sets into products requires a few
191
200
  * steps to determine eligibility. For more information, visit the <i>AWS Data Exchange
192
201
  * User Guide</i>.</p>
193
- * <p>A data set is a collection of data that can be changed or updated over time. Data sets can be
194
- * updated using revisions, which represent a new version or incremental change to a data set.
195
- * A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data
196
- * that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake
197
- * Formation data permission, or Amazon S3 data access. The asset can be a structured data
198
- * file, an image file, or some other data file. Jobs are asynchronous import or export
202
+ * <p>A data set is a collection of data that can be changed or updated over time. Data sets
203
+ * can be updated using revisions, which represent a new version or incremental change to a
204
+ * data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece
205
+ * of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS
206
+ * Lake Formation data permission, or Amazon S3 data access. The asset can be a structured
207
+ * data file, an image file, or some other data file. Jobs are asynchronous import or export
199
208
  * operations used to create or copy assets.</p>
200
209
  * @public
201
210
  */
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient";
4
+ import { AcceptDataGrantRequest, AcceptDataGrantResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AcceptDataGrantCommand}.
14
+ */
15
+ export interface AcceptDataGrantCommandInput extends AcceptDataGrantRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AcceptDataGrantCommand}.
21
+ */
22
+ export interface AcceptDataGrantCommandOutput extends AcceptDataGrantResponse, __MetadataBearer {
23
+ }
24
+ declare const AcceptDataGrantCommand_base: {
25
+ new (input: AcceptDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptDataGrantCommandInput, AcceptDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: AcceptDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptDataGrantCommandInput, AcceptDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This operation accepts a data grant.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DataExchangeClient, AcceptDataGrantCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
35
+ * // const { DataExchangeClient, AcceptDataGrantCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
36
+ * const client = new DataExchangeClient(config);
37
+ * const input = { // AcceptDataGrantRequest
38
+ * DataGrantArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new AcceptDataGrantCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // AcceptDataGrantResponse
43
+ * // Name: "STRING_VALUE", // required
44
+ * // SenderPrincipal: "STRING_VALUE",
45
+ * // ReceiverPrincipal: "STRING_VALUE", // required
46
+ * // Description: "STRING_VALUE",
47
+ * // AcceptanceState: "STRING_VALUE", // required
48
+ * // AcceptedAt: new Date("TIMESTAMP"),
49
+ * // EndsAt: new Date("TIMESTAMP"),
50
+ * // GrantDistributionScope: "STRING_VALUE", // required
51
+ * // DataSetId: "STRING_VALUE", // required
52
+ * // Id: "STRING_VALUE", // required
53
+ * // Arn: "STRING_VALUE", // required
54
+ * // CreatedAt: new Date("TIMESTAMP"), // required
55
+ * // UpdatedAt: new Date("TIMESTAMP"), // required
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param AcceptDataGrantCommandInput - {@link AcceptDataGrantCommandInput}
61
+ * @returns {@link AcceptDataGrantCommandOutput}
62
+ * @see {@link AcceptDataGrantCommandInput} for command's `input` shape.
63
+ * @see {@link AcceptDataGrantCommandOutput} for command's `response` shape.
64
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>Access to the resource is denied.</p>
68
+ *
69
+ * @throws {@link ConflictException} (client fault)
70
+ * <p>The request couldn't be completed because it conflicted with the current state of the
71
+ * resource.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>An exception occurred with the service.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The resource couldn't be found.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>The limit on the number of requests per second was exceeded.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The request was invalid.</p>
84
+ *
85
+ * @throws {@link DataExchangeServiceException}
86
+ * <p>Base exception class for all service exceptions from DataExchange service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class AcceptDataGrantCommand extends AcceptDataGrantCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: AcceptDataGrantRequest;
95
+ output: AcceptDataGrantResponse;
96
+ };
97
+ sdk: {
98
+ input: AcceptDataGrantCommandInput;
99
+ output: AcceptDataGrantCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -27,7 +27,8 @@ declare const CancelJobCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.</p>
30
+ * <p>This operation cancels a job. Jobs can be cancelled only when they are in the WAITING
31
+ * state.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -50,7 +51,8 @@ declare const CancelJobCommand_base: {
50
51
  * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
51
52
  *
52
53
  * @throws {@link ConflictException} (client fault)
53
- * <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
54
+ * <p>The request couldn't be completed because it conflicted with the current state of the
55
+ * resource.</p>
54
56
  *
55
57
  * @throws {@link InternalServerException} (server fault)
56
58
  * <p>An exception occurred with the service.</p>
@@ -0,0 +1,113 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient";
4
+ import { CreateDataGrantRequest, CreateDataGrantResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateDataGrantCommand}.
14
+ */
15
+ export interface CreateDataGrantCommandInput extends CreateDataGrantRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateDataGrantCommand}.
21
+ */
22
+ export interface CreateDataGrantCommandOutput extends CreateDataGrantResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateDataGrantCommand_base: {
25
+ new (input: CreateDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataGrantCommandInput, CreateDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataGrantCommandInput, CreateDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This operation creates a data grant.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DataExchangeClient, CreateDataGrantCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
35
+ * // const { DataExchangeClient, CreateDataGrantCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
36
+ * const client = new DataExchangeClient(config);
37
+ * const input = { // CreateDataGrantRequest
38
+ * Name: "STRING_VALUE", // required
39
+ * GrantDistributionScope: "STRING_VALUE", // required
40
+ * ReceiverPrincipal: "STRING_VALUE", // required
41
+ * SourceDataSetId: "STRING_VALUE", // required
42
+ * EndsAt: new Date("TIMESTAMP"),
43
+ * Description: "STRING_VALUE",
44
+ * Tags: { // MapOf__string
45
+ * "<keys>": "STRING_VALUE",
46
+ * },
47
+ * };
48
+ * const command = new CreateDataGrantCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // CreateDataGrantResponse
51
+ * // Name: "STRING_VALUE", // required
52
+ * // SenderPrincipal: "STRING_VALUE", // required
53
+ * // ReceiverPrincipal: "STRING_VALUE", // required
54
+ * // Description: "STRING_VALUE",
55
+ * // AcceptanceState: "STRING_VALUE", // required
56
+ * // AcceptedAt: new Date("TIMESTAMP"),
57
+ * // EndsAt: new Date("TIMESTAMP"),
58
+ * // GrantDistributionScope: "STRING_VALUE", // required
59
+ * // DataSetId: "STRING_VALUE", // required
60
+ * // SourceDataSetId: "STRING_VALUE", // required
61
+ * // Id: "STRING_VALUE", // required
62
+ * // Arn: "STRING_VALUE", // required
63
+ * // CreatedAt: new Date("TIMESTAMP"), // required
64
+ * // UpdatedAt: new Date("TIMESTAMP"), // required
65
+ * // Tags: { // MapOf__string
66
+ * // "<keys>": "STRING_VALUE",
67
+ * // },
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param CreateDataGrantCommandInput - {@link CreateDataGrantCommandInput}
73
+ * @returns {@link CreateDataGrantCommandOutput}
74
+ * @see {@link CreateDataGrantCommandInput} for command's `input` shape.
75
+ * @see {@link CreateDataGrantCommandOutput} for command's `response` shape.
76
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p>Access to the resource is denied.</p>
80
+ *
81
+ * @throws {@link InternalServerException} (server fault)
82
+ * <p>An exception occurred with the service.</p>
83
+ *
84
+ * @throws {@link ResourceNotFoundException} (client fault)
85
+ * <p>The resource couldn't be found.</p>
86
+ *
87
+ * @throws {@link ServiceLimitExceededException} (client fault)
88
+ * <p>The request has exceeded the quotas imposed by the service.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>The limit on the number of requests per second was exceeded.</p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>The request was invalid.</p>
95
+ *
96
+ * @throws {@link DataExchangeServiceException}
97
+ * <p>Base exception class for all service exceptions from DataExchange service.</p>
98
+ *
99
+ * @public
100
+ */
101
+ export declare class CreateDataGrantCommand extends CreateDataGrantCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: CreateDataGrantRequest;
106
+ output: CreateDataGrantResponse;
107
+ };
108
+ sdk: {
109
+ input: CreateDataGrantCommandInput;
110
+ output: CreateDataGrantCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -54,6 +54,7 @@ declare const CreateDataSetCommand_base: {
54
54
  * // Origin: "STRING_VALUE",
55
55
  * // OriginDetails: { // OriginDetails
56
56
  * // ProductId: "STRING_VALUE",
57
+ * // DataGrantId: "STRING_VALUE",
57
58
  * // },
58
59
  * // SourceId: "STRING_VALUE",
59
60
  * // Tags: { // MapOf__string
@@ -332,7 +332,8 @@ declare const CreateJobCommand_base: {
332
332
  * <p>Access to the resource is denied.</p>
333
333
  *
334
334
  * @throws {@link ConflictException} (client fault)
335
- * <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
335
+ * <p>The request couldn't be completed because it conflicted with the current state of the
336
+ * resource.</p>
336
337
  *
337
338
  * @throws {@link InternalServerException} (server fault)
338
339
  * <p>An exception occurred with the service.</p>
@@ -55,7 +55,8 @@ declare const DeleteAssetCommand_base: {
55
55
  * <p>Access to the resource is denied.</p>
56
56
  *
57
57
  * @throws {@link ConflictException} (client fault)
58
- * <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
58
+ * <p>The request couldn't be completed because it conflicted with the current state of the
59
+ * resource.</p>
59
60
  *
60
61
  * @throws {@link InternalServerException} (server fault)
61
62
  * <p>An exception occurred with the service.</p>
@@ -0,0 +1,84 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient";
4
+ import { DeleteDataGrantRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDataGrantCommand}.
14
+ */
15
+ export interface DeleteDataGrantCommandInput extends DeleteDataGrantRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDataGrantCommand}.
21
+ */
22
+ export interface DeleteDataGrantCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteDataGrantCommand_base: {
25
+ new (input: DeleteDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDataGrantCommandInput, DeleteDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDataGrantCommandInput, DeleteDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This operation deletes a data grant.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DataExchangeClient, DeleteDataGrantCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
35
+ * // const { DataExchangeClient, DeleteDataGrantCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
36
+ * const client = new DataExchangeClient(config);
37
+ * const input = { // DeleteDataGrantRequest
38
+ * DataGrantId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeleteDataGrantCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param DeleteDataGrantCommandInput - {@link DeleteDataGrantCommandInput}
47
+ * @returns {@link DeleteDataGrantCommandOutput}
48
+ * @see {@link DeleteDataGrantCommandInput} for command's `input` shape.
49
+ * @see {@link DeleteDataGrantCommandOutput} for command's `response` shape.
50
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
51
+ *
52
+ * @throws {@link AccessDeniedException} (client fault)
53
+ * <p>Access to the resource is denied.</p>
54
+ *
55
+ * @throws {@link InternalServerException} (server fault)
56
+ * <p>An exception occurred with the service.</p>
57
+ *
58
+ * @throws {@link ResourceNotFoundException} (client fault)
59
+ * <p>The resource couldn't be found.</p>
60
+ *
61
+ * @throws {@link ThrottlingException} (client fault)
62
+ * <p>The limit on the number of requests per second was exceeded.</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>The request was invalid.</p>
66
+ *
67
+ * @throws {@link DataExchangeServiceException}
68
+ * <p>Base exception class for all service exceptions from DataExchange service.</p>
69
+ *
70
+ * @public
71
+ */
72
+ export declare class DeleteDataGrantCommand extends DeleteDataGrantCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: DeleteDataGrantRequest;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: DeleteDataGrantCommandInput;
81
+ output: DeleteDataGrantCommandOutput;
82
+ };
83
+ };
84
+ }
@@ -53,7 +53,8 @@ declare const DeleteDataSetCommand_base: {
53
53
  * <p>Access to the resource is denied.</p>
54
54
  *
55
55
  * @throws {@link ConflictException} (client fault)
56
- * <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
56
+ * <p>The request couldn't be completed because it conflicted with the current state of the
57
+ * resource.</p>
57
58
  *
58
59
  * @throws {@link InternalServerException} (server fault)
59
60
  * <p>An exception occurred with the service.</p>
@@ -54,7 +54,8 @@ declare const DeleteRevisionCommand_base: {
54
54
  * <p>Access to the resource is denied.</p>
55
55
  *
56
56
  * @throws {@link ConflictException} (client fault)
57
- * <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
57
+ * <p>The request couldn't be completed because it conflicted with the current state of the
58
+ * resource.</p>
58
59
  *
59
60
  * @throws {@link InternalServerException} (server fault)
60
61
  * <p>An exception occurred with the service.</p>
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient";
4
+ import { GetDataGrantRequest, GetDataGrantResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetDataGrantCommand}.
14
+ */
15
+ export interface GetDataGrantCommandInput extends GetDataGrantRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDataGrantCommand}.
21
+ */
22
+ export interface GetDataGrantCommandOutput extends GetDataGrantResponse, __MetadataBearer {
23
+ }
24
+ declare const GetDataGrantCommand_base: {
25
+ new (input: GetDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<GetDataGrantCommandInput, GetDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetDataGrantCommandInput): import("@smithy/smithy-client").CommandImpl<GetDataGrantCommandInput, GetDataGrantCommandOutput, DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This operation returns information about a data grant.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DataExchangeClient, GetDataGrantCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
35
+ * // const { DataExchangeClient, GetDataGrantCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
36
+ * const client = new DataExchangeClient(config);
37
+ * const input = { // GetDataGrantRequest
38
+ * DataGrantId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetDataGrantCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetDataGrantResponse
43
+ * // Name: "STRING_VALUE", // required
44
+ * // SenderPrincipal: "STRING_VALUE", // required
45
+ * // ReceiverPrincipal: "STRING_VALUE", // required
46
+ * // Description: "STRING_VALUE",
47
+ * // AcceptanceState: "STRING_VALUE", // required
48
+ * // AcceptedAt: new Date("TIMESTAMP"),
49
+ * // EndsAt: new Date("TIMESTAMP"),
50
+ * // GrantDistributionScope: "STRING_VALUE", // required
51
+ * // DataSetId: "STRING_VALUE", // required
52
+ * // SourceDataSetId: "STRING_VALUE", // required
53
+ * // Id: "STRING_VALUE", // required
54
+ * // Arn: "STRING_VALUE", // required
55
+ * // CreatedAt: new Date("TIMESTAMP"), // required
56
+ * // UpdatedAt: new Date("TIMESTAMP"), // required
57
+ * // Tags: { // MapOf__string
58
+ * // "<keys>": "STRING_VALUE",
59
+ * // },
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param GetDataGrantCommandInput - {@link GetDataGrantCommandInput}
65
+ * @returns {@link GetDataGrantCommandOutput}
66
+ * @see {@link GetDataGrantCommandInput} for command's `input` shape.
67
+ * @see {@link GetDataGrantCommandOutput} for command's `response` shape.
68
+ * @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>Access to the resource is denied.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>An exception occurred with the service.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The resource couldn't be found.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>The limit on the number of requests per second was exceeded.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The request was invalid.</p>
84
+ *
85
+ * @throws {@link DataExchangeServiceException}
86
+ * <p>Base exception class for all service exceptions from DataExchange service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class GetDataGrantCommand extends GetDataGrantCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: GetDataGrantRequest;
95
+ output: GetDataGrantResponse;
96
+ };
97
+ sdk: {
98
+ input: GetDataGrantCommandInput;
99
+ output: GetDataGrantCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -49,6 +49,7 @@ declare const GetDataSetCommand_base: {
49
49
  * // Origin: "STRING_VALUE",
50
50
  * // OriginDetails: { // OriginDetails
51
51
  * // ProductId: "STRING_VALUE",
52
+ * // DataGrantId: "STRING_VALUE",
52
53
  * // },
53
54
  * // SourceId: "STRING_VALUE",
54
55
  * // Tags: { // MapOf__string