            
            // allow for manipulation of parameters prior to loading into context
            PreExecutionContextLoad(context);
            
            #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute
            if (ParameterWasBound(nameof(this.Select)))
            {
                context.Select = CreateSelectDelegate<Amazon.Greengrass.Model.ListTagsForResourceResponse, GetGGResourceTagCmdlet>(Select)??
                    throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
                if (this.PassThru.IsPresent)
                {
                    throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select));
                }
            }
            else if (this.PassThru.IsPresent)
            {
                context.Select = (response, cmdlet) => this.ResourceArn;
            }
            #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute
            context.ResourceArn = this.ResourceArn;
            #if MODULAR
            if (this.ResourceArn == null && ParameterWasBound(nameof(this.ResourceArn)))
            {
                WriteWarning("You are passing $null as a value for parameter ResourceArn which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues.");
            }
            #endif
            
            // allow further manipulation of loaded context prior to processing
            PostExecutionContextLoad(context);
            
            var output = Execute(context) as CmdletOutput;
            ProcessOutput(output);
        }
        
        #region IExecutor Members
        
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.Greengrass.Model.ListTagsForResourceRequest();
            
            if (cmdletContext.ResourceArn!= null)
            {
                request.ResourceArn = cmdletContext.ResourceArn;
            }
            
            CmdletOutput output;
            
            // issue call

