@aws-sdk/client-codestar-connections 3.33.0 → 3.36.1
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}/CodeStarConnections.js +0 -83
- package/dist-cjs/CodeStarConnectionsClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CreateConnectionCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/CreateHostCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/DeleteConnectionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteHostCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/GetConnectionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetHostCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListConnectionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListHostsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateHostCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- 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 -100
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListConnectionsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListHostsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +0 -6
- 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}/CodeStarConnections.js +1 -84
- package/dist-es/CodeStarConnectionsClient.js +37 -0
- package/{dist/es → dist-es}/commands/CreateConnectionCommand.js +4 -32
- package/{dist/es → dist-es}/commands/CreateHostCommand.js +4 -37
- package/{dist/es → dist-es}/commands/DeleteConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteHostCommand.js +4 -33
- package/{dist/es → dist-es}/commands/GetConnectionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetHostCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListConnectionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListHostsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateHostCommand.js +4 -30
- 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 -100
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListConnectionsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListHostsPaginator.js +16 -29
- package/{dist/es → dist-es}/protocols/Aws_json1_0.js +165 -171
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/CodeStarConnections.d.ts +1 -1
- package/{dist/types → dist-types}/CodeStarConnectionsClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateHostCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteHostCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetConnectionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetHostCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConnectionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListHostsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateHostCommand.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/ListConnectionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListHostsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_0.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/ts3.4/CodeStarConnections.d.ts +65 -0
- package/dist-types/ts3.4/CodeStarConnectionsClient.d.ts +79 -0
- package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateHostCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectionCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/DeleteHostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetHostCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListHostsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateHostCommand.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 +353 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListConnectionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListHostsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_0.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 +52 -49
- package/CodeStarConnections.ts +0 -484
- package/CodeStarConnectionsClient.ts +0 -353
- package/commands/CreateConnectionCommand.ts +0 -100
- package/commands/CreateHostCommand.ts +0 -105
- package/commands/DeleteConnectionCommand.ts +0 -98
- package/commands/DeleteHostCommand.ts +0 -101
- package/commands/GetConnectionCommand.ts +0 -98
- package/commands/GetHostCommand.ts +0 -96
- package/commands/ListConnectionsCommand.ts +0 -98
- package/commands/ListHostsCommand.ts +0 -95
- package/commands/ListTagsForResourceCommand.ts +0 -98
- package/commands/TagResourceCommand.ts +0 -99
- package/commands/UntagResourceCommand.ts +0 -98
- package/commands/UpdateHostCommand.ts +0 -98
- package/dist/cjs/CodeStarConnections.js.map +0 -1
- package/dist/cjs/CodeStarConnectionsClient.js +0 -123
- package/dist/cjs/CodeStarConnectionsClient.js.map +0 -1
- package/dist/cjs/commands/CreateConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateHostCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteHostCommand.js.map +0 -1
- package/dist/cjs/commands/GetConnectionCommand.js.map +0 -1
- package/dist/cjs/commands/GetHostCommand.js.map +0 -1
- package/dist/cjs/commands/ListConnectionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListHostsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateHostCommand.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 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListConnectionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListHostsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_0.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/CodeStarConnections.js.map +0 -1
- package/dist/es/CodeStarConnectionsClient.js +0 -125
- package/dist/es/CodeStarConnectionsClient.js.map +0 -1
- package/dist/es/commands/CreateConnectionCommand.js.map +0 -1
- package/dist/es/commands/CreateHostCommand.js.map +0 -1
- package/dist/es/commands/DeleteConnectionCommand.js.map +0 -1
- package/dist/es/commands/DeleteHostCommand.js.map +0 -1
- package/dist/es/commands/GetConnectionCommand.js.map +0 -1
- package/dist/es/commands/GetHostCommand.js.map +0 -1
- package/dist/es/commands/ListConnectionsCommand.js.map +0 -1
- package/dist/es/commands/ListHostsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateHostCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -19
- 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 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListConnectionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListHostsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_0.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/CodeStarConnections.d.ts +0 -184
- package/dist/types/ts3.4/CodeStarConnectionsClient.d.ts +0 -223
- package/dist/types/ts3.4/commands/CreateConnectionCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/CreateHostCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/DeleteHostCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/GetConnectionCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetHostCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListConnectionsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListHostsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateHostCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -601
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -768
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListConnectionsPaginator.ts +0 -58
- package/pagination/ListHostsPaginator.ts +0 -54
- package/protocols/Aws_json1_0.ts +0 -1482
- 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 -12
- package/tsconfig.json +0 -32
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { DeleteHostInput, DeleteHostOutput } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_json1_0DeleteHostCommand,
|
|
9
|
-
serializeAws_json1_0DeleteHostCommand,
|
|
10
|
-
} from "../protocols/Aws_json1_0";
|
|
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 DeleteHostCommandInput extends DeleteHostInput {}
|
|
25
|
-
export interface DeleteHostCommandOutput extends DeleteHostOutput, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.</p>
|
|
29
|
-
* <note>
|
|
30
|
-
* <p>A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.</p>
|
|
31
|
-
* </note>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { CodeStarConnectionsClient, DeleteHostCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
36
|
-
* // const { CodeStarConnectionsClient, DeleteHostCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
37
|
-
* const client = new CodeStarConnectionsClient(config);
|
|
38
|
-
* const command = new DeleteHostCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link DeleteHostCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link DeleteHostCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class DeleteHostCommand extends $Command<
|
|
48
|
-
DeleteHostCommandInput,
|
|
49
|
-
DeleteHostCommandOutput,
|
|
50
|
-
CodeStarConnectionsClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: DeleteHostCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: CodeStarConnectionsClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<DeleteHostCommandInput, DeleteHostCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "CodeStarConnectionsClient";
|
|
75
|
-
const commandName = "DeleteHostCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: DeleteHostInput.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: DeleteHostOutput.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: DeleteHostCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_0DeleteHostCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteHostCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_0DeleteHostCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { GetConnectionInput, GetConnectionOutput } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_json1_0GetConnectionCommand,
|
|
9
|
-
serializeAws_json1_0GetConnectionCommand,
|
|
10
|
-
} from "../protocols/Aws_json1_0";
|
|
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 GetConnectionCommandInput extends GetConnectionInput {}
|
|
25
|
-
export interface GetConnectionCommandOutput extends GetConnectionOutput, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns the connection ARN and details such as status, owner, and provider type.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodeStarConnectionsClient, GetConnectionCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
33
|
-
* // const { CodeStarConnectionsClient, GetConnectionCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
34
|
-
* const client = new CodeStarConnectionsClient(config);
|
|
35
|
-
* const command = new GetConnectionCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link GetConnectionCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link GetConnectionCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class GetConnectionCommand extends $Command<
|
|
45
|
-
GetConnectionCommandInput,
|
|
46
|
-
GetConnectionCommandOutput,
|
|
47
|
-
CodeStarConnectionsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: GetConnectionCommandInput) {
|
|
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: CodeStarConnectionsClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<GetConnectionCommandInput, GetConnectionCommandOutput> {
|
|
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 = "CodeStarConnectionsClient";
|
|
72
|
-
const commandName = "GetConnectionCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: GetConnectionInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: GetConnectionOutput.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: GetConnectionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_0GetConnectionCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetConnectionCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_0GetConnectionCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { GetHostInput, GetHostOutput } from "../models/models_0";
|
|
7
|
-
import { deserializeAws_json1_0GetHostCommand, serializeAws_json1_0GetHostCommand } from "../protocols/Aws_json1_0";
|
|
8
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
9
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
10
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
11
|
-
import {
|
|
12
|
-
FinalizeHandlerArguments,
|
|
13
|
-
Handler,
|
|
14
|
-
HandlerExecutionContext,
|
|
15
|
-
MiddlewareStack,
|
|
16
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
17
|
-
MetadataBearer as __MetadataBearer,
|
|
18
|
-
SerdeContext as __SerdeContext,
|
|
19
|
-
} from "@aws-sdk/types";
|
|
20
|
-
|
|
21
|
-
export interface GetHostCommandInput extends GetHostInput {}
|
|
22
|
-
export interface GetHostCommandOutput extends GetHostOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the host ARN and details such as status, provider type, endpoint, and, if
|
|
26
|
-
* applicable, the VPC configuration.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CodeStarConnectionsClient, GetHostCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
31
|
-
* // const { CodeStarConnectionsClient, GetHostCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
32
|
-
* const client = new CodeStarConnectionsClient(config);
|
|
33
|
-
* const command = new GetHostCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link GetHostCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link GetHostCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class GetHostCommand extends $Command<
|
|
43
|
-
GetHostCommandInput,
|
|
44
|
-
GetHostCommandOutput,
|
|
45
|
-
CodeStarConnectionsClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: GetHostCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: CodeStarConnectionsClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<GetHostCommandInput, GetHostCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "CodeStarConnectionsClient";
|
|
70
|
-
const commandName = "GetHostCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: GetHostInput.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: GetHostOutput.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: GetHostCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_0GetHostCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetHostCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_0GetHostCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { ListConnectionsInput, ListConnectionsOutput } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_json1_0ListConnectionsCommand,
|
|
9
|
-
serializeAws_json1_0ListConnectionsCommand,
|
|
10
|
-
} from "../protocols/Aws_json1_0";
|
|
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 ListConnectionsCommandInput extends ListConnectionsInput {}
|
|
25
|
-
export interface ListConnectionsCommandOutput extends ListConnectionsOutput, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Lists the connections associated with your account.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodeStarConnectionsClient, ListConnectionsCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
33
|
-
* // const { CodeStarConnectionsClient, ListConnectionsCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
34
|
-
* const client = new CodeStarConnectionsClient(config);
|
|
35
|
-
* const command = new ListConnectionsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ListConnectionsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ListConnectionsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListConnectionsCommand extends $Command<
|
|
45
|
-
ListConnectionsCommandInput,
|
|
46
|
-
ListConnectionsCommandOutput,
|
|
47
|
-
CodeStarConnectionsClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ListConnectionsCommandInput) {
|
|
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: CodeStarConnectionsClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<ListConnectionsCommandInput, ListConnectionsCommandOutput> {
|
|
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 = "CodeStarConnectionsClient";
|
|
72
|
-
const commandName = "ListConnectionsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListConnectionsInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListConnectionsOutput.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: ListConnectionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_0ListConnectionsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListConnectionsCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_0ListConnectionsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { ListHostsInput, ListHostsOutput } from "../models/models_0";
|
|
7
|
-
import { deserializeAws_json1_0ListHostsCommand, serializeAws_json1_0ListHostsCommand } from "../protocols/Aws_json1_0";
|
|
8
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
9
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
10
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
11
|
-
import {
|
|
12
|
-
FinalizeHandlerArguments,
|
|
13
|
-
Handler,
|
|
14
|
-
HandlerExecutionContext,
|
|
15
|
-
MiddlewareStack,
|
|
16
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
17
|
-
MetadataBearer as __MetadataBearer,
|
|
18
|
-
SerdeContext as __SerdeContext,
|
|
19
|
-
} from "@aws-sdk/types";
|
|
20
|
-
|
|
21
|
-
export interface ListHostsCommandInput extends ListHostsInput {}
|
|
22
|
-
export interface ListHostsCommandOutput extends ListHostsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Lists the hosts associated with your account.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { CodeStarConnectionsClient, ListHostsCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
30
|
-
* // const { CodeStarConnectionsClient, ListHostsCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
31
|
-
* const client = new CodeStarConnectionsClient(config);
|
|
32
|
-
* const command = new ListHostsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListHostsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListHostsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListHostsCommand extends $Command<
|
|
42
|
-
ListHostsCommandInput,
|
|
43
|
-
ListHostsCommandOutput,
|
|
44
|
-
CodeStarConnectionsClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListHostsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: CodeStarConnectionsClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListHostsCommandInput, ListHostsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "CodeStarConnectionsClient";
|
|
69
|
-
const commandName = "ListHostsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListHostsInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListHostsOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListHostsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_0ListHostsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListHostsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_0ListHostsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_json1_0ListTagsForResourceCommand,
|
|
9
|
-
serializeAws_json1_0ListTagsForResourceCommand,
|
|
10
|
-
} from "../protocols/Aws_json1_0";
|
|
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 ListTagsForResourceInput {}
|
|
25
|
-
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Gets the set of key-value pairs (metadata) that are used to manage the resource.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { CodeStarConnectionsClient, ListTagsForResourceCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
33
|
-
* // const { CodeStarConnectionsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
34
|
-
* const client = new CodeStarConnectionsClient(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 CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListTagsForResourceCommand extends $Command<
|
|
45
|
-
ListTagsForResourceCommandInput,
|
|
46
|
-
ListTagsForResourceCommandOutput,
|
|
47
|
-
CodeStarConnectionsClientResolvedConfig
|
|
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: CodeStarConnectionsClientResolvedConfig,
|
|
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 = "CodeStarConnectionsClient";
|
|
72
|
-
const commandName = "ListTagsForResourceCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListTagsForResourceInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListTagsForResourceOutput.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_json1_0ListTagsForResourceCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeStarConnectionsClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../CodeStarConnectionsClient";
|
|
6
|
-
import { TagResourceInput, TagResourceOutput } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_json1_0TagResourceCommand,
|
|
9
|
-
serializeAws_json1_0TagResourceCommand,
|
|
10
|
-
} from "../protocols/Aws_json1_0";
|
|
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 TagResourceCommandInput extends TagResourceInput {}
|
|
25
|
-
export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Adds to or modifies the tags of the given resource. Tags are metadata that can be used
|
|
29
|
-
* to manage a resource.</p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { CodeStarConnectionsClient, TagResourceCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
|
|
34
|
-
* // const { CodeStarConnectionsClient, TagResourceCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
|
|
35
|
-
* const client = new CodeStarConnectionsClient(config);
|
|
36
|
-
* const command = new TagResourceCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link CodeStarConnectionsClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class TagResourceCommand extends $Command<
|
|
46
|
-
TagResourceCommandInput,
|
|
47
|
-
TagResourceCommandOutput,
|
|
48
|
-
CodeStarConnectionsClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: TagResourceCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: CodeStarConnectionsClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "CodeStarConnectionsClient";
|
|
73
|
-
const commandName = "TagResourceCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: TagResourceInput.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: TagResourceOutput.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_json1_0TagResourceCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
|
|
94
|
-
return deserializeAws_json1_0TagResourceCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|