1. Packages
  2. Honeycombio Provider
  3. API Docs
  4. Query
honeycombio 0.32.0 published on Monday, Apr 7, 2025 by honeycombio

honeycombio.Query

Explore with Pulumi AI

# Resource: honeycombio.Query

Creates a Query scoped to a Dataset or Environment.

Queries can be used by Triggers and Boards, or be executed via the Query Data API.

Queries are immutable and can not be deleted – only created or read. Any changes will result in a new query object being created.

Create Query Resource

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

Constructor syntax

new Query(name: string, args: QueryArgs, opts?: CustomResourceOptions);
@overload
def Query(resource_name: str,
          args: QueryArgs,
          opts: Optional[ResourceOptions] = None)

@overload
def Query(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          query_json: Optional[str] = None,
          dataset: Optional[str] = None)
func NewQuery(ctx *Context, name string, args QueryArgs, opts ...ResourceOption) (*Query, error)
public Query(string name, QueryArgs args, CustomResourceOptions? opts = null)
public Query(String name, QueryArgs args)
public Query(String name, QueryArgs args, CustomResourceOptions options)
type: honeycombio:Query
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. QueryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. QueryArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. QueryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. QueryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. QueryArgs
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 queryResource = new Honeycombio.Query("queryResource", new()
{
    QueryJson = "string",
    Dataset = "string",
});
Copy
example, err := honeycombio.NewQuery(ctx, "queryResource", &honeycombio.QueryArgs{
QueryJson: pulumi.String("string"),
Dataset: pulumi.String("string"),
})
Copy
var queryResource = new Query("queryResource", QueryArgs.builder()
    .queryJson("string")
    .dataset("string")
    .build());
Copy
query_resource = honeycombio.Query("queryResource",
    query_json="string",
    dataset="string")
Copy
const queryResource = new honeycombio.Query("queryResource", {
    queryJson: "string",
    dataset: "string",
});
Copy
type: honeycombio:Query
properties:
    dataset: string
    queryJson: string
Copy

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

QueryJson This property is required. string
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
Dataset string
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
QueryJson This property is required. string
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
Dataset string
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
queryJson This property is required. String
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset String
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
queryJson This property is required. string
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset string
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
query_json This property is required. str
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset str
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
queryJson This property is required. String
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset String
The dataset this query is scoped to. If not set, an Environment-wide query will be created.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Query Resource

Get an existing Query 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?: QueryState, opts?: CustomResourceOptions): Query
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dataset: Optional[str] = None,
        query_json: Optional[str] = None) -> Query
func GetQuery(ctx *Context, name string, id IDInput, state *QueryState, opts ...ResourceOption) (*Query, error)
public static Query Get(string name, Input<string> id, QueryState? state, CustomResourceOptions? opts = null)
public static Query get(String name, Output<String> id, QueryState state, CustomResourceOptions options)
resources:  _:    type: honeycombio:Query    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Dataset string
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
QueryJson string
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
Dataset string
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
QueryJson string
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset String
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
queryJson String
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset string
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
queryJson string
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset str
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
query_json str
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.
dataset String
The dataset this query is scoped to. If not set, an Environment-wide query will be created.
queryJson String
A JSON object describing the query according to the Query Specification. While the JSON can be constructed manually, using the honeycombio.getQuerySpecification data source provides deeper validation.

Import

Querys can be imported using a combination of the dataset name and their ID, e.g.

$ pulumi import honeycombio:index/query:Query my_query my-dataset/bj8BwOa1uRz
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
honeycombio honeycombio/terraform-provider-honeycombio
License
Notes
This Pulumi package is based on the honeycombio Terraform Provider.