@aws-sdk/client-dataexchange 3.437.0 → 3.439.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/README.md +8 -0
- package/dist-cjs/DataExchange.js +2 -0
- package/dist-cjs/commands/SendDataSetNotificationCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +12 -1
- package/dist-cjs/protocols/Aws_restJson1.js +97 -2
- package/dist-es/DataExchange.js +2 -0
- package/dist-es/commands/SendDataSetNotificationCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +93 -0
- package/dist-types/DataExchange.d.ts +7 -0
- package/dist-types/DataExchangeClient.d.ts +3 -2
- package/dist-types/commands/SendDataSetNotificationCommand.d.ts +138 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +285 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/DataExchange.d.ts +17 -0
- package/dist-types/ts3.4/DataExchangeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/SendDataSetNotificationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +65 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +9 -6
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { DataExchangeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataExchangeClient";
|
|
5
|
+
import { SendDataSetNotificationRequest, SendDataSetNotificationResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendDataSetNotificationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendDataSetNotificationCommandInput extends SendDataSetNotificationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendDataSetNotificationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendDataSetNotificationCommandOutput extends SendDataSetNotificationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>The type of event associated with the data set.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { DataExchangeClient, SendDataSetNotificationCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
|
|
31
|
+
* // const { DataExchangeClient, SendDataSetNotificationCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
|
|
32
|
+
* const client = new DataExchangeClient(config);
|
|
33
|
+
* const input = { // SendDataSetNotificationRequest
|
|
34
|
+
* Scope: { // ScopeDetails
|
|
35
|
+
* LakeFormationTagPolicies: [ // ListOfLakeFormationTagPolicies
|
|
36
|
+
* { // LakeFormationTagPolicyDetails
|
|
37
|
+
* Database: "STRING_VALUE",
|
|
38
|
+
* Table: "STRING_VALUE",
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* RedshiftDataShares: [ // ListOfRedshiftDataShares
|
|
42
|
+
* { // RedshiftDataShareDetails
|
|
43
|
+
* Arn: "STRING_VALUE", // required
|
|
44
|
+
* Database: "STRING_VALUE", // required
|
|
45
|
+
* Function: "STRING_VALUE",
|
|
46
|
+
* Table: "STRING_VALUE",
|
|
47
|
+
* Schema: "STRING_VALUE",
|
|
48
|
+
* View: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* S3DataAccesses: [ // ListOfS3DataAccesses
|
|
52
|
+
* { // S3DataAccessDetails
|
|
53
|
+
* KeyPrefixes: [ // ListOf__string
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* Keys: [
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* },
|
|
62
|
+
* ClientToken: "STRING_VALUE",
|
|
63
|
+
* Comment: "STRING_VALUE",
|
|
64
|
+
* DataSetId: "STRING_VALUE", // required
|
|
65
|
+
* Details: { // NotificationDetails
|
|
66
|
+
* DataUpdate: { // DataUpdateRequestDetails
|
|
67
|
+
* DataUpdatedAt: new Date("TIMESTAMP"),
|
|
68
|
+
* },
|
|
69
|
+
* Deprecation: { // DeprecationRequestDetails
|
|
70
|
+
* DeprecationAt: new Date("TIMESTAMP"), // required
|
|
71
|
+
* },
|
|
72
|
+
* SchemaChange: { // SchemaChangeRequestDetails
|
|
73
|
+
* Changes: [ // ListOfSchemaChangeDetails
|
|
74
|
+
* { // SchemaChangeDetails
|
|
75
|
+
* Name: "STRING_VALUE", // required
|
|
76
|
+
* Type: "STRING_VALUE", // required
|
|
77
|
+
* Description: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* SchemaChangeAt: new Date("TIMESTAMP"), // required
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* Type: "STRING_VALUE", // required
|
|
84
|
+
* };
|
|
85
|
+
* const command = new SendDataSetNotificationCommand(input);
|
|
86
|
+
* const response = await client.send(command);
|
|
87
|
+
* // {};
|
|
88
|
+
*
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @param SendDataSetNotificationCommandInput - {@link SendDataSetNotificationCommandInput}
|
|
92
|
+
* @returns {@link SendDataSetNotificationCommandOutput}
|
|
93
|
+
* @see {@link SendDataSetNotificationCommandInput} for command's `input` shape.
|
|
94
|
+
* @see {@link SendDataSetNotificationCommandOutput} for command's `response` shape.
|
|
95
|
+
* @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
98
|
+
* <p>Access to the resource is denied.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ConflictException} (client fault)
|
|
101
|
+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InternalServerException} (server fault)
|
|
104
|
+
* <p>An exception occurred with the service.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
107
|
+
* <p>The resource couldn't be found.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
110
|
+
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ValidationException} (client fault)
|
|
113
|
+
* <p>The request was invalid.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link DataExchangeServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from DataExchange service.</p>
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export declare class SendDataSetNotificationCommand extends $Command<SendDataSetNotificationCommandInput, SendDataSetNotificationCommandOutput, DataExchangeClientResolvedConfig> {
|
|
120
|
+
readonly input: SendDataSetNotificationCommandInput;
|
|
121
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
constructor(input: SendDataSetNotificationCommandInput);
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DataExchangeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendDataSetNotificationCommandInput, SendDataSetNotificationCommandOutput>;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private serialize;
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
private deserialize;
|
|
138
|
+
}
|
|
@@ -20,6 +20,7 @@ export * from "./ListRevisionAssetsCommand";
|
|
|
20
20
|
export * from "./ListTagsForResourceCommand";
|
|
21
21
|
export * from "./RevokeRevisionCommand";
|
|
22
22
|
export * from "./SendApiAssetCommand";
|
|
23
|
+
export * from "./SendDataSetNotificationCommand";
|
|
23
24
|
export * from "./StartJobCommand";
|
|
24
25
|
export * from "./TagResourceCommand";
|
|
25
26
|
export * from "./UntagResourceCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
24
24
|
export * from "./commands";
|
|
25
25
|
export * from "./pagination";
|
|
26
26
|
export * from "./models";
|
|
27
|
+
import "@aws-sdk/util-endpoints";
|
|
27
28
|
export { DataExchangeServiceException } from "./models/DataExchangeServiceException";
|
|
@@ -2878,6 +2878,291 @@ export interface SendApiAssetResponse {
|
|
|
2878
2878
|
*/
|
|
2879
2879
|
ResponseHeaders?: Record<string, string>;
|
|
2880
2880
|
}
|
|
2881
|
+
/**
|
|
2882
|
+
* @public
|
|
2883
|
+
* <p>Extra details specific to a data update type notification.</p>
|
|
2884
|
+
*/
|
|
2885
|
+
export interface DataUpdateRequestDetails {
|
|
2886
|
+
/**
|
|
2887
|
+
* @public
|
|
2888
|
+
* <p>A
|
|
2889
|
+
* datetime in the past when the data was updated. This typically means that the underlying
|
|
2890
|
+
* resource supporting the data set was updated.</p>
|
|
2891
|
+
*/
|
|
2892
|
+
DataUpdatedAt?: Date;
|
|
2893
|
+
}
|
|
2894
|
+
/**
|
|
2895
|
+
* @public
|
|
2896
|
+
* <p>Extra details specific to a deprecation type notification.</p>
|
|
2897
|
+
*/
|
|
2898
|
+
export interface DeprecationRequestDetails {
|
|
2899
|
+
/**
|
|
2900
|
+
* @public
|
|
2901
|
+
* <p>A
|
|
2902
|
+
* datetime in the future when the data set will be deprecated.</p>
|
|
2903
|
+
*/
|
|
2904
|
+
DeprecationAt: Date | undefined;
|
|
2905
|
+
}
|
|
2906
|
+
/**
|
|
2907
|
+
* @public
|
|
2908
|
+
* @enum
|
|
2909
|
+
*/
|
|
2910
|
+
export declare const SchemaChangeType: {
|
|
2911
|
+
readonly ADD: "ADD";
|
|
2912
|
+
readonly MODIFY: "MODIFY";
|
|
2913
|
+
readonly REMOVE: "REMOVE";
|
|
2914
|
+
};
|
|
2915
|
+
/**
|
|
2916
|
+
* @public
|
|
2917
|
+
*/
|
|
2918
|
+
export type SchemaChangeType = (typeof SchemaChangeType)[keyof typeof SchemaChangeType];
|
|
2919
|
+
/**
|
|
2920
|
+
* @public
|
|
2921
|
+
* <p>Object encompassing information about a schema change to a single, particular field,
|
|
2922
|
+
* a notification can have up to 100 of these.</p>
|
|
2923
|
+
*/
|
|
2924
|
+
export interface SchemaChangeDetails {
|
|
2925
|
+
/**
|
|
2926
|
+
* @public
|
|
2927
|
+
* <p>Name
|
|
2928
|
+
* of the changing
|
|
2929
|
+
* field. This value
|
|
2930
|
+
* can be up to 255 characters long.</p>
|
|
2931
|
+
*/
|
|
2932
|
+
Name: string | undefined;
|
|
2933
|
+
/**
|
|
2934
|
+
* @public
|
|
2935
|
+
* <p>Is
|
|
2936
|
+
* the field being added, removed, or modified?</p>
|
|
2937
|
+
*/
|
|
2938
|
+
Type: SchemaChangeType | undefined;
|
|
2939
|
+
/**
|
|
2940
|
+
* @public
|
|
2941
|
+
* <p>Description
|
|
2942
|
+
* of what's changing about this
|
|
2943
|
+
* field. This value
|
|
2944
|
+
* can be up to 512 characters long.</p>
|
|
2945
|
+
*/
|
|
2946
|
+
Description?: string;
|
|
2947
|
+
}
|
|
2948
|
+
/**
|
|
2949
|
+
* @public
|
|
2950
|
+
* <p>Extra details specific to this schema change type notification.</p>
|
|
2951
|
+
*/
|
|
2952
|
+
export interface SchemaChangeRequestDetails {
|
|
2953
|
+
/**
|
|
2954
|
+
* @public
|
|
2955
|
+
* <p>List
|
|
2956
|
+
* of schema changes happening in the scope of this
|
|
2957
|
+
* notification. This
|
|
2958
|
+
* can have up to 100 entries.</p>
|
|
2959
|
+
*/
|
|
2960
|
+
Changes?: SchemaChangeDetails[];
|
|
2961
|
+
/**
|
|
2962
|
+
* @public
|
|
2963
|
+
* <p>A
|
|
2964
|
+
* date in the future when the schema change is taking effect.</p>
|
|
2965
|
+
*/
|
|
2966
|
+
SchemaChangeAt: Date | undefined;
|
|
2967
|
+
}
|
|
2968
|
+
/**
|
|
2969
|
+
* @public
|
|
2970
|
+
* <p>Extra details specific to this notification.</p>
|
|
2971
|
+
*/
|
|
2972
|
+
export interface NotificationDetails {
|
|
2973
|
+
/**
|
|
2974
|
+
* @public
|
|
2975
|
+
* <p>Extra
|
|
2976
|
+
* details specific to a data update type notification.</p>
|
|
2977
|
+
*/
|
|
2978
|
+
DataUpdate?: DataUpdateRequestDetails;
|
|
2979
|
+
/**
|
|
2980
|
+
* @public
|
|
2981
|
+
* <p>Extra
|
|
2982
|
+
* details specific to a deprecation type notification.</p>
|
|
2983
|
+
*/
|
|
2984
|
+
Deprecation?: DeprecationRequestDetails;
|
|
2985
|
+
/**
|
|
2986
|
+
* @public
|
|
2987
|
+
* <p>Extra
|
|
2988
|
+
* details specific to a schema change type notification.</p>
|
|
2989
|
+
*/
|
|
2990
|
+
SchemaChange?: SchemaChangeRequestDetails;
|
|
2991
|
+
}
|
|
2992
|
+
/**
|
|
2993
|
+
* @public
|
|
2994
|
+
* <p>Extra details specific to the affected scope in
|
|
2995
|
+
* this LF data set.</p>
|
|
2996
|
+
*/
|
|
2997
|
+
export interface LakeFormationTagPolicyDetails {
|
|
2998
|
+
/**
|
|
2999
|
+
* @public
|
|
3000
|
+
* <p>The
|
|
3001
|
+
* underlying Glue database that the notification is referring to.</p>
|
|
3002
|
+
*/
|
|
3003
|
+
Database?: string;
|
|
3004
|
+
/**
|
|
3005
|
+
* @public
|
|
3006
|
+
* <p>The
|
|
3007
|
+
* underlying Glue table that the notification is referring to.</p>
|
|
3008
|
+
*/
|
|
3009
|
+
Table?: string;
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* @public
|
|
3013
|
+
* <p>Extra details specific to the affected scope
|
|
3014
|
+
* in this Redshift data set.</p>
|
|
3015
|
+
*/
|
|
3016
|
+
export interface RedshiftDataShareDetails {
|
|
3017
|
+
/**
|
|
3018
|
+
* @public
|
|
3019
|
+
* <p>The
|
|
3020
|
+
* ARN of the underlying Redshift data share that is being affected by this
|
|
3021
|
+
* notification.</p>
|
|
3022
|
+
*/
|
|
3023
|
+
Arn: string | undefined;
|
|
3024
|
+
/**
|
|
3025
|
+
* @public
|
|
3026
|
+
* <p>The
|
|
3027
|
+
* database name in the Redshift data share that is being affected by this
|
|
3028
|
+
* notification.</p>
|
|
3029
|
+
*/
|
|
3030
|
+
Database: string | undefined;
|
|
3031
|
+
/**
|
|
3032
|
+
* @public
|
|
3033
|
+
* <p>A
|
|
3034
|
+
* function name in the Redshift database that is being affected by this notification.</p>
|
|
3035
|
+
*/
|
|
3036
|
+
Function?: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* @public
|
|
3039
|
+
* <p>A
|
|
3040
|
+
* table name in the Redshift database that is being affected by this notification.</p>
|
|
3041
|
+
*/
|
|
3042
|
+
Table?: string;
|
|
3043
|
+
/**
|
|
3044
|
+
* @public
|
|
3045
|
+
* <p>A
|
|
3046
|
+
* schema name in the Redshift database that is being affected by this notification.</p>
|
|
3047
|
+
*/
|
|
3048
|
+
Schema?: string;
|
|
3049
|
+
/**
|
|
3050
|
+
* @public
|
|
3051
|
+
* <p>A
|
|
3052
|
+
* view name in the Redshift database that is being affected by this notification.</p>
|
|
3053
|
+
*/
|
|
3054
|
+
View?: string;
|
|
3055
|
+
}
|
|
3056
|
+
/**
|
|
3057
|
+
* @public
|
|
3058
|
+
* <p>Extra details specific to the affected scope in this S3 Data
|
|
3059
|
+
* Access data set.</p>
|
|
3060
|
+
*/
|
|
3061
|
+
export interface S3DataAccessDetails {
|
|
3062
|
+
/**
|
|
3063
|
+
* @public
|
|
3064
|
+
* <p>A
|
|
3065
|
+
* list of the key prefixes affected by this
|
|
3066
|
+
* notification. This
|
|
3067
|
+
* can have up to 50 entries.</p>
|
|
3068
|
+
*/
|
|
3069
|
+
KeyPrefixes?: string[];
|
|
3070
|
+
/**
|
|
3071
|
+
* @public
|
|
3072
|
+
* <p>A
|
|
3073
|
+
* list of the keys affected by this
|
|
3074
|
+
* notification. This
|
|
3075
|
+
* can have up to 50 entries.</p>
|
|
3076
|
+
*/
|
|
3077
|
+
Keys?: string[];
|
|
3078
|
+
}
|
|
3079
|
+
/**
|
|
3080
|
+
* @public
|
|
3081
|
+
* <p>Details about the scope of the notifications such as the affected resources.</p>
|
|
3082
|
+
*/
|
|
3083
|
+
export interface ScopeDetails {
|
|
3084
|
+
/**
|
|
3085
|
+
* @public
|
|
3086
|
+
* <p>Underlying
|
|
3087
|
+
* LF resources that will be affected by this notification.</p>
|
|
3088
|
+
*/
|
|
3089
|
+
LakeFormationTagPolicies?: LakeFormationTagPolicyDetails[];
|
|
3090
|
+
/**
|
|
3091
|
+
* @public
|
|
3092
|
+
* <p>Underlying
|
|
3093
|
+
* Redshift resources that will be affected by this notification.</p>
|
|
3094
|
+
*/
|
|
3095
|
+
RedshiftDataShares?: RedshiftDataShareDetails[];
|
|
3096
|
+
/**
|
|
3097
|
+
* @public
|
|
3098
|
+
* <p>Underlying
|
|
3099
|
+
* S3 resources that will be affected by this notification.</p>
|
|
3100
|
+
*/
|
|
3101
|
+
S3DataAccesses?: S3DataAccessDetails[];
|
|
3102
|
+
}
|
|
3103
|
+
/**
|
|
3104
|
+
* @public
|
|
3105
|
+
* @enum
|
|
3106
|
+
*/
|
|
3107
|
+
export declare const NotificationType: {
|
|
3108
|
+
readonly DATA_DELAY: "DATA_DELAY";
|
|
3109
|
+
readonly DATA_UPDATE: "DATA_UPDATE";
|
|
3110
|
+
readonly DEPRECATION: "DEPRECATION";
|
|
3111
|
+
readonly SCHEMA_CHANGE: "SCHEMA_CHANGE";
|
|
3112
|
+
};
|
|
3113
|
+
/**
|
|
3114
|
+
* @public
|
|
3115
|
+
*/
|
|
3116
|
+
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType];
|
|
3117
|
+
/**
|
|
3118
|
+
* @public
|
|
3119
|
+
*/
|
|
3120
|
+
export interface SendDataSetNotificationRequest {
|
|
3121
|
+
/**
|
|
3122
|
+
* @public
|
|
3123
|
+
* <p>Affected
|
|
3124
|
+
* scope of this notification such as the underlying resources affected by the notification
|
|
3125
|
+
* event.</p>
|
|
3126
|
+
*/
|
|
3127
|
+
Scope?: ScopeDetails;
|
|
3128
|
+
/**
|
|
3129
|
+
* @public
|
|
3130
|
+
* <p>Idempotency
|
|
3131
|
+
* key for the notification, this key allows us to deduplicate notifications that are sent in
|
|
3132
|
+
* quick succession erroneously.</p>
|
|
3133
|
+
*/
|
|
3134
|
+
ClientToken?: string;
|
|
3135
|
+
/**
|
|
3136
|
+
* @public
|
|
3137
|
+
* <p>Free-form
|
|
3138
|
+
* text field for providers to add information about their notifications.</p>
|
|
3139
|
+
*/
|
|
3140
|
+
Comment?: string;
|
|
3141
|
+
/**
|
|
3142
|
+
* @public
|
|
3143
|
+
* <p>Affected
|
|
3144
|
+
* data set of the notification.</p>
|
|
3145
|
+
*/
|
|
3146
|
+
DataSetId: string | undefined;
|
|
3147
|
+
/**
|
|
3148
|
+
* @public
|
|
3149
|
+
* <p>Extra
|
|
3150
|
+
* details specific to this notification type.</p>
|
|
3151
|
+
*/
|
|
3152
|
+
Details?: NotificationDetails;
|
|
3153
|
+
/**
|
|
3154
|
+
* @public
|
|
3155
|
+
* <p>The
|
|
3156
|
+
* type of the notification. Describing the kind of event the notification is alerting you
|
|
3157
|
+
* to.</p>
|
|
3158
|
+
*/
|
|
3159
|
+
Type: NotificationType | undefined;
|
|
3160
|
+
}
|
|
3161
|
+
/**
|
|
3162
|
+
* @public
|
|
3163
|
+
*/
|
|
3164
|
+
export interface SendDataSetNotificationResponse {
|
|
3165
|
+
}
|
|
2881
3166
|
/**
|
|
2882
3167
|
* @public
|
|
2883
3168
|
*/
|
|
@@ -22,6 +22,7 @@ import { ListRevisionAssetsCommandInput, ListRevisionAssetsCommandOutput } from
|
|
|
22
22
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
23
23
|
import { RevokeRevisionCommandInput, RevokeRevisionCommandOutput } from "../commands/RevokeRevisionCommand";
|
|
24
24
|
import { SendApiAssetCommandInput, SendApiAssetCommandOutput } from "../commands/SendApiAssetCommand";
|
|
25
|
+
import { SendDataSetNotificationCommandInput, SendDataSetNotificationCommandOutput } from "../commands/SendDataSetNotificationCommand";
|
|
25
26
|
import { StartJobCommandInput, StartJobCommandOutput } from "../commands/StartJobCommand";
|
|
26
27
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
27
28
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
@@ -117,6 +118,10 @@ export declare const se_RevokeRevisionCommand: (input: RevokeRevisionCommandInpu
|
|
|
117
118
|
* serializeAws_restJson1SendApiAssetCommand
|
|
118
119
|
*/
|
|
119
120
|
export declare const se_SendApiAssetCommand: (input: SendApiAssetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
121
|
+
/**
|
|
122
|
+
* serializeAws_restJson1SendDataSetNotificationCommand
|
|
123
|
+
*/
|
|
124
|
+
export declare const se_SendDataSetNotificationCommand: (input: SendDataSetNotificationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
120
125
|
/**
|
|
121
126
|
* serializeAws_restJson1StartJobCommand
|
|
122
127
|
*/
|
|
@@ -233,6 +238,10 @@ export declare const de_RevokeRevisionCommand: (output: __HttpResponse, context:
|
|
|
233
238
|
* deserializeAws_restJson1SendApiAssetCommand
|
|
234
239
|
*/
|
|
235
240
|
export declare const de_SendApiAssetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendApiAssetCommandOutput>;
|
|
241
|
+
/**
|
|
242
|
+
* deserializeAws_restJson1SendDataSetNotificationCommand
|
|
243
|
+
*/
|
|
244
|
+
export declare const de_SendDataSetNotificationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendDataSetNotificationCommandOutput>;
|
|
236
245
|
/**
|
|
237
246
|
* deserializeAws_restJson1StartJobCommand
|
|
238
247
|
*/
|
|
@@ -87,6 +87,10 @@ import {
|
|
|
87
87
|
SendApiAssetCommandInput,
|
|
88
88
|
SendApiAssetCommandOutput,
|
|
89
89
|
} from "./commands/SendApiAssetCommand";
|
|
90
|
+
import {
|
|
91
|
+
SendDataSetNotificationCommandInput,
|
|
92
|
+
SendDataSetNotificationCommandOutput,
|
|
93
|
+
} from "./commands/SendDataSetNotificationCommand";
|
|
90
94
|
import {
|
|
91
95
|
StartJobCommandInput,
|
|
92
96
|
StartJobCommandOutput,
|
|
@@ -403,6 +407,19 @@ export interface DataExchange {
|
|
|
403
407
|
options: __HttpHandlerOptions,
|
|
404
408
|
cb: (err: any, data?: SendApiAssetCommandOutput) => void
|
|
405
409
|
): void;
|
|
410
|
+
sendDataSetNotification(
|
|
411
|
+
args: SendDataSetNotificationCommandInput,
|
|
412
|
+
options?: __HttpHandlerOptions
|
|
413
|
+
): Promise<SendDataSetNotificationCommandOutput>;
|
|
414
|
+
sendDataSetNotification(
|
|
415
|
+
args: SendDataSetNotificationCommandInput,
|
|
416
|
+
cb: (err: any, data?: SendDataSetNotificationCommandOutput) => void
|
|
417
|
+
): void;
|
|
418
|
+
sendDataSetNotification(
|
|
419
|
+
args: SendDataSetNotificationCommandInput,
|
|
420
|
+
options: __HttpHandlerOptions,
|
|
421
|
+
cb: (err: any, data?: SendDataSetNotificationCommandOutput) => void
|
|
422
|
+
): void;
|
|
406
423
|
startJob(
|
|
407
424
|
args: StartJobCommandInput,
|
|
408
425
|
options?: __HttpHandlerOptions
|
|
@@ -133,6 +133,10 @@ import {
|
|
|
133
133
|
SendApiAssetCommandInput,
|
|
134
134
|
SendApiAssetCommandOutput,
|
|
135
135
|
} from "./commands/SendApiAssetCommand";
|
|
136
|
+
import {
|
|
137
|
+
SendDataSetNotificationCommandInput,
|
|
138
|
+
SendDataSetNotificationCommandOutput,
|
|
139
|
+
} from "./commands/SendDataSetNotificationCommand";
|
|
136
140
|
import {
|
|
137
141
|
StartJobCommandInput,
|
|
138
142
|
StartJobCommandOutput,
|
|
@@ -191,6 +195,7 @@ export type ServiceInputTypes =
|
|
|
191
195
|
| ListTagsForResourceCommandInput
|
|
192
196
|
| RevokeRevisionCommandInput
|
|
193
197
|
| SendApiAssetCommandInput
|
|
198
|
+
| SendDataSetNotificationCommandInput
|
|
194
199
|
| StartJobCommandInput
|
|
195
200
|
| TagResourceCommandInput
|
|
196
201
|
| UntagResourceCommandInput
|
|
@@ -221,6 +226,7 @@ export type ServiceOutputTypes =
|
|
|
221
226
|
| ListTagsForResourceCommandOutput
|
|
222
227
|
| RevokeRevisionCommandOutput
|
|
223
228
|
| SendApiAssetCommandOutput
|
|
229
|
+
| SendDataSetNotificationCommandOutput
|
|
224
230
|
| StartJobCommandOutput
|
|
225
231
|
| TagResourceCommandOutput
|
|
226
232
|
| UntagResourceCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
DataExchangeClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../DataExchangeClient";
|
|
14
|
+
import {
|
|
15
|
+
SendDataSetNotificationRequest,
|
|
16
|
+
SendDataSetNotificationResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface SendDataSetNotificationCommandInput
|
|
20
|
+
extends SendDataSetNotificationRequest {}
|
|
21
|
+
export interface SendDataSetNotificationCommandOutput
|
|
22
|
+
extends SendDataSetNotificationResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class SendDataSetNotificationCommand extends $Command<
|
|
25
|
+
SendDataSetNotificationCommandInput,
|
|
26
|
+
SendDataSetNotificationCommandOutput,
|
|
27
|
+
DataExchangeClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: SendDataSetNotificationCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: SendDataSetNotificationCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: DataExchangeClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
SendDataSetNotificationCommandInput,
|
|
38
|
+
SendDataSetNotificationCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -20,6 +20,7 @@ export * from "./ListRevisionAssetsCommand";
|
|
|
20
20
|
export * from "./ListTagsForResourceCommand";
|
|
21
21
|
export * from "./RevokeRevisionCommand";
|
|
22
22
|
export * from "./SendApiAssetCommand";
|
|
23
|
+
export * from "./SendDataSetNotificationCommand";
|
|
23
24
|
export * from "./StartJobCommand";
|
|
24
25
|
export * from "./TagResourceCommand";
|
|
25
26
|
export * from "./UntagResourceCommand";
|
|
@@ -4,4 +4,5 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
4
4
|
export * from "./commands";
|
|
5
5
|
export * from "./pagination";
|
|
6
6
|
export * from "./models";
|
|
7
|
+
import "@aws-sdk/util-endpoints";
|
|
7
8
|
export { DataExchangeServiceException } from "./models/DataExchangeServiceException";
|
|
@@ -777,6 +777,71 @@ export interface SendApiAssetResponse {
|
|
|
777
777
|
Body?: string;
|
|
778
778
|
ResponseHeaders?: Record<string, string>;
|
|
779
779
|
}
|
|
780
|
+
export interface DataUpdateRequestDetails {
|
|
781
|
+
DataUpdatedAt?: Date;
|
|
782
|
+
}
|
|
783
|
+
export interface DeprecationRequestDetails {
|
|
784
|
+
DeprecationAt: Date | undefined;
|
|
785
|
+
}
|
|
786
|
+
export declare const SchemaChangeType: {
|
|
787
|
+
readonly ADD: "ADD";
|
|
788
|
+
readonly MODIFY: "MODIFY";
|
|
789
|
+
readonly REMOVE: "REMOVE";
|
|
790
|
+
};
|
|
791
|
+
export type SchemaChangeType =
|
|
792
|
+
(typeof SchemaChangeType)[keyof typeof SchemaChangeType];
|
|
793
|
+
export interface SchemaChangeDetails {
|
|
794
|
+
Name: string | undefined;
|
|
795
|
+
Type: SchemaChangeType | undefined;
|
|
796
|
+
Description?: string;
|
|
797
|
+
}
|
|
798
|
+
export interface SchemaChangeRequestDetails {
|
|
799
|
+
Changes?: SchemaChangeDetails[];
|
|
800
|
+
SchemaChangeAt: Date | undefined;
|
|
801
|
+
}
|
|
802
|
+
export interface NotificationDetails {
|
|
803
|
+
DataUpdate?: DataUpdateRequestDetails;
|
|
804
|
+
Deprecation?: DeprecationRequestDetails;
|
|
805
|
+
SchemaChange?: SchemaChangeRequestDetails;
|
|
806
|
+
}
|
|
807
|
+
export interface LakeFormationTagPolicyDetails {
|
|
808
|
+
Database?: string;
|
|
809
|
+
Table?: string;
|
|
810
|
+
}
|
|
811
|
+
export interface RedshiftDataShareDetails {
|
|
812
|
+
Arn: string | undefined;
|
|
813
|
+
Database: string | undefined;
|
|
814
|
+
Function?: string;
|
|
815
|
+
Table?: string;
|
|
816
|
+
Schema?: string;
|
|
817
|
+
View?: string;
|
|
818
|
+
}
|
|
819
|
+
export interface S3DataAccessDetails {
|
|
820
|
+
KeyPrefixes?: string[];
|
|
821
|
+
Keys?: string[];
|
|
822
|
+
}
|
|
823
|
+
export interface ScopeDetails {
|
|
824
|
+
LakeFormationTagPolicies?: LakeFormationTagPolicyDetails[];
|
|
825
|
+
RedshiftDataShares?: RedshiftDataShareDetails[];
|
|
826
|
+
S3DataAccesses?: S3DataAccessDetails[];
|
|
827
|
+
}
|
|
828
|
+
export declare const NotificationType: {
|
|
829
|
+
readonly DATA_DELAY: "DATA_DELAY";
|
|
830
|
+
readonly DATA_UPDATE: "DATA_UPDATE";
|
|
831
|
+
readonly DEPRECATION: "DEPRECATION";
|
|
832
|
+
readonly SCHEMA_CHANGE: "SCHEMA_CHANGE";
|
|
833
|
+
};
|
|
834
|
+
export type NotificationType =
|
|
835
|
+
(typeof NotificationType)[keyof typeof NotificationType];
|
|
836
|
+
export interface SendDataSetNotificationRequest {
|
|
837
|
+
Scope?: ScopeDetails;
|
|
838
|
+
ClientToken?: string;
|
|
839
|
+
Comment?: string;
|
|
840
|
+
DataSetId: string | undefined;
|
|
841
|
+
Details?: NotificationDetails;
|
|
842
|
+
Type: NotificationType | undefined;
|
|
843
|
+
}
|
|
844
|
+
export interface SendDataSetNotificationResponse {}
|
|
780
845
|
export interface StartJobRequest {
|
|
781
846
|
JobId: string | undefined;
|
|
782
847
|
}
|