Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Headers

Authorization
string
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Content-Type
string

application/json

Path Parameters

integrationId
string<uuid>
required

The AWS integration's ID, as returned in integrationId.

Example:

"9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47"

Body

application/json
roleArn
string

The IAM role Plerion assumes, with the tenant's external ID, to read the account. Its account is the account connected.

Pattern: ^arn:aws:iam::\d{12}:role/.+$
Example:

"arn:aws:iam::123456789012:role/PlerionAccessRole"

name
string

The integration's name. A name set here is kept, and the account's name in AWS Organizations no longer replaces it.

Required string length: 1 - 64
Example:

"Production"

environmentId
string<uuid> | null

The environment to move the integration to. null takes it out of its environment. Requires AssetGroup:Modify.

Example:

"3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38"

instanceProfileArn
string | null

An instance profile in the integration's account for scanning its workloads. With no service account set, sending one turns workload scanning on, and null turns it off. Cannot be used on a Plerion-managed integration.

Pattern: ^arn:aws:iam::\d{12}:instance-profile/[a-zA-Z0-9_-]{1,128}$
Example:

"arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile"

kmsKeyAccessMode
enum<string>

Which KMS keys Plerion may use to decrypt volumes, images and Lambda code when it scans workloads. ALL_KEYS allows every key except those tagged PlerionAccess Denied. SELECTED_KEYS allows only keys tagged PlerionAccess Granted.

Available options:
ALL_KEYS,
SELECTED_KEYS
Example:

"ALL_KEYS"

serviceAccountId
string | null

The AWS account ID of the service account that scans this account's workloads. Set it with serviceAccountAccessRoleArn, or clear both with null. A Plerion-managed integration cannot clear it.

Pattern: ^[0-9]{12}$
Example:

"210987654321"

serviceAccountAccessRoleArn
string | null

The role in the integration's account that the service account uses. Set or clear it with serviceAccountId.

Pattern: ^arn:aws:iam::\d{12}:role/.+$
Example:

"arn:aws:iam::123456789012:role/PlerionServiceAccountAccessRole"

serviceAccountType
any

Cannot be changed. Sending it returns 400 ServiceAccountTypeNotUpdatable; create a new integration instead.

Response

The integration as saved

data
object

An AWS account integration.