1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. dataplex
  6. dataplex/v1
  7. Content

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi

    Create a content. Auto-naming is currently not supported for this resource.

    Create Content Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Content(name: string, args: ContentArgs, opts?: CustomResourceOptions);
    @overload
    def Content(resource_name: str,
                args: ContentArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Content(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                data_text: Optional[str] = None,
                lake_id: Optional[str] = None,
                path: Optional[str] = None,
                description: Optional[str] = None,
                labels: Optional[Mapping[str, str]] = None,
                location: Optional[str] = None,
                notebook: Optional[GoogleCloudDataplexV1ContentNotebookArgs] = None,
                project: Optional[str] = None,
                sql_script: Optional[GoogleCloudDataplexV1ContentSqlScriptArgs] = None)
    func NewContent(ctx *Context, name string, args ContentArgs, opts ...ResourceOption) (*Content, error)
    public Content(string name, ContentArgs args, CustomResourceOptions? opts = null)
    public Content(String name, ContentArgs args)
    public Content(String name, ContentArgs args, CustomResourceOptions options)
    
    type: google-native:dataplex/v1:Content
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "google-native_dataplex_v1_content" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ContentArgs
    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 ContentArgs
    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 ContentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContentArgs
    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 contentResource = new GoogleNative.Dataplex.V1.Content("contentResource", new()
    {
        DataText = "string",
        LakeId = "string",
        Path = "string",
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Location = "string",
        Notebook = new GoogleNative.Dataplex.V1.Inputs.GoogleCloudDataplexV1ContentNotebookArgs
        {
            KernelType = GoogleNative.Dataplex.V1.GoogleCloudDataplexV1ContentNotebookKernelType.KernelTypeUnspecified,
        },
        Project = "string",
        SqlScript = new GoogleNative.Dataplex.V1.Inputs.GoogleCloudDataplexV1ContentSqlScriptArgs
        {
            Engine = GoogleNative.Dataplex.V1.GoogleCloudDataplexV1ContentSqlScriptEngine.QueryEngineUnspecified,
        },
    });
    
    example, err := dataplex.NewContent(ctx, "contentResource", &dataplex.ContentArgs{
    	DataText:    pulumi.String("string"),
    	LakeId:      pulumi.String("string"),
    	Path:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Notebook: &dataplex.GoogleCloudDataplexV1ContentNotebookArgs{
    		KernelType: dataplex.GoogleCloudDataplexV1ContentNotebookKernelTypeKernelTypeUnspecified,
    	},
    	Project: pulumi.String("string"),
    	SqlScript: &dataplex.GoogleCloudDataplexV1ContentSqlScriptArgs{
    		Engine: dataplex.GoogleCloudDataplexV1ContentSqlScriptEngineQueryEngineUnspecified,
    	},
    })
    
    resource "google-native_dataplex_v1_content" "contentResource" {
      lifecycle {
        create_before_destroy = true
      }
      data_text   = "string"
      lake_id     = "string"
      path        = "string"
      description = "string"
      labels = {
        "string" = "string"
      }
      location = "string"
      notebook = {
        kernel_type = "KERNEL_TYPE_UNSPECIFIED"
      }
      project = "string"
      sql_script = {
        engine = "QUERY_ENGINE_UNSPECIFIED"
      }
    }
    
    var contentResource = new Content("contentResource", ContentArgs.builder()
        .dataText("string")
        .lakeId("string")
        .path("string")
        .description("string")
        .labels(Map.of("string", "string"))
        .location("string")
        .notebook(GoogleCloudDataplexV1ContentNotebookArgs.builder()
            .kernelType(com.pulumi.googlenative.dataplex_v1.enums.GoogleCloudDataplexV1ContentNotebookKernelType.KernelTypeUnspecified)
            .build())
        .project("string")
        .sqlScript(GoogleCloudDataplexV1ContentSqlScriptArgs.builder()
            .engine(com.pulumi.googlenative.dataplex_v1.enums.GoogleCloudDataplexV1ContentSqlScriptEngine.QueryEngineUnspecified)
            .build())
        .build());
    
    content_resource = google_native.dataplex.v1.Content("contentResource",
        data_text="string",
        lake_id="string",
        path="string",
        description="string",
        labels={
            "string": "string",
        },
        location="string",
        notebook={
            "kernel_type": google_native.dataplex.v1.GoogleCloudDataplexV1ContentNotebookKernelType.KERNEL_TYPE_UNSPECIFIED,
        },
        project="string",
        sql_script={
            "engine": google_native.dataplex.v1.GoogleCloudDataplexV1ContentSqlScriptEngine.QUERY_ENGINE_UNSPECIFIED,
        })
    
    const contentResource = new google_native.dataplex.v1.Content("contentResource", {
        dataText: "string",
        lakeId: "string",
        path: "string",
        description: "string",
        labels: {
            string: "string",
        },
        location: "string",
        notebook: {
            kernelType: google_native.dataplex.v1.GoogleCloudDataplexV1ContentNotebookKernelType.KernelTypeUnspecified,
        },
        project: "string",
        sqlScript: {
            engine: google_native.dataplex.v1.GoogleCloudDataplexV1ContentSqlScriptEngine.QueryEngineUnspecified,
        },
    });
    
    type: google-native:dataplex/v1:Content
    properties:
        dataText: string
        description: string
        labels:
            string: string
        lakeId: string
        location: string
        notebook:
            kernelType: KERNEL_TYPE_UNSPECIFIED
        path: string
        project: string
        sqlScript:
            engine: QUERY_ENGINE_UNSPECIFIED
    

    Content 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 Content resource accepts the following input properties:

    DataText string
    Content data in string format.
    LakeId string
    Path string
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    Description string
    Optional. Description of the content.
    Labels Dictionary<string, string>
    Optional. User defined labels for the content.
    Location string
    Notebook Pulumi.GoogleNative.Dataplex.V1.Inputs.GoogleCloudDataplexV1ContentNotebook
    Notebook related configurations.
    Project string
    SqlScript Pulumi.GoogleNative.Dataplex.V1.Inputs.GoogleCloudDataplexV1ContentSqlScript
    Sql Script related configurations.
    DataText string
    Content data in string format.
    LakeId string
    Path string
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    Description string
    Optional. Description of the content.
    Labels map[string]string
    Optional. User defined labels for the content.
    Location string
    Notebook GoogleCloudDataplexV1ContentNotebookArgs
    Notebook related configurations.
    Project string
    SqlScript GoogleCloudDataplexV1ContentSqlScriptArgs
    Sql Script related configurations.
    data_text string
    Content data in string format.
    lake_id string
    path string
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    description string
    Optional. Description of the content.
    labels map(string)
    Optional. User defined labels for the content.
    location string
    notebook object
    Notebook related configurations.
    project string
    sql_script object
    Sql Script related configurations.
    dataText String
    Content data in string format.
    lakeId String
    path String
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    description String
    Optional. Description of the content.
    labels Map<String,String>
    Optional. User defined labels for the content.
    location String
    notebook GoogleCloudDataplexV1ContentNotebook
    Notebook related configurations.
    project String
    sqlScript GoogleCloudDataplexV1ContentSqlScript
    Sql Script related configurations.
    dataText string
    Content data in string format.
    lakeId string
    path string
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    description string
    Optional. Description of the content.
    labels {[key: string]: string}
    Optional. User defined labels for the content.
    location string
    notebook GoogleCloudDataplexV1ContentNotebook
    Notebook related configurations.
    project string
    sqlScript GoogleCloudDataplexV1ContentSqlScript
    Sql Script related configurations.
    data_text str
    Content data in string format.
    lake_id str
    path str
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    description str
    Optional. Description of the content.
    labels Mapping[str, str]
    Optional. User defined labels for the content.
    location str
    notebook GoogleCloudDataplexV1ContentNotebookArgs
    Notebook related configurations.
    project str
    sql_script GoogleCloudDataplexV1ContentSqlScriptArgs
    Sql Script related configurations.
    dataText String
    Content data in string format.
    lakeId String
    path String
    The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
    description String
    Optional. Description of the content.
    labels Map<String>
    Optional. User defined labels for the content.
    location String
    notebook Property Map
    Notebook related configurations.
    project String
    sqlScript Property Map
    Sql Script related configurations.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Content resource produces the following output properties:

    CreateTime string
    Content creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    Uid string
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    UpdateTime string
    The time when the content was last updated.
    CreateTime string
    Content creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    Uid string
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    UpdateTime string
    The time when the content was last updated.
    create_time string
    Content creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    uid string
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    update_time string
    The time when the content was last updated.
    createTime String
    Content creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    uid String
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    updateTime String
    The time when the content was last updated.
    createTime string
    Content creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    uid string
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    updateTime string
    The time when the content was last updated.
    create_time str
    Content creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    uid str
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    update_time str
    The time when the content was last updated.
    createTime String
    Content creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
    uid String
    System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
    updateTime String
    The time when the content was last updated.

    Look up Existing Content Resource

    Get an existing Content 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>, opts?: CustomResourceOptions): Content
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Content
    func GetContent(ctx *Context, name string, id IDInput, state *ContentState, opts ...ResourceOption) (*Content, error)
    public static Content Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Content get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingContent:    type: google-native:dataplex/v1:Content    get:      id: ${id}
    import {
      to = google-native_dataplex_v1_content.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ContentState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    GoogleCloudDataplexV1ContentNotebook, GoogleCloudDataplexV1ContentNotebookArgs

    Configuration for Notebook content.

    GoogleCloudDataplexV1ContentNotebookKernelType, GoogleCloudDataplexV1ContentNotebookKernelTypeArgs

    Required. Kernel Type of the notebook.
    NameValueDescription
    KernelTypeUnspecifiedKERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    Python3PYTHON3Python 3 Kernel.
    NameValueDescription
    GoogleCloudDataplexV1ContentNotebookKernelTypeKernelTypeUnspecifiedKERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    GoogleCloudDataplexV1ContentNotebookKernelTypePython3PYTHON3Python 3 Kernel.
    ValueDescription
    KERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    PYTHON3Python 3 Kernel.
    NameValueDescription
    KernelTypeUnspecifiedKERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    Python3PYTHON3Python 3 Kernel.
    NameValueDescription
    KernelTypeUnspecifiedKERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    Python3PYTHON3Python 3 Kernel.
    NameValueDescription
    KERNEL_TYPE_UNSPECIFIEDKERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    PYTHON3PYTHON3Python 3 Kernel.
    ValueDescription
    KERNEL_TYPE_UNSPECIFIEDKernel Type unspecified.
    PYTHON3Python 3 Kernel.

    GoogleCloudDataplexV1ContentNotebookResponse, GoogleCloudDataplexV1ContentNotebookResponseArgs

    Configuration for Notebook content.
    KernelType string
    Kernel Type of the notebook.
    KernelType string
    Kernel Type of the notebook.
    kernel_type string
    Kernel Type of the notebook.
    kernelType String
    Kernel Type of the notebook.
    kernelType string
    Kernel Type of the notebook.
    kernel_type str
    Kernel Type of the notebook.
    kernelType String
    Kernel Type of the notebook.

    GoogleCloudDataplexV1ContentSqlScript, GoogleCloudDataplexV1ContentSqlScriptArgs

    Configuration for the Sql Script content.
    Engine GoogleCloudDataplexV1ContentSqlScriptEngine
    Query Engine to be used for the Sql Query.
    engine "QUERY_ENGINE_UNSPECIFIED" | "SPARK"
    Query Engine to be used for the Sql Query.
    engine GoogleCloudDataplexV1ContentSqlScriptEngine
    Query Engine to be used for the Sql Query.
    engine GoogleCloudDataplexV1ContentSqlScriptEngine
    Query Engine to be used for the Sql Query.
    engine GoogleCloudDataplexV1ContentSqlScriptEngine
    Query Engine to be used for the Sql Query.
    engine "QUERY_ENGINE_UNSPECIFIED" | "SPARK"
    Query Engine to be used for the Sql Query.

    GoogleCloudDataplexV1ContentSqlScriptEngine, GoogleCloudDataplexV1ContentSqlScriptEngineArgs

    Required. Query Engine to be used for the Sql Query.
    NameValueDescription
    QueryEngineUnspecifiedQUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    SparkSPARKSpark SQL Query.
    NameValueDescription
    GoogleCloudDataplexV1ContentSqlScriptEngineQueryEngineUnspecifiedQUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    GoogleCloudDataplexV1ContentSqlScriptEngineSparkSPARKSpark SQL Query.
    ValueDescription
    QUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    SPARKSpark SQL Query.
    NameValueDescription
    QueryEngineUnspecifiedQUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    SparkSPARKSpark SQL Query.
    NameValueDescription
    QueryEngineUnspecifiedQUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    SparkSPARKSpark SQL Query.
    NameValueDescription
    QUERY_ENGINE_UNSPECIFIEDQUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    SPARKSPARKSpark SQL Query.
    ValueDescription
    QUERY_ENGINE_UNSPECIFIEDValue was unspecified.
    SPARKSpark SQL Query.

    GoogleCloudDataplexV1ContentSqlScriptResponse, GoogleCloudDataplexV1ContentSqlScriptResponseArgs

    Configuration for the Sql Script content.
    Engine string
    Query Engine to be used for the Sql Query.
    Engine string
    Query Engine to be used for the Sql Query.
    engine string
    Query Engine to be used for the Sql Query.
    engine String
    Query Engine to be used for the Sql Query.
    engine string
    Query Engine to be used for the Sql Query.
    engine str
    Query Engine to be used for the Sql Query.
    engine String
    Query Engine to be used for the Sql Query.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo Google Cloud Native

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

    Viewing docs for Google Cloud Native v0.32.0
    published on Wednesday, Nov 29, 2023 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial