ConnectionAssociation
Associates a Direct Connect Connection with a LAG.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleConnection = new Aws.DirectConnect.Connection("exampleConnection", new Aws.DirectConnect.ConnectionArgs
{
Bandwidth = "1Gbps",
Location = "EqSe2",
});
var exampleLinkAggregationGroup = new Aws.DirectConnect.LinkAggregationGroup("exampleLinkAggregationGroup", new Aws.DirectConnect.LinkAggregationGroupArgs
{
ConnectionsBandwidth = "1Gbps",
Location = "EqSe2",
});
var exampleConnectionAssociation = new Aws.DirectConnect.ConnectionAssociation("exampleConnectionAssociation", new Aws.DirectConnect.ConnectionAssociationArgs
{
ConnectionId = exampleConnection.Id,
LagId = exampleLinkAggregationGroup.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleConnection, err := directconnect.NewConnection(ctx, "exampleConnection", &directconnect.ConnectionArgs{
Bandwidth: pulumi.String("1Gbps"),
Location: pulumi.String("EqSe2"),
})
if err != nil {
return err
}
exampleLinkAggregationGroup, err := directconnect.NewLinkAggregationGroup(ctx, "exampleLinkAggregationGroup", &directconnect.LinkAggregationGroupArgs{
ConnectionsBandwidth: pulumi.String("1Gbps"),
Location: pulumi.String("EqSe2"),
})
if err != nil {
return err
}
_, err = directconnect.NewConnectionAssociation(ctx, "exampleConnectionAssociation", &directconnect.ConnectionAssociationArgs{
ConnectionId: exampleConnection.ID(),
LagId: exampleLinkAggregationGroup.ID(),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example_connection = aws.directconnect.Connection("exampleConnection",
bandwidth="1Gbps",
location="EqSe2")
example_link_aggregation_group = aws.directconnect.LinkAggregationGroup("exampleLinkAggregationGroup",
connections_bandwidth="1Gbps",
location="EqSe2")
example_connection_association = aws.directconnect.ConnectionAssociation("exampleConnectionAssociation",
connection_id=example_connection.id,
lag_id=example_link_aggregation_group.id)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleConnection = new aws.directconnect.Connection("example", {
bandwidth: "1Gbps",
location: "EqSe2",
});
const exampleLinkAggregationGroup = new aws.directconnect.LinkAggregationGroup("example", {
connectionsBandwidth: "1Gbps",
location: "EqSe2",
});
const exampleConnectionAssociation = new aws.directconnect.ConnectionAssociation("example", {
connectionId: exampleConnection.id,
lagId: exampleLinkAggregationGroup.id,
});Create a ConnectionAssociation Resource
new ConnectionAssociation(name: string, args: ConnectionAssociationArgs, opts?: CustomResourceOptions);def ConnectionAssociation(resource_name, opts=None, connection_id=None, lag_id=None, __props__=None);func NewConnectionAssociation(ctx *Context, name string, args ConnectionAssociationArgs, opts ...ResourceOption) (*ConnectionAssociation, error)public ConnectionAssociation(string name, ConnectionAssociationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ConnectionAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectionAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ConnectionAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ConnectionAssociation resource accepts the following input properties:
- Connection
Id string The ID of the connection.
- Lag
Id string The ID of the LAG with which to associate the connection.
- Connection
Id string The ID of the connection.
- Lag
Id string The ID of the LAG with which to associate the connection.
- connection
Id string The ID of the connection.
- lag
Id string The ID of the LAG with which to associate the connection.
- connection_
id str The ID of the connection.
- lag_
id str The ID of the LAG with which to associate the connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectionAssociation resource produces the following output properties:
Look up an Existing ConnectionAssociation Resource
Get an existing ConnectionAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConnectionAssociationState, opts?: CustomResourceOptions): ConnectionAssociationstatic get(resource_name, id, opts=None, connection_id=None, lag_id=None, __props__=None);func GetConnectionAssociation(ctx *Context, name string, id IDInput, state *ConnectionAssociationState, opts ...ResourceOption) (*ConnectionAssociation, error)public static ConnectionAssociation Get(string name, Input<string> id, ConnectionAssociationState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Connection
Id string The ID of the connection.
- Lag
Id string The ID of the LAG with which to associate the connection.
- Connection
Id string The ID of the connection.
- Lag
Id string The ID of the LAG with which to associate the connection.
- connection
Id string The ID of the connection.
- lag
Id string The ID of the LAG with which to associate the connection.
- connection_
id str The ID of the connection.
- lag_
id str The ID of the LAG with which to associate the connection.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.