AWS Direct Connect is a service that establishes a dedicated network connection from your premises to AWS. It can be used to access AWS services without going through the public internet. Here's an example code snippet in Python to create a Direct Connect connection:
import boto3
client = boto3.client('directconnect')
response = client.create_connection(
bandwidth='1Gbps',
location='us-east-1',
connectionName='MyConnection'
)
print(response)