Show / Hide Table of Contents

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_balancers defined 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Attachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.AutoScaling
Assembly: Pulumi.Aws.dll
Syntax
public class Attachment : CustomResource

Constructors

View Source

Attachment(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 Source

AlbTargetGroupArn

The ARN of an ALB Target Group.

Declaration
public Output<string> AlbTargetGroupArn { get; }
Property Value
Type Description
Output<System.String>
View Source

AutoscalingGroupName

Name of ASG to associate with the ELB.

Declaration
public Output<string> AutoscalingGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

Elb

The name of the ELB.

Declaration
public Output<string> Elb { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.