Class Attachment
Provides an AutoScaling Attachment resource.
NOTE on AutoScaling Groups and ASG Attachments: This provider currently provides both a standalone ASG Attachment resource (describing an ASG attached to an ELB), and an AutoScaling Group resource with
load_balancersdefined in-line. At this time you cannot use an ASG with in-line load balancers in conjunction with an ASG Attachment resource. Doing so will cause a conflict and will overwrite attachments.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
// Create a new load balancer attachment
var asgAttachmentBar = new Aws.AutoScaling.Attachment("asgAttachmentBar", new Aws.AutoScaling.AttachmentArgs
{
AutoscalingGroupName = aws_autoscaling_group.Asg.Id,
Elb = aws_elb.Bar.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.AutoScaling
Assembly: Pulumi.Aws.dll
Syntax
public class Attachment : CustomResource
Constructors
View SourceAttachment(String, AttachmentArgs, CustomResourceOptions)
Create a Attachment resource with the given unique name, arguments, and options.
Declaration
public Attachment(string name, AttachmentArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AttachmentArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAlbTargetGroupArn
The ARN of an ALB Target Group.
Declaration
public Output<string> AlbTargetGroupArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AutoscalingGroupName
Name of ASG to associate with the ELB.
Declaration
public Output<string> AutoscalingGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Elb
The name of the ELB.
Declaration
public Output<string> Elb { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AttachmentState, CustomResourceOptions)
Get an existing Attachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Attachment Get(string name, Input<string> id, AttachmentState 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. |
| AttachmentState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Attachment |