@aws-sdk/client-codestar-notifications 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CodestarNotifications.js +0 -87
- package/dist-cjs/CodestarNotificationsClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CreateNotificationRuleCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DeleteNotificationRuleCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteTargetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeNotificationRuleCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListEventTypesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListNotificationRulesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTargetsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/SubscribeCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UnsubscribeCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UpdateNotificationRuleCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -124
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListEventTypesPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListNotificationRulesPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListTargetsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +13 -19
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/CodestarNotifications.js +0 -1
- package/{dist/es → dist-es}/CodestarNotificationsClient.js +1 -2
- package/{dist/es → dist-es}/commands/CreateNotificationRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteNotificationRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteTargetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeNotificationRuleCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListEventTypesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListNotificationRulesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTargetsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/SubscribeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UnsubscribeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateNotificationRuleCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListEventTypesPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListNotificationRulesPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListTargetsPaginator.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/CodestarNotifications.d.ts +1 -1
- package/{dist/types → dist-types}/CodestarNotificationsClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateNotificationRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteNotificationRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeNotificationRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListEventTypesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListNotificationRulesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SubscribeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UnsubscribeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateNotificationRuleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListEventTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListNotificationRulesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTargetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CodestarNotifications.d.ts +15 -138
- package/dist-types/ts3.4/CodestarNotificationsClient.d.ts +80 -0
- package/dist-types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteNotificationRuleCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DeleteTargetCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeNotificationRuleCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListEventTypesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListNotificationRulesCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTargetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +480 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListEventTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListNotificationRulesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTargetsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/CodestarNotifications.ts +0 -540
- package/CodestarNotificationsClient.ts +0 -375
- package/commands/CreateNotificationRuleCommand.ts +0 -100
- package/commands/DeleteNotificationRuleCommand.ts +0 -98
- package/commands/DeleteTargetCommand.ts +0 -98
- package/commands/DescribeNotificationRuleCommand.ts +0 -98
- package/commands/ListEventTypesCommand.ts +0 -98
- package/commands/ListNotificationRulesCommand.ts +0 -98
- package/commands/ListTagsForResourceCommand.ts +0 -98
- package/commands/ListTargetsCommand.ts +0 -98
- package/commands/SubscribeCommand.ts +0 -100
- package/commands/TagResourceCommand.ts +0 -98
- package/commands/UnsubscribeCommand.ts +0 -100
- package/commands/UntagResourceCommand.ts +0 -99
- package/commands/UpdateNotificationRuleCommand.ts +0 -103
- package/dist/cjs/CodestarNotifications.js.map +0 -1
- package/dist/cjs/CodestarNotificationsClient.js +0 -127
- package/dist/cjs/CodestarNotificationsClient.js.map +0 -1
- package/dist/cjs/commands/CreateNotificationRuleCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteNotificationRuleCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTargetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeNotificationRuleCommand.js.map +0 -1
- package/dist/cjs/commands/ListEventTypesCommand.js.map +0 -1
- package/dist/cjs/commands/ListNotificationRulesCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ListTargetsCommand.js.map +0 -1
- package/dist/cjs/commands/SubscribeCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UnsubscribeCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateNotificationRuleCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListEventTypesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListNotificationRulesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTargetsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CodestarNotifications.js.map +0 -1
- package/dist/es/CodestarNotificationsClient.js.map +0 -1
- package/dist/es/commands/CreateNotificationRuleCommand.js.map +0 -1
- package/dist/es/commands/DeleteNotificationRuleCommand.js.map +0 -1
- package/dist/es/commands/DeleteTargetCommand.js.map +0 -1
- package/dist/es/commands/DescribeNotificationRuleCommand.js.map +0 -1
- package/dist/es/commands/ListEventTypesCommand.js.map +0 -1
- package/dist/es/commands/ListNotificationRulesCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ListTargetsCommand.js.map +0 -1
- package/dist/es/commands/SubscribeCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UnsubscribeCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateNotificationRuleCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -21
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListEventTypesPaginator.js.map +0 -1
- package/dist/es/pagination/ListNotificationRulesPaginator.js.map +0 -1
- package/dist/es/pagination/ListTargetsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/CodestarNotificationsClient.d.ts +0 -228
- package/dist/types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DeleteTargetCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListEventTypesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTargetsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/SubscribeCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UnsubscribeCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +0 -40
- package/dist/types/ts3.4/models/models_0.d.ts +0 -804
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1021
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListEventTypesPaginator.ts +0 -58
- package/pagination/ListNotificationRulesPaginator.ts +0 -58
- package/pagination/ListTargetsPaginator.ts +0 -54
- package/protocols/Aws_restJson1.ts +0 -1703
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CreateNotificationRuleCommandInput,
|
|
3
|
-
CreateNotificationRuleCommandOutput,
|
|
4
|
-
} from "./commands/CreateNotificationRuleCommand";
|
|
5
|
-
import {
|
|
6
|
-
DeleteNotificationRuleCommandInput,
|
|
7
|
-
DeleteNotificationRuleCommandOutput,
|
|
8
|
-
} from "./commands/DeleteNotificationRuleCommand";
|
|
9
|
-
import { DeleteTargetCommandInput, DeleteTargetCommandOutput } from "./commands/DeleteTargetCommand";
|
|
10
|
-
import {
|
|
11
|
-
DescribeNotificationRuleCommandInput,
|
|
12
|
-
DescribeNotificationRuleCommandOutput,
|
|
13
|
-
} from "./commands/DescribeNotificationRuleCommand";
|
|
14
|
-
import { ListEventTypesCommandInput, ListEventTypesCommandOutput } from "./commands/ListEventTypesCommand";
|
|
15
|
-
import {
|
|
16
|
-
ListNotificationRulesCommandInput,
|
|
17
|
-
ListNotificationRulesCommandOutput,
|
|
18
|
-
} from "./commands/ListNotificationRulesCommand";
|
|
19
|
-
import {
|
|
20
|
-
ListTagsForResourceCommandInput,
|
|
21
|
-
ListTagsForResourceCommandOutput,
|
|
22
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
23
|
-
import { ListTargetsCommandInput, ListTargetsCommandOutput } from "./commands/ListTargetsCommand";
|
|
24
|
-
import { SubscribeCommandInput, SubscribeCommandOutput } from "./commands/SubscribeCommand";
|
|
25
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
26
|
-
import { UnsubscribeCommandInput, UnsubscribeCommandOutput } from "./commands/UnsubscribeCommand";
|
|
27
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
28
|
-
import {
|
|
29
|
-
UpdateNotificationRuleCommandInput,
|
|
30
|
-
UpdateNotificationRuleCommandOutput,
|
|
31
|
-
} from "./commands/UpdateNotificationRuleCommand";
|
|
32
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
33
|
-
import {
|
|
34
|
-
EndpointsInputConfig,
|
|
35
|
-
EndpointsResolvedConfig,
|
|
36
|
-
RegionInputConfig,
|
|
37
|
-
RegionResolvedConfig,
|
|
38
|
-
resolveEndpointsConfig,
|
|
39
|
-
resolveRegionConfig,
|
|
40
|
-
} from "@aws-sdk/config-resolver";
|
|
41
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
42
|
-
import {
|
|
43
|
-
HostHeaderInputConfig,
|
|
44
|
-
HostHeaderResolvedConfig,
|
|
45
|
-
getHostHeaderPlugin,
|
|
46
|
-
resolveHostHeaderConfig,
|
|
47
|
-
} from "@aws-sdk/middleware-host-header";
|
|
48
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
49
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
50
|
-
import {
|
|
51
|
-
AwsAuthInputConfig,
|
|
52
|
-
AwsAuthResolvedConfig,
|
|
53
|
-
getAwsAuthPlugin,
|
|
54
|
-
resolveAwsAuthConfig,
|
|
55
|
-
} from "@aws-sdk/middleware-signing";
|
|
56
|
-
import {
|
|
57
|
-
UserAgentInputConfig,
|
|
58
|
-
UserAgentResolvedConfig,
|
|
59
|
-
getUserAgentPlugin,
|
|
60
|
-
resolveUserAgentConfig,
|
|
61
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
62
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
63
|
-
import {
|
|
64
|
-
Client as __Client,
|
|
65
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
66
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
67
|
-
} from "@aws-sdk/smithy-client";
|
|
68
|
-
import {
|
|
69
|
-
Provider,
|
|
70
|
-
RegionInfoProvider,
|
|
71
|
-
Credentials as __Credentials,
|
|
72
|
-
Decoder as __Decoder,
|
|
73
|
-
Encoder as __Encoder,
|
|
74
|
-
Hash as __Hash,
|
|
75
|
-
HashConstructor as __HashConstructor,
|
|
76
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
77
|
-
Logger as __Logger,
|
|
78
|
-
Provider as __Provider,
|
|
79
|
-
StreamCollector as __StreamCollector,
|
|
80
|
-
UrlParser as __UrlParser,
|
|
81
|
-
UserAgent as __UserAgent,
|
|
82
|
-
} from "@aws-sdk/types";
|
|
83
|
-
|
|
84
|
-
export type ServiceInputTypes =
|
|
85
|
-
| CreateNotificationRuleCommandInput
|
|
86
|
-
| DeleteNotificationRuleCommandInput
|
|
87
|
-
| DeleteTargetCommandInput
|
|
88
|
-
| DescribeNotificationRuleCommandInput
|
|
89
|
-
| ListEventTypesCommandInput
|
|
90
|
-
| ListNotificationRulesCommandInput
|
|
91
|
-
| ListTagsForResourceCommandInput
|
|
92
|
-
| ListTargetsCommandInput
|
|
93
|
-
| SubscribeCommandInput
|
|
94
|
-
| TagResourceCommandInput
|
|
95
|
-
| UnsubscribeCommandInput
|
|
96
|
-
| UntagResourceCommandInput
|
|
97
|
-
| UpdateNotificationRuleCommandInput;
|
|
98
|
-
|
|
99
|
-
export type ServiceOutputTypes =
|
|
100
|
-
| CreateNotificationRuleCommandOutput
|
|
101
|
-
| DeleteNotificationRuleCommandOutput
|
|
102
|
-
| DeleteTargetCommandOutput
|
|
103
|
-
| DescribeNotificationRuleCommandOutput
|
|
104
|
-
| ListEventTypesCommandOutput
|
|
105
|
-
| ListNotificationRulesCommandOutput
|
|
106
|
-
| ListTagsForResourceCommandOutput
|
|
107
|
-
| ListTargetsCommandOutput
|
|
108
|
-
| SubscribeCommandOutput
|
|
109
|
-
| TagResourceCommandOutput
|
|
110
|
-
| UnsubscribeCommandOutput
|
|
111
|
-
| UntagResourceCommandOutput
|
|
112
|
-
| UpdateNotificationRuleCommandOutput;
|
|
113
|
-
|
|
114
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
115
|
-
/**
|
|
116
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
117
|
-
*/
|
|
118
|
-
requestHandler?: __HttpHandler;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
122
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
sha256?: __HashConstructor;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
|
-
urlParser?: __UrlParser;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* A function that can calculate the length of a request body.
|
|
135
|
-
* @internal
|
|
136
|
-
*/
|
|
137
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* A function that converts a stream into an array of bytes.
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
streamCollector?: __StreamCollector;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
base64Decoder?: __Decoder;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
153
|
-
* @internal
|
|
154
|
-
*/
|
|
155
|
-
base64Encoder?: __Encoder;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
159
|
-
* @internal
|
|
160
|
-
*/
|
|
161
|
-
utf8Decoder?: __Decoder;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
167
|
-
utf8Encoder?: __Encoder;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* The runtime environment.
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
runtime?: string;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
177
|
-
* trait of an operation.
|
|
178
|
-
*/
|
|
179
|
-
disableHostPrefix?: boolean;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
183
|
-
*/
|
|
184
|
-
maxAttempts?: number | __Provider<number>;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Specifies which retry algorithm to use.
|
|
188
|
-
*/
|
|
189
|
-
retryMode?: string | __Provider<string>;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Optional logger for logging debug/info/warn/error.
|
|
193
|
-
*/
|
|
194
|
-
logger?: __Logger;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Unique service identifier.
|
|
198
|
-
* @internal
|
|
199
|
-
*/
|
|
200
|
-
serviceId?: string;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The AWS region to which this client will send requests
|
|
204
|
-
*/
|
|
205
|
-
region?: string | __Provider<string>;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Default credentials provider; Not available in browser runtime.
|
|
209
|
-
* @internal
|
|
210
|
-
*/
|
|
211
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
215
|
-
* @internal
|
|
216
|
-
*/
|
|
217
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
221
|
-
* @internal
|
|
222
|
-
*/
|
|
223
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
type CodestarNotificationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
227
|
-
ClientDefaults &
|
|
228
|
-
RegionInputConfig &
|
|
229
|
-
EndpointsInputConfig &
|
|
230
|
-
RetryInputConfig &
|
|
231
|
-
HostHeaderInputConfig &
|
|
232
|
-
AwsAuthInputConfig &
|
|
233
|
-
UserAgentInputConfig;
|
|
234
|
-
/**
|
|
235
|
-
* The configuration interface of CodestarNotificationsClient class constructor that set the region, credentials and other options.
|
|
236
|
-
*/
|
|
237
|
-
export interface CodestarNotificationsClientConfig extends CodestarNotificationsClientConfigType {}
|
|
238
|
-
|
|
239
|
-
type CodestarNotificationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
240
|
-
Required<ClientDefaults> &
|
|
241
|
-
RegionResolvedConfig &
|
|
242
|
-
EndpointsResolvedConfig &
|
|
243
|
-
RetryResolvedConfig &
|
|
244
|
-
HostHeaderResolvedConfig &
|
|
245
|
-
AwsAuthResolvedConfig &
|
|
246
|
-
UserAgentResolvedConfig;
|
|
247
|
-
/**
|
|
248
|
-
* The resolved configuration interface of CodestarNotificationsClient class. This is resolved and normalized from the {@link CodestarNotificationsClientConfig | constructor configuration interface}.
|
|
249
|
-
*/
|
|
250
|
-
export interface CodestarNotificationsClientResolvedConfig extends CodestarNotificationsClientResolvedConfigType {}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* <p>This AWS CodeStar Notifications API Reference provides descriptions and usage examples of the
|
|
254
|
-
* operations and data types for the AWS CodeStar Notifications API. You can use the AWS CodeStar Notifications API
|
|
255
|
-
* to work with the following objects:</p>
|
|
256
|
-
*
|
|
257
|
-
* <p>Notification rules, by calling the following: </p>
|
|
258
|
-
* <ul>
|
|
259
|
-
* <li>
|
|
260
|
-
* <p>
|
|
261
|
-
* <a>CreateNotificationRule</a>, which creates a notification rule for a
|
|
262
|
-
* resource in your account. </p>
|
|
263
|
-
* </li>
|
|
264
|
-
* <li>
|
|
265
|
-
* <p>
|
|
266
|
-
* <a>DeleteNotificationRule</a>, which deletes a notification rule. </p>
|
|
267
|
-
* </li>
|
|
268
|
-
* <li>
|
|
269
|
-
* <p>
|
|
270
|
-
* <a>DescribeNotificationRule</a>, which provides information about a notification rule. </p>
|
|
271
|
-
* </li>
|
|
272
|
-
* <li>
|
|
273
|
-
* <p>
|
|
274
|
-
* <a>ListNotificationRules</a>, which lists the notification rules associated with
|
|
275
|
-
* your account. </p>
|
|
276
|
-
* </li>
|
|
277
|
-
* <li>
|
|
278
|
-
* <p>
|
|
279
|
-
* <a>UpdateNotificationRule</a>, which changes the name, events, or targets associated with a
|
|
280
|
-
* notification rule. </p>
|
|
281
|
-
* </li>
|
|
282
|
-
* <li>
|
|
283
|
-
* <p>
|
|
284
|
-
* <a>Subscribe</a>, which subscribes a target to a notification rule. </p>
|
|
285
|
-
* </li>
|
|
286
|
-
* <li>
|
|
287
|
-
* <p>
|
|
288
|
-
* <a>Unsubscribe</a>, which removes a target from a notification rule. </p>
|
|
289
|
-
* </li>
|
|
290
|
-
* </ul>
|
|
291
|
-
*
|
|
292
|
-
* <p>Targets, by calling the following: </p>
|
|
293
|
-
* <ul>
|
|
294
|
-
* <li>
|
|
295
|
-
* <p>
|
|
296
|
-
* <a>DeleteTarget</a>, which removes a notification rule target (SNS topic) from a
|
|
297
|
-
* notification rule. </p>
|
|
298
|
-
* </li>
|
|
299
|
-
* <li>
|
|
300
|
-
* <p>
|
|
301
|
-
* <a>ListTargets</a>, which lists the targets associated with a
|
|
302
|
-
* notification rule. </p>
|
|
303
|
-
* </li>
|
|
304
|
-
* </ul>
|
|
305
|
-
*
|
|
306
|
-
* <p>Events, by calling the following: </p>
|
|
307
|
-
* <ul>
|
|
308
|
-
* <li>
|
|
309
|
-
* <p>
|
|
310
|
-
* <a>ListEventTypes</a>, which lists the event types you can include in
|
|
311
|
-
* a notification rule. </p>
|
|
312
|
-
* </li>
|
|
313
|
-
* </ul>
|
|
314
|
-
* <p>Tags, by calling the following: </p>
|
|
315
|
-
* <ul>
|
|
316
|
-
* <li>
|
|
317
|
-
* <p>
|
|
318
|
-
* <a>ListTagsForResource</a>, which lists the tags already associated
|
|
319
|
-
* with a notification rule in your account. </p>
|
|
320
|
-
* </li>
|
|
321
|
-
* <li>
|
|
322
|
-
* <p>
|
|
323
|
-
* <a>TagResource</a>, which associates a tag you provide with a
|
|
324
|
-
* notification rule in your account. </p>
|
|
325
|
-
* </li>
|
|
326
|
-
* <li>
|
|
327
|
-
* <p>
|
|
328
|
-
* <a>UntagResource</a>, which removes a tag from a notification rule in
|
|
329
|
-
* your account. </p>
|
|
330
|
-
* </li>
|
|
331
|
-
* </ul>
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
* <p> For information about how to use AWS CodeStar Notifications, see link in the CodeStarNotifications User Guide.
|
|
336
|
-
* </p>
|
|
337
|
-
*/
|
|
338
|
-
export class CodestarNotificationsClient extends __Client<
|
|
339
|
-
__HttpHandlerOptions,
|
|
340
|
-
ServiceInputTypes,
|
|
341
|
-
ServiceOutputTypes,
|
|
342
|
-
CodestarNotificationsClientResolvedConfig
|
|
343
|
-
> {
|
|
344
|
-
/**
|
|
345
|
-
* The resolved configuration of CodestarNotificationsClient class. This is resolved and normalized from the {@link CodestarNotificationsClientConfig | constructor configuration interface}.
|
|
346
|
-
*/
|
|
347
|
-
readonly config: CodestarNotificationsClientResolvedConfig;
|
|
348
|
-
|
|
349
|
-
constructor(configuration: CodestarNotificationsClientConfig) {
|
|
350
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
351
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
352
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
353
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
354
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
355
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
356
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
357
|
-
super(_config_6);
|
|
358
|
-
this.config = _config_6;
|
|
359
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
360
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
361
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
362
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
363
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
364
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
369
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
370
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
371
|
-
*/
|
|
372
|
-
destroy(): void {
|
|
373
|
-
super.destroy();
|
|
374
|
-
}
|
|
375
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodestarNotificationsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodestarNotificationsClient";
|
|
6
|
-
import { CreateNotificationRuleRequest, CreateNotificationRuleResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1CreateNotificationRuleCommand,
|
|
9
|
-
serializeAws_restJson1CreateNotificationRuleCommand,
|
|
10
|
-
} from "../protocols/Aws_restJson1";
|
|
11
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
12
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
13
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
14
|
-
import {
|
|
15
|
-
FinalizeHandlerArguments,
|
|
16
|
-
Handler,
|
|
17
|
-
HandlerExecutionContext,
|
|
18
|
-
MiddlewareStack,
|
|
19
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
20
|
-
MetadataBearer as __MetadataBearer,
|
|
21
|
-
SerdeContext as __SerdeContext,
|
|
22
|
-
} from "@aws-sdk/types";
|
|
23
|
-
|
|
24
|
-
export interface CreateNotificationRuleCommandInput extends CreateNotificationRuleRequest {}
|
|
25
|
-
export interface CreateNotificationRuleCommandOutput extends CreateNotificationRuleResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Creates a notification rule for a resource. The rule specifies the events you want
|
|
29
|
-
* notifications about and the targets (such as SNS topics) where you want to receive
|
|
30
|
-
* them.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { CodestarNotificationsClient, CreateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
35
|
-
* // const { CodestarNotificationsClient, CreateNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
36
|
-
* const client = new CodestarNotificationsClient(config);
|
|
37
|
-
* const command = new CreateNotificationRuleCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link CreateNotificationRuleCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link CreateNotificationRuleCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class CreateNotificationRuleCommand extends $Command<
|
|
47
|
-
CreateNotificationRuleCommandInput,
|
|
48
|
-
CreateNotificationRuleCommandOutput,
|
|
49
|
-
CodestarNotificationsClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: CreateNotificationRuleCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: CodestarNotificationsClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "CodestarNotificationsClient";
|
|
74
|
-
const commandName = "CreateNotificationRuleCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: CreateNotificationRuleRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: CreateNotificationRuleResult.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: CreateNotificationRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_restJson1CreateNotificationRuleCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateNotificationRuleCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1CreateNotificationRuleCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodestarNotificationsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodestarNotificationsClient";
|
|
6
|
-
import { DeleteNotificationRuleRequest, DeleteNotificationRuleResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1DeleteNotificationRuleCommand,
|
|
9
|
-
serializeAws_restJson1DeleteNotificationRuleCommand,
|
|
10
|
-
} from "../protocols/Aws_restJson1";
|
|
11
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
12
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
13
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
14
|
-
import {
|
|
15
|
-
FinalizeHandlerArguments,
|
|
16
|
-
Handler,
|
|
17
|
-
HandlerExecutionContext,
|
|
18
|
-
MiddlewareStack,
|
|
19
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
20
|
-
MetadataBearer as __MetadataBearer,
|
|
21
|
-
SerdeContext as __SerdeContext,
|
|
22
|
-
} from "@aws-sdk/types";
|
|
23
|
-
|
|
24
|
-
export interface DeleteNotificationRuleCommandInput extends DeleteNotificationRuleRequest {}
|
|
25
|
-
export interface DeleteNotificationRuleCommandOutput extends DeleteNotificationRuleResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Deletes a notification rule for a resource.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodestarNotificationsClient, DeleteNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, DeleteNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new DeleteNotificationRuleCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeleteNotificationRuleCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeleteNotificationRuleCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeleteNotificationRuleCommand extends $Command<
|
|
45
|
-
DeleteNotificationRuleCommandInput,
|
|
46
|
-
DeleteNotificationRuleCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeleteNotificationRuleCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: CodestarNotificationsClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeleteNotificationRuleCommandInput, DeleteNotificationRuleCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "CodestarNotificationsClient";
|
|
72
|
-
const commandName = "DeleteNotificationRuleCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeleteNotificationRuleRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DeleteNotificationRuleResult.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeleteNotificationRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1DeleteNotificationRuleCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteNotificationRuleCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1DeleteNotificationRuleCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodestarNotificationsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodestarNotificationsClient";
|
|
6
|
-
import { DeleteTargetRequest, DeleteTargetResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1DeleteTargetCommand,
|
|
9
|
-
serializeAws_restJson1DeleteTargetCommand,
|
|
10
|
-
} from "../protocols/Aws_restJson1";
|
|
11
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
12
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
13
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
14
|
-
import {
|
|
15
|
-
FinalizeHandlerArguments,
|
|
16
|
-
Handler,
|
|
17
|
-
HandlerExecutionContext,
|
|
18
|
-
MiddlewareStack,
|
|
19
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
20
|
-
MetadataBearer as __MetadataBearer,
|
|
21
|
-
SerdeContext as __SerdeContext,
|
|
22
|
-
} from "@aws-sdk/types";
|
|
23
|
-
|
|
24
|
-
export interface DeleteTargetCommandInput extends DeleteTargetRequest {}
|
|
25
|
-
export interface DeleteTargetCommandOutput extends DeleteTargetResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Deletes a specified target for notifications.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodestarNotificationsClient, DeleteTargetCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, DeleteTargetCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new DeleteTargetCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeleteTargetCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeleteTargetCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeleteTargetCommand extends $Command<
|
|
45
|
-
DeleteTargetCommandInput,
|
|
46
|
-
DeleteTargetCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeleteTargetCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: CodestarNotificationsClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeleteTargetCommandInput, DeleteTargetCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "CodestarNotificationsClient";
|
|
72
|
-
const commandName = "DeleteTargetCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeleteTargetRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DeleteTargetResult.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeleteTargetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1DeleteTargetCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteTargetCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1DeleteTargetCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|