codeconnections:CreateHost

Write

codeconnections:CreateHost is a Write access-level action in the codeconnections service. Grants permission to create a host resource

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

Keys you can use in the Condition block of a policy that grants codeconnections:CreateHost.

aws:RequestTag/${TagKey} String

Filters access by the tags that are passed in the request

aws:TagKeys ArrayOfString

Filters access by the tag keys that are passed in the request

codeconnections:ProviderType String

Filters access by the type of third-party provider passed in the request

codeconnections:VpcId String

Filters access by the VpcId passed in the request

Example IAM policy

A minimal policy that allows codeconnections:CreateHost. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCodeconnectionsCreateHost",
      "Effect": "Allow",
      "Action": "codeconnections:CreateHost",
      "Resource": "*"
    }
  ]
}

Related actions in codeconnections

View all codeconnections actions →