com.pulumi.aws.codecatalyst.DevEnvironment 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.codecatalyst;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.codecatalyst.DevEnvironmentArgs;
import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentState;
import com.pulumi.aws.codecatalyst.outputs.DevEnvironmentIdes;
import com.pulumi.aws.codecatalyst.outputs.DevEnvironmentPersistentStorage;
import com.pulumi.aws.codecatalyst.outputs.DevEnvironmentRepository;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS CodeCatalyst Dev Environment.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.codecatalyst.DevEnvironment;
* import com.pulumi.aws.codecatalyst.DevEnvironmentArgs;
* import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentPersistentStorageArgs;
* import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentIdesArgs;
* import com.pulumi.aws.codecatalyst.inputs.DevEnvironmentRepositoryArgs;
* 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 DevEnvironment("test", DevEnvironmentArgs.builder()
* .alias("devenv")
* .spaceName("myspace")
* .projectName("myproject")
* .instanceType("dev.standard1.small")
* .persistentStorage(DevEnvironmentPersistentStorageArgs.builder()
* .size(16)
* .build())
* .ides(DevEnvironmentIdesArgs.builder()
* .name("PyCharm")
* .runtime("public.ecr.aws/jetbrains/py")
* .build())
* .inactivityTimeoutMinutes(40)
* .repositories(DevEnvironmentRepositoryArgs.builder()
* .repositoryName("pulumi-provider-aws")
* .branchName("main")
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
@ResourceType(type="aws:codecatalyst/devEnvironment:DevEnvironment")
public class DevEnvironment extends com.pulumi.resources.CustomResource {
@Export(name="alias", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> alias;
public Output> alias() {
return Codegen.optional(this.alias);
}
/**
* Information about the integrated development environment (IDE) configured for a Dev Environment.
*
*/
@Export(name="ides", refs={DevEnvironmentIdes.class}, tree="[0]")
private Output ides;
/**
* @return Information about the integrated development environment (IDE) configured for a Dev Environment.
*
*/
public Output ides() {
return this.ides;
}
/**
* The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.
*
*/
@Export(name="inactivityTimeoutMinutes", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> inactivityTimeoutMinutes;
/**
* @return The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.
*
*/
public Output> inactivityTimeoutMinutes() {
return Codegen.optional(this.inactivityTimeoutMinutes);
}
/**
* The Amazon EC2 instace type to use for the Dev Environment. Valid values include dev.standard1.small,dev.standard1.medium,dev.standard1.large,dev.standard1.xlarge
*
* The following arguments are optional:
*
*/
@Export(name="instanceType", refs={String.class}, tree="[0]")
private Output instanceType;
/**
* @return The Amazon EC2 instace type to use for the Dev Environment. Valid values include dev.standard1.small,dev.standard1.medium,dev.standard1.large,dev.standard1.xlarge
*
* The following arguments are optional:
*
*/
public Output instanceType() {
return this.instanceType;
}
/**
* Information about the amount of storage allocated to the Dev Environment.
*
*/
@Export(name="persistentStorage", refs={DevEnvironmentPersistentStorage.class}, tree="[0]")
private Output persistentStorage;
/**
* @return Information about the amount of storage allocated to the Dev Environment.
*
*/
public Output persistentStorage() {
return this.persistentStorage;
}
/**
* The name of the project in the space.
*
*/
@Export(name="projectName", refs={String.class}, tree="[0]")
private Output projectName;
/**
* @return The name of the project in the space.
*
*/
public Output projectName() {
return this.projectName;
}
/**
* The source repository that contains the branch to clone into the Dev Environment.
*
*/
@Export(name="repositories", refs={List.class,DevEnvironmentRepository.class}, tree="[0,1]")
private Output* @Nullable */ List> repositories;
/**
* @return The source repository that contains the branch to clone into the Dev Environment.
*
*/
public Output>> repositories() {
return Codegen.optional(this.repositories);
}
/**
* The name of the space.
*
*/
@Export(name="spaceName", refs={String.class}, tree="[0]")
private Output spaceName;
/**
* @return The name of the space.
*
*/
public Output spaceName() {
return this.spaceName;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public DevEnvironment(java.lang.String name) {
this(name, DevEnvironmentArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public DevEnvironment(java.lang.String name, DevEnvironmentArgs 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 DevEnvironment(java.lang.String name, DevEnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:codecatalyst/devEnvironment:DevEnvironment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private DevEnvironment(java.lang.String name, Output id, @Nullable DevEnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:codecatalyst/devEnvironment:DevEnvironment", name, state, makeResourceOptions(options, id), false);
}
private static DevEnvironmentArgs makeArgs(DevEnvironmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? DevEnvironmentArgs.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 DevEnvironment get(java.lang.String name, Output id, @Nullable DevEnvironmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new DevEnvironment(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy