private Amazon.Detective.Model.CreateMembersResponse CallAWSServiceOperation(IAmazonDetective client, Amazon.Detective.Model.CreateMembersRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Detective", "CreateMembers");
     try
     {
         #if DESKTOP
         return(client.CreateMembers(request));
         #elif CORECLR
         return(client.CreateMembersAsync(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 ListMembersPaginator(IAmazonDetective client, ListMembersRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Esempio n. 3
0
 internal DetectivePaginatorFactory(IAmazonDetective client)
 {
     this.client = client;
 }
 internal ListInvitationsPaginator(IAmazonDetective client, ListInvitationsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Esempio n. 5
0
 internal ListOrganizationAdminAccountsPaginator(IAmazonDetective client, ListOrganizationAdminAccountsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }