Class HaproxyLayer
Provides an OpsWorks haproxy layer resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var lb = new Aws.OpsWorks.HaproxyLayer("lb", new Aws.OpsWorks.HaproxyLayerArgs
{
StackId = aws_opsworks_stack.Main.Id,
StatsPassword = "foobarbaz",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class HaproxyLayer : CustomResource
Constructors
View SourceHaproxyLayer(String, HaproxyLayerArgs, CustomResourceOptions)
Create a HaproxyLayer resource with the given unique name, arguments, and options.
Declaration
public HaproxyLayer(string name, HaproxyLayerArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| HaproxyLayerArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The Amazon Resource Name(ARN) of the layer.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AutoAssignElasticIps
Whether to automatically assign an elastic IP address to the layer's instances.
Declaration
public Output<bool?> AutoAssignElasticIps { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AutoAssignPublicIps
For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
Declaration
public Output<bool?> AutoAssignPublicIps { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
AutoHealing
Whether to enable auto-healing for the layer.
Declaration
public Output<bool?> AutoHealing { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
CustomConfigureRecipes
Declaration
public Output<ImmutableArray<string>> CustomConfigureRecipes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CustomDeployRecipes
Declaration
public Output<ImmutableArray<string>> CustomDeployRecipes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CustomInstanceProfileArn
The ARN of an IAM profile that will be used for the layer's instances.
Declaration
public Output<string> CustomInstanceProfileArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CustomJson
Custom JSON attributes to apply to the layer.
Declaration
public Output<string> CustomJson { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CustomSecurityGroupIds
Ids for a set of security groups to apply to the layer's instances.
Declaration
public Output<ImmutableArray<string>> CustomSecurityGroupIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CustomSetupRecipes
Declaration
public Output<ImmutableArray<string>> CustomSetupRecipes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CustomShutdownRecipes
Declaration
public Output<ImmutableArray<string>> CustomShutdownRecipes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CustomUndeployRecipes
Declaration
public Output<ImmutableArray<string>> CustomUndeployRecipes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
DrainElbOnShutdown
Whether to enable Elastic Load Balancing connection draining.
Declaration
public Output<bool?> DrainElbOnShutdown { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
EbsVolumes
ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
Declaration
public Output<ImmutableArray<HaproxyLayerEbsVolume>> EbsVolumes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<HaproxyLayerEbsVolume>> |
ElasticLoadBalancer
Name of an Elastic Load Balancer to attach to this layer
Declaration
public Output<string> ElasticLoadBalancer { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HealthcheckMethod
HTTP method to use for instance healthchecks. Defaults to "OPTIONS".
Declaration
public Output<string> HealthcheckMethod { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HealthcheckUrl
URL path to use for instance healthchecks. Defaults to "/".
Declaration
public Output<string> HealthcheckUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstallUpdatesOnBoot
Whether to install OS and package updates on each instance when it boots.
Declaration
public Output<bool?> InstallUpdatesOnBoot { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
InstanceShutdownTimeout
The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
Declaration
public Output<int?> InstanceShutdownTimeout { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Name
A human-readable name for the layer.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StackId
The id of the stack the layer will belong to.
Declaration
public Output<string> StackId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StatsEnabled
Whether to enable HAProxy stats.
Declaration
public Output<bool?> StatsEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
StatsPassword
The password to use for HAProxy stats.
Declaration
public Output<string> StatsPassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StatsUrl
The HAProxy stats URL. Defaults to "/haproxy?stats".
Declaration
public Output<string> StatsUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StatsUser
The username for HAProxy stats. Defaults to "opsworks".
Declaration
public Output<string> StatsUser { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SystemPackages
Names of a set of system packages to install on the layer's instances.
Declaration
public Output<ImmutableArray<string>> SystemPackages { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
UseEbsOptimizedInstances
Whether to use EBS-optimized instances.
Declaration
public Output<bool?> UseEbsOptimizedInstances { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, HaproxyLayerState, CustomResourceOptions)
Get an existing HaproxyLayer resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static HaproxyLayer Get(string name, Input<string> id, HaproxyLayerState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| HaproxyLayerState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| HaproxyLayer |