import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Create and manage Experiment Center segments (EA only). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Each rule sets at least one of `match` or `not_match`. Each attribute block * // sets exactly one operator: `one_of`, `contains`, `starts_with`, `ends_with` * // or `exists`. Each `match` or `not_match` block sets between 1 and 10 * // attributes, and each `anonymous_session_metadata` block counts as one. * const campaignTraffic = new auth0.ExperimentSegment("campaign_traffic", { * rules: [ * { * match: { * country: { * oneOfs: [ * "US", * "CA", * ], * }, * domain: { * startsWiths: ["www"], * }, * deviceType: { * contains: ["mobile"], * }, * clientId: { * exists: "true", * }, * anonymousSessionMetadatas: [ * { * key: "plan", * oneOfs: ["gold"], * }, * { * key: "utm_source", * contains: ["email"], * }, * ], * }, * notMatch: { * region: { * endsWiths: ["-west"], * }, * browser: { * endsWiths: ["bot"], * }, * anonymousSessionMetadatas: [{ * key: "internal", * exists: "true", * }], * }, * }, * { * match: { * organizationId: { * exists: "true", * }, * }, * }, * ], * name: "email-campaign-traffic", * description: "Gold-plan visitors from an email campaign, excluding internal traffic.", * }); * ``` * * ## Import * * This resource can be imported using the segment ID. * Example: * * ```sh * $ pulumi import auth0:index/experimentSegment:ExperimentSegment campaign_traffic "seg_XXXXXXXXXXXXXXX" * ``` */ export declare class ExperimentSegment extends pulumi.CustomResource { /** * Get an existing ExperimentSegment 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, state?: ExperimentSegmentState, opts?: pulumi.CustomResourceOptions): ExperimentSegment; /** * Check whether an existing ExperimentSegment resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: ExperimentSegmentState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of ExperimentSegment. 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 ExperimentSegment; /** * The ISO 8601 formatted date the segment was created. */ readonly createdAt: pulumi.Output; /** * Description of the segment. Between 3 and 1024 characters when present. */ readonly description: pulumi.Output; /** * The name of the segment. Unique per tenant. Between 3 and 255 characters */ readonly name: pulumi.Output; /** * The rules of the segment. Between 1 and 20 rules. */ readonly rules: pulumi.Output; /** * The lifecycle status of the segment. One of "active, archived". A non-`active` status on creation is applied internally after the segment is created as `active`. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. Archiving is terminal: an archived segment cannot return to `active`, and its `name`, `description` and `rules` can no longer change. An archived segment can still be deleted and keeps its name reserved until then. */ readonly status: pulumi.Output; /** * The type of the segment. */ readonly type: pulumi.Output; /** * The ISO 8601 formatted date the segment was updated. */ readonly updatedAt: pulumi.Output; /** * Create a ExperimentSegment 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: ExperimentSegmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ExperimentSegment resources. */ export interface ExperimentSegmentState { /** * The ISO 8601 formatted date the segment was created. */ createdAt?: pulumi.Input; /** * Description of the segment. Between 3 and 1024 characters when present. */ description?: pulumi.Input; /** * The name of the segment. Unique per tenant. Between 3 and 255 characters */ name?: pulumi.Input; /** * The rules of the segment. Between 1 and 20 rules. */ rules?: pulumi.Input[] | undefined>; /** * The lifecycle status of the segment. One of "active, archived". A non-`active` status on creation is applied internally after the segment is created as `active`. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. Archiving is terminal: an archived segment cannot return to `active`, and its `name`, `description` and `rules` can no longer change. An archived segment can still be deleted and keeps its name reserved until then. */ status?: pulumi.Input; /** * The type of the segment. */ type?: pulumi.Input; /** * The ISO 8601 formatted date the segment was updated. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a ExperimentSegment resource. */ export interface ExperimentSegmentArgs { /** * Description of the segment. Between 3 and 1024 characters when present. */ description?: pulumi.Input; /** * The name of the segment. Unique per tenant. Between 3 and 255 characters */ name?: pulumi.Input; /** * The rules of the segment. Between 1 and 20 rules. */ rules: pulumi.Input[]>; /** * The lifecycle status of the segment. One of "active, archived". A non-`active` status on creation is applied internally after the segment is created as `active`. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. Archiving is terminal: an archived segment cannot return to `active`, and its `name`, `description` and `rules` can no longer change. An archived segment can still be deleted and keeps its name reserved until then. */ status?: pulumi.Input; } //# sourceMappingURL=experimentSegment.d.ts.map