code: def create_api_deployment(self):
          
          try:
              self.client.create_deployment(restApiId=self.api_id, stageName=self.env)
              self.log.info('Created a deployment resource.')
          except botocore.exceptions.ClientError as error:
              error_code = error.response['Error']['Code']
              if error_code == 'TooManyRequestsException':
                  self.log.debug('Retrying. We have hit api limit.')
              else:
                  self.log.debug('Retrying. We received %s.', error_code)
docs: Create API deployment of ENV name.