ServiceAccountIamBindingArgs

data class ServiceAccountIamBindingArgs(val condition: Output<ConditionArgs>? = null, val members: Output<List<String>>? = null, val name: Output<String>? = null, val role: Output<String>? = null) : ConvertibleToJava<ServiceAccountIamBindingArgs>

Sets the IAM policy that is attached to a ServiceAccount. Use this method to grant or revoke access to the service account. For example, you could grant a principal the ability to impersonate the service account. This method does not enable the service account to access other resources. To grant roles to a service account on a resource, follow these steps: 1. Call the resource's getIamPolicy method to get its current IAM policy. 2. Edit the policy so that it binds the service account to an IAM role for the resource. 3. Call the resource's setIamPolicy method to update its IAM policy. For detailed instructions, see Manage access to project, folders, and organizations or Manage access to other resources.

Constructors

Link copied to clipboard
fun ServiceAccountIamBindingArgs(condition: Output<ConditionArgs>? = null, members: Output<List<String>>? = null, name: Output<String>? = null, role: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServiceAccountIamBindingArgs

Properties

Link copied to clipboard
val condition: Output<ConditionArgs>? = null

An IAM Condition for a given binding.

Link copied to clipboard
val members: Output<List<String>>? = null

Identities that will be granted the privilege in role. Each entry can have one of the following values:

Link copied to clipboard
val name: Output<String>? = null

The name of the resource to manage IAM policies for.

Link copied to clipboard
val role: Output<String>? = null

The role that should be applied. Only one IamBinding can be used per role.