com.pulumi.gcp.compute.kotlin.outputs.InstanceTemplateServiceAccount.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property email The service account e-mail address. If not given, the
* default Google Compute Engine service account is used.
* @property scopes A list of service scopes. Both OAuth2 URLs and gcloud
* short names are supported. To allow full access to all Cloud APIs, use the
* `cloud-platform` scope. See a complete list of scopes [here](https://cloud.google.com/sdk/gcloud/reference/alpha/compute/instances/set-scopes#--scopes).
* The [service accounts documentation](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam)
* explains that access scopes are the legacy method of specifying permissions for your instance.
* To follow best practices you should create a dedicated service account with the minimum permissions the VM requires.
* To use a dedicated service account this field should be configured as a list containing the `cloud-platform` scope.
* See [Authenticate workloads using service accounts best practices](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#best_practices)
* and [Best practices for using service accounts](https://cloud.google.com/iam/docs/best-practices-service-accounts#single-purpose).
*/
public data class InstanceTemplateServiceAccount(
public val email: String? = null,
public val scopes: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.InstanceTemplateServiceAccount): InstanceTemplateServiceAccount = InstanceTemplateServiceAccount(
email = javaType.email().map({ args0 -> args0 }).orElse(null),
scopes = javaType.scopes().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy