コード例 #1
0
 private Amazon.CodeStarconnections.Model.CreateHostResponse CallAWSServiceOperation(IAmazonCodeStarconnections client, Amazon.CodeStarconnections.Model.CreateHostRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodeStar Connections", "CreateHost");
     try
     {
         #if DESKTOP
         return(client.CreateHost(request));
         #elif CORECLR
         return(client.CreateHostAsync(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;
     }
 }
コード例 #2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
コード例 #3
0
 internal ListHostsPaginator(IAmazonCodeStarconnections client, ListHostsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
コード例 #4
0
 internal CodeStarconnectionsPaginatorFactory(IAmazonCodeStarconnections client)
 {
     this.client = client;
 }