We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
Resource Type definition for AWS::DirectConnect::Connection
Create Connection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);@overload
def Connection(resource_name: str,
args: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[str] = None,
location: Optional[str] = None,
connection_name: Optional[str] = None,
lag_id: Optional[str] = None,
provider_name: Optional[str] = None,
request_mac_sec: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: aws-native:directconnect:Connection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Connection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Connection resource accepts the following input properties:
- Bandwidth string
- The bandwidth of the connection.
- Location string
- The location of the connection.
- Connection
Name string - The name of the connection.
- Lag
Id string - The ID or ARN of the LAG to associate the connection with.
- Provider
Name string - The name of the service provider associated with the requested connection.
- Request
Mac boolSec - Indicates whether you want the connection to support MAC Security (MACsec).
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags associated with the connection.
- Bandwidth string
- The bandwidth of the connection.
- Location string
- The location of the connection.
- Connection
Name string - The name of the connection.
- Lag
Id string - The ID or ARN of the LAG to associate the connection with.
- Provider
Name string - The name of the service provider associated with the requested connection.
- Request
Mac boolSec - Indicates whether you want the connection to support MAC Security (MACsec).
-
Tag
Args - The tags associated with the connection.
- bandwidth String
- The bandwidth of the connection.
- location String
- The location of the connection.
- connection
Name String - The name of the connection.
- lag
Id String - The ID or ARN of the LAG to associate the connection with.
- provider
Name String - The name of the service provider associated with the requested connection.
- request
Mac BooleanSec - Indicates whether you want the connection to support MAC Security (MACsec).
- List<Tag>
- The tags associated with the connection.
- bandwidth string
- The bandwidth of the connection.
- location string
- The location of the connection.
- connection
Name string - The name of the connection.
- lag
Id string - The ID or ARN of the LAG to associate the connection with.
- provider
Name string - The name of the service provider associated with the requested connection.
- request
Mac booleanSec - Indicates whether you want the connection to support MAC Security (MACsec).
- Tag[]
- The tags associated with the connection.
- bandwidth str
- The bandwidth of the connection.
- location str
- The location of the connection.
- connection_
name str - The name of the connection.
- lag_
id str - The ID or ARN of the LAG to associate the connection with.
- provider_
name str - The name of the service provider associated with the requested connection.
- request_
mac_ boolsec - Indicates whether you want the connection to support MAC Security (MACsec).
-
Sequence[Tag
Args] - The tags associated with the connection.
- bandwidth String
- The bandwidth of the connection.
- location String
- The location of the connection.
- connection
Name String - The name of the connection.
- lag
Id String - The ID or ARN of the LAG to associate the connection with.
- provider
Name String - The name of the service provider associated with the requested connection.
- request
Mac BooleanSec - Indicates whether you want the connection to support MAC Security (MACsec).
- List<Property Map>
- The tags associated with the connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- Connection
Arn string - The ARN of the connection.
- Connection
Id string - The ID of the connection.
- Connection
State string - The state of the connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Connection
Arn string - The ARN of the connection.
- Connection
Id string - The ID of the connection.
- Connection
State string - The state of the connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- connection
Arn String - The ARN of the connection.
- connection
Id String - The ID of the connection.
- connection
State String - The state of the connection.
- id String
- The provider-assigned unique ID for this managed resource.
- connection
Arn string - The ARN of the connection.
- connection
Id string - The ID of the connection.
- connection
State string - The state of the connection.
- id string
- The provider-assigned unique ID for this managed resource.
- connection_
arn str - The ARN of the connection.
- connection_
id str - The ID of the connection.
- connection_
state str - The state of the connection.
- id str
- The provider-assigned unique ID for this managed resource.
- connection
Arn String - The ARN of the connection.
- connection
Id String - The ID of the connection.
- connection
State String - The state of the connection.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
