Beispiel #1
0
 private Amazon.Kendra.Model.GetSnapshotsResponse CallAWSServiceOperation(IAmazonKendra client, Amazon.Kendra.Model.GetSnapshotsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Kendra", "GetSnapshots");
     try
     {
         #if DESKTOP
         return(client.GetSnapshots(request));
         #elif CORECLR
         return(client.GetSnapshotsAsync(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;
     }
 }
Beispiel #2
0
 internal ListEntityPersonasPaginator(IAmazonKendra client, ListEntityPersonasRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListDataSourcesPaginator(IAmazonKendra client, ListDataSourcesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal KendraPaginatorFactory(IAmazonKendra client)
 {
     this.client = client;
 }
Beispiel #5
0
 internal GetSnapshotsPaginator(IAmazonKendra client, GetSnapshotsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #6
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
Beispiel #7
0
 internal ListExperienceEntitiesPaginator(IAmazonKendra client, ListExperienceEntitiesRequest request)
 {
     this._client  = client;
     this._request = request;
 }