UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

246 lines • 9.48 kB
import * as pulumi from "@pulumi/pulumi"; /** * Represents a single row in a data table. * * To get more information about DataTableRow, see: * * * [API documentation](https://cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.dataTables.dataTableRows) * * How-to Guides * * [Google SecOps Guides](https://cloud.google.com/chronicle/docs/secops/secops-overview) * * ## Example Usage * * ### Chronicle Data Table Row Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const exampleDt = new gcp.chronicle.DataTable("example_dt", { * location: "us", * instance: "00000000-0000-0000-0000-000000000000", * dataTableId: "terraform_test", * description: "Sample DataTable for DataTableRow test", * columnInfos: [ * { * columnIndex: 0, * originalColumn: "username", * columnType: "STRING", * }, * { * columnIndex: 1, * originalColumn: "ip_address", * columnType: "CIDR", * }, * ], * }); * const exampleRow = new gcp.chronicle.DataTableRow("example_row", { * location: "us", * instance: "00000000-0000-0000-0000-000000000000", * dataTableId: exampleDt.dataTableId, * values: [ * "testuser", * "192.168.1.1/32", * ], * rowTimeToLive: "48h", * }); * export const dataTableRowName = exampleRow.name; * export const dataTableRowIdPart = exampleRow.dataTableRow; * export const dataTableRowValues = exampleRow.values; * export const dataTableRowTtl = exampleRow.rowTimeToLive; * export const dataTableRowCreateTime = exampleRow.createTime; * ``` * * ## Import * * DataTableRow can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataTables/{{data_table_id}}/dataTableRows/{{data_table_row}}` * * `{{project}}/{{location}}/{{instance}}/{{data_table_id}}/{{data_table_row}}` * * `{{location}}/{{instance}}/{{data_table_id}}/{{data_table_row}}` * * When using the `pulumi import` command, DataTableRow can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:chronicle/dataTableRow:DataTableRow default projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataTables/{{data_table_id}}/dataTableRows/{{data_table_row}} * $ pulumi import gcp:chronicle/dataTableRow:DataTableRow default {{project}}/{{location}}/{{instance}}/{{data_table_id}}/{{data_table_row}} * $ pulumi import gcp:chronicle/dataTableRow:DataTableRow default {{location}}/{{instance}}/{{data_table_id}}/{{data_table_row}} * ``` */ export declare class DataTableRow extends pulumi.CustomResource { /** * Get an existing DataTableRow resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DataTableRowState, opts?: pulumi.CustomResourceOptions): DataTableRow; /** * Returns true if the given object is an instance of DataTableRow. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DataTableRow; /** * DataTableRow create time */ readonly createTime: pulumi.Output<string>; /** * The ID of the parent DataTable. */ readonly dataTableId: pulumi.Output<string>; /** * The ID of the DataTable Row. */ readonly dataTableRow: pulumi.Output<string>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ readonly deletionPolicy: pulumi.Output<string>; /** * The Chronicle instance ID. */ readonly instance: pulumi.Output<string>; /** * The GCP location of the Chronicle instance. */ readonly location: pulumi.Output<string>; /** * Identifier. The resource name of the data table row. * Format: * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table_id}/dataTableRows/{data_table_row} */ readonly name: pulumi.Output<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output<string>; /** * User-provided TTL of the data table row. */ readonly rowTimeToLive: pulumi.Output<string | undefined>; /** * DataTableRow update time */ readonly updateTime: pulumi.Output<string>; /** * All column values for a single row. The values should be in the same order * as the columns of the data tables. */ readonly values: pulumi.Output<string[]>; /** * Create a DataTableRow resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DataTableRowArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DataTableRow resources. */ export interface DataTableRowState { /** * DataTableRow create time */ createTime?: pulumi.Input<string | undefined>; /** * The ID of the parent DataTable. */ dataTableId?: pulumi.Input<string | undefined>; /** * The ID of the DataTable Row. */ dataTableRow?: pulumi.Input<string | undefined>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * The Chronicle instance ID. */ instance?: pulumi.Input<string | undefined>; /** * The GCP location of the Chronicle instance. */ location?: pulumi.Input<string | undefined>; /** * Identifier. The resource name of the data table row. * Format: * projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table_id}/dataTableRows/{data_table_row} */ name?: pulumi.Input<string | undefined>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * User-provided TTL of the data table row. */ rowTimeToLive?: pulumi.Input<string | undefined>; /** * DataTableRow update time */ updateTime?: pulumi.Input<string | undefined>; /** * All column values for a single row. The values should be in the same order * as the columns of the data tables. */ values?: pulumi.Input<pulumi.Input<string>[] | undefined>; } /** * The set of arguments for constructing a DataTableRow resource. */ export interface DataTableRowArgs { /** * The ID of the parent DataTable. */ dataTableId: pulumi.Input<string>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * The Chronicle instance ID. */ instance: pulumi.Input<string>; /** * The GCP location of the Chronicle instance. */ location: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * User-provided TTL of the data table row. */ rowTimeToLive?: pulumi.Input<string | undefined>; /** * All column values for a single row. The values should be in the same order * as the columns of the data tables. */ values: pulumi.Input<pulumi.Input<string>[]>; } //# sourceMappingURL=dataTableRow.d.ts.map