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 of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") to which the policy applies 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. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (*). If you limit resource access with the Resource
element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.
The Condition keys column of the Actions table includes keys that you can specify in a policy statement's Condition
element. For more information on the condition keys that are associated with resources for the service, see the Condition keys column of the Resource types table.
Note
Resource condition keys are listed in the Resource types table. You can find a link to the resource type that applies to an action in the Resource types (*required) column of the Actions table. The resource type in the Resource types table includes the Condition keys column, which are the resource condition keys that apply to an action in the Actions table.
For details about the columns in the following table, see Actions table.
Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions |
---|---|---|---|---|---|
AcceptDirectConnectGatewayAssociationProposal | Grants permission to accept a proposal request to attach a virtual private gateway to a Direct Connect gateway | Write | |||
AllocateConnectionOnInterconnect | Grants permission to create a hosted connection on an interconnect | Write | |||
AllocateHostedConnection | Grants permission to create a new hosted connection between a AWS Direct Connect partner's network and a specific AWS Direct Connect location | Write | |||
AllocatePrivateVirtualInterface | Grants permission to provision a private virtual interface to be owned by a different customer | Write | |||
AllocatePublicVirtualInterface | Grants permission to provision a public virtual interface to be owned by a different customer | Write | |||
AllocateTransitVirtualInterface | Grants permission to provision a transit virtual interface to be owned by a different customer | Write | |||
AssociateConnectionWithLag | Grants permission to associate a connection with a LAG | Write | |||
AssociateHostedConnection | Grants permission to associate a hosted connection and its virtual interfaces with a link aggregation group (LAG) or interconnect | Write | |||
AssociateMacSecKey | Grants permission to associate a MAC Security (MACsec) Connection Key Name (CKN)/ Connectivity Association Key (CAK) pair with an AWS Direct Connect dedicated connection | Write | |||
AssociateVirtualInterface | Grants permission to associate a virtual interface with a specified link aggregation group (LAG) or connection | Write | |||
ConfirmConnection | Grants permission to confirm the creation of a hosted connection on an interconnect | Write | |||
ConfirmCustomerAgreement | Grants permission to confirm the the terms of agreement when creating the connection or link aggregation group (LAG) | Write | |||
ConfirmPrivateVirtualInterface | Grants permission to accept ownership of a private virtual interface created by another customer | Write | |||
ConfirmPublicVirtualInterface | Grants permission to accept ownership of a public virtual interface created by another customer | Write | |||
ConfirmTransitVirtualInterface | Grants permission to accept ownership of a transit virtual interface created by another customer | Write | |||
CreateBGPPeer | Grants permission to create a BGP peer on the specified virtual interface | Write | |||
CreateConnection | Grants permission to create a new connection between the customer network and a specific AWS Direct Connect location | Write | |||
CreateDirectConnectGateway | Grants permission to create 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 | Grants permission to create an association between a Direct Connect gateway and a virtual private gateway | Write | |||
CreateDirectConnectGatewayAssociationProposal | Grants permission to create a proposal to associate the specified virtual private gateway with the specified Direct Connect gateway | Write | |||
CreateInterconnect | Grants permission to create a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location | Write | |||
CreateLag | Grants permission to create 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 | Grants permission to create a new private virtual interface | Write | |||
CreatePublicVirtualInterface | Grants permission to create a new public virtual interface | Write | |||
CreateTransitVirtualInterface | Grants permission to create a new transit virtual interface | Write | |||
DeleteBGPPeer | Grants permission to delete the specified BGP peer on the specified virtual interface with the specified customer address and ASN | Write | |||
DeleteConnection | Grants permission to delete the connection | Write | |||
DeleteDirectConnectGateway | Grants permission to delete the specified Direct Connect gateway | Write | |||
DeleteDirectConnectGatewayAssociation | Grants permission to delete the association between the specified Direct Connect gateway and virtual private gateway | Write | |||
DeleteDirectConnectGatewayAssociationProposal | Grants permission to delete the association proposal request between the specified Direct Connect gateway and virtual private gateway | Write | |||
DeleteInterconnect | Grants permission to delete the specified interconnect | Write | |||
DeleteLag | Grants permission to delete the specified link aggregation group (LAG) | Write | |||
DeleteVirtualInterface | Grants permission to delete a virtual interface | Write | |||
DescribeConnectionLoa | Grants permission to describe the LOA-CFA for a Connection | Read | |||
DescribeConnections | Grants permission to describe all connections in this region | Read | |||
DescribeConnectionsOnInterconnect | Grants permission to describe a list of connections that have been provisioned on the given interconnect | Read | |||
DescribeCustomerMetadata | Grants permission to view a list of customer agreements, along with their signed status and whether the customer is an NNIPartner, NNIPartnerV2, or a nonPartner | Read | |||
DescribeDirectConnectGatewayAssociationProposals | Grants permission to describe one or more association proposals for connection between a virtual private gateway and a Direct Connect gateway | Read | |||
DescribeDirectConnectGatewayAssociations | Grants permission to describe the associations between your Direct Connect gateways and virtual private gateways | Read | |||
DescribeDirectConnectGatewayAttachments | Grants permission to describe the attachments between your Direct Connect gateways and virtual interfaces | Read | |||
DescribeDirectConnectGateways | Grants permission to describe all your Direct Connect gateways or only the specified Direct Connect gateway | Read | |||
DescribeHostedConnections | Grants permission to describe the hosted connections that have been provisioned on the specified interconnect or link aggregation group (LAG) | Read | |||
DescribeInterconnectLoa | Grants permission to describe the LOA-CFA for an Interconnect | Read | |||
DescribeInterconnects | Grants permission to describe a list of interconnects owned by the AWS account | Read | |||
DescribeLags | Grants permission to describe all your link aggregation groups (LAG) or the specified LAG | Read | |||
DescribeLoa | Grants permission to describe the LOA-CFA for a connection, interconnect, or link aggregation group (LAG) | Read | |||
DescribeLocations | Grants permission to describe the list of AWS Direct Connect locations in the current AWS region | Read | |||
DescribeRouterConfiguration | Grants permission to describe Details about the router for a virtual interface | Read | |||
DescribeTags | Grants permission to describe the tags associated with the specified AWS Direct Connect resources | Read | |||
DescribeVirtualGateways | Grants permission to describe a list of virtual private gateways owned by the AWS account | Read | |||
DescribeVirtualInterfaces | Grants permission to describe all virtual interfaces for an AWS account | Read | |||
DisassociateConnectionFromLag | Grants permission to disassociate a connection from a link aggregation group (LAG) | Write | |||
DisassociateMacSecKey | Grants permission to remove the association between a MAC Security (MACsec) security key and an AWS Direct Connect dedicated connection | Write | |||
ListVirtualInterfaceTestHistory | Grants permission to list the virtual interface failover test history | List | |||
StartBgpFailoverTest | Grants permission to start 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 | Grants permission to stop the virtual interface failover test | Write | |||
TagResource | Grants permission to add the specified tags to the specified AWS Direct Connect resource. Each resource can have a maximum of 50 tags | Tagging | |||
UntagResource | Grants permission to remove one or more tags from the specified AWS Direct Connect resource | Tagging | |||
UpdateConnection | Grants permission to update the AWS Direct Connect dedicated connection configuration. You can update the following parameters for a connection: The connection name or The connection's MAC Security (MACsec) encryption mode | Write | |||
UpdateDirectConnectGateway | Grants permission to update the name of a Direct Connect gateway | Write | |||
UpdateDirectConnectGatewayAssociation | Grants permission to update the specified attributes of the Direct Connect gateway association | Write | |||
UpdateLag | Grants permission to update the attributes of the specified link aggregation group (LAG) | Write | |||
UpdateVirtualInterfaceAttributes | Grants permission to update 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 Resource types table. For details about the columns in the following table, see 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 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 access by actions based on the presence of tag key-value pairs in the request | String |
aws:ResourceTag/${TagKey} | Filters access by actions based on tag key-value pairs attached to the resource | String |
aws:TagKeys | Filters access by actions based on the presence of tag keys in the request | String |