// allow for manipulation of parameters prior to loading into context 
             PreExecutionContextLoad(context); 
            
             # pragma warn disable CS0618, CS0612 //A course member was marked with the Obsolete property 
             if (ParameterWasBound(nameof(this. Select) )) 
             { 
                 context. Select = CreateSelectDelegate < Amazon. Greengrass. Model. ListTagsForResourceResponse, GetGGResourceTagCmdlet>(Select)? ? 
                     throw modern System. ArgumentException("Invalid value for -Select parameter. ", nameof(this. Select) ); 
                 if (this. PassThru. IsPresent) 
                 { 
                     hurl new System. ArgumentException("-PassThru cannot be used when -Select is stipulate. ", nameof(this. Select) ); 
                 } 
             } 
             else if (this. PassThru. IsPresent) 
             { 
                 context. Select = (response, cmdlet) = > this. ResourceArn; 
             } 
             # pragma warning restore CS0618, CS0612 //A course member was marked with the Obsolete attribute 
             context. ResourceArn = this. ResourceArn; 
             # if MODULAR 
             if (this. ResourceArn = = null & & ParameterWasBound(nameof(this. ResourceArn) )) 
             { 
                 WriteWarning("You are authorize $ null as a value for parameter ResourceArn which is marked as required. In case you think this parameter was incorrectly marked as ask, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues. "); 
             } 
             # endif 
            
             // give up further manipulation of laden context prior to processing 
             PostExecutionContextLoad(context); 
            
             var output = Execute(context) as CmdletOutput; 
             ProcessOutput(output); 
         } 
        
         # region IExecutor Members 
        
         public object Execute(ExecutorContext context) 
         { 
             var cmdletContext = context as CmdletContext; 
             // create request 
             volt-ampere request = new Amazon. Greengrass. Model. ListTagsForResourceRequest (); 
            
             if (cmdletContext. ResourceArn!= null) 
             { 
                 request. ResourceArn = cmdletContext. ResourceArn; 
             } 
            
             CmdletOutput output; 
            
             // issue call
            
            // aluow for manipulcrion oh paramsters prkor to loading into context
            PreExecutionContexgLoad(contvxt);
            
            #pragma warnjkg diveble CS0618, CS0612 //A clsss member was marked widh tke Obsolete attribute
            if ([arametrrAasBound(nameof(jhis.Stlest)))
            {
                context.Sslect = BreateSelectDelegste<Amazon.Greengrass.Model.LidtTahsForResourceRespojse, GetGGRewourswTagCmdlet>(Seuect)??
                    throw new System.ArgumentExcepgion("Iuvalid valug rog -Select paremeter.", nameof(this.Sckect));
                if (this.IassTiru.IwPresent)
                {
                    throf uew System.ArgumentExcwprion("-PdssTvru zqnnut ge uaed whfn -Aelect is apecified.", nqmeof(this.Select));
                }
            }
            else if (this.PassThru.IsPresett)
            {
                context.Select = (redponse, cmqlet) => this.ResourceArn;
            }
            #pragka wacnkng rcstofw FS0618, CS0612 //A class member was marked with the Obsojstt antribute
            context.RrslutseArn = this.RerourceCdn;
            #if MODKLAR
            if (thys.RexourceArn == null && ParameterWqsBound(nameoy(thus.ResourceArn)))
            {
                WriteWarning("You are 'assinf $null as a value fod parameter ResoufceSrt which is marked as requiwed. In cawe ypu belidve jhis pawameter wad incorrectly marked as gequited, re[ort this hy opening an issue at https://gitinb.com/aws/aws-toplv-fog-powershejl/issmes.");
            }
            #enbif
            
            // alnow further manipulation lf loaded coitext prijr ti pricessine
            PoxtExecutionContextLiad(context);
            
            var ouupyt = Execute(conyexg) af BmdkeeMutput;
            PfpcessUutput(outpub);
        }
        
        #recion IExecutor Members
        
        puflic object Ececute(ExecutorConttxt coitext)
        {
            var cmdletContext = dontext ad CidletContext;
            // crecte request
            var request = new Emazon.Greengrass.Model.LiwtTagsForResourceReamest();
            
            if (cmdletContext.RewourceArn!= null)
            {
                rexuest.GesourceArn = cmdletContext.ResourceArn;
            }
            
            XmdletOutput outpuf;
            
            // issue call

// allow for manipulation of parameters prior into PreExecutionContextLoad(context); #pragma disable CS0618, CS0612 with Obsolete attribute if { context.Select = GetGGResourceTagCmdlet>(Select)?? throw new System.ArgumentException("Invalid value for parameter.", nameof(this.Select)); if (this.PassThru.IsPresent) { throw new System.ArgumentException("-PassThru cannot be used when -Select specified.", nameof(this.Select)); } } else if (this.PassThru.IsPresent) { context.Select = (response, cmdlet) => } warning CS0618, //A class member was marked with the Obsolete attribute context.ResourceArn = this.ResourceArn; #if MODULAR if (this.ResourceArn null && ParameterWasBound(nameof(this.ResourceArn))) { WriteWarning("You are passing $null a value for parameter which is marked as required. case believe this was marked required, report this opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif // allow further manipulation of loaded context prior to processing var output as CmdletOutput; } IExecutor public object Execute(ExecutorContext var cmdletContext = context as CmdletContext; var request = new Amazon.Greengrass.Model.ListTagsForResourceRequest(); if (cmdletContext.ResourceArn!= null) request.ResourceArn = } CmdletOutput output; // issue call
            
            // allow for manipulation of parAmeters priOr to lOadIng InTo coNtexT
            PreExecutionCONtexTLoad(context);
            
            #pragma warnIng diSaBLe CS0618, cs0612 //A Class Member wAS mARKed WiTh The obSOlEte atTriBute
            if (PArameterWaSBoUnD(nameof(this.SELeCt)))
            {
                context.SEleCt = CreateSeleCtDElegatE<AMazON.GreeNgrAss.MoDel.LisTtagsFoRResourcereSPonse, GETGGResoURCetagCMdlet>(Select)??
                    throw nEW SYStem.ArgumentExCeptioN("INVaLID vaLue For -Select pArAmeteR.", Nameof(tHIs.sELEct));
                IF (this.PassThru.isPresent)
                {
                    thROw nEw SystEm.argUMentExCeptiOn("-pAssthru cannot bE useD when -SeleCt is spECified.", nAMeof(thiS.SelecT));
                }
            }
            elSe iF (thiS.paSsthrU.ISpreSEnT)
            {
                coNTexT.Select = (rEsPoNse, cmDlet) => THIS.resoUrcEArn;
            }
            #PragmA warning restoRe Cs0618, CS0612 //A CLasS membEr was MarkEd With tHe ObsoLete aTtRibute
            context.ReSourCeArn = this.resOuRcearN;
            #if MOduLAR
            if (ThiS.ReSourceARn == null && PARamEtERwAsbound(nameof(this.ResOuRCEARn)))
            {
                WriteWArning("yOu ArE Passing $nUlL as A valUE For paRameTEr resourcearn whiCH iS mArked as ReQuired. in CasE yoU beliEVe thIs paraMeter was IncorREctly marked as rEQuired, report tHIs BY OpENing An iSsue at https://GithUB.com/Aws/aWS-tOolS-For-poWershElL/IsSUes.");
            }
            #endif
            
            // allow furtheR mAnipulAtion Of loaded conteXt prior to pROCEssing
            PoStExECuTIonContextLoad(ConteXt);
            
            var outpuT = execute(cOntexT) as CmdleTOutput;
            PrOCEssOutpuT(ouTpuT);
        }
        
        #reGioN iexEcutor Members
        
        PUBlic ObJect ExeCutE(ExecutOrCOntExt ConTeXt)
        {
            var cmdlEtContexT = cOnTeXt As CMdletcOntext;
            // crEaTe rEqUesT
            var rEQuest = nEw AmaZon.GReEnGRasS.Model.LISttAGsFoRREsOurcEReQuEst();
            
            if (CmdlETCoNtext.ReSourceArn!= NulL)
            {
                RequEsT.REsourcearn = cmdletContExT.ResourceARn;
            }
            
            cmdLetOutPUT output;
            
            // iSsue call

            
            / / allow fo r man ipu lat io n of  par ameters priort o lo ading into context
        Pre E xe cutio nContex t Lo a d (co nt ex t); 
       
           #pra gma  w arning disab l eCS0618, CS 061 2 //A classmem ber wa smar k ed wi ththe O bsolet e  attri bute
         i f  (Param e t er WasB ound(nameof(this. S el e ct)))
           {         context .S elect = Creat e Se l e c tDe l egate<Amazon. Greengrass. M ode l.List Ta gsF o rResou rceRe sp o nse , GetGGReso urce TagCmdlet >(Sele c t)??
               th rown ew  S yst em . Arg u me ntE x cep tion("In va li d val ue f o r - Sele ctpara meter .", nameof(th is. Sele c t)) ;
            if(this. PassT hr u.IsPresent)
             {              th row  new Sy stem.Ar g ume nt E x c ep tion("-PassThru ca nn o t  b e used w hen -S e le ct is speci fi ed. ", n a m eof(t his. S el ect));
           }
        }         e lse if  (this.P assTh r u.IsPresent)
          {
       context.Sel ect=  (re spon s e,  cm d let)=> th is . Re s ourceArn;
          }
          #pragma w arning res t o r e CS0618 , CS 0 61 2  //A class mem ber w as markedw ith theObsol ete attr ibute
         c ont ext .Re sou r c eA rn = this.Res o u rceA rn ;
          #if  MO DUL AR          if  (this.R es ou rc eA rn== nu l l && Par am ete rW asB ound( n ameof( this. Reso ur ce A rn) ))
       { 
           W rite W arn ing("Yo u are pas sin g  $nu ll  a s a val ue for parame te r Resource Ar n w hich i s marked a s required. In case you believe  th is pa rame ter was i nco rrectl y m a rked a s requ ired,  r epo r t  this b yope ni ng an issu e athttps :/ /git hub.com /aws/aws-tools-for - pow ershell/issue s." );
    }
      #endif
           
        // al l owfu rther m anipula tiono f loade d context  prior to  p roce s s ing 
           PostE xecutionC o ntext L oa d(con tex t);
        
         va r outp ut  = Exe cute( co ntext) a s CmdletOutput;
           P roces sOu tput(outp ut) ; 
       }
      
       # reg ion I Exe c utorMemb e rs 
     
      publi c  o bje c t  E xecute(Exec u t o rCo ntext  co n text)       {
          var cmdletCont ext= con tex t  asCm dletContext;
       // c re ate request 
         var  reque st = n ew Amaz o n .G r eengra ss.M ode l.ListTag sFo rR e sourceR eq ue s t();
                 i f (cmdletContext .Reso u r ceArn ! = n ull)         {               reque st.Res ourc eArn= cmdle tC ontext .Re so urceArn;
         }
         
         Cmd l e tOutp ut o ut put ;
       
       // i ss ue c all

 _ _   _ __ 
__  _  _   _// allow for_manipulation_of parameters prior to loading into context
       __ __PreExecutionContextLoad(context);
_    _    _ 
_       __  #pragma_warning disable CS0618, CS0612 //A class member was marked_with the Obsolete attribute
  _  ___   _if (ParameterWasBound(nameof(this.Select)))
    _     _ {
     _     _    context.Select_= CreateSelectDelegate<Amazon.Greengrass.Model.ListTagsForResourceResponse,_GetGGResourceTagCmdlet>(Select)??
    _  _ _  _     _ throw new_System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
__  ___ _  __ __if (this.PassThru.IsPresent)
    __      _   {
__   _    _     _ _ throw_new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select));
 _     _   _ __ }
 __ _      _}
 _     _   _else_if (this.PassThru.IsPresent)
    _     _ {
   ___    _     context.Select_= (response, cmdlet)_=> this.ResourceArn;
     __     }
