internal S3OutpostsPaginatorFactory(IAmazonS3Outposts client) { this.client = client; }
private Amazon.S3Outposts.Model.CreateEndpointResponse CallAWSServiceOperation(IAmazonS3Outposts client, Amazon.S3Outposts.Model.CreateEndpointRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon S3 Outposts", "CreateEndpoint"); try { #if DESKTOP return(client.CreateEndpoint(request)); #elif CORECLR return(client.CreateEndpointAsync(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 ListEndpointsPaginator(IAmazonS3Outposts client, ListEndpointsRequest request) { this._client = client; this._request = request; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }