All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.elasticbeanstalk.ConfigurationTemplate Maven / Gradle / Ivy

// *** 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.elasticbeanstalk;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.elasticbeanstalk.ConfigurationTemplateArgs;
import com.pulumi.aws.elasticbeanstalk.inputs.ConfigurationTemplateState;
import com.pulumi.aws.elasticbeanstalk.outputs.ConfigurationTemplateSetting;
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.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides an Elastic Beanstalk Configuration Template, which are associated with
 * a specific application and are used to deploy different versions of the
 * application with the same configuration settings.
 * 
 * ## 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.elasticbeanstalk.Application;
 * import com.pulumi.aws.elasticbeanstalk.ApplicationArgs;
 * import com.pulumi.aws.elasticbeanstalk.ConfigurationTemplate;
 * import com.pulumi.aws.elasticbeanstalk.ConfigurationTemplateArgs;
 * 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 tftest = new Application("tftest", ApplicationArgs.builder()
 *             .name("tf-test-name")
 *             .description("tf-test-desc")
 *             .build());
 * 
 *         var myTemplate = new ConfigurationTemplate("myTemplate", ConfigurationTemplateArgs.builder()
 *             .name("tf-test-template-config")
 *             .application(tftest.name())
 *             .solutionStackName("64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Option Settings * * The `setting` field supports the following format: * * * `namespace` - unique namespace identifying the option's associated AWS resource * * `name` - name of the configuration option * * `value` - value for the configuration option * * `resource` - (Optional) resource name for [scheduled action](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalingscheduledaction) * */ @ResourceType(type="aws:elasticbeanstalk/configurationTemplate:ConfigurationTemplate") public class ConfigurationTemplate extends com.pulumi.resources.CustomResource { /** * name of the application to associate with this configuration template * */ @Export(name="application", refs={String.class}, tree="[0]") private Output application; /** * @return name of the application to associate with this configuration template * */ public Output application() { return this.application; } /** * Short description of the Template * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Short description of the Template * */ public Output> description() { return Codegen.optional(this.description); } /** * The ID of the environment used with this configuration template * */ @Export(name="environmentId", refs={String.class}, tree="[0]") private Output environmentId; /** * @return The ID of the environment used with this configuration template * */ public Output> environmentId() { return Codegen.optional(this.environmentId); } /** * A unique name for this Template. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return A unique name for this Template. * */ public Output name() { return this.name; } /** * Option settings to configure the new Environment. These * override specific values that are set as defaults. The format is detailed * below in Option Settings * */ @Export(name="settings", refs={List.class,ConfigurationTemplateSetting.class}, tree="[0,1]") private Output> settings; /** * @return Option settings to configure the new Environment. These * override specific values that are set as defaults. The format is detailed * below in Option Settings * */ public Output> settings() { return this.settings; } /** * A solution stack to base your Template * off of. Example stacks can be found in the [Amazon API documentation][1] * */ @Export(name="solutionStackName", refs={String.class}, tree="[0]") private Output solutionStackName; /** * @return A solution stack to base your Template * off of. Example stacks can be found in the [Amazon API documentation][1] * */ public Output> solutionStackName() { return Codegen.optional(this.solutionStackName); } /** * * @param name The _unique_ name of the resulting resource. */ public ConfigurationTemplate(java.lang.String name) { this(name, ConfigurationTemplateArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ConfigurationTemplate(java.lang.String name, ConfigurationTemplateArgs 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 ConfigurationTemplate(java.lang.String name, ConfigurationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:elasticbeanstalk/configurationTemplate:ConfigurationTemplate", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ConfigurationTemplate(java.lang.String name, Output id, @Nullable ConfigurationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:elasticbeanstalk/configurationTemplate:ConfigurationTemplate", name, state, makeResourceOptions(options, id), false); } private static ConfigurationTemplateArgs makeArgs(ConfigurationTemplateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ConfigurationTemplateArgs.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 ConfigurationTemplate get(java.lang.String name, Output id, @Nullable ConfigurationTemplateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ConfigurationTemplate(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy