-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-medialive): AWS Elemental Link now supports attaching a L…
…ink UHD device to a MediaConnect flow.
- Loading branch information
awstools
committed
Sep 11, 2023
1 parent
c885d48
commit 29e9aba
Showing
17 changed files
with
1,382 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
164 changes: 164 additions & 0 deletions
164
clients/client-medialive/src/commands/StartInputDeviceCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
// smithy-typescript generated code | ||
import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@smithy/types"; | ||
|
||
import { MediaLiveClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaLiveClient"; | ||
import { StartInputDeviceRequest, StartInputDeviceResponse } from "../models/models_2"; | ||
import { de_StartInputDeviceCommand, se_StartInputDeviceCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link StartInputDeviceCommand}. | ||
*/ | ||
export interface StartInputDeviceCommandInput extends StartInputDeviceRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link StartInputDeviceCommand}. | ||
*/ | ||
export interface StartInputDeviceCommandOutput extends StartInputDeviceResponse, __MetadataBearer {} | ||
|
||
/** | ||
* @public | ||
* Start an input device that is attached to a MediaConnect flow. (There is no need to start a device that is attached to a MediaLive input; MediaLive starts the device when the channel starts.) | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { MediaLiveClient, StartInputDeviceCommand } from "@aws-sdk/client-medialive"; // ES Modules import | ||
* // const { MediaLiveClient, StartInputDeviceCommand } = require("@aws-sdk/client-medialive"); // CommonJS import | ||
* const client = new MediaLiveClient(config); | ||
* const input = { // StartInputDeviceRequest | ||
* InputDeviceId: "STRING_VALUE", // required | ||
* }; | ||
* const command = new StartInputDeviceCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param StartInputDeviceCommandInput - {@link StartInputDeviceCommandInput} | ||
* @returns {@link StartInputDeviceCommandOutput} | ||
* @see {@link StartInputDeviceCommandInput} for command's `input` shape. | ||
* @see {@link StartInputDeviceCommandOutput} for command's `response` shape. | ||
* @see {@link MediaLiveClientResolvedConfig | config} for MediaLiveClient's `config` shape. | ||
* | ||
* @throws {@link BadGatewayException} (server fault) | ||
* Placeholder documentation for BadGatewayException | ||
* | ||
* @throws {@link BadRequestException} (client fault) | ||
* Placeholder documentation for BadRequestException | ||
* | ||
* @throws {@link ForbiddenException} (client fault) | ||
* Placeholder documentation for ForbiddenException | ||
* | ||
* @throws {@link GatewayTimeoutException} (server fault) | ||
* Placeholder documentation for GatewayTimeoutException | ||
* | ||
* @throws {@link InternalServerErrorException} (server fault) | ||
* Placeholder documentation for InternalServerErrorException | ||
* | ||
* @throws {@link NotFoundException} (client fault) | ||
* Placeholder documentation for NotFoundException | ||
* | ||
* @throws {@link TooManyRequestsException} (client fault) | ||
* Placeholder documentation for TooManyRequestsException | ||
* | ||
* @throws {@link UnprocessableEntityException} (client fault) | ||
* Placeholder documentation for UnprocessableEntityException | ||
* | ||
* @throws {@link MediaLiveServiceException} | ||
* <p>Base exception class for all service exceptions from MediaLive service.</p> | ||
* | ||
*/ | ||
export class StartInputDeviceCommand extends $Command< | ||
StartInputDeviceCommandInput, | ||
StartInputDeviceCommandOutput, | ||
MediaLiveClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
public static getEndpointParameterInstructions(): EndpointParameterInstructions { | ||
return { | ||
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, | ||
Endpoint: { type: "builtInParams", name: "endpoint" }, | ||
Region: { type: "builtInParams", name: "region" }, | ||
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, | ||
}; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
constructor(readonly input: StartInputDeviceCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: MediaLiveClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<StartInputDeviceCommandInput, StartInputDeviceCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
this.middlewareStack.use( | ||
getEndpointPlugin(configuration, StartInputDeviceCommand.getEndpointParameterInstructions()) | ||
); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "MediaLiveClient"; | ||
const commandName = "StartInputDeviceCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: (_: any) => _, | ||
outputFilterSensitiveLog: (_: any) => _, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
private serialize(input: StartInputDeviceCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return se_StartInputDeviceCommand(input, context); | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartInputDeviceCommandOutput> { | ||
return de_StartInputDeviceCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
Oops, something went wrong.