codebuild:ImportSourceCredentials

Write

codebuild:ImportSourceCredentials is a Write access-level action in the codebuild service. Grants permission to import the source repository credentials for an AWS CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository

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 codebuild:ImportSourceCredentials.

codebuild:authType String

Filters access by the API corresponding argument value

codebuild:serverType String

Filters access by the API corresponding argument value

codebuild:shouldOverwrite Bool

Filters access by the API corresponding argument value

codebuild:token String

Filters access by the API corresponding argument value

codebuild:username String

Filters access by the API corresponding argument value

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCodebuildImportSourceCredentials",
      "Effect": "Allow",
      "Action": "codebuild:ImportSourceCredentials",
      "Resource": "*"
    }
  ]
}

Related actions in codebuild

View all codebuild actions →