CreateAsset
Source:
src/AWS/DataZone/CreateAsset.ts
Runtime binding for datazone:CreateAsset.
Creates an asset in the bound domain’s inventory, e.g. to register data produced by the function itself. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.CreateAssetHttp).
Publishing Assets
Section titled “Publishing Assets”// init — bind the operation to the domainconst createAsset = yield* AWS.DataZone.CreateAsset(domain);
// runtimeconst asset = yield* createAsset({ name: "daily-orders", typeIdentifier: "amazon.datazone.S3ObjectCollectionAssetType", owningProjectIdentifier: projectId,});