com.pulumi.cloudflare.kotlin.AccountMemberArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.AccountMemberArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides a resource which manages Cloudflare account members.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cloudflare from "@pulumi/cloudflare";
* const example = new cloudflare.AccountMember("example", {
* accountId: "f037e56e89293a057740de681ac9abbe",
* emailAddress: "[email protected]",
* roleIds: [
* "68b329da9893e34099c7d8ad5cb9c940",
* "d784fa8b6d98d27699781bd9a7cf19f0",
* ],
* });
* ```
* ```python
* import pulumi
* import pulumi_cloudflare as cloudflare
* example = cloudflare.AccountMember("example",
* account_id="f037e56e89293a057740de681ac9abbe",
* email_address="[email protected]",
* role_ids=[
* "68b329da9893e34099c7d8ad5cb9c940",
* "d784fa8b6d98d27699781bd9a7cf19f0",
* ])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Cloudflare = Pulumi.Cloudflare;
* return await Deployment.RunAsync(() =>
* {
* var example = new Cloudflare.AccountMember("example", new()
* {
* AccountId = "f037e56e89293a057740de681ac9abbe",
* EmailAddress = "[email protected]",
* RoleIds = new[]
* {
* "68b329da9893e34099c7d8ad5cb9c940",
* "d784fa8b6d98d27699781bd9a7cf19f0",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := cloudflare.NewAccountMember(ctx, "example", &cloudflare.AccountMemberArgs{
* AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
* EmailAddress: pulumi.String("[email protected]"),
* RoleIds: pulumi.StringArray{
* pulumi.String("68b329da9893e34099c7d8ad5cb9c940"),
* pulumi.String("d784fa8b6d98d27699781bd9a7cf19f0"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.cloudflare.AccountMember;
* import com.pulumi.cloudflare.AccountMemberArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new AccountMember("example", AccountMemberArgs.builder()
* .accountId("f037e56e89293a057740de681ac9abbe")
* .emailAddress("[email protected]")
* .roleIds(
* "68b329da9893e34099c7d8ad5cb9c940",
* "d784fa8b6d98d27699781bd9a7cf19f0")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: cloudflare:AccountMember
* properties:
* accountId: f037e56e89293a057740de681ac9abbe
* emailAddress: [email protected]
* roleIds:
* - 68b329da9893e34099c7d8ad5cb9c940
* - d784fa8b6d98d27699781bd9a7cf19f0
* ```
*
* ## Import
* ```sh
* $ pulumi import cloudflare:index/accountMember:AccountMember example /
* ```
* @property accountId Account ID to create the account member in.
* @property emailAddress The email address of the user who you wish to manage. Following creation, this field becomes read only via the API and cannot be updated.
* @property roleIds List of account role IDs that you want to assign to a member.
* @property status A member's status in the account. Available values: `accepted`, `pending`.
*/
public data class AccountMemberArgs(
public val accountId: Output? = null,
public val emailAddress: Output? = null,
public val roleIds: Output>? = null,
public val status: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.AccountMemberArgs =
com.pulumi.cloudflare.AccountMemberArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.emailAddress(emailAddress?.applyValue({ args0 -> args0 }))
.roleIds(roleIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.status(status?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccountMemberArgs].
*/
@PulumiTagMarker
public class AccountMemberArgsBuilder internal constructor() {
private var accountId: Output? = null
private var emailAddress: Output? = null
private var roleIds: Output>? = null
private var status: Output? = null
/**
* @param value Account ID to create the account member in.
*/
@JvmName("fnivvrhedsffgafw")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value The email address of the user who you wish to manage. Following creation, this field becomes read only via the API and cannot be updated.
*/
@JvmName("weebwuveuywfnfch")
public suspend fun emailAddress(`value`: Output) {
this.emailAddress = value
}
/**
* @param value List of account role IDs that you want to assign to a member.
*/
@JvmName("sbbfnpprbqmxskxe")
public suspend fun roleIds(`value`: Output>) {
this.roleIds = value
}
@JvmName("nqasurmpvsnjaqik")
public suspend fun roleIds(vararg values: Output) {
this.roleIds = Output.all(values.asList())
}
/**
* @param values List of account role IDs that you want to assign to a member.
*/
@JvmName("naqblbmpysrkqobo")
public suspend fun roleIds(values: List