@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,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodestarNotificationsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodestarNotificationsClient";
|
|
6
|
-
import { DescribeNotificationRuleRequest, DescribeNotificationRuleResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1DescribeNotificationRuleCommand,
|
|
9
|
-
serializeAws_restJson1DescribeNotificationRuleCommand,
|
|
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 DescribeNotificationRuleCommandInput extends DescribeNotificationRuleRequest {}
|
|
25
|
-
export interface DescribeNotificationRuleCommandOutput extends DescribeNotificationRuleResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns information about a specified notification rule.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodestarNotificationsClient, DescribeNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, DescribeNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new DescribeNotificationRuleCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DescribeNotificationRuleCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DescribeNotificationRuleCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DescribeNotificationRuleCommand extends $Command<
|
|
45
|
-
DescribeNotificationRuleCommandInput,
|
|
46
|
-
DescribeNotificationRuleCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DescribeNotificationRuleCommandInput) {
|
|
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<DescribeNotificationRuleCommandInput, DescribeNotificationRuleCommandOutput> {
|
|
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 = "DescribeNotificationRuleCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DescribeNotificationRuleRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DescribeNotificationRuleResult.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: DescribeNotificationRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1DescribeNotificationRuleCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeNotificationRuleCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1DescribeNotificationRuleCommand(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 { ListEventTypesRequest, ListEventTypesResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1ListEventTypesCommand,
|
|
9
|
-
serializeAws_restJson1ListEventTypesCommand,
|
|
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 ListEventTypesCommandInput extends ListEventTypesRequest {}
|
|
25
|
-
export interface ListEventTypesCommandOutput extends ListEventTypesResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns information about the event types available for configuring 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, ListEventTypesCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, ListEventTypesCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new ListEventTypesCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ListEventTypesCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ListEventTypesCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListEventTypesCommand extends $Command<
|
|
45
|
-
ListEventTypesCommandInput,
|
|
46
|
-
ListEventTypesCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ListEventTypesCommandInput) {
|
|
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<ListEventTypesCommandInput, ListEventTypesCommandOutput> {
|
|
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 = "ListEventTypesCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListEventTypesRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListEventTypesResult.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: ListEventTypesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1ListEventTypesCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListEventTypesCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1ListEventTypesCommand(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 { ListNotificationRulesRequest, ListNotificationRulesResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1ListNotificationRulesCommand,
|
|
9
|
-
serializeAws_restJson1ListNotificationRulesCommand,
|
|
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 ListNotificationRulesCommandInput extends ListNotificationRulesRequest {}
|
|
25
|
-
export interface ListNotificationRulesCommandOutput extends ListNotificationRulesResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns a list of the notification rules for an AWS account.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodestarNotificationsClient, ListNotificationRulesCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, ListNotificationRulesCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new ListNotificationRulesCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ListNotificationRulesCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ListNotificationRulesCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListNotificationRulesCommand extends $Command<
|
|
45
|
-
ListNotificationRulesCommandInput,
|
|
46
|
-
ListNotificationRulesCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ListNotificationRulesCommandInput) {
|
|
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<ListNotificationRulesCommandInput, ListNotificationRulesCommandOutput> {
|
|
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 = "ListNotificationRulesCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListNotificationRulesRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListNotificationRulesResult.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: ListNotificationRulesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1ListNotificationRulesCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListNotificationRulesCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1ListNotificationRulesCommand(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 { ListTagsForResourceRequest, ListTagsForResourceResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1ListTagsForResourceCommand,
|
|
9
|
-
serializeAws_restJson1ListTagsForResourceCommand,
|
|
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 ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
|
|
25
|
-
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns a list of the tags associated with a notification rule.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodestarNotificationsClient, ListTagsForResourceCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new ListTagsForResourceCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListTagsForResourceCommand extends $Command<
|
|
45
|
-
ListTagsForResourceCommandInput,
|
|
46
|
-
ListTagsForResourceCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ListTagsForResourceCommandInput) {
|
|
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<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
|
|
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 = "ListTagsForResourceCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListTagsForResourceResult.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: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1ListTagsForResourceCommand(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 { ListTargetsRequest, ListTargetsResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1ListTargetsCommand,
|
|
9
|
-
serializeAws_restJson1ListTargetsCommand,
|
|
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 ListTargetsCommandInput extends ListTargetsRequest {}
|
|
25
|
-
export interface ListTargetsCommandOutput extends ListTargetsResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns a list of the notification rule targets for an AWS account.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodestarNotificationsClient, ListTargetsCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
33
|
-
* // const { CodestarNotificationsClient, ListTargetsCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
34
|
-
* const client = new CodestarNotificationsClient(config);
|
|
35
|
-
* const command = new ListTargetsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ListTargetsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ListTargetsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListTargetsCommand extends $Command<
|
|
45
|
-
ListTargetsCommandInput,
|
|
46
|
-
ListTargetsCommandOutput,
|
|
47
|
-
CodestarNotificationsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ListTargetsCommandInput) {
|
|
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<ListTargetsCommandInput, ListTargetsCommandOutput> {
|
|
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 = "ListTargetsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListTargetsRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListTargetsResult.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: ListTargetsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1ListTargetsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTargetsCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1ListTargetsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodestarNotificationsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodestarNotificationsClient";
|
|
6
|
-
import { SubscribeRequest, SubscribeResult } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1SubscribeCommand,
|
|
9
|
-
serializeAws_restJson1SubscribeCommand,
|
|
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 SubscribeCommandInput extends SubscribeRequest {}
|
|
25
|
-
export interface SubscribeCommandOutput extends SubscribeResult, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Creates an association between a notification rule and an SNS topic so that the
|
|
29
|
-
* associated target can receive notifications when the events described in the rule are
|
|
30
|
-
* triggered.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { CodestarNotificationsClient, SubscribeCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
|
|
35
|
-
* // const { CodestarNotificationsClient, SubscribeCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
|
|
36
|
-
* const client = new CodestarNotificationsClient(config);
|
|
37
|
-
* const command = new SubscribeCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link SubscribeCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link SubscribeCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class SubscribeCommand extends $Command<
|
|
47
|
-
SubscribeCommandInput,
|
|
48
|
-
SubscribeCommandOutput,
|
|
49
|
-
CodestarNotificationsClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: SubscribeCommandInput) {
|
|
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<SubscribeCommandInput, SubscribeCommandOutput> {
|
|
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 = "SubscribeCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: SubscribeRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: SubscribeResult.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: SubscribeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_restJson1SubscribeCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SubscribeCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1SubscribeCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|