Beispiel #1
0
 private Amazon.GreengrassV2.Model.ListCoreDevicesResponse CallAWSServiceOperation(IAmazonGreengrassV2 client, Amazon.GreengrassV2.Model.ListCoreDevicesRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS GreengrassV2", "ListCoreDevices");
     try
     {
         #if DESKTOP
         return(client.ListCoreDevices(request));
         #elif CORECLR
         return(client.ListCoreDevicesAsync(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 ListInstalledComponentsPaginator(IAmazonGreengrassV2 client, ListInstalledComponentsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListDeploymentsPaginator(IAmazonGreengrassV2 client, ListDeploymentsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #4
0
 internal ListComponentVersionsPaginator(IAmazonGreengrassV2 client, ListComponentVersionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #5
0
 internal GreengrassV2PaginatorFactory(IAmazonGreengrassV2 client)
 {
     this.client = client;
 }
 internal ListCoreDevicesPaginator(IAmazonGreengrassV2 client, ListCoreDevicesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #7
0
 internal ListClientDevicesAssociatedWithCoreDevicePaginator(IAmazonGreengrassV2 client, ListClientDevicesAssociatedWithCoreDeviceRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }