@aws-sdk/client-mediatailor 3.35.0 → 3.36.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 +13 -0
- package/dist-cjs/MediaTailor.js +0 -1
- package/dist-cjs/MediaTailorClient.js +0 -1
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js +0 -1
- package/dist-cjs/commands/CreateProgramCommand.js +0 -1
- package/dist-cjs/commands/CreateSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/CreateVodSourceCommand.js +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js +0 -1
- package/dist-cjs/commands/DeleteChannelPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteProgramCommand.js +0 -1
- package/dist-cjs/commands/DeleteSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/DeleteVodSourceCommand.js +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js +0 -1
- package/dist-cjs/commands/DescribeProgramCommand.js +0 -1
- package/dist-cjs/commands/DescribeSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/DescribeVodSourceCommand.js +0 -1
- package/dist-cjs/commands/GetChannelPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetChannelScheduleCommand.js +0 -1
- package/dist-cjs/commands/GetPlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/ListAlertsCommand.js +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js +0 -1
- package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListSourceLocationsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListVodSourcesCommand.js +0 -1
- package/dist-cjs/commands/PutChannelPolicyCommand.js +0 -1
- package/dist-cjs/commands/PutPlaybackConfigurationCommand.js +0 -1
- package/dist-cjs/commands/StartChannelCommand.js +0 -1
- package/dist-cjs/commands/StopChannelCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateChannelCommand.js +0 -1
- package/dist-cjs/commands/UpdateSourceLocationCommand.js +0 -1
- package/dist-cjs/commands/UpdateVodSourceCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetChannelSchedulePaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAlertsPaginator.js +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListVodSourcesPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/MediaTailor.js +0 -1
- package/dist-es/MediaTailorClient.js +0 -1
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/CreateChannelCommand.js +0 -1
- package/dist-es/commands/CreateProgramCommand.js +0 -1
- package/dist-es/commands/CreateSourceLocationCommand.js +0 -1
- package/dist-es/commands/CreateVodSourceCommand.js +0 -1
- package/dist-es/commands/DeleteChannelCommand.js +0 -1
- package/dist-es/commands/DeleteChannelPolicyCommand.js +0 -1
- package/dist-es/commands/DeletePlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/DeleteProgramCommand.js +0 -1
- package/dist-es/commands/DeleteSourceLocationCommand.js +0 -1
- package/dist-es/commands/DeleteVodSourceCommand.js +0 -1
- package/dist-es/commands/DescribeChannelCommand.js +0 -1
- package/dist-es/commands/DescribeProgramCommand.js +0 -1
- package/dist-es/commands/DescribeSourceLocationCommand.js +0 -1
- package/dist-es/commands/DescribeVodSourceCommand.js +0 -1
- package/dist-es/commands/GetChannelPolicyCommand.js +0 -1
- package/dist-es/commands/GetChannelScheduleCommand.js +0 -1
- package/dist-es/commands/GetPlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/ListAlertsCommand.js +0 -1
- package/dist-es/commands/ListChannelsCommand.js +0 -1
- package/dist-es/commands/ListPlaybackConfigurationsCommand.js +0 -1
- package/dist-es/commands/ListSourceLocationsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListVodSourcesCommand.js +0 -1
- package/dist-es/commands/PutChannelPolicyCommand.js +0 -1
- package/dist-es/commands/PutPlaybackConfigurationCommand.js +0 -1
- package/dist-es/commands/StartChannelCommand.js +0 -1
- package/dist-es/commands/StopChannelCommand.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/UpdateSourceLocationCommand.js +0 -1
- package/dist-es/commands/UpdateVodSourceCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetChannelSchedulePaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAlertsPaginator.js +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js +0 -1
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +0 -1
- package/dist-es/pagination/ListSourceLocationsPaginator.js +0 -1
- package/dist-es/pagination/ListVodSourcesPaginator.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- 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/package.json +33 -30
- package/dist-cjs/MediaTailor.js.map +0 -1
- package/dist-cjs/MediaTailorClient.js.map +0 -1
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist-cjs/commands/CreateProgramCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateVodSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteChannelPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteProgramCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteVodSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeProgramCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeVodSourceCommand.js.map +0 -1
- package/dist-cjs/commands/GetChannelPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetChannelScheduleCommand.js.map +0 -1
- package/dist-cjs/commands/GetPlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/ListAlertsCommand.js.map +0 -1
- package/dist-cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSourceLocationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListVodSourcesCommand.js.map +0 -1
- package/dist-cjs/commands/PutChannelPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutPlaybackConfigurationCommand.js.map +0 -1
- package/dist-cjs/commands/StartChannelCommand.js.map +0 -1
- package/dist-cjs/commands/StopChannelCommand.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/UpdateSourceLocationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateVodSourceCommand.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/GetChannelSchedulePaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAlertsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSourceLocationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListVodSourcesPaginator.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/MediaTailor.js.map +0 -1
- package/dist-es/MediaTailorClient.js.map +0 -1
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/CreateChannelCommand.js.map +0 -1
- package/dist-es/commands/CreateProgramCommand.js.map +0 -1
- package/dist-es/commands/CreateSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/CreateVodSourceCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist-es/commands/DeleteChannelPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/DeleteProgramCommand.js.map +0 -1
- package/dist-es/commands/DeleteSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/DeleteVodSourceCommand.js.map +0 -1
- package/dist-es/commands/DescribeChannelCommand.js.map +0 -1
- package/dist-es/commands/DescribeProgramCommand.js.map +0 -1
- package/dist-es/commands/DescribeSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/DescribeVodSourceCommand.js.map +0 -1
- package/dist-es/commands/GetChannelPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetChannelScheduleCommand.js.map +0 -1
- package/dist-es/commands/GetPlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/ListAlertsCommand.js.map +0 -1
- package/dist-es/commands/ListChannelsCommand.js.map +0 -1
- package/dist-es/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
- package/dist-es/commands/ListSourceLocationsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListVodSourcesCommand.js.map +0 -1
- package/dist-es/commands/PutChannelPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutPlaybackConfigurationCommand.js.map +0 -1
- package/dist-es/commands/StartChannelCommand.js.map +0 -1
- package/dist-es/commands/StopChannelCommand.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/UpdateSourceLocationCommand.js.map +0 -1
- package/dist-es/commands/UpdateVodSourceCommand.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/GetChannelSchedulePaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAlertsPaginator.js.map +0 -1
- package/dist-es/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSourceLocationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListVodSourcesPaginator.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/MediaTailor.ts +0 -1195
- package/src/MediaTailorClient.ts +0 -371
- package/src/commands/ConfigureLogsForPlaybackConfigurationCommand.ts +0 -107
- package/src/commands/CreateChannelCommand.ts +0 -95
- package/src/commands/CreateProgramCommand.ts +0 -95
- package/src/commands/CreateSourceLocationCommand.ts +0 -95
- package/src/commands/CreateVodSourceCommand.ts +0 -95
- package/src/commands/DeleteChannelCommand.ts +0 -95
- package/src/commands/DeleteChannelPolicyCommand.ts +0 -95
- package/src/commands/DeletePlaybackConfigurationCommand.ts +0 -100
- package/src/commands/DeleteProgramCommand.ts +0 -95
- package/src/commands/DeleteSourceLocationCommand.ts +0 -95
- package/src/commands/DeleteVodSourceCommand.ts +0 -95
- package/src/commands/DescribeChannelCommand.ts +0 -95
- package/src/commands/DescribeProgramCommand.ts +0 -95
- package/src/commands/DescribeSourceLocationCommand.ts +0 -95
- package/src/commands/DescribeVodSourceCommand.ts +0 -95
- package/src/commands/GetChannelPolicyCommand.ts +0 -95
- package/src/commands/GetChannelScheduleCommand.ts +0 -95
- package/src/commands/GetPlaybackConfigurationCommand.ts +0 -95
- package/src/commands/ListAlertsCommand.ts +0 -95
- package/src/commands/ListChannelsCommand.ts +0 -95
- package/src/commands/ListPlaybackConfigurationsCommand.ts +0 -98
- package/src/commands/ListSourceLocationsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListVodSourcesCommand.ts +0 -95
- package/src/commands/PutChannelPolicyCommand.ts +0 -95
- package/src/commands/PutPlaybackConfigurationCommand.ts +0 -95
- package/src/commands/StartChannelCommand.ts +0 -95
- package/src/commands/StopChannelCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateChannelCommand.ts +0 -95
- package/src/commands/UpdateSourceLocationCommand.ts +0 -95
- package/src/commands/UpdateVodSourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -43
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2929
- package/src/pagination/GetChannelSchedulePaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAlertsPaginator.ts +0 -55
- package/src/pagination/ListChannelsPaginator.ts +0 -59
- package/src/pagination/ListPlaybackConfigurationsPaginator.ts +0 -59
- package/src/pagination/ListSourceLocationsPaginator.ts +0 -59
- package/src/pagination/ListVodSourcesPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -4207
- 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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { CreateSourceLocationRequest, CreateSourceLocationResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateSourceLocationCommand,
|
|
18
|
-
serializeAws_restJson1CreateSourceLocationCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateSourceLocationCommandInput extends CreateSourceLocationRequest {}
|
|
22
|
-
export interface CreateSourceLocationCommandOutput extends CreateSourceLocationResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a source location on a specific channel.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaTailorClient, CreateSourceLocationCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
30
|
-
* // const { MediaTailorClient, CreateSourceLocationCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
31
|
-
* const client = new MediaTailorClient(config);
|
|
32
|
-
* const command = new CreateSourceLocationCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateSourceLocationCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateSourceLocationCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateSourceLocationCommand extends $Command<
|
|
42
|
-
CreateSourceLocationCommandInput,
|
|
43
|
-
CreateSourceLocationCommandOutput,
|
|
44
|
-
MediaTailorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateSourceLocationCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateSourceLocationCommandInput, CreateSourceLocationCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
69
|
-
const commandName = "CreateSourceLocationCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateSourceLocationRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateSourceLocationResponse.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: CreateSourceLocationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1CreateSourceLocationCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateSourceLocationCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1CreateSourceLocationCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { CreateVodSourceRequest, CreateVodSourceResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateVodSourceCommand,
|
|
18
|
-
serializeAws_restJson1CreateVodSourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateVodSourceCommandInput extends CreateVodSourceRequest {}
|
|
22
|
-
export interface CreateVodSourceCommandOutput extends CreateVodSourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates name for a specific VOD source in a source location.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaTailorClient, CreateVodSourceCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
30
|
-
* // const { MediaTailorClient, CreateVodSourceCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
31
|
-
* const client = new MediaTailorClient(config);
|
|
32
|
-
* const command = new CreateVodSourceCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateVodSourceCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateVodSourceCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateVodSourceCommand extends $Command<
|
|
42
|
-
CreateVodSourceCommandInput,
|
|
43
|
-
CreateVodSourceCommandOutput,
|
|
44
|
-
MediaTailorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateVodSourceCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateVodSourceCommandInput, CreateVodSourceCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
69
|
-
const commandName = "CreateVodSourceCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateVodSourceRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateVodSourceResponse.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: CreateVodSourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1CreateVodSourceCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateVodSourceCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1CreateVodSourceCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { DeleteChannelRequest, DeleteChannelResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteChannelCommand,
|
|
18
|
-
serializeAws_restJson1DeleteChannelCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteChannelCommandInput extends DeleteChannelRequest {}
|
|
22
|
-
export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a channel. You must stop the channel before it can be deleted.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaTailorClient, DeleteChannelCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
30
|
-
* // const { MediaTailorClient, DeleteChannelCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
31
|
-
* const client = new MediaTailorClient(config);
|
|
32
|
-
* const command = new DeleteChannelCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DeleteChannelCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DeleteChannelCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DeleteChannelCommand extends $Command<
|
|
42
|
-
DeleteChannelCommandInput,
|
|
43
|
-
DeleteChannelCommandOutput,
|
|
44
|
-
MediaTailorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DeleteChannelCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DeleteChannelCommandInput, DeleteChannelCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
69
|
-
const commandName = "DeleteChannelCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DeleteChannelRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DeleteChannelResponse.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: DeleteChannelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1DeleteChannelCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteChannelCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1DeleteChannelCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { DeleteChannelPolicyRequest, DeleteChannelPolicyResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteChannelPolicyCommand,
|
|
18
|
-
serializeAws_restJson1DeleteChannelPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteChannelPolicyCommandInput extends DeleteChannelPolicyRequest {}
|
|
22
|
-
export interface DeleteChannelPolicyCommandOutput extends DeleteChannelPolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a channel's IAM policy.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaTailorClient, DeleteChannelPolicyCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
30
|
-
* // const { MediaTailorClient, DeleteChannelPolicyCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
31
|
-
* const client = new MediaTailorClient(config);
|
|
32
|
-
* const command = new DeleteChannelPolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DeleteChannelPolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DeleteChannelPolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DeleteChannelPolicyCommand extends $Command<
|
|
42
|
-
DeleteChannelPolicyCommandInput,
|
|
43
|
-
DeleteChannelPolicyCommandOutput,
|
|
44
|
-
MediaTailorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DeleteChannelPolicyCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DeleteChannelPolicyCommandInput, DeleteChannelPolicyCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
69
|
-
const commandName = "DeleteChannelPolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DeleteChannelPolicyRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DeleteChannelPolicyResponse.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: DeleteChannelPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1DeleteChannelPolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteChannelPolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1DeleteChannelPolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,100 +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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { DeletePlaybackConfigurationRequest, DeletePlaybackConfigurationResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeletePlaybackConfigurationCommand,
|
|
18
|
-
serializeAws_restJson1DeletePlaybackConfigurationCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeletePlaybackConfigurationCommandInput extends DeletePlaybackConfigurationRequest {}
|
|
22
|
-
export interface DeletePlaybackConfigurationCommandOutput
|
|
23
|
-
extends DeletePlaybackConfigurationResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Deletes the playback configuration for the specified name.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { MediaTailorClient, DeletePlaybackConfigurationCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
32
|
-
* // const { MediaTailorClient, DeletePlaybackConfigurationCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
33
|
-
* const client = new MediaTailorClient(config);
|
|
34
|
-
* const command = new DeletePlaybackConfigurationCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link DeletePlaybackConfigurationCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link DeletePlaybackConfigurationCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class DeletePlaybackConfigurationCommand extends $Command<
|
|
44
|
-
DeletePlaybackConfigurationCommandInput,
|
|
45
|
-
DeletePlaybackConfigurationCommandOutput,
|
|
46
|
-
MediaTailorClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: DeletePlaybackConfigurationCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<DeletePlaybackConfigurationCommandInput, DeletePlaybackConfigurationCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
71
|
-
const commandName = "DeletePlaybackConfigurationCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: DeletePlaybackConfigurationRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: DeletePlaybackConfigurationResponse.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: DeletePlaybackConfigurationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_restJson1DeletePlaybackConfigurationCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(
|
|
92
|
-
output: __HttpResponse,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<DeletePlaybackConfigurationCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1DeletePlaybackConfigurationCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { DeleteProgramRequest, DeleteProgramResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteProgramCommand,
|
|
18
|
-
serializeAws_restJson1DeleteProgramCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteProgramCommandInput extends DeleteProgramRequest {}
|
|
22
|
-
export interface DeleteProgramCommandOutput extends DeleteProgramResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a specific program on a specific channel.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaTailorClient, DeleteProgramCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
30
|
-
* // const { MediaTailorClient, DeleteProgramCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
31
|
-
* const client = new MediaTailorClient(config);
|
|
32
|
-
* const command = new DeleteProgramCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DeleteProgramCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DeleteProgramCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DeleteProgramCommand extends $Command<
|
|
42
|
-
DeleteProgramCommandInput,
|
|
43
|
-
DeleteProgramCommandOutput,
|
|
44
|
-
MediaTailorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DeleteProgramCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DeleteProgramCommandInput, DeleteProgramCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
69
|
-
const commandName = "DeleteProgramCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DeleteProgramRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DeleteProgramResponse.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: DeleteProgramCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1DeleteProgramCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteProgramCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1DeleteProgramCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -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 { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
15
|
-
import { DeleteSourceLocationRequest, DeleteSourceLocationResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DeleteSourceLocationCommand,
|
|
18
|
-
serializeAws_restJson1DeleteSourceLocationCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteSourceLocationCommandInput extends DeleteSourceLocationRequest {}
|
|
22
|
-
export interface DeleteSourceLocationCommandOutput extends DeleteSourceLocationResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a source location on a specific channel.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MediaTailorClient, DeleteSourceLocationCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
30
|
-
* // const { MediaTailorClient, DeleteSourceLocationCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
31
|
-
* const client = new MediaTailorClient(config);
|
|
32
|
-
* const command = new DeleteSourceLocationCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DeleteSourceLocationCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DeleteSourceLocationCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MediaTailorClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DeleteSourceLocationCommand extends $Command<
|
|
42
|
-
DeleteSourceLocationCommandInput,
|
|
43
|
-
DeleteSourceLocationCommandOutput,
|
|
44
|
-
MediaTailorClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DeleteSourceLocationCommandInput) {
|
|
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: MediaTailorClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DeleteSourceLocationCommandInput, DeleteSourceLocationCommandOutput> {
|
|
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 = "MediaTailorClient";
|
|
69
|
-
const commandName = "DeleteSourceLocationCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DeleteSourceLocationRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DeleteSourceLocationResponse.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: DeleteSourceLocationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1DeleteSourceLocationCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteSourceLocationCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1DeleteSourceLocationCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|