com.pulumi.aws.datazone.Project Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.datazone;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.datazone.ProjectArgs;
import com.pulumi.aws.datazone.inputs.ProjectState;
import com.pulumi.aws.datazone.outputs.ProjectFailureReason;
import com.pulumi.aws.datazone.outputs.ProjectTimeouts;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS DataZone Project.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* <!--End PulumiCodeChooser -->
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.datazone.Project;
* import com.pulumi.aws.datazone.ProjectArgs;
* 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 test = new Project("test", ProjectArgs.builder()
* .domainIdentifier(testAwsDatazoneDomain.id())
* .name("name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import DataZone Project using a colon-delimited string combining `domain_id` and `id`. For example:
*
* ```sh
* $ pulumi import aws:datazone/project:Project example domain-1234:project-1234
* ```
*
*/
@ResourceType(type="aws:datazone/project:Project")
public class Project extends com.pulumi.resources.CustomResource {
/**
* Timestamp of when the project was made.
*
*/
@Export(name="createdAt", refs={String.class}, tree="[0]")
private Output createdAt;
/**
* @return Timestamp of when the project was made.
*
*/
public Output createdAt() {
return this.createdAt;
}
/**
* Creator of the project.
*
*/
@Export(name="createdBy", refs={String.class}, tree="[0]")
private Output createdBy;
/**
* @return Creator of the project.
*
*/
public Output createdBy() {
return this.createdBy;
}
/**
* Description of project.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of project.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Identifier of domain which the project is part of. Must follow the regex of `^dzd[-_][a-zA-Z0-9_-]{1,36}$`.
*
*/
@Export(name="domainIdentifier", refs={String.class}, tree="[0]")
private Output domainIdentifier;
/**
* @return Identifier of domain which the project is part of. Must follow the regex of `^dzd[-_][a-zA-Z0-9_-]{1,36}$`.
*
*/
public Output domainIdentifier() {
return this.domainIdentifier;
}
/**
* List of error messages if operation cannot be completed.
*
*/
@Export(name="failureReasons", refs={List.class,ProjectFailureReason.class}, tree="[0,1]")
private Output> failureReasons;
/**
* @return List of error messages if operation cannot be completed.
*
*/
public Output> failureReasons() {
return this.failureReasons;
}
/**
* List of glossary terms that can be used in the project. The list cannot be empty or include over 20 values. Each value must follow the regex of `[a-zA-Z0-9_-]{1,36}$`.
*
*/
@Export(name="glossaryTerms", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> glossaryTerms;
/**
* @return List of glossary terms that can be used in the project. The list cannot be empty or include over 20 values. Each value must follow the regex of `[a-zA-Z0-9_-]{1,36}$`.
*
*/
public Output>> glossaryTerms() {
return Codegen.optional(this.glossaryTerms);
}
/**
* Timestamp of when the project was last updated.
*
*/
@Export(name="lastUpdatedAt", refs={String.class}, tree="[0]")
private Output lastUpdatedAt;
/**
* @return Timestamp of when the project was last updated.
*
*/
public Output lastUpdatedAt() {
return this.lastUpdatedAt;
}
/**
* Name of the project. Must follow the regex of `^[\w -]+$`. and have a length of at most 64.
*
* The following arguments are optional:
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the project. Must follow the regex of `^[\w -]+$`. and have a length of at most 64.
*
* The following arguments are optional:
*
*/
public Output name() {
return this.name;
}
/**
* Enum that conveys state of project. Can be `ACTIVE`, `DELETING`, or `DELETE_FAILED`.
*
*/
@Export(name="projectStatus", refs={String.class}, tree="[0]")
private Output projectStatus;
/**
* @return Enum that conveys state of project. Can be `ACTIVE`, `DELETING`, or `DELETE_FAILED`.
*
*/
public Output projectStatus() {
return this.projectStatus;
}
/**
* Optional flag to delete all child entities within the project.
*
*/
@Export(name="skipDeletionCheck", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> skipDeletionCheck;
/**
* @return Optional flag to delete all child entities within the project.
*
*/
public Output> skipDeletionCheck() {
return Codegen.optional(this.skipDeletionCheck);
}
@Export(name="timeouts", refs={ProjectTimeouts.class}, tree="[0]")
private Output* @Nullable */ ProjectTimeouts> timeouts;
public Output> timeouts() {
return Codegen.optional(this.timeouts);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Project(java.lang.String name) {
this(name, ProjectArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Project(java.lang.String name, ProjectArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Project(java.lang.String name, ProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:datazone/project:Project", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Project(java.lang.String name, Output id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:datazone/project:Project", name, state, makeResourceOptions(options, id), false);
}
private static ProjectArgs makeArgs(ProjectArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ProjectArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host 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
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Project get(java.lang.String name, Output id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Project(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy