@aws-sdk/client-mediapackage 3.35.0 → 3.38.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 +48 -0
- package/dist-cjs/MediaPackage.js +0 -4
- package/dist-cjs/MediaPackageClient.js +0 -9
- package/dist-cjs/commands/ConfigureLogsCommand.js +0 -25
- package/dist-cjs/commands/CreateChannelCommand.js +0 -25
- package/dist-cjs/commands/CreateHarvestJobCommand.js +0 -25
- package/dist-cjs/commands/CreateOriginEndpointCommand.js +0 -25
- package/dist-cjs/commands/DeleteChannelCommand.js +0 -25
- package/dist-cjs/commands/DeleteOriginEndpointCommand.js +0 -25
- package/dist-cjs/commands/DescribeChannelCommand.js +0 -25
- package/dist-cjs/commands/DescribeHarvestJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeOriginEndpointCommand.js +0 -25
- package/dist-cjs/commands/ListChannelsCommand.js +0 -25
- package/dist-cjs/commands/ListHarvestJobsCommand.js +0 -25
- package/dist-cjs/commands/ListOriginEndpointsCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -8
- package/dist-cjs/commands/RotateChannelCredentialsCommand.js +0 -27
- package/dist-cjs/commands/RotateIngestEndpointCredentialsCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -8
- package/dist-cjs/commands/UntagResourceCommand.js +0 -8
- package/dist-cjs/commands/UpdateChannelCommand.js +0 -25
- package/dist-cjs/commands/UpdateOriginEndpointCommand.js +0 -25
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -26
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -196
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js +0 -11
- package/dist-cjs/pagination/ListHarvestJobsPaginator.js +0 -11
- package/dist-cjs/pagination/ListOriginEndpointsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/MediaPackage.js +0 -1
- package/dist-es/MediaPackageClient.js +0 -1
- package/dist-es/commands/ConfigureLogsCommand.js +0 -1
- package/dist-es/commands/CreateChannelCommand.js +0 -1
- package/dist-es/commands/CreateHarvestJobCommand.js +0 -1
- package/dist-es/commands/CreateOriginEndpointCommand.js +0 -1
- package/dist-es/commands/DeleteChannelCommand.js +0 -1
- package/dist-es/commands/DeleteOriginEndpointCommand.js +0 -1
- package/dist-es/commands/DescribeChannelCommand.js +0 -1
- package/dist-es/commands/DescribeHarvestJobCommand.js +0 -1
- package/dist-es/commands/DescribeOriginEndpointCommand.js +0 -1
- package/dist-es/commands/ListChannelsCommand.js +0 -1
- package/dist-es/commands/ListHarvestJobsCommand.js +0 -1
- package/dist-es/commands/ListOriginEndpointsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/RotateChannelCredentialsCommand.js +0 -1
- package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateChannelCommand.js +0 -1
- package/dist-es/commands/UpdateOriginEndpointCommand.js +0 -1
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -26
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js +0 -1
- package/dist-es/pagination/ListHarvestJobsPaginator.js +0 -1
- package/dist-es/pagination/ListOriginEndpointsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -3
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/index.d.ts +4 -25
- package/dist-types/models/models_0.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/MediaPackage.d.ts +17 -53
- package/dist-types/ts3.4/MediaPackageClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/ConfigureLogsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateHarvestJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateOriginEndpointCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeHarvestJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeOriginEndpointCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListHarvestJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListOriginEndpointsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -3
- package/dist-types/ts3.4/commands/RotateChannelCredentialsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/RotateIngestEndpointCredentialsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -3
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -3
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/index.d.ts +4 -25
- package/dist-types/ts3.4/models/models_0.d.ts +396 -1325
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/MediaPackage.js.map +0 -1
- package/dist-cjs/MediaPackageClient.js.map +0 -1
- package/dist-cjs/commands/ConfigureLogsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist-cjs/commands/CreateHarvestJobCommand.js.map +0 -1
- package/dist-cjs/commands/CreateOriginEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteOriginEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeHarvestJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeOriginEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist-cjs/commands/ListHarvestJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListOriginEndpointsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/RotateChannelCredentialsCommand.js.map +0 -1
- package/dist-cjs/commands/RotateIngestEndpointCredentialsCommand.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/UpdateChannelCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateOriginEndpointCommand.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/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListHarvestJobsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListOriginEndpointsPaginator.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/MediaPackage.js.map +0 -1
- package/dist-es/MediaPackageClient.js.map +0 -1
- package/dist-es/commands/ConfigureLogsCommand.js.map +0 -1
- package/dist-es/commands/CreateChannelCommand.js.map +0 -1
- package/dist-es/commands/CreateHarvestJobCommand.js.map +0 -1
- package/dist-es/commands/CreateOriginEndpointCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-es/commands/DeleteOriginEndpointCommand.js.map +0 -1
- package/dist-es/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-es/commands/DescribeHarvestJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeOriginEndpointCommand.js.map +0 -1
- package/dist-es/commands/ListChannelsCommand.js.map +0 -1
- package/dist-es/commands/ListHarvestJobsCommand.js.map +0 -1
- package/dist-es/commands/ListOriginEndpointsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/RotateChannelCredentialsCommand.js.map +0 -1
- package/dist-es/commands/RotateIngestEndpointCredentialsCommand.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/UpdateChannelCommand.js.map +0 -1
- package/dist-es/commands/UpdateOriginEndpointCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist-es/pagination/ListHarvestJobsPaginator.js.map +0 -1
- package/dist-es/pagination/ListOriginEndpointsPaginator.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/jest.config.js +0 -4
- package/src/MediaPackage.ts +0 -691
- package/src/MediaPackageClient.ts +0 -317
- package/src/commands/ConfigureLogsCommand.ts +0 -95
- package/src/commands/CreateChannelCommand.ts +0 -95
- package/src/commands/CreateHarvestJobCommand.ts +0 -95
- package/src/commands/CreateOriginEndpointCommand.ts +0 -95
- package/src/commands/DeleteChannelCommand.ts +0 -95
- package/src/commands/DeleteOriginEndpointCommand.ts +0 -95
- package/src/commands/DescribeChannelCommand.ts +0 -95
- package/src/commands/DescribeHarvestJobCommand.ts +0 -95
- package/src/commands/DescribeOriginEndpointCommand.ts +0 -95
- package/src/commands/ListChannelsCommand.ts +0 -95
- package/src/commands/ListHarvestJobsCommand.ts +0 -95
- package/src/commands/ListOriginEndpointsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -78
- package/src/commands/RotateChannelCredentialsCommand.ts +0 -97
- package/src/commands/RotateIngestEndpointCredentialsCommand.ts +0 -103
- package/src/commands/TagResourceCommand.ts +0 -78
- package/src/commands/UntagResourceCommand.ts +0 -78
- package/src/commands/UpdateChannelCommand.ts +0 -95
- package/src/commands/UpdateOriginEndpointCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -26
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2553
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListChannelsPaginator.ts +0 -59
- package/src/pagination/ListHarvestJobsPaginator.ts +0 -59
- package/src/pagination/ListOriginEndpointsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -3669
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { ListOriginEndpointsRequest, ListOriginEndpointsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListOriginEndpointsCommand,
|
|
18
|
-
serializeAws_restJson1ListOriginEndpointsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListOriginEndpointsCommandInput extends ListOriginEndpointsRequest {}
|
|
22
|
-
export interface ListOriginEndpointsCommandOutput extends ListOriginEndpointsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Returns a collection of OriginEndpoint records.
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaPackageClient, ListOriginEndpointsCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
|
|
30
|
-
* // const { MediaPackageClient, ListOriginEndpointsCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
|
|
31
|
-
* const client = new MediaPackageClient(config);
|
|
32
|
-
* const command = new ListOriginEndpointsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListOriginEndpointsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListOriginEndpointsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListOriginEndpointsCommand extends $Command<
|
|
42
|
-
ListOriginEndpointsCommandInput,
|
|
43
|
-
ListOriginEndpointsCommandOutput,
|
|
44
|
-
MediaPackageClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListOriginEndpointsCommandInput) {
|
|
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: MediaPackageClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListOriginEndpointsCommandInput, ListOriginEndpointsCommandOutput> {
|
|
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 = "MediaPackageClient";
|
|
69
|
-
const commandName = "ListOriginEndpointsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListOriginEndpointsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListOriginEndpointsResponse.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: ListOriginEndpointsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListOriginEndpointsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListOriginEndpointsCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListOriginEndpointsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListTagsForResourceCommand,
|
|
18
|
-
serializeAws_restJson1ListTagsForResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
|
|
22
|
-
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
export class ListTagsForResourceCommand extends $Command<
|
|
25
|
-
ListTagsForResourceCommandInput,
|
|
26
|
-
ListTagsForResourceCommandOutput,
|
|
27
|
-
MediaPackageClientResolvedConfig
|
|
28
|
-
> {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
|
-
|
|
32
|
-
constructor(readonly input: ListTagsForResourceCommandInput) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
|
-
super();
|
|
35
|
-
// End section: command_constructor
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
resolveMiddleware(
|
|
42
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
43
|
-
configuration: MediaPackageClientResolvedConfig,
|
|
44
|
-
options?: __HttpHandlerOptions
|
|
45
|
-
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
|
|
46
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
|
-
|
|
48
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
49
|
-
|
|
50
|
-
const { logger } = configuration;
|
|
51
|
-
const clientName = "MediaPackageClient";
|
|
52
|
-
const commandName = "ListTagsForResourceCommand";
|
|
53
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
54
|
-
logger,
|
|
55
|
-
clientName,
|
|
56
|
-
commandName,
|
|
57
|
-
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
58
|
-
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
59
|
-
};
|
|
60
|
-
const { requestHandler } = configuration;
|
|
61
|
-
return stack.resolve(
|
|
62
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
63
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
64
|
-
handlerExecutionContext
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
69
|
-
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
|
|
73
|
-
return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Start section: command_body_extra
|
|
77
|
-
// End section: command_body_extra
|
|
78
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { RotateChannelCredentialsRequest, RotateChannelCredentialsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1RotateChannelCredentialsCommand,
|
|
18
|
-
serializeAws_restJson1RotateChannelCredentialsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface RotateChannelCredentialsCommandInput extends RotateChannelCredentialsRequest {}
|
|
22
|
-
export interface RotateChannelCredentialsCommandOutput extends RotateChannelCredentialsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated
|
|
26
|
-
*
|
|
27
|
-
* Changes the Channel's first IngestEndpoint's username and password. WARNING - This API is deprecated. Please use RotateIngestEndpointCredentials instead
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { MediaPackageClient, RotateChannelCredentialsCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
|
|
32
|
-
* // const { MediaPackageClient, RotateChannelCredentialsCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
|
|
33
|
-
* const client = new MediaPackageClient(config);
|
|
34
|
-
* const command = new RotateChannelCredentialsCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link RotateChannelCredentialsCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link RotateChannelCredentialsCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class RotateChannelCredentialsCommand extends $Command<
|
|
44
|
-
RotateChannelCredentialsCommandInput,
|
|
45
|
-
RotateChannelCredentialsCommandOutput,
|
|
46
|
-
MediaPackageClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: RotateChannelCredentialsCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: MediaPackageClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<RotateChannelCredentialsCommandInput, RotateChannelCredentialsCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "MediaPackageClient";
|
|
71
|
-
const commandName = "RotateChannelCredentialsCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: RotateChannelCredentialsRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: RotateChannelCredentialsResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: RotateChannelCredentialsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_restJson1RotateChannelCredentialsCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RotateChannelCredentialsCommandOutput> {
|
|
92
|
-
return deserializeAws_restJson1RotateChannelCredentialsCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { RotateIngestEndpointCredentialsRequest, RotateIngestEndpointCredentialsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1RotateIngestEndpointCredentialsCommand,
|
|
18
|
-
serializeAws_restJson1RotateIngestEndpointCredentialsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface RotateIngestEndpointCredentialsCommandInput extends RotateIngestEndpointCredentialsRequest {}
|
|
22
|
-
export interface RotateIngestEndpointCredentialsCommandOutput
|
|
23
|
-
extends RotateIngestEndpointCredentialsResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { MediaPackageClient, RotateIngestEndpointCredentialsCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
|
|
32
|
-
* // const { MediaPackageClient, RotateIngestEndpointCredentialsCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
|
|
33
|
-
* const client = new MediaPackageClient(config);
|
|
34
|
-
* const command = new RotateIngestEndpointCredentialsCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link RotateIngestEndpointCredentialsCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link RotateIngestEndpointCredentialsCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class RotateIngestEndpointCredentialsCommand extends $Command<
|
|
44
|
-
RotateIngestEndpointCredentialsCommandInput,
|
|
45
|
-
RotateIngestEndpointCredentialsCommandOutput,
|
|
46
|
-
MediaPackageClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: RotateIngestEndpointCredentialsCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: MediaPackageClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<RotateIngestEndpointCredentialsCommandInput, RotateIngestEndpointCredentialsCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "MediaPackageClient";
|
|
71
|
-
const commandName = "RotateIngestEndpointCredentialsCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: RotateIngestEndpointCredentialsRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: RotateIngestEndpointCredentialsResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(
|
|
88
|
-
input: RotateIngestEndpointCredentialsCommandInput,
|
|
89
|
-
context: __SerdeContext
|
|
90
|
-
): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_restJson1RotateIngestEndpointCredentialsCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(
|
|
95
|
-
output: __HttpResponse,
|
|
96
|
-
context: __SerdeContext
|
|
97
|
-
): Promise<RotateIngestEndpointCredentialsCommandOutput> {
|
|
98
|
-
return deserializeAws_restJson1RotateIngestEndpointCredentialsCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { TagResourceRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1TagResourceCommand,
|
|
18
|
-
serializeAws_restJson1TagResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
22
|
-
export interface TagResourceCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
export class TagResourceCommand extends $Command<
|
|
25
|
-
TagResourceCommandInput,
|
|
26
|
-
TagResourceCommandOutput,
|
|
27
|
-
MediaPackageClientResolvedConfig
|
|
28
|
-
> {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
|
-
|
|
32
|
-
constructor(readonly input: TagResourceCommandInput) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
|
-
super();
|
|
35
|
-
// End section: command_constructor
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
resolveMiddleware(
|
|
42
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
43
|
-
configuration: MediaPackageClientResolvedConfig,
|
|
44
|
-
options?: __HttpHandlerOptions
|
|
45
|
-
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
|
|
46
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
|
-
|
|
48
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
49
|
-
|
|
50
|
-
const { logger } = configuration;
|
|
51
|
-
const clientName = "MediaPackageClient";
|
|
52
|
-
const commandName = "TagResourceCommand";
|
|
53
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
54
|
-
logger,
|
|
55
|
-
clientName,
|
|
56
|
-
commandName,
|
|
57
|
-
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
58
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
59
|
-
};
|
|
60
|
-
const { requestHandler } = configuration;
|
|
61
|
-
return stack.resolve(
|
|
62
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
63
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
64
|
-
handlerExecutionContext
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
69
|
-
return serializeAws_restJson1TagResourceCommand(input, context);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
|
|
73
|
-
return deserializeAws_restJson1TagResourceCommand(output, context);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Start section: command_body_extra
|
|
77
|
-
// End section: command_body_extra
|
|
78
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { UntagResourceRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1UntagResourceCommand,
|
|
18
|
-
serializeAws_restJson1UntagResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
22
|
-
export interface UntagResourceCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
export class UntagResourceCommand extends $Command<
|
|
25
|
-
UntagResourceCommandInput,
|
|
26
|
-
UntagResourceCommandOutput,
|
|
27
|
-
MediaPackageClientResolvedConfig
|
|
28
|
-
> {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
|
-
|
|
32
|
-
constructor(readonly input: UntagResourceCommandInput) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
|
-
super();
|
|
35
|
-
// End section: command_constructor
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
resolveMiddleware(
|
|
42
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
43
|
-
configuration: MediaPackageClientResolvedConfig,
|
|
44
|
-
options?: __HttpHandlerOptions
|
|
45
|
-
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
|
|
46
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
|
-
|
|
48
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
49
|
-
|
|
50
|
-
const { logger } = configuration;
|
|
51
|
-
const clientName = "MediaPackageClient";
|
|
52
|
-
const commandName = "UntagResourceCommand";
|
|
53
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
54
|
-
logger,
|
|
55
|
-
clientName,
|
|
56
|
-
commandName,
|
|
57
|
-
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
58
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
59
|
-
};
|
|
60
|
-
const { requestHandler } = configuration;
|
|
61
|
-
return stack.resolve(
|
|
62
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
63
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
64
|
-
handlerExecutionContext
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
69
|
-
return serializeAws_restJson1UntagResourceCommand(input, context);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
|
|
73
|
-
return deserializeAws_restJson1UntagResourceCommand(output, context);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Start section: command_body_extra
|
|
77
|
-
// End section: command_body_extra
|
|
78
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
|
|
15
|
-
import { UpdateChannelRequest, UpdateChannelResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1UpdateChannelCommand,
|
|
18
|
-
serializeAws_restJson1UpdateChannelCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface UpdateChannelCommandInput extends UpdateChannelRequest {}
|
|
22
|
-
export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Updates an existing Channel.
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaPackageClient, UpdateChannelCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
|
|
30
|
-
* // const { MediaPackageClient, UpdateChannelCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
|
|
31
|
-
* const client = new MediaPackageClient(config);
|
|
32
|
-
* const command = new UpdateChannelCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link UpdateChannelCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link UpdateChannelCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class UpdateChannelCommand extends $Command<
|
|
42
|
-
UpdateChannelCommandInput,
|
|
43
|
-
UpdateChannelCommandOutput,
|
|
44
|
-
MediaPackageClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: UpdateChannelCommandInput) {
|
|
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: MediaPackageClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<UpdateChannelCommandInput, UpdateChannelCommandOutput> {
|
|
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 = "MediaPackageClient";
|
|
69
|
-
const commandName = "UpdateChannelCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: UpdateChannelRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: UpdateChannelResponse.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: UpdateChannelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1UpdateChannelCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateChannelCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1UpdateChannelCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|