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;
     }
 }
Ejemplo n.º 2
0
 internal ListMembersPaginator(IAmazonDetective client, ListMembersRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo n.º 3
0
 internal DetectivePaginatorFactory(IAmazonDetective client)
 {
     this.client = client;
 }
 internal ListInvitationsPaginator(IAmazonDetective client, ListInvitationsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Ejemplo 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);
        }