private Amazon.Snowball.Model.CreateClusterResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.CreateClusterRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "CreateCluster"); try { #if DESKTOP return(client.CreateCluster(request)); #elif CORECLR return(client.CreateClusterAsync(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 ListJobsPaginator(IAmazonSnowball client, ListJobsRequest request) { this._client = client; this._request = request; }
internal DescribeAddressesPaginator(IAmazonSnowball client, DescribeAddressesRequest request) { this._client = client; this._request = request; }
internal SnowballPaginatorFactory(IAmazonSnowball client) { this.client = client; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }