protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
 private Amazon.Route53RecoveryControlConfig.Model.DescribeClusterResponse CallAWSServiceOperation(IAmazonRoute53RecoveryControlConfig client, Amazon.Route53RecoveryControlConfig.Model.DescribeClusterRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Route53 Recovery Control Config", "DescribeCluster");
     try
     {
         #if DESKTOP
         return(client.DescribeCluster(request));
         #elif CORECLR
         return(client.DescribeClusterAsync(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;
     }
 }
Esempio n. 3
0
 internal ListClustersPaginator(IAmazonRoute53RecoveryControlConfig client, ListClustersRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Esempio n. 4
0
 internal Route53RecoveryControlConfigPaginatorFactory(IAmazonRoute53RecoveryControlConfig client)
 {
     this.client = client;
 }
Esempio n. 5
0
 internal ListAssociatedRoute53HealthChecksPaginator(IAmazonRoute53RecoveryControlConfig client, ListAssociatedRoute53HealthChecksRequest request)
 {
     this._client  = client;
     this._request = request;
 }