oci.DataCatalog.DataAsset
Explore with Pulumi AI
This resource provides the Data Asset resource in Oracle Cloud Infrastructure Data Catalog service.
Create a new data asset.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataAsset = new oci.datacatalog.DataAsset("test_data_asset", {
catalogId: testCatalog.id,
displayName: dataAssetDisplayName,
typeKey: dataAssetTypeKey,
description: dataAssetDescription,
properties: dataAssetProperties,
});
import pulumi
import pulumi_oci as oci
test_data_asset = oci.data_catalog.DataAsset("test_data_asset",
catalog_id=test_catalog["id"],
display_name=data_asset_display_name,
type_key=data_asset_type_key,
description=data_asset_description,
properties=data_asset_properties)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataCatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataCatalog.NewDataAsset(ctx, "test_data_asset", &DataCatalog.DataAssetArgs{
CatalogId: pulumi.Any(testCatalog.Id),
DisplayName: pulumi.Any(dataAssetDisplayName),
TypeKey: pulumi.Any(dataAssetTypeKey),
Description: pulumi.Any(dataAssetDescription),
Properties: pulumi.Any(dataAssetProperties),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDataAsset = new Oci.DataCatalog.DataAsset("test_data_asset", new()
{
CatalogId = testCatalog.Id,
DisplayName = dataAssetDisplayName,
TypeKey = dataAssetTypeKey,
Description = dataAssetDescription,
Properties = dataAssetProperties,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataCatalog.DataAsset;
import com.pulumi.oci.DataCatalog.DataAssetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testDataAsset = new DataAsset("testDataAsset", DataAssetArgs.builder()
.catalogId(testCatalog.id())
.displayName(dataAssetDisplayName)
.typeKey(dataAssetTypeKey)
.description(dataAssetDescription)
.properties(dataAssetProperties)
.build());
}
}
resources:
testDataAsset:
type: oci:DataCatalog:DataAsset
name: test_data_asset
properties:
catalogId: ${testCatalog.id}
displayName: ${dataAssetDisplayName}
typeKey: ${dataAssetTypeKey}
description: ${dataAssetDescription}
properties: ${dataAssetProperties}
Create DataAsset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataAsset(name: string, args: DataAssetArgs, opts?: CustomResourceOptions);
@overload
def DataAsset(resource_name: str,
args: DataAssetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataAsset(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
display_name: Optional[str] = None,
type_key: Optional[str] = None,
description: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None)
func NewDataAsset(ctx *Context, name string, args DataAssetArgs, opts ...ResourceOption) (*DataAsset, error)
public DataAsset(string name, DataAssetArgs args, CustomResourceOptions? opts = null)
public DataAsset(String name, DataAssetArgs args)
public DataAsset(String name, DataAssetArgs args, CustomResourceOptions options)
type: oci:DataCatalog:DataAsset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DataAssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataAssetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataAssetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataAssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataAssetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ociDataAssetResource = new Oci.DataCatalog.DataAsset("ociDataAssetResource", new()
{
CatalogId = "string",
DisplayName = "string",
TypeKey = "string",
Description = "string",
Properties =
{
{ "string", "string" },
},
});
example, err := DataCatalog.NewDataAsset(ctx, "ociDataAssetResource", &DataCatalog.DataAssetArgs{
CatalogId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
TypeKey: pulumi.String("string"),
Description: pulumi.String("string"),
Properties: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var ociDataAssetResource = new DataAsset("ociDataAssetResource", DataAssetArgs.builder()
.catalogId("string")
.displayName("string")
.typeKey("string")
.description("string")
.properties(Map.of("string", "string"))
.build());
oci_data_asset_resource = oci.data_catalog.DataAsset("ociDataAssetResource",
catalog_id="string",
display_name="string",
type_key="string",
description="string",
properties={
"string": "string",
})
const ociDataAssetResource = new oci.datacatalog.DataAsset("ociDataAssetResource", {
catalogId: "string",
displayName: "string",
typeKey: "string",
description: "string",
properties: {
string: "string",
},
});
type: oci:DataCatalog:DataAsset
properties:
catalogId: string
description: string
displayName: string
properties:
string: string
typeKey: string
DataAsset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataAsset resource accepts the following input properties:
- Catalog
Id string - Unique catalog identifier.
- Display
Name string - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Type
Key string The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Description string
- (Updatable) Detailed description of the data asset.
- Properties Dictionary<string, string>
- Catalog
Id string - Unique catalog identifier.
- Display
Name string - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Type
Key string The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Description string
- (Updatable) Detailed description of the data asset.
- Properties map[string]string
- catalog
Id String - Unique catalog identifier.
- display
Name String - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- type
Key String The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description String
- (Updatable) Detailed description of the data asset.
- properties Map<String,String>
- catalog
Id string - Unique catalog identifier.
- display
Name string - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- type
Key string The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description string
- (Updatable) Detailed description of the data asset.
- properties {[key: string]: string}
- catalog_
id str - Unique catalog identifier.
- display_
name str - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- type_
key str The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description str
- (Updatable) Detailed description of the data asset.
- properties Mapping[str, str]
- catalog
Id String - Unique catalog identifier.
- display
Name String - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- type
Key String The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description String
- (Updatable) Detailed description of the data asset.
- properties Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the DataAsset resource produces the following output properties:
- Created
By stringId - OCID of the user who created the data asset.
- External
Key string - External URI that can be used to reference the object. Format will differ based on the type of object.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Unique data asset key that is immutable.
- Lifecycle
Details string - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- State string
- The current state of the data asset.
- Time
Created string - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- Time
Harvested string - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- Time
Updated string - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- Updated
By stringId - OCID of the user who last modified the data asset.
- Uri string
- URI to the data asset instance in the API.
- Created
By stringId - OCID of the user who created the data asset.
- External
Key string - External URI that can be used to reference the object. Format will differ based on the type of object.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Unique data asset key that is immutable.
- Lifecycle
Details string - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- State string
- The current state of the data asset.
- Time
Created string - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- Time
Harvested string - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- Time
Updated string - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- Updated
By stringId - OCID of the user who last modified the data asset.
- Uri string
- URI to the data asset instance in the API.
- created
By StringId - OCID of the user who created the data asset.
- external
Key String - External URI that can be used to reference the object. Format will differ based on the type of object.
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- Unique data asset key that is immutable.
- lifecycle
Details String - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- state String
- The current state of the data asset.
- time
Created String - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Harvested String - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time
Updated String - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- updated
By StringId - OCID of the user who last modified the data asset.
- uri String
- URI to the data asset instance in the API.
- created
By stringId - OCID of the user who created the data asset.
- external
Key string - External URI that can be used to reference the object. Format will differ based on the type of object.
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- Unique data asset key that is immutable.
- lifecycle
Details string - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- state string
- The current state of the data asset.
- time
Created string - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Harvested string - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time
Updated string - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- updated
By stringId - OCID of the user who last modified the data asset.
- uri string
- URI to the data asset instance in the API.
- created_
by_ strid - OCID of the user who created the data asset.
- external_
key str - External URI that can be used to reference the object. Format will differ based on the type of object.
- id str
- The provider-assigned unique ID for this managed resource.
- key str
- Unique data asset key that is immutable.
- lifecycle_
details str - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- state str
- The current state of the data asset.
- time_
created str - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time_
harvested str - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time_
updated str - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- updated_
by_ strid - OCID of the user who last modified the data asset.
- uri str
- URI to the data asset instance in the API.
- created
By StringId - OCID of the user who created the data asset.
- external
Key String - External URI that can be used to reference the object. Format will differ based on the type of object.
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- Unique data asset key that is immutable.
- lifecycle
Details String - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- state String
- The current state of the data asset.
- time
Created String - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Harvested String - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time
Updated String - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- updated
By StringId - OCID of the user who last modified the data asset.
- uri String
- URI to the data asset instance in the API.
Look up Existing DataAsset Resource
Get an existing DataAsset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataAssetState, opts?: CustomResourceOptions): DataAsset
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
created_by_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
external_key: Optional[str] = None,
key: Optional[str] = None,
lifecycle_details: Optional[str] = None,
properties: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_harvested: Optional[str] = None,
time_updated: Optional[str] = None,
type_key: Optional[str] = None,
updated_by_id: Optional[str] = None,
uri: Optional[str] = None) -> DataAsset
func GetDataAsset(ctx *Context, name string, id IDInput, state *DataAssetState, opts ...ResourceOption) (*DataAsset, error)
public static DataAsset Get(string name, Input<string> id, DataAssetState? state, CustomResourceOptions? opts = null)
public static DataAsset get(String name, Output<String> id, DataAssetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Catalog
Id string - Unique catalog identifier.
- Created
By stringId - OCID of the user who created the data asset.
- Description string
- (Updatable) Detailed description of the data asset.
- Display
Name string - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- External
Key string - External URI that can be used to reference the object. Format will differ based on the type of object.
- Key string
- Unique data asset key that is immutable.
- Lifecycle
Details string - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- Properties Dictionary<string, string>
- State string
- The current state of the data asset.
- Time
Created string - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- Time
Harvested string - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- Time
Updated string - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- Type
Key string The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Updated
By stringId - OCID of the user who last modified the data asset.
- Uri string
- URI to the data asset instance in the API.
- Catalog
Id string - Unique catalog identifier.
- Created
By stringId - OCID of the user who created the data asset.
- Description string
- (Updatable) Detailed description of the data asset.
- Display
Name string - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- External
Key string - External URI that can be used to reference the object. Format will differ based on the type of object.
- Key string
- Unique data asset key that is immutable.
- Lifecycle
Details string - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- Properties map[string]string
- State string
- The current state of the data asset.
- Time
Created string - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- Time
Harvested string - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- Time
Updated string - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- Type
Key string The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Updated
By stringId - OCID of the user who last modified the data asset.
- Uri string
- URI to the data asset instance in the API.
- catalog
Id String - Unique catalog identifier.
- created
By StringId - OCID of the user who created the data asset.
- description String
- (Updatable) Detailed description of the data asset.
- display
Name String - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external
Key String - External URI that can be used to reference the object. Format will differ based on the type of object.
- key String
- Unique data asset key that is immutable.
- lifecycle
Details String - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties Map<String,String>
- state String
- The current state of the data asset.
- time
Created String - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Harvested String - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time
Updated String - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- type
Key String The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- updated
By StringId - OCID of the user who last modified the data asset.
- uri String
- URI to the data asset instance in the API.
- catalog
Id string - Unique catalog identifier.
- created
By stringId - OCID of the user who created the data asset.
- description string
- (Updatable) Detailed description of the data asset.
- display
Name string - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external
Key string - External URI that can be used to reference the object. Format will differ based on the type of object.
- key string
- Unique data asset key that is immutable.
- lifecycle
Details string - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties {[key: string]: string}
- state string
- The current state of the data asset.
- time
Created string - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Harvested string - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time
Updated string - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- type
Key string The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- updated
By stringId - OCID of the user who last modified the data asset.
- uri string
- URI to the data asset instance in the API.
- catalog_
id str - Unique catalog identifier.
- created_
by_ strid - OCID of the user who created the data asset.
- description str
- (Updatable) Detailed description of the data asset.
- display_
name str - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external_
key str - External URI that can be used to reference the object. Format will differ based on the type of object.
- key str
- Unique data asset key that is immutable.
- lifecycle_
details str - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties Mapping[str, str]
- state str
- The current state of the data asset.
- time_
created str - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time_
harvested str - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time_
updated str - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- type_
key str The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- updated_
by_ strid - OCID of the user who last modified the data asset.
- uri str
- URI to the data asset instance in the API.
- catalog
Id String - Unique catalog identifier.
- created
By StringId - OCID of the user who created the data asset.
- description String
- (Updatable) Detailed description of the data asset.
- display
Name String - (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external
Key String - External URI that can be used to reference the object. Format will differ based on the type of object.
- key String
- Unique data asset key that is immutable.
- lifecycle
Details String - A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties Map<String>
- state String
- The current state of the data asset.
- time
Created String - The date and time the data asset was created, in the format defined by RFC3339. Example:
2019-03-25T21:10:29.600Z
- time
Harvested String - The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time
Updated String - The last time that any change was made to the data asset. An RFC3339 formatted datetime string.
- type
Key String The key of the data asset type. This can be obtained via the '/types' endpoint.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- updated
By StringId - OCID of the user who last modified the data asset.
- uri String
- URI to the data asset instance in the API.
Import
DataAssets can be imported using the id
, e.g.
$ pulumi import oci:DataCatalog/dataAsset:DataAsset test_data_asset "catalogs/{catalogId}/dataAssets/{dataAssetKey}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.