Actions, resources, and condition keys for AWS Direct Connect
AWS Direct Connect (service prefix: directconnect
) provides the following service-specific resources, actions, and condition context
keys for use in IAM permission policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
Topics
Actions defined by AWS Direct Connect
You can specify the following actions in the Action
element of an IAM policy statement. Use policies to grant permissions to perform
an operation in AWS. When you use an action in a policy, you usually allow or
deny access to the API operation or CLI command with the same name. However,
in some cases, a single action controls access to more than one operation. Alternatively,
some operations require several different actions.
The Resource types column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The actions table.
Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions |
---|---|---|---|---|---|
AcceptDirectConnectGatewayAssociationProposal | Accepts a proposal request to attach a virtual private gateway to a Direct Connect gateway. | Write | |||
AllocateConnectionOnInterconnect | Creates a hosted connection on an interconnect. | Write | |||
AllocateHostedConnection | Creates a new hosted connection between a AWS Direct Connect partner's network and a specific AWS Direct Connect location. | Write | |||
AllocatePrivateVirtualInterface | Provisions a private virtual interface to be owned by a different customer. | Write | |||
AllocatePublicVirtualInterface | Provisions a public virtual interface to be owned by a different customer. | Write | |||
AllocateTransitVirtualInterface | Provisions a transit virtual interface to be owned by a different customer. | Write | |||
AssociateConnectionWithLag | Associates a connection with a LAG. | Write | |||
AssociateHostedConnection | Associates a hosted connection and its virtual interfaces with a link aggregation group (LAG) or interconnect. | Write | |||
AssociateVirtualInterface | Associates a virtual interface with a specified link aggregation group (LAG) or connection. | Write | |||
ConfirmConnection | Confirm the creation of a hosted connection on an interconnect. | Write | |||
ConfirmPrivateVirtualInterface | Accept ownership of a private virtual interface created by another customer. | Write | |||
ConfirmPublicVirtualInterface | Accept ownership of a public virtual interface created by another customer | Write | |||
ConfirmTransitVirtualInterface | Accept ownership of a transit virtual interface created by another customer | Write | |||
CreateBGPPeer | Creates a BGP peer on the specified virtual interface. | Write | |||
CreateConnection | Creates a new connection between the customer network and a specific AWS Direct Connect location. | Write | |||
CreateDirectConnectGateway | Creates a Direct Connect gateway, which is an intermediate object that enables you to connect a set of virtual interfaces and virtual private gateways. | Write | |||
CreateDirectConnectGatewayAssociation | Creates an association between a Direct Connect gateway and a virtual private gateway. | Write | |||
CreateDirectConnectGatewayAssociationProposal | Creates a proposal to associate the specified virtual private gateway with the specified Direct Connect gateway. | Write | |||
CreateInterconnect | Creates a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location. | Write | |||
CreateLag | Creates a link aggregation group (LAG) with the specified number of bundled physical connections between the customer network and a specific AWS Direct Connect location. | Write | |||
CreatePrivateVirtualInterface | Creates a new private virtual interface. | Write | |||
CreatePublicVirtualInterface | Creates a new public virtual interface. | Write | |||
CreateTransitVirtualInterface | Creates a new transit virtual interface. | Write | |||
DeleteBGPPeer | Deletes the specified BGP peer on the specified virtual interface with the specified customer address and ASN. | Write | |||
DeleteConnection | Deletes the connection. | Write | |||
DeleteDirectConnectGateway | Deletes the specified Direct Connect gateway. | Write | |||
DeleteDirectConnectGatewayAssociation | Deletes the association between the specified Direct Connect gateway and virtual private gateway. | Write | |||
DeleteDirectConnectGatewayAssociationProposal | Deletes the association proposal request between the specified Direct Connect gateway and virtual private gateway. | Write | |||
DeleteInterconnect | Deletes the specified interconnect. | Write | |||
DeleteLag | Deletes the specified link aggregation group (LAG). | Write | |||
DeleteVirtualInterface | Deletes a virtual interface. | Write | |||
DescribeConnectionLoa | Returns the LOA-CFA for a Connection. | Read | |||
DescribeConnections | Displays all connections in this region. | Read | |||
DescribeConnectionsOnInterconnect | Return a list of connections that have been provisioned on the given interconnect. | Read | |||
DescribeDirectConnectGatewayAssociationProposals | Describes one or more association proposals for connection between a virtual private gateway and a Direct Connect gateway. | Read | |||
DescribeDirectConnectGatewayAssociations | Lists the associations between your Direct Connect gateways and virtual private gateways. | Read | |||
DescribeDirectConnectGatewayAttachments | Lists the attachments between your Direct Connect gateways and virtual interfaces. | Read | |||
DescribeDirectConnectGateways | Lists all your Direct Connect gateways or only the specified Direct Connect gateway. | Read | |||
DescribeHostedConnections | Lists the hosted connections that have been provisioned on the specified interconnect or link aggregation group (LAG). | Read | |||
DescribeInterconnectLoa | Returns the LOA-CFA for an Interconnect. | Read | |||
DescribeInterconnects | Returns a list of interconnects owned by the AWS account. | Read | |||
DescribeLags | Describes all your link aggregation groups (LAG) or the specified LAG. | Read | |||
DescribeLoa | Gets the LOA-CFA for a connection, interconnect, or link aggregation group (LAG). | Read | |||
DescribeLocations | Returns the list of AWS Direct Connect locations in the current AWS region. | List | |||
DescribeTags | Describes the tags associated with the specified AWS Direct Connect resources. | Read | |||
DescribeVirtualGateways | Returns a list of virtual private gateways owned by the AWS account. | Read | |||
DescribeVirtualInterfaces | Displays all virtual interfaces for an AWS account. | Read | |||
DisassociateConnectionFromLag | Disassociates a connection from a link aggregation group (LAG). | Write | |||
ListVirtualInterfaceTestHistory | Lists the virtual interface failover test history. | List | |||
StartBgpFailoverTest | Starts the virtual interface failover test that verifies your configuration meets your resiliency requirements by placing the BGP peering session in the DOWN state. You can then send traffic to verify that there are no outages. | Write | |||
StopBgpFailoverTest | Stops the virtual interface failover test. | Write | |||
TagResource | Adds the specified tags to the specified AWS Direct Connect resource. Each resource can have a maximum of 50 tags. | Tagging | |||
UntagResource | Removes one or more tags from the specified AWS Direct Connect resource. | Tagging | |||
UpdateDirectConnectGatewayAssociation | Updates the specified attributes of the Direct Connect gateway association. | Write | |||
UpdateLag | Updates the attributes of the specified link aggregation group (LAG). | Write | |||
UpdateVirtualInterfaceAttributes | Updates the specified attributes of the specified virtual private interface. | Write |
Resource types defined by AWS Direct Connect
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see The resource types table.
Resource types | ARN | Condition keys |
---|---|---|
dxcon |
arn:${Partition}:directconnect:${Region}:${Account}:dxcon/${ConnectionId}
|
|
dxlag |
arn:${Partition}:directconnect:${Region}:${Account}:dxlag/${LagId}
|
|
dxvif |
arn:${Partition}:directconnect:${Region}:${Account}:dxvif/${VirtualInterfaceId}
|
|
dx-gateway |
arn:${Partition}:directconnect::${Account}:dx-gateway/${DirectConnectGatewayId}
|
Condition keys for AWS Direct Connect
AWS Direct Connect defines the following condition keys that can be used in the
Condition
element of an IAM policy. You can use these keys to further refine the conditions
under which the policy statement applies. For details about the columns in the
following table, see The condition keys table.
To view the global condition keys that are available to all services, see Available global condition keys.
Condition keys | Description | Type |
---|---|---|
aws:RequestTag/${TagKey} | Filters actions based on the presence of tag key-value pairs in the request | String |
aws:ResourceTag/${TagKey} | Filters actions based on tag key-value pairs attached to the resource | String |
aws:TagKeys | Filters actions based on the presence of tag keys in the request | String |