Segment
Provides a CloudWatch Evidently Segment resource.
Example Usage
Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Segment;
import com.pulumi.aws.evidently.SegmentArgs;
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 Segment("example", SegmentArgs.builder()
.pattern("{\"Price\":[{\"numeric\":[\">\",10,\"<=\",20]}]}")
.tags(Map.of("Key1", "example Segment"))
.build());
}
}
Content copied to clipboard
With JSON object in pattern
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Segment;
import com.pulumi.aws.evidently.SegmentArgs;
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 Segment("example", SegmentArgs.builder()
.pattern("""
{
"Price": [
{
"numeric": [">",10,"<=",20]
}
]
}
""")
.tags(Map.of("Key1", "example Segment"))
.build());
}
}
Content copied to clipboard
With Description
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.evidently.Segment;
import com.pulumi.aws.evidently.SegmentArgs;
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 Segment("example", SegmentArgs.builder()
.description("example")
.pattern("{\"Price\":[{\"numeric\":[\">\",10,\"<=\",20]}]}")
.build());
}
}
Content copied to clipboard
Import
CloudWatch Evidently Segment can be imported using the arn
, e.g.,
$ pulumi import aws:evidently/segment:Segment example arn:aws:evidently:us-west-2:123456789012:segment/example
Content copied to clipboard
Properties
Link copied to clipboard
The date and time that the segment is created.
Link copied to clipboard
Specifies the description of the segment.
Link copied to clipboard
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
Link copied to clipboard
The date and time that this segment was most recently updated.
Link copied to clipboard
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
Link copied to clipboard
The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard