gcp.chronicle.DataAccessLabel
Explore with Pulumi AI
Example Usage
Chronicle Dataaccesslabel Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.chronicle.DataAccessLabel("example", {
location: "us",
instance: "00000000-0000-0000-0000-000000000000",
dataAccessLabelId: "label-id",
udmQuery: "principal.hostname=\"google.com\"",
description: "label-description",
});
import pulumi
import pulumi_gcp as gcp
example = gcp.chronicle.DataAccessLabel("example",
location="us",
instance="00000000-0000-0000-0000-000000000000",
data_access_label_id="label-id",
udm_query="principal.hostname=\"google.com\"",
description="label-description")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/chronicle"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chronicle.NewDataAccessLabel(ctx, "example", &chronicle.DataAccessLabelArgs{
Location: pulumi.String("us"),
Instance: pulumi.String("00000000-0000-0000-0000-000000000000"),
DataAccessLabelId: pulumi.String("label-id"),
UdmQuery: pulumi.String("principal.hostname=\"google.com\""),
Description: pulumi.String("label-description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var example = new Gcp.Chronicle.DataAccessLabel("example", new()
{
Location = "us",
Instance = "00000000-0000-0000-0000-000000000000",
DataAccessLabelId = "label-id",
UdmQuery = "principal.hostname=\"google.com\"",
Description = "label-description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.chronicle.DataAccessLabel;
import com.pulumi.gcp.chronicle.DataAccessLabelArgs;
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 example = new DataAccessLabel("example", DataAccessLabelArgs.builder()
.location("us")
.instance("00000000-0000-0000-0000-000000000000")
.dataAccessLabelId("label-id")
.udmQuery("principal.hostname=\"google.com\"")
.description("label-description")
.build());
}
}
resources:
example:
type: gcp:chronicle:DataAccessLabel
properties:
location: us
instance: 00000000-0000-0000-0000-000000000000
dataAccessLabelId: label-id
udmQuery: principal.hostname="google.com"
description: label-description
Create DataAccessLabel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataAccessLabel(name: string, args: DataAccessLabelArgs, opts?: CustomResourceOptions);
@overload
def DataAccessLabel(resource_name: str,
args: DataAccessLabelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataAccessLabel(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_access_label_id: Optional[str] = None,
instance: Optional[str] = None,
location: Optional[str] = None,
udm_query: Optional[str] = None,
description: Optional[str] = None,
project: Optional[str] = None)
func NewDataAccessLabel(ctx *Context, name string, args DataAccessLabelArgs, opts ...ResourceOption) (*DataAccessLabel, error)
public DataAccessLabel(string name, DataAccessLabelArgs args, CustomResourceOptions? opts = null)
public DataAccessLabel(String name, DataAccessLabelArgs args)
public DataAccessLabel(String name, DataAccessLabelArgs args, CustomResourceOptions options)
type: gcp:chronicle:DataAccessLabel
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 DataAccessLabelArgs
- 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 DataAccessLabelArgs
- 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 DataAccessLabelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataAccessLabelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataAccessLabelArgs
- 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 dataAccessLabelResource = new Gcp.Chronicle.DataAccessLabel("dataAccessLabelResource", new()
{
DataAccessLabelId = "string",
Instance = "string",
Location = "string",
UdmQuery = "string",
Description = "string",
Project = "string",
});
example, err := chronicle.NewDataAccessLabel(ctx, "dataAccessLabelResource", &chronicle.DataAccessLabelArgs{
DataAccessLabelId: pulumi.String("string"),
Instance: pulumi.String("string"),
Location: pulumi.String("string"),
UdmQuery: pulumi.String("string"),
Description: pulumi.String("string"),
Project: pulumi.String("string"),
})
var dataAccessLabelResource = new DataAccessLabel("dataAccessLabelResource", DataAccessLabelArgs.builder()
.dataAccessLabelId("string")
.instance("string")
.location("string")
.udmQuery("string")
.description("string")
.project("string")
.build());
data_access_label_resource = gcp.chronicle.DataAccessLabel("dataAccessLabelResource",
data_access_label_id="string",
instance="string",
location="string",
udm_query="string",
description="string",
project="string")
const dataAccessLabelResource = new gcp.chronicle.DataAccessLabel("dataAccessLabelResource", {
dataAccessLabelId: "string",
instance: "string",
location: "string",
udmQuery: "string",
description: "string",
project: "string",
});
type: gcp:chronicle:DataAccessLabel
properties:
dataAccessLabelId: string
description: string
instance: string
location: string
project: string
udmQuery: string
DataAccessLabel 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 DataAccessLabel resource accepts the following input properties:
- Data
Access stringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- Instance string
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- Location string
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- Udm
Query string - A UDM query over event data.
- Description string
- Optional. A description of the data access label for a human reader.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Data
Access stringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- Instance string
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- Location string
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- Udm
Query string - A UDM query over event data.
- Description string
- Optional. A description of the data access label for a human reader.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- data
Access StringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- instance String
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- location String
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- udm
Query String - A UDM query over event data.
- description String
- Optional. A description of the data access label for a human reader.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- data
Access stringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- instance string
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- location string
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- udm
Query string - A UDM query over event data.
- description string
- Optional. A description of the data access label for a human reader.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- data_
access_ strlabel_ id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- instance str
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- location str
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- udm_
query str - A UDM query over event data.
- description str
- Optional. A description of the data access label for a human reader.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- data
Access StringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- instance String
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- location String
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- udm
Query String - A UDM query over event data.
- description String
- Optional. A description of the data access label for a human reader.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataAccessLabel resource produces the following output properties:
- string
- Output only. The user who created the data access label.
- Create
Time string - Output only. The time at which the data access label was created.
- Display
Name string - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Editor string - Output only. The user who last updated the data access label.
- Name string
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- Update
Time string - Output only. The time at which the data access label was last updated.
- string
- Output only. The user who created the data access label.
- Create
Time string - Output only. The time at which the data access label was created.
- Display
Name string - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Editor string - Output only. The user who last updated the data access label.
- Name string
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- Update
Time string - Output only. The time at which the data access label was last updated.
- String
- Output only. The user who created the data access label.
- create
Time String - Output only. The time at which the data access label was created.
- display
Name String - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Editor String - Output only. The user who last updated the data access label.
- name String
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- update
Time String - Output only. The time at which the data access label was last updated.
- string
- Output only. The user who created the data access label.
- create
Time string - Output only. The time at which the data access label was created.
- display
Name string - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Editor string - Output only. The user who last updated the data access label.
- name string
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- update
Time string - Output only. The time at which the data access label was last updated.
- str
- Output only. The user who created the data access label.
- create_
time str - Output only. The time at which the data access label was created.
- display_
name str - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
editor str - Output only. The user who last updated the data access label.
- name str
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- update_
time str - Output only. The time at which the data access label was last updated.
- String
- Output only. The user who created the data access label.
- create
Time String - Output only. The time at which the data access label was created.
- display
Name String - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Editor String - Output only. The user who last updated the data access label.
- name String
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- update
Time String - Output only. The time at which the data access label was last updated.
Look up Existing DataAccessLabel Resource
Get an existing DataAccessLabel 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?: DataAccessLabelState, opts?: CustomResourceOptions): DataAccessLabel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
author: Optional[str] = None,
create_time: Optional[str] = None,
data_access_label_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
instance: Optional[str] = None,
last_editor: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
udm_query: Optional[str] = None,
update_time: Optional[str] = None) -> DataAccessLabel
func GetDataAccessLabel(ctx *Context, name string, id IDInput, state *DataAccessLabelState, opts ...ResourceOption) (*DataAccessLabel, error)
public static DataAccessLabel Get(string name, Input<string> id, DataAccessLabelState? state, CustomResourceOptions? opts = null)
public static DataAccessLabel get(String name, Output<String> id, DataAccessLabelState state, CustomResourceOptions options)
resources: _: type: gcp:chronicle:DataAccessLabel get: id: ${id}
- 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.
- string
- Output only. The user who created the data access label.
- Create
Time string - Output only. The time at which the data access label was created.
- Data
Access stringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- Description string
- Optional. A description of the data access label for a human reader.
- Display
Name string - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- Instance string
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- Last
Editor string - Output only. The user who last updated the data access label.
- Location string
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- Name string
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Udm
Query string - A UDM query over event data.
- Update
Time string - Output only. The time at which the data access label was last updated.
- string
- Output only. The user who created the data access label.
- Create
Time string - Output only. The time at which the data access label was created.
- Data
Access stringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- Description string
- Optional. A description of the data access label for a human reader.
- Display
Name string - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- Instance string
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- Last
Editor string - Output only. The user who last updated the data access label.
- Location string
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- Name string
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Udm
Query string - A UDM query over event data.
- Update
Time string - Output only. The time at which the data access label was last updated.
- String
- Output only. The user who created the data access label.
- create
Time String - Output only. The time at which the data access label was created.
- data
Access StringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- description String
- Optional. A description of the data access label for a human reader.
- display
Name String - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- instance String
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- last
Editor String - Output only. The user who last updated the data access label.
- location String
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- name String
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- udm
Query String - A UDM query over event data.
- update
Time String - Output only. The time at which the data access label was last updated.
- string
- Output only. The user who created the data access label.
- create
Time string - Output only. The time at which the data access label was created.
- data
Access stringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- description string
- Optional. A description of the data access label for a human reader.
- display
Name string - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- instance string
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- last
Editor string - Output only. The user who last updated the data access label.
- location string
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- name string
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- udm
Query string - A UDM query over event data.
- update
Time string - Output only. The time at which the data access label was last updated.
- str
- Output only. The user who created the data access label.
- create_
time str - Output only. The time at which the data access label was created.
- data_
access_ strlabel_ id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- description str
- Optional. A description of the data access label for a human reader.
- display_
name str - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- instance str
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- last_
editor str - Output only. The user who last updated the data access label.
- location str
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- name str
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- udm_
query str - A UDM query over event data.
- update_
time str - Output only. The time at which the data access label was last updated.
- String
- Output only. The user who created the data access label.
- create
Time String - Output only. The time at which the data access label was created.
- data
Access StringLabel Id - Required. The ID to use for the data access label, which will become the label's
display name and the final component of the label's resource name. The
maximum number of characters should be 63. Regex pattern is as per AIP:
https://google.aip.dev/122#resource-id-segments
- description String
- Optional. A description of the data access label for a human reader.
- display
Name String - Output only. The short name displayed for the label as it appears on event data. This is same as data access label id.
- instance String
- The unique identifier for the Chronicle instance, which is the same as the customer ID.
- last
Editor String - Output only. The user who last updated the data access label.
- location String
- The location of the resource. This is the geographical region where the Chronicle instance resides, such as "us" or "europe-west2".
- name String
- The unique resource name of the data access label. This unique identifier is generated using values provided for the URL parameters. Format: projects/{project}/locations/{location}/instances/{instance}/dataAccessLabels/{data_access_label_id}
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- udm
Query String - A UDM query over event data.
- update
Time String - Output only. The time at which the data access label was last updated.
Import
DataAccessLabel can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataAccessLabels/{{data_access_label_id}}
{{project}}/{{location}}/{{instance}}/{{data_access_label_id}}
{{location}}/{{instance}}/{{data_access_label_id}}
When using the pulumi import
command, DataAccessLabel can be imported using one of the formats above. For example:
$ pulumi import gcp:chronicle/dataAccessLabel:DataAccessLabel default projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataAccessLabels/{{data_access_label_id}}
$ pulumi import gcp:chronicle/dataAccessLabel:DataAccessLabel default {{project}}/{{location}}/{{instance}}/{{data_access_label_id}}
$ pulumi import gcp:chronicle/dataAccessLabel:DataAccessLabel default {{location}}/{{instance}}/{{data_access_label_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.