statsig.EntityProperty
Explore with Pulumi AI
This resource allows you to configure entity properties for your Statsig project.
To learn more about entity properties, see Entity Properties Documentation
To learn more about the API powering this resource, see Experiments API Documentation
Note: This resource is only available for Warehouse Native projects
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example:
type: statsig:EntityProperty
properties:
description: A short description of this entity property.
idTypeMappings:
- column: user_id
statsig_unit_id: userID
isReadOnly: false
sql: SELECT * FROM `shoppy-sales.kenny_dev.users`
tags:
- test-tag
timestampColumn: ts
Create EntityProperty Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EntityProperty(name: string, args: EntityPropertyArgs, opts?: CustomResourceOptions);
@overload
def EntityProperty(resource_name: str,
args: EntityPropertyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EntityProperty(resource_name: str,
opts: Optional[ResourceOptions] = None,
id_type_mappings: Optional[Sequence[EntityPropertyIdTypeMappingArgs]] = None,
sql: Optional[str] = None,
description: Optional[str] = None,
is_read_only: Optional[bool] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timestamp_as_day: Optional[bool] = None,
timestamp_column: Optional[str] = None)
func NewEntityProperty(ctx *Context, name string, args EntityPropertyArgs, opts ...ResourceOption) (*EntityProperty, error)
public EntityProperty(string name, EntityPropertyArgs args, CustomResourceOptions? opts = null)
public EntityProperty(String name, EntityPropertyArgs args)
public EntityProperty(String name, EntityPropertyArgs args, CustomResourceOptions options)
type: statsig:EntityProperty
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 EntityPropertyArgs
- 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 EntityPropertyArgs
- 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 EntityPropertyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EntityPropertyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EntityPropertyArgs
- 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 entityPropertyResource = new Pulumi.EntityProperty("entityPropertyResource", new()
{
IdTypeMappings = new[]
{
new Pulumi.Inputs.EntityPropertyIdTypeMappingArgs
{
Column = "string",
StatsigUnitId = "string",
},
},
Sql = "string",
Description = "string",
IsReadOnly = false,
Name = "string",
Tags = new[]
{
"string",
},
TimestampAsDay = false,
TimestampColumn = "string",
});
example, err := statsig.NewEntityProperty(ctx, "entityPropertyResource", &statsig.EntityPropertyArgs{
IdTypeMappings: statsig.EntityPropertyIdTypeMappingArray{
&statsig.EntityPropertyIdTypeMappingArgs{
Column: pulumi.String("string"),
StatsigUnitId: pulumi.String("string"),
},
},
Sql: pulumi.String("string"),
Description: pulumi.String("string"),
IsReadOnly: pulumi.Bool(false),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TimestampAsDay: pulumi.Bool(false),
TimestampColumn: pulumi.String("string"),
})
var entityPropertyResource = new EntityProperty("entityPropertyResource", EntityPropertyArgs.builder()
.idTypeMappings(EntityPropertyIdTypeMappingArgs.builder()
.column("string")
.statsigUnitId("string")
.build())
.sql("string")
.description("string")
.isReadOnly(false)
.name("string")
.tags("string")
.timestampAsDay(false)
.timestampColumn("string")
.build());
entity_property_resource = statsig.EntityProperty("entityPropertyResource",
id_type_mappings=[{
"column": "string",
"statsig_unit_id": "string",
}],
sql="string",
description="string",
is_read_only=False,
name="string",
tags=["string"],
timestamp_as_day=False,
timestamp_column="string")
const entityPropertyResource = new statsig.EntityProperty("entityPropertyResource", {
idTypeMappings: [{
column: "string",
statsigUnitId: "string",
}],
sql: "string",
description: "string",
isReadOnly: false,
name: "string",
tags: ["string"],
timestampAsDay: false,
timestampColumn: "string",
});
type: statsig:EntityProperty
properties:
description: string
idTypeMappings:
- column: string
statsigUnitId: string
isReadOnly: false
name: string
sql: string
tags:
- string
timestampAsDay: false
timestampColumn: string
EntityProperty 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 EntityProperty resource accepts the following input properties:
- Id
Type List<Statsig.Mappings Pulumi. Inputs. Entity Property Id Type Mapping> - Mappings of Statsig units to their columns.
- Sql string
- SQL query defining the data source.
- Description string
- Optional detailed context for the entity property source.
- Is
Read boolOnly - Specifies if the source can only be edited via the Console API.
- Name string
- Unique identifier for the entity property source.
- List<string>
- Optional tags for categorization.
- Timestamp
As boolDay - Indicates if the timestamp is treated as a day.
- Timestamp
Column string - Optional column name for timestamp.
- Id
Type []EntityMappings Property Id Type Mapping Args - Mappings of Statsig units to their columns.
- Sql string
- SQL query defining the data source.
- Description string
- Optional detailed context for the entity property source.
- Is
Read boolOnly - Specifies if the source can only be edited via the Console API.
- Name string
- Unique identifier for the entity property source.
- []string
- Optional tags for categorization.
- Timestamp
As boolDay - Indicates if the timestamp is treated as a day.
- Timestamp
Column string - Optional column name for timestamp.
- id
Type List<EntityMappings Property Id Type Mapping> - Mappings of Statsig units to their columns.
- sql String
- SQL query defining the data source.
- description String
- Optional detailed context for the entity property source.
- is
Read BooleanOnly - Specifies if the source can only be edited via the Console API.
- name String
- Unique identifier for the entity property source.
- List<String>
- Optional tags for categorization.
- timestamp
As BooleanDay - Indicates if the timestamp is treated as a day.
- timestamp
Column String - Optional column name for timestamp.
- id
Type EntityMappings Property Id Type Mapping[] - Mappings of Statsig units to their columns.
- sql string
- SQL query defining the data source.
- description string
- Optional detailed context for the entity property source.
- is
Read booleanOnly - Specifies if the source can only be edited via the Console API.
- name string
- Unique identifier for the entity property source.
- string[]
- Optional tags for categorization.
- timestamp
As booleanDay - Indicates if the timestamp is treated as a day.
- timestamp
Column string - Optional column name for timestamp.
- id_
type_ Sequence[Entitymappings Property Id Type Mapping Args] - Mappings of Statsig units to their columns.
- sql str
- SQL query defining the data source.
- description str
- Optional detailed context for the entity property source.
- is_
read_ boolonly - Specifies if the source can only be edited via the Console API.
- name str
- Unique identifier for the entity property source.
- Sequence[str]
- Optional tags for categorization.
- timestamp_
as_ boolday - Indicates if the timestamp is treated as a day.
- timestamp_
column str - Optional column name for timestamp.
- id
Type List<Property Map>Mappings - Mappings of Statsig units to their columns.
- sql String
- SQL query defining the data source.
- description String
- Optional detailed context for the entity property source.
- is
Read BooleanOnly - Specifies if the source can only be edited via the Console API.
- name String
- Unique identifier for the entity property source.
- List<String>
- Optional tags for categorization.
- timestamp
As BooleanDay - Indicates if the timestamp is treated as a day.
- timestamp
Column String - Optional column name for timestamp.
Outputs
All input properties are implicitly available as output properties. Additionally, the EntityProperty resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Statsig.
Pulumi. Outputs. Entity Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Entity
Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Entity
Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Entity
Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- id str
- The provider-assigned unique ID for this managed resource.
- owner
Entity
Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- id String
- The provider-assigned unique ID for this managed resource.
- owner Property Map
- Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Look up Existing EntityProperty Resource
Get an existing EntityProperty 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?: EntityPropertyState, opts?: CustomResourceOptions): EntityProperty
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
id_type_mappings: Optional[Sequence[EntityPropertyIdTypeMappingArgs]] = None,
is_read_only: Optional[bool] = None,
name: Optional[str] = None,
owner: Optional[EntityPropertyOwnerArgs] = None,
sql: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
timestamp_as_day: Optional[bool] = None,
timestamp_column: Optional[str] = None) -> EntityProperty
func GetEntityProperty(ctx *Context, name string, id IDInput, state *EntityPropertyState, opts ...ResourceOption) (*EntityProperty, error)
public static EntityProperty Get(string name, Input<string> id, EntityPropertyState? state, CustomResourceOptions? opts = null)
public static EntityProperty get(String name, Output<String> id, EntityPropertyState state, CustomResourceOptions options)
resources: _: type: statsig:EntityProperty 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.
- Description string
- Optional detailed context for the entity property source.
- Id
Type List<Statsig.Mappings Pulumi. Inputs. Entity Property Id Type Mapping> - Mappings of Statsig units to their columns.
- Is
Read boolOnly - Specifies if the source can only be edited via the Console API.
- Name string
- Unique identifier for the entity property source.
- Owner
Statsig.
Pulumi. Inputs. Entity Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- Sql string
- SQL query defining the data source.
- List<string>
- Optional tags for categorization.
- Timestamp
As boolDay - Indicates if the timestamp is treated as a day.
- Timestamp
Column string - Optional column name for timestamp.
- Description string
- Optional detailed context for the entity property source.
- Id
Type []EntityMappings Property Id Type Mapping Args - Mappings of Statsig units to their columns.
- Is
Read boolOnly - Specifies if the source can only be edited via the Console API.
- Name string
- Unique identifier for the entity property source.
- Owner
Entity
Property Owner Args - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- Sql string
- SQL query defining the data source.
- []string
- Optional tags for categorization.
- Timestamp
As boolDay - Indicates if the timestamp is treated as a day.
- Timestamp
Column string - Optional column name for timestamp.
- description String
- Optional detailed context for the entity property source.
- id
Type List<EntityMappings Property Id Type Mapping> - Mappings of Statsig units to their columns.
- is
Read BooleanOnly - Specifies if the source can only be edited via the Console API.
- name String
- Unique identifier for the entity property source.
- owner
Entity
Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- sql String
- SQL query defining the data source.
- List<String>
- Optional tags for categorization.
- timestamp
As BooleanDay - Indicates if the timestamp is treated as a day.
- timestamp
Column String - Optional column name for timestamp.
- description string
- Optional detailed context for the entity property source.
- id
Type EntityMappings Property Id Type Mapping[] - Mappings of Statsig units to their columns.
- is
Read booleanOnly - Specifies if the source can only be edited via the Console API.
- name string
- Unique identifier for the entity property source.
- owner
Entity
Property Owner - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- sql string
- SQL query defining the data source.
- string[]
- Optional tags for categorization.
- timestamp
As booleanDay - Indicates if the timestamp is treated as a day.
- timestamp
Column string - Optional column name for timestamp.
- description str
- Optional detailed context for the entity property source.
- id_
type_ Sequence[Entitymappings Property Id Type Mapping Args] - Mappings of Statsig units to their columns.
- is_
read_ boolonly - Specifies if the source can only be edited via the Console API.
- name str
- Unique identifier for the entity property source.
- owner
Entity
Property Owner Args - Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- sql str
- SQL query defining the data source.
- Sequence[str]
- Optional tags for categorization.
- timestamp_
as_ boolday - Indicates if the timestamp is treated as a day.
- timestamp_
column str - Optional column name for timestamp.
- description String
- Optional detailed context for the entity property source.
- id
Type List<Property Map>Mappings - Mappings of Statsig units to their columns.
- is
Read BooleanOnly - Specifies if the source can only be edited via the Console API.
- name String
- Unique identifier for the entity property source.
- owner Property Map
- Schema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
- sql String
- SQL query defining the data source.
- List<String>
- Optional tags for categorization.
- timestamp
As BooleanDay - Indicates if the timestamp is treated as a day.
- timestamp
Column String - Optional column name for timestamp.
Supporting Types
EntityPropertyIdTypeMapping, EntityPropertyIdTypeMappingArgs
- Column string
- Column name linked to the ID.
- Statsig
Unit stringId - ID for the Statsig unit.
- Column string
- Column name linked to the ID.
- Statsig
Unit stringId - ID for the Statsig unit.
- column String
- Column name linked to the ID.
- statsig
Unit StringId - ID for the Statsig unit.
- column string
- Column name linked to the ID.
- statsig
Unit stringId - ID for the Statsig unit.
- column str
- Column name linked to the ID.
- statsig_
unit_ strid - ID for the Statsig unit.
- column String
- Column name linked to the ID.
- statsig
Unit StringId - ID for the Statsig unit.
EntityPropertyOwner, EntityPropertyOwnerArgs
- Owner
Email string - The email of the owner. This field is optional.
- Owner
Id string - ID of the owner
- Owner
Name string - The name of the owner. This field is optional.
- Owner
Type string - Type of the owner (e.g., SDK_KEY or USER)
- Owner
Email string - The email of the owner. This field is optional.
- Owner
Id string - ID of the owner
- Owner
Name string - The name of the owner. This field is optional.
- Owner
Type string - Type of the owner (e.g., SDK_KEY or USER)
- owner
Email String - The email of the owner. This field is optional.
- owner
Id String - ID of the owner
- owner
Name String - The name of the owner. This field is optional.
- owner
Type String - Type of the owner (e.g., SDK_KEY or USER)
- owner
Email string - The email of the owner. This field is optional.
- owner
Id string - ID of the owner
- owner
Name string - The name of the owner. This field is optional.
- owner
Type string - Type of the owner (e.g., SDK_KEY or USER)
- owner_
email str - The email of the owner. This field is optional.
- owner_
id str - ID of the owner
- owner_
name str - The name of the owner. This field is optional.
- owner_
type str - Type of the owner (e.g., SDK_KEY or USER)
- owner
Email String - The email of the owner. This field is optional.
- owner
Id String - ID of the owner
- owner
Name String - The name of the owner. This field is optional.
- owner
Type String - Type of the owner (e.g., SDK_KEY or USER)
Package Details
- Repository
- statsig statsig-io/pulumi-statsig
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
statsig
Terraform Provider.