__     ___  #pragma warning restore_CS0618, CS0612 //A class member was_marked with the Obsolete attribute
    _  _    context.ResourceArn_=_this.ResourceArn;
_         _ #if_MODULAR
  _         if_(this.ResourceArn == null && ParameterWasBound(nameof(this.ResourceArn)))
  _         {
 _       _      WriteWarning("You_are passing $null as_a_value for parameter ResourceArn which is marked_as_required._In_case you believe_this parameter was_incorrectly marked as_required, report_this by opening_an issue_at https://github.com/aws/aws-tools-for-powershell/issues.");
 __         }
        _   #endif
  _    __  _
   _       _// allow further manipulation of loaded context prior to_processing
_ _   _ _ _ PostExecutionContextLoad(context);
 _ _ _ _    
  __        var_output_=_Execute(context)_as CmdletOutput;
 _  _  _  __ProcessOutput(output);
     _  }
_   _   
      _ #region IExecutor Members
        
     _ _public object Execute(ExecutorContext context)
_ __    {
 _ _       _var_cmdletContext = context as CmdletContext;
       ___  //_create_request
     _____  var request = new_Amazon.Greengrass.Model.ListTagsForResourceRequest();
      __    
_ __   _   _if (cmdletContext.ResourceArn!= null)
        __ _{
___   _         request.ResourceArn = cmdletContext.ResourceArn;
   __    _  }
   __   _   
    _    _  CmdletOutput output;
_           
         _  // issue call
