NodejsAppLayerArgs

data class NodejsAppLayerArgs(val autoAssignElasticIps: Output<Boolean>? = null, val autoAssignPublicIps: Output<Boolean>? = null, val autoHealing: Output<Boolean>? = null, val cloudwatchConfiguration: Output<NodejsAppLayerCloudwatchConfigurationArgs>? = null, val customConfigureRecipes: Output<List<String>>? = null, val customDeployRecipes: Output<List<String>>? = null, val customInstanceProfileArn: Output<String>? = null, val customJson: Output<String>? = null, val customSecurityGroupIds: Output<List<String>>? = null, val customSetupRecipes: Output<List<String>>? = null, val customShutdownRecipes: Output<List<String>>? = null, val customUndeployRecipes: Output<List<String>>? = null, val drainElbOnShutdown: Output<Boolean>? = null, val ebsVolumes: Output<List<NodejsAppLayerEbsVolumeArgs>>? = null, val elasticLoadBalancer: Output<String>? = null, val installUpdatesOnBoot: Output<Boolean>? = null, val instanceShutdownTimeout: Output<Int>? = null, val loadBasedAutoScaling: Output<NodejsAppLayerLoadBasedAutoScalingArgs>? = null, val name: Output<String>? = null, val nodejsVersion: Output<String>? = null, val stackId: Output<String>? = null, val systemPackages: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null, val useEbsOptimizedInstances: Output<Boolean>? = null) : ConvertibleToJava<NodejsAppLayerArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const app = new aws.opsworks.NodejsAppLayer("app", {stackId: main.id});
import pulumi
import pulumi_aws as aws
app = aws.opsworks.NodejsAppLayer("app", stack_id=main["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var app = new Aws.OpsWorks.NodejsAppLayer("app", new()
{
StackId = main.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsworks.NewNodejsAppLayer(ctx, "app", &opsworks.NodejsAppLayerArgs{
StackId: pulumi.Any(main.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.NodejsAppLayer;
import com.pulumi.aws.opsworks.NodejsAppLayerArgs;
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 NodejsAppLayer("app", NodejsAppLayerArgs.builder()
.stackId(main.id())
.build());
}
}
resources:
app:
type: aws:opsworks:NodejsAppLayer
properties:
stackId: ${main.id}

Constructors

Link copied to clipboard
constructor(autoAssignElasticIps: Output<Boolean>? = null, autoAssignPublicIps: Output<Boolean>? = null, autoHealing: Output<Boolean>? = null, cloudwatchConfiguration: Output<NodejsAppLayerCloudwatchConfigurationArgs>? = null, customConfigureRecipes: Output<List<String>>? = null, customDeployRecipes: Output<List<String>>? = null, customInstanceProfileArn: Output<String>? = null, customJson: Output<String>? = null, customSecurityGroupIds: Output<List<String>>? = null, customSetupRecipes: Output<List<String>>? = null, customShutdownRecipes: Output<List<String>>? = null, customUndeployRecipes: Output<List<String>>? = null, drainElbOnShutdown: Output<Boolean>? = null, ebsVolumes: Output<List<NodejsAppLayerEbsVolumeArgs>>? = null, elasticLoadBalancer: Output<String>? = null, installUpdatesOnBoot: Output<Boolean>? = null, instanceShutdownTimeout: Output<Int>? = null, loadBasedAutoScaling: Output<NodejsAppLayerLoadBasedAutoScalingArgs>? = null, name: Output<String>? = null, nodejsVersion: Output<String>? = null, stackId: Output<String>? = null, systemPackages: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null, useEbsOptimizedInstances: Output<Boolean>? = null)

Properties

Link copied to clipboard
val autoAssignElasticIps: Output<Boolean>? = null

Whether to automatically assign an elastic IP address to the layer's instances.

Link copied to clipboard
val autoAssignPublicIps: Output<Boolean>? = null

For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.

Link copied to clipboard
val autoHealing: Output<Boolean>? = null

Whether to enable auto-healing for the layer.

Link copied to clipboard
val customConfigureRecipes: Output<List<String>>? = null
Link copied to clipboard
val customDeployRecipes: Output<List<String>>? = null
Link copied to clipboard
val customInstanceProfileArn: Output<String>? = null

The ARN of an IAM profile that will be used for the layer's instances.

Link copied to clipboard
val customJson: Output<String>? = null

Custom JSON attributes to apply to the layer.

Link copied to clipboard
val customSecurityGroupIds: Output<List<String>>? = null

Ids for a set of security groups to apply to the layer's instances.

Link copied to clipboard
val customSetupRecipes: Output<List<String>>? = null
Link copied to clipboard
val customShutdownRecipes: Output<List<String>>? = null
Link copied to clipboard
val customUndeployRecipes: Output<List<String>>? = null
Link copied to clipboard
val drainElbOnShutdown: Output<Boolean>? = null

Whether to enable Elastic Load Balancing connection draining.

Link copied to clipboard

ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.

Link copied to clipboard
val elasticLoadBalancer: Output<String>? = null

Name of an Elastic Load Balancer to attach to this layer

Link copied to clipboard
val installUpdatesOnBoot: Output<Boolean>? = null

Whether to install OS and package updates on each instance when it boots.

Link copied to clipboard
val instanceShutdownTimeout: Output<Int>? = null

The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.

Link copied to clipboard
val name: Output<String>? = null

A human-readable name for the layer.

Link copied to clipboard
val nodejsVersion: Output<String>? = null

The version of NodeJS to use. Defaults to "0.10.38".

Link copied to clipboard
val stackId: Output<String>? = null

ID of the stack the layer will belong to.

Link copied to clipboard
val systemPackages: Output<List<String>>? = null

Names of a set of system packages to install on the layer's instances.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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:

Link copied to clipboard
val useEbsOptimizedInstances: Output<Boolean>? = null

Whether to use EBS-optimized instances.

Functions

Link copied to clipboard
open override fun toJava(): NodejsAppLayerArgs