Package com.pulumi.aws.evidently
Class Project
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.evidently.Project
-
public class Project extends com.pulumi.resources.CustomResourceProvides a CloudWatch Evidently Project resource. > **Warning:** This resource is deprecated. Use [AWS AppConfig feature flags](https://aws.amazon.com/blogs/mt/using-aws-appconfig-feature-flags/) instead. ## Example Usage ### Basic
### Store evaluation events in a CloudWatch Log Grouppackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.evidently.Project; import com.pulumi.aws.evidently.ProjectArgs; import java.util.ArrayList; import java.util.Arrays; 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 Project("example", ProjectArgs.builder() .name("Example") .description("Example Description") .tags(Map.of("Key1", "example Project")) .build()); } }
### Store evaluation events in an S3 bucketpackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.evidently.Project; import com.pulumi.aws.evidently.ProjectArgs; import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryArgs; import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryCloudwatchLogsArgs; import java.util.ArrayList; import java.util.Arrays; 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 Project("example", ProjectArgs.builder() .dataDelivery(ProjectDataDeliveryArgs.builder() .cloudwatchLogs(ProjectDataDeliveryCloudwatchLogsArgs.builder() .logGroup("example-log-group-name") .build()) .build()) .name("Example") .description("Example Description") .tags(Map.of("Key1", "example Project")) .build()); } }
## Import Using `pulumi import`, import CloudWatch Evidently Project using the `arn`. For example: ```sh $ pulumi import aws:evidently/project:Project example arn:aws:evidently:us-east-1:123456789012:segment/example ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.evidently.Project; import com.pulumi.aws.evidently.ProjectArgs; import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryArgs; import com.pulumi.aws.evidently.inputs.ProjectDataDeliveryS3DestinationArgs; import java.util.ArrayList; import java.util.Arrays; 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 Project("example", ProjectArgs.builder() .dataDelivery(ProjectDataDeliveryArgs.builder() .s3Destination(ProjectDataDeliveryS3DestinationArgs.builder() .bucket("example-bucket-name") .prefix("example") .build()) .build()) .name("Example") .description("Example Description") .tags(Map.of("Key1", "example Project")) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description Project(java.lang.String name)Project(java.lang.String name, ProjectArgs args)Project(java.lang.String name, ProjectArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Integer>activeExperimentCount()com.pulumi.core.Output<java.lang.Integer>activeLaunchCount()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>createdTime()com.pulumi.core.Output<java.util.Optional<ProjectDataDelivery>>dataDelivery()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()com.pulumi.core.Output<java.lang.Integer>experimentCount()com.pulumi.core.Output<java.lang.Integer>featureCount()static Projectget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ProjectState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>lastUpdatedTime()com.pulumi.core.Output<java.lang.Integer>launchCount()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>status()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
Constructor Detail
-
Project
public Project(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Project
public Project(java.lang.String name, @Nullable ProjectArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Project
public Project(java.lang.String name, @Nullable ProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
activeExperimentCount
public com.pulumi.core.Output<java.lang.Integer> activeExperimentCount()
- Returns:
- The number of ongoing experiments currently in the project.
-
activeLaunchCount
public com.pulumi.core.Output<java.lang.Integer> activeLaunchCount()
- Returns:
- The number of ongoing launches currently in the project.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The ARN of the project.
-
createdTime
public com.pulumi.core.Output<java.lang.String> createdTime()
- Returns:
- The date and time that the project is created.
-
dataDelivery
public com.pulumi.core.Output<java.util.Optional<ProjectDataDelivery>> dataDelivery()
- Returns:
- A block that contains information about where Evidently is to store evaluation events for longer term storage, if you choose to do so. If you choose not to store these events, Evidently deletes them after using them to produce metrics and other experiment results that you can view. See below.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Specifies the description of the project.
-
experimentCount
public com.pulumi.core.Output<java.lang.Integer> experimentCount()
- Returns:
- The number of experiments currently in the project. This includes all experiments that have been created and not deleted, whether they are ongoing or not.
-
featureCount
public com.pulumi.core.Output<java.lang.Integer> featureCount()
- Returns:
- The number of features currently in the project.
-
lastUpdatedTime
public com.pulumi.core.Output<java.lang.String> lastUpdatedTime()
- Returns:
- The date and time that the project was most recently updated.
-
launchCount
public com.pulumi.core.Output<java.lang.Integer> launchCount()
- Returns:
- The number of launches currently in the project. This includes all launches that have been created and not deleted, whether they are ongoing or not.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- A name for the project.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- The current state of the project. Valid values are `AVAILABLE` and `UPDATING`.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Tags to apply to the project. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static Project get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-