/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ivs-realtime-2020-07-14.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.IVSRealTime.Model;
using Amazon.IVSRealTime.Model.Internal.MarshallTransformations;
using Amazon.IVSRealTime.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.IVSRealTime
{
///
/// Implementation for accessing IVSRealTime
///
/// Introduction
///
///
///
/// The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard
/// HTTP API and an AWS EventBridge event stream for responses. JSON is used for both
/// requests and responses, including errors.
///
///
///
/// Terminology:
///
/// -
///
/// The IVS stage API sometimes is referred to as the IVS RealTime API.
///
///
-
///
/// A participant token is an authorization token used to publish/subscribe to
/// a stage.
///
///
-
///
/// A participant object represents participants (people) in the stage and contains
/// information about them. When a token is created, it includes a participant ID; when
/// a participant uses that token to join a stage, the participant is associated with
/// that participant ID There is a 1:1 mapping between participant tokens and participants.
///
///
///
/// Resources
///
///
///
/// The following resources contain information about your IVS live stream (see Getting
/// Started with Amazon IVS):
///
/// -
///
/// Stage — A stage is a virtual space where multiple participants can exchange
/// audio and video in real time.
///
///
///
/// Tagging
///
///
///
/// A tag is a metadata label that you assign to an AWS resource. A tag comprises
/// a key and a value, both set by you. For example, you might set a tag
/// as topic:nature
to label a particular video category. See Tagging
/// AWS Resources for more information, including restrictions that apply to tags
/// and "Tag naming limits and requirements"; Amazon IVS stages has no service-specific
/// constraints beyond what is documented there.
///
///
///
/// Tags can help you identify and organize your AWS resources. For example, you can use
/// the same tag for different resources to indicate that they are related. You can also
/// use tags to manage access (see Access
/// Tags).
///
///
///
/// The Amazon IVS stage API has these tag-related endpoints: TagResource, UntagResource,
/// and ListTagsForResource. The following resource supports tagging: Stage.
///
///
///
/// At most 50 tags can be applied to a resource.
///
///
///
/// Stages Endpoints
///
/// -
///
/// CreateParticipantToken — Creates an additional token for a specified stage.
/// This can be done after stage creation or when tokens expire.
///
///
-
///
/// CreateStage — Creates a new stage (and optionally participant tokens).
///
///
-
///
/// DeleteStage — Shuts down and deletes the specified stage (disconnecting all
/// participants).
///
///
-
///
/// DisconnectParticipant — Disconnects a specified participant and revokes the
/// participant permanently from a specified stage.
///
///
-
///
/// GetParticipant — Gets information about the specified participant token.
///
///
-
///
/// GetStage — Gets information for the specified stage.
///
///
-
///
/// GetStageSession — Gets information for the specified stage session.
///
///
-
///
/// ListParticipantEvents — Lists events for a specified participant that occurred
/// during a specified stage session.
///
///
-
///
/// ListParticipants — Lists all participants in a specified stage session.
///
///
-
///
/// ListStages — Gets summary information about all stages in your account, in
/// the AWS region where the API request is processed.
///
///
-
///
/// ListStageSessions — Gets all sessions for a specified stage.
///
///
-
///
/// UpdateStage — Updates a stage’s configuration.
///
///
///
/// Tags Endpoints
///
/// -
///
/// ListTagsForResource — Gets information about AWS tags for the specified ARN.
///
///
-
///
/// TagResource — Adds or updates tags for the AWS resource with the specified
/// ARN.
///
///
-
///
/// UntagResource — Removes tags from the resource with the specified ARN.
///
///
///
public partial class AmazonIVSRealTimeClient : AmazonServiceClient, IAmazonIVSRealTime
{
private static IServiceMetadata serviceMetadata = new AmazonIVSRealTimeMetadata();
private IIVSRealTimePaginatorFactory _paginators;
///
/// Paginators for the service
///
public IIVSRealTimePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new IVSRealTimePaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonIVSRealTimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonIVSRealTimeClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIVSRealTimeConfig()) { }
///
/// Constructs AmazonIVSRealTimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonIVSRealTimeClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIVSRealTimeConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonIVSRealTimeClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonIVSRealTimeClient Configuration Object
public AmazonIVSRealTimeClient(AmazonIVSRealTimeConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonIVSRealTimeClient with AWS Credentials
///
/// AWS Credentials
public AmazonIVSRealTimeClient(AWSCredentials credentials)
: this(credentials, new AmazonIVSRealTimeConfig())
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonIVSRealTimeClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonIVSRealTimeConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Credentials and an
/// AmazonIVSRealTimeClient Configuration object.
///
/// AWS Credentials
/// The AmazonIVSRealTimeClient Configuration Object
public AmazonIVSRealTimeClient(AWSCredentials credentials, AmazonIVSRealTimeConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonIVSRealTimeClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIVSRealTimeConfig())
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonIVSRealTimeClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIVSRealTimeConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIVSRealTimeClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonIVSRealTimeClient Configuration Object
public AmazonIVSRealTimeClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIVSRealTimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonIVSRealTimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIVSRealTimeConfig())
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonIVSRealTimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIVSRealTimeConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIVSRealTimeClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIVSRealTimeClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonIVSRealTimeClient Configuration Object
public AmazonIVSRealTimeClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIVSRealTimeConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonIVSRealTimeEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateParticipantToken
///
/// Creates an additional token for a specified stage. This can be done after stage creation
/// or when tokens expire. Tokens always are scoped to the stage for which they are created.
///
///
///
/// Encryption keys are owned by Amazon IVS and never used directly by your application.
///
///
/// Container for the necessary parameters to execute the CreateParticipantToken service method.
///
/// The response from the CreateParticipantToken service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateParticipantToken Operation
public virtual CreateParticipantTokenResponse CreateParticipantToken(CreateParticipantTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateParticipantTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateParticipantTokenResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an additional token for a specified stage. This can be done after stage creation
/// or when tokens expire. Tokens always are scoped to the stage for which they are created.
///
///
///
/// Encryption keys are owned by Amazon IVS and never used directly by your application.
///
///
/// Container for the necessary parameters to execute the CreateParticipantToken service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateParticipantToken service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateParticipantToken Operation
public virtual Task CreateParticipantTokenAsync(CreateParticipantTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateParticipantTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateParticipantTokenResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateStage
///
/// Creates a new stage (and optionally participant tokens).
///
/// Container for the necessary parameters to execute the CreateStage service method.
///
/// The response from the CreateStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateStage Operation
public virtual CreateStageResponse CreateStage(CreateStageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new stage (and optionally participant tokens).
///
/// Container for the necessary parameters to execute the CreateStage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateStage Operation
public virtual Task CreateStageAsync(CreateStageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteStage
///
/// Shuts down and deletes the specified stage (disconnecting all participants).
///
/// Container for the necessary parameters to execute the DeleteStage service method.
///
/// The response from the DeleteStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeleteStage Operation
public virtual DeleteStageResponse DeleteStage(DeleteStageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteStageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Shuts down and deletes the specified stage (disconnecting all participants).
///
/// Container for the necessary parameters to execute the DeleteStage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeleteStage Operation
public virtual Task DeleteStageAsync(DeleteStageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteStageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisconnectParticipant
///
/// Disconnects a specified participant and revokes the participant permanently from a
/// specified stage.
///
/// Container for the necessary parameters to execute the DisconnectParticipant service method.
///
/// The response from the DisconnectParticipant service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DisconnectParticipant Operation
public virtual DisconnectParticipantResponse DisconnectParticipant(DisconnectParticipantRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisconnectParticipantRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisconnectParticipantResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disconnects a specified participant and revokes the participant permanently from a
/// specified stage.
///
/// Container for the necessary parameters to execute the DisconnectParticipant service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisconnectParticipant service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DisconnectParticipant Operation
public virtual Task DisconnectParticipantAsync(DisconnectParticipantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisconnectParticipantRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisconnectParticipantResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetParticipant
///
/// Gets information about the specified participant token.
///
/// Container for the necessary parameters to execute the GetParticipant service method.
///
/// The response from the GetParticipant service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetParticipant Operation
public virtual GetParticipantResponse GetParticipant(GetParticipantRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetParticipantRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetParticipantResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets information about the specified participant token.
///
/// Container for the necessary parameters to execute the GetParticipant service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetParticipant service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetParticipant Operation
public virtual Task GetParticipantAsync(GetParticipantRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetParticipantRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetParticipantResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetStage
///
/// Gets information for the specified stage.
///
/// Container for the necessary parameters to execute the GetStage service method.
///
/// The response from the GetStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetStage Operation
public virtual GetStageResponse GetStage(GetStageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets information for the specified stage.
///
/// Container for the necessary parameters to execute the GetStage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetStage Operation
public virtual Task GetStageAsync(GetStageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetStageSession
///
/// Gets information for the specified stage session.
///
/// Container for the necessary parameters to execute the GetStageSession service method.
///
/// The response from the GetStageSession service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetStageSession Operation
public virtual GetStageSessionResponse GetStageSession(GetStageSessionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStageSessionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStageSessionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets information for the specified stage session.
///
/// Container for the necessary parameters to execute the GetStageSession service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetStageSession service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetStageSession Operation
public virtual Task GetStageSessionAsync(GetStageSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetStageSessionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetStageSessionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListParticipantEvents
///
/// Lists events for a specified participant that occurred during a specified stage session.
///
/// Container for the necessary parameters to execute the ListParticipantEvents service method.
///
/// The response from the ListParticipantEvents service method, as returned by IVSRealTime.
///
///
///
///
///
///
/// REST API Reference for ListParticipantEvents Operation
public virtual ListParticipantEventsResponse ListParticipantEvents(ListParticipantEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListParticipantEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListParticipantEventsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists events for a specified participant that occurred during a specified stage session.
///
/// Container for the necessary parameters to execute the ListParticipantEvents service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListParticipantEvents service method, as returned by IVSRealTime.
///
///
///
///
///
///
/// REST API Reference for ListParticipantEvents Operation
public virtual Task ListParticipantEventsAsync(ListParticipantEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListParticipantEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListParticipantEventsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListParticipants
///
/// Lists all participants in a specified stage session.
///
/// Container for the necessary parameters to execute the ListParticipants service method.
///
/// The response from the ListParticipants service method, as returned by IVSRealTime.
///
///
///
///
///
///
/// REST API Reference for ListParticipants Operation
public virtual ListParticipantsResponse ListParticipants(ListParticipantsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListParticipantsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListParticipantsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all participants in a specified stage session.
///
/// Container for the necessary parameters to execute the ListParticipants service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListParticipants service method, as returned by IVSRealTime.
///
///
///
///
///
///
/// REST API Reference for ListParticipants Operation
public virtual Task ListParticipantsAsync(ListParticipantsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListParticipantsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListParticipantsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListStages
///
/// Gets summary information about all stages in your account, in the AWS region where
/// the API request is processed.
///
/// Container for the necessary parameters to execute the ListStages service method.
///
/// The response from the ListStages service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListStages Operation
public virtual ListStagesResponse ListStages(ListStagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStagesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets summary information about all stages in your account, in the AWS region where
/// the API request is processed.
///
/// Container for the necessary parameters to execute the ListStages service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListStages service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListStages Operation
public virtual Task ListStagesAsync(ListStagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStagesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListStageSessions
///
/// Gets all sessions for a specified stage.
///
/// Container for the necessary parameters to execute the ListStageSessions service method.
///
/// The response from the ListStageSessions service method, as returned by IVSRealTime.
///
///
///
///
///
///
/// REST API Reference for ListStageSessions Operation
public virtual ListStageSessionsResponse ListStageSessions(ListStageSessionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStageSessionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStageSessionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets all sessions for a specified stage.
///
/// Container for the necessary parameters to execute the ListStageSessions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListStageSessions service method, as returned by IVSRealTime.
///
///
///
///
///
///
/// REST API Reference for ListStageSessions Operation
public virtual Task ListStageSessionsAsync(ListStageSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStageSessionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStageSessionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Gets information about AWS tags for the specified ARN.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets information about AWS tags for the specified ARN.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Adds or updates tags for the AWS resource with the specified ARN.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds or updates tags for the AWS resource with the specified ARN.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Removes tags from the resource with the specified ARN.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes tags from the resource with the specified ARN.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateStage
///
/// Updates a stage’s configuration.
///
/// Container for the necessary parameters to execute the UpdateStage service method.
///
/// The response from the UpdateStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for UpdateStage Operation
public virtual UpdateStageResponse UpdateStage(UpdateStageRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStageResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a stage’s configuration.
///
/// Container for the necessary parameters to execute the UpdateStage service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateStage service method, as returned by IVSRealTime.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for UpdateStage Operation
public virtual Task UpdateStageAsync(UpdateStageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStageRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStageResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}