private Amazon.FIS.Model.StopExperimentResponse CallAWSServiceOperation(IAmazonFIS client, Amazon.FIS.Model.StopExperimentRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Fault Injection Simulator", "StopExperiment");
     try
     {
         #if DESKTOP
         return(client.StopExperiment(request));
         #elif CORECLR
         return(client.StopExperimentAsync(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;
     }
 }
Exemplo n.º 2
0
 internal ListExperimentTemplatesPaginator(IAmazonFIS client, ListExperimentTemplatesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Exemplo n.º 3
0
 internal FISPaginatorFactory(IAmazonFIS client)
 {
     this.client = client;
 }
Exemplo n.º 4
0
 internal ListActionsPaginator(IAmazonFIS client, ListActionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Exemplo n.º 5
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
Exemplo n.º 6
0
 internal ListTargetResourceTypesPaginator(IAmazonFIS client, ListTargetResourceTypesRequest request)
 {
     this._client  = client;
     this._request = request;
 }