automated-deployment/consumption-account/template.yaml [140:195]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              response= client.grant_permissions(Principal=principal,
                                      Resource=database_json,
                                      Permissions=permissions)
              logger.info('DB DESCRIBE Grant Response {}'.format(response))
              return response

          def buildjson(event):

              """  builds the json event consumed by Lakeformation API
              Arguments:
                  event {dict} -- event that is pushed to account specific queue

              Returns:
                  principal_json {dict}         --   (sample event below)
                                                Principal={
                                                      'DataLakePrincipalIdentifier': 'string'
                                                  }
                  table_json {dict}             --   (sample event below)
                                                'Table': {
                                                      'CatalogId': 'string',
                                                      'DatabaseName': 'string',
                                                      'Name': 'string',
                                                      'TableWildcard': {}
                                                  }

                  tableWithColumns_json {dict}  --    (sample event below)
                                                  'TableWithColumns': {
                                                          'CatalogId': 'string',
                                                          'DatabaseName': 'string',
                                                          'Name': 'string',
                                                          'ColumnNames': [
                                                              'string',
                                                          ],
                                                          'ColumnWildcard': {
                                                              'ExcludedColumnNames': [
                                                                  'string',
                                                              ]
                                                          }
                                                      }
                  perm_json {dict}              --      (sample event below)
                                                  Permissions=[
                                                  'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'DESCRIBE'|
                                                  'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS'|'CREATE_TAG'|
                                                  'ALTER_TAG'|'DELETE_TAG'|'DESCRIBE_TAG'|'ASSOCIATE_TAG',
                                                  ]
                  perm_grant_json {dict}        --
                                                  PermissionsWithGrantOption=[
                                                  'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'DESCRIBE'|
                                                  'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS'|'CREATE_TAG'|
                                                  'ALTER_TAG'|'DELETE_TAG'|'DESCRIBE_TAG'|'ASSOCIATE_TAG',
                                                  ]
              """
              principal_json = {}
              table_json = {}
              tableWithColumns_json = {}
              perm_json = {}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



blog-templates/central.yaml [499:553]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              response= client.grant_permissions(Principal=principal,
                                      Resource=database_json,
                                      Permissions=permissions)
              logger.info('DB DESCRIBE Grant Response {}'.format(response))
              return response

          def buildjson(event):
              """  builds the json event consumed by Lakeformation API
              Arguments:
                  event {dict} -- event that is pushed to account specific queue

              Returns:
                  principal_json {dict}         --   (sample event below)
                                                Principal={
                                                      'DataLakePrincipalIdentifier': 'string'
                                                  }
                  table_json {dict}             --   (sample event below)
                                                'Table': {
                                                      'CatalogId': 'string',
                                                      'DatabaseName': 'string',
                                                      'Name': 'string',
                                                      'TableWildcard': {}
                                                  }

                  tableWithColumns_json {dict}  --    (sample event below)
                                                  'TableWithColumns': {
                                                          'CatalogId': 'string',
                                                          'DatabaseName': 'string',
                                                          'Name': 'string',
                                                          'ColumnNames': [
                                                              'string',
                                                          ],
                                                          'ColumnWildcard': {
                                                              'ExcludedColumnNames': [
                                                                  'string',
                                                              ]
                                                          }
                                                      }
                  perm_json {dict}              --      (sample event below)
                                                  Permissions=[
                                                  'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'DESCRIBE'|
                                                  'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS'|'CREATE_TAG'|
                                                  'ALTER_TAG'|'DELETE_TAG'|'DESCRIBE_TAG'|'ASSOCIATE_TAG',
                                                  ]
                  perm_grant_json {dict}        --
                                                  PermissionsWithGrantOption=[
                                                  'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'DESCRIBE'|
                                                  'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS'|'CREATE_TAG'|
                                                  'ALTER_TAG'|'DELETE_TAG'|'DESCRIBE_TAG'|'ASSOCIATE_TAG',
                                                  ]
              """
              principal_json = {}
              table_json = {}
              tableWithColumns_json = {}
              perm_json = {}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



