Package com.pulumi.aws.opsworks
Class RailsAppLayer
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.opsworks.RailsAppLayer
-
public class RailsAppLayer extends com.pulumi.resources.CustomResource
Provides an OpsWorks Ruby on Rails application layer resource. ## Example Usage <!--Start PulumiCodeChooser -->package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.opsworks.RailsAppLayer; import com.pulumi.aws.opsworks.RailsAppLayerArgs; 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 app = new RailsAppLayer("app", RailsAppLayerArgs.builder() .stackId(main.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description RailsAppLayer(java.lang.String name)
RailsAppLayer(java.lang.String name, RailsAppLayerArgs args)
RailsAppLayer(java.lang.String name, RailsAppLayerArgs 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.util.Optional<java.lang.String>>
appServer()
com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
autoAssignElasticIps()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
autoAssignPublicIps()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
autoHealing()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
bundlerVersion()
com.pulumi.core.Output<java.util.Optional<RailsAppLayerCloudwatchConfiguration>>
cloudwatchConfiguration()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customConfigureRecipes()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customDeployRecipes()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
customInstanceProfileArn()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
customJson()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customSecurityGroupIds()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customSetupRecipes()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customShutdownRecipes()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customUndeployRecipes()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
drainElbOnShutdown()
com.pulumi.core.Output<java.util.List<RailsAppLayerEbsVolume>>
ebsVolumes()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
elasticLoadBalancer()
static RailsAppLayer
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, RailsAppLayerState 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.util.Optional<java.lang.Boolean>>
installUpdatesOnBoot()
com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>
instanceShutdownTimeout()
com.pulumi.core.Output<RailsAppLayerLoadBasedAutoScaling>
loadBasedAutoScaling()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
manageBundler()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
passengerVersion()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
rubygemsVersion()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
rubyVersion()
com.pulumi.core.Output<java.lang.String>
stackId()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
systemPackages()
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()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
useEbsOptimizedInstances()
-
-
-
Constructor Detail
-
RailsAppLayer
public RailsAppLayer(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
RailsAppLayer
public RailsAppLayer(java.lang.String name, RailsAppLayerArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
RailsAppLayer
public RailsAppLayer(java.lang.String name, RailsAppLayerArgs 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
-
appServer
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> appServer()
- Returns:
- Keyword for the app server to use. Defaults to "apache_passenger".
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The Amazon Resource Name(ARN) of the layer.
-
autoAssignElasticIps
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoAssignElasticIps()
- Returns:
- Whether to automatically assign an elastic IP address to the layer's instances.
-
autoAssignPublicIps
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoAssignPublicIps()
- Returns:
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
-
autoHealing
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> autoHealing()
- Returns:
- Whether to enable auto-healing for the layer.
-
bundlerVersion
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> bundlerVersion()
- Returns:
- When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
-
cloudwatchConfiguration
public com.pulumi.core.Output<java.util.Optional<RailsAppLayerCloudwatchConfiguration>> cloudwatchConfiguration()
-
customConfigureRecipes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customConfigureRecipes()
-
customDeployRecipes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customDeployRecipes()
-
customInstanceProfileArn
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> customInstanceProfileArn()
- Returns:
- The ARN of an IAM profile that will be used for the layer's instances.
-
customJson
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> customJson()
- Returns:
- Custom JSON attributes to apply to the layer.
-
customSecurityGroupIds
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customSecurityGroupIds()
- Returns:
- Ids for a set of security groups to apply to the layer's instances.
-
customSetupRecipes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customSetupRecipes()
-
customShutdownRecipes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customShutdownRecipes()
-
customUndeployRecipes
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customUndeployRecipes()
-
drainElbOnShutdown
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> drainElbOnShutdown()
- Returns:
- Whether to enable Elastic Load Balancing connection draining.
-
ebsVolumes
public com.pulumi.core.Output<java.util.List<RailsAppLayerEbsVolume>> ebsVolumes()
- Returns:
- `ebs_volume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
-
elasticLoadBalancer
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> elasticLoadBalancer()
- Returns:
- Name of an Elastic Load Balancer to attach to this layer
-
installUpdatesOnBoot
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> installUpdatesOnBoot()
- Returns:
- Whether to install OS and package updates on each instance when it boots.
-
instanceShutdownTimeout
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> instanceShutdownTimeout()
- Returns:
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
-
loadBasedAutoScaling
public com.pulumi.core.Output<RailsAppLayerLoadBasedAutoScaling> loadBasedAutoScaling()
-
manageBundler
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> manageBundler()
- Returns:
- Whether OpsWorks should manage bundler. On by default.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- A human-readable name for the layer.
-
passengerVersion
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> passengerVersion()
- Returns:
- The version of Passenger to use. Defaults to "4.0.46".
-
rubyVersion
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> rubyVersion()
- Returns:
- The version of Ruby to use. Defaults to "2.0.0".
-
rubygemsVersion
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> rubygemsVersion()
- Returns:
- The version of RubyGems to use. Defaults to "2.2.2".
-
stackId
public com.pulumi.core.Output<java.lang.String> stackId()
- Returns:
- ID of the stack the layer will belong to.
-
systemPackages
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> systemPackages()
- Returns:
- Names of a set of system packages to install on the layer's instances.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
-
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 `default_tags` configuration block.
-
useEbsOptimizedInstances
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> useEbsOptimizedInstances()
- Returns:
- Whether to use EBS-optimized instances.
-
get
public static RailsAppLayer get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable RailsAppLayerState 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.
-
-