예제 #1
0
 private Amazon.WorkSpaces.Model.DescribeTagsResponse CallAWSServiceOperation(IAmazonWorkSpaces client, Amazon.WorkSpaces.Model.DescribeTagsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon WorkSpaces", "DescribeTags");
     try
     {
         #if DESKTOP
         return(client.DescribeTags(request));
         #elif CORECLR
         return(client.DescribeTagsAsync(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;
     }
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
예제 #3
0
 internal DescribeWorkspaceBundlesPaginator(IAmazonWorkSpaces client, DescribeWorkspaceBundlesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
예제 #4
0
 internal WorkSpacesPaginatorFactory(IAmazonWorkSpaces client)
 {
     this.client = client;
 }