-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-kinesis-video): Amazon Kinesis Video Streams offers capab…
…ilities to stream video and audio in real-time via WebRTC to the cloud for storage, playback, and analytical processing. Customers can use our enhanced WebRTC SDK and cloud APIs to enable real-time streaming, as well as media ingestion to the cloud.
- Loading branch information
awstools
committed
Dec 19, 2022
1 parent
59c84e0
commit cbb5b21
Showing
12 changed files
with
1,601 additions
and
326 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
124 changes: 124 additions & 0 deletions
124
clients/client-kinesis-video/src/commands/DescribeMappedResourceConfigurationCommand.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,124 @@ | ||
// smithy-typescript generated code | ||
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
import { KinesisVideoClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisVideoClient"; | ||
import { | ||
DescribeMappedResourceConfigurationInput, | ||
DescribeMappedResourceConfigurationInputFilterSensitiveLog, | ||
DescribeMappedResourceConfigurationOutput, | ||
DescribeMappedResourceConfigurationOutputFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1DescribeMappedResourceConfigurationCommand, | ||
serializeAws_restJson1DescribeMappedResourceConfigurationCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
|
||
export interface DescribeMappedResourceConfigurationCommandInput extends DescribeMappedResourceConfigurationInput {} | ||
export interface DescribeMappedResourceConfigurationCommandOutput | ||
extends DescribeMappedResourceConfigurationOutput, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* <p>Returns the most current information about the stream. Either streamName or streamARN should be provided in the input.</p> | ||
* <p>Returns the most current information about the stream. The <code>streamName</code> | ||
* or <code>streamARN</code> should be provided in the input.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { KinesisVideoClient, DescribeMappedResourceConfigurationCommand } from "@aws-sdk/client-kinesis-video"; // ES Modules import | ||
* // const { KinesisVideoClient, DescribeMappedResourceConfigurationCommand } = require("@aws-sdk/client-kinesis-video"); // CommonJS import | ||
* const client = new KinesisVideoClient(config); | ||
* const command = new DescribeMappedResourceConfigurationCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link DescribeMappedResourceConfigurationCommandInput} for command's `input` shape. | ||
* @see {@link DescribeMappedResourceConfigurationCommandOutput} for command's `response` shape. | ||
* @see {@link KinesisVideoClientResolvedConfig | config} for KinesisVideoClient's `config` shape. | ||
* | ||
*/ | ||
export class DescribeMappedResourceConfigurationCommand extends $Command< | ||
DescribeMappedResourceConfigurationCommandInput, | ||
DescribeMappedResourceConfigurationCommandOutput, | ||
KinesisVideoClientResolvedConfig | ||
> { | ||
// 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" }, | ||
}; | ||
} | ||
|
||
constructor(readonly input: DescribeMappedResourceConfigurationCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: KinesisVideoClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<DescribeMappedResourceConfigurationCommandInput, DescribeMappedResourceConfigurationCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
this.middlewareStack.use( | ||
getEndpointPlugin(configuration, DescribeMappedResourceConfigurationCommand.getEndpointParameterInstructions()) | ||
); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "KinesisVideoClient"; | ||
const commandName = "DescribeMappedResourceConfigurationCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DescribeMappedResourceConfigurationInputFilterSensitiveLog, | ||
outputFilterSensitiveLog: DescribeMappedResourceConfigurationOutputFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize( | ||
input: DescribeMappedResourceConfigurationCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
return serializeAws_restJson1DescribeMappedResourceConfigurationCommand(input, context); | ||
} | ||
|
||
private deserialize( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<DescribeMappedResourceConfigurationCommandOutput> { | ||
return deserializeAws_restJson1DescribeMappedResourceConfigurationCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
Oops, something went wrong.