internal ListJobsByPipelinePaginator(IAmazonElasticTranscoder client, ListJobsByPipelineRequest request) { this._client = client; this._request = request; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }
internal ElasticTranscoderPaginatorFactory(IAmazonElasticTranscoder client) { this.client = client; }
private Amazon.ElasticTranscoder.Model.ReadJobResponse CallAWSServiceOperation(IAmazonElasticTranscoder client, Amazon.ElasticTranscoder.Model.ReadJobRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic Transcoder", "ReadJob"); try { #if DESKTOP return(client.ReadJob(request)); #elif CORECLR return(client.ReadJobAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }
internal ListPresetsPaginator(IAmazonElasticTranscoder client, ListPresetsRequest request) { this._client = client; this._request = request; }
/// <summary> /// Default constructor that Lambda will invoke. /// </summary> public Entrypoint() { AmazonElasticTranscoderConfig Config = new AmazonElasticTranscoderConfig(); this._ETClient = new AmazonElasticTranscoderClient(Config); }
/// <summary> /// Constructs an instance with a pre-configured Elastic Transcoder client. This can be used for testing the outside of the Lambda environment. /// </summary> /// <param name="elasticTranscoder"></param> public TranscodeVideoFunction(IAmazonElasticTranscoder elasticTranscoder) { _elasticTranscoder = elasticTranscoder; }
/// <summary> /// Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment /// the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the /// region the Lambda function is executed in. /// </summary> public TranscodeVideoFunction() { _elasticTranscoder = new AmazonElasticTranscoderClient(); }
/// <summary> /// Default constructor that Lambda will invoke. /// </summary> public LambdaEntrypoint() { this._ETClient = new AmazonElasticTranscoderClient(); }