Package com.atlan.samples.reporters
Class ExportAllDataAssets
- java.lang.Object
-
- com.atlan.samples.reporters.AbstractReporter
-
- com.atlan.samples.reporters.AssetReporter
-
- com.atlan.samples.reporters.ExportAllDataAssets
-
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<java.util.Map<java.lang.String,java.lang.String>,java.lang.String>
public class ExportAllDataAssets extends AssetReporter
-
-
Field Summary
-
Fields inherited from class com.atlan.samples.reporters.AbstractReporter
BYTES_IN_GB, TIMESTAMP_FORMAT
-
-
Constructor Summary
Constructors Constructor Description ExportAllDataAssets()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlan.model.search.FluentSearch.FluentSearchBuilder<?,?>
getAssetsToExtract(java.util.Map<java.lang.String,java.lang.String> event)
Produce a query that will retrieve all the assets you want to extract.java.util.List<com.atlan.model.fields.AtlanField>
getAttributesToExtract(java.util.Map<java.lang.String,java.lang.String> event)
Produce a list of all the attributes that should be extracted for each asset, in the order they should be produced for each row of the output.static void
main(java.lang.String[] args)
-
Methods inherited from class com.atlan.samples.reporters.AssetReporter
envVarsAsEvent, getAssetToValueTranslator, getRelatedAttributesToExtract, handleRequest, parseParametersFromEvent
-
Methods inherited from class com.atlan.samples.reporters.AbstractReporter
getAssetLink, getAtlanTags, getBatchSize, getBucket, getComplexList, getCount, getDelimitedList, getDelimiter, getDescription, getDirectAtlanTags, getFilename, getFormattedDateTime, getGroupOwners, getREADME, getRegion, getStringValueForField, getUserOwners, getValue, protectFromNull, serializeAssetRefToCSV, serializeStructToCSV, serializeValueToCSV, setFilename, setFilenameWithPrefix, setFilenameWithPrefix
-
-
-
-
Method Detail
-
getAssetsToExtract
public com.atlan.model.search.FluentSearch.FluentSearchBuilder<?,?> getAssetsToExtract(java.util.Map<java.lang.String,java.lang.String> event)
Produce a query that will retrieve all the assets you want to extract.- Specified by:
getAssetsToExtract
in classAssetReporter
- Parameters:
event
- context passed through the Lambda invocation event (or environment variables)- Returns:
- a fluent search with all necessary conditions for selecting the set of assets to extract
-
getAttributesToExtract
public java.util.List<com.atlan.model.fields.AtlanField> getAttributesToExtract(java.util.Map<java.lang.String,java.lang.String> event)
Produce a list of all the attributes that should be extracted for each asset, in the order they should be produced for each row of the output. The qualifiedName and type of every asset will automatically be included as the first two columns (as they are required), so you do not need to specify these.- Specified by:
getAttributesToExtract
in classAssetReporter
- Parameters:
event
- context passed through the Lambda invocation event (or environment variables)- Returns:
- list of attributes to include for each asset
-
main
public static void main(java.lang.String[] args)
-
-