Cloudflare
AccountMember
Provides a resource which manages Cloudflare account members.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var exampleUser = new Cloudflare.AccountMember("exampleUser", new Cloudflare.AccountMemberArgs
{
EmailAddress = "user@example.com",
RoleIds =
{
"68b329da9893e34099c7d8ad5cb9c940",
"d784fa8b6d98d27699781bd9a7cf19f0",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v4/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewAccountMember(ctx, "exampleUser", &cloudflare.AccountMemberArgs{
EmailAddress: pulumi.String("user@example.com"),
RoleIds: pulumi.StringArray{
pulumi.String("68b329da9893e34099c7d8ad5cb9c940"),
pulumi.String("d784fa8b6d98d27699781bd9a7cf19f0"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_cloudflare as cloudflare
example_user = cloudflare.AccountMember("exampleUser",
email_address="user@example.com",
role_ids=[
"68b329da9893e34099c7d8ad5cb9c940",
"d784fa8b6d98d27699781bd9a7cf19f0",
])
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleUser = new cloudflare.AccountMember("example_user", {
emailAddress: "user@example.com",
roleIds: [
"68b329da9893e34099c7d8ad5cb9c940",
"d784fa8b6d98d27699781bd9a7cf19f0",
],
});
Coming soon!
Create a AccountMember Resource
new AccountMember(name: string, args: AccountMemberArgs, opts?: CustomResourceOptions);
@overload
def AccountMember(resource_name: str,
opts: Optional[ResourceOptions] = None,
email_address: Optional[str] = None,
role_ids: Optional[Sequence[str]] = None)
@overload
def AccountMember(resource_name: str,
args: AccountMemberArgs,
opts: Optional[ResourceOptions] = None)
func NewAccountMember(ctx *Context, name string, args AccountMemberArgs, opts ...ResourceOption) (*AccountMember, error)
public AccountMember(string name, AccountMemberArgs args, CustomResourceOptions? opts = null)
public AccountMember(String name, AccountMemberArgs args)
public AccountMember(String name, AccountMemberArgs args, CustomResourceOptions options)
type: cloudflare:AccountMember
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountMemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccountMemberArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccountMemberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountMemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountMemberArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AccountMember Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccountMember resource accepts the following input properties:
- Email
Address string The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- Role
Ids List<string> Array of account role IDs that you want to assign to a member.
- Email
Address string The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- Role
Ids []string Array of account role IDs that you want to assign to a member.
- email
Address String The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role
Ids List Array of account role IDs that you want to assign to a member.
- email
Address string The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role
Ids string[] Array of account role IDs that you want to assign to a member.
- email_
address str The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role_
ids Sequence[str] Array of account role IDs that you want to assign to a member.
- email
Address String The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role
Ids List Array of account role IDs that you want to assign to a member.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccountMember resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing AccountMember Resource
Get an existing AccountMember resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccountMemberState, opts?: CustomResourceOptions): AccountMember
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email_address: Optional[str] = None,
role_ids: Optional[Sequence[str]] = None) -> AccountMember
func GetAccountMember(ctx *Context, name string, id IDInput, state *AccountMemberState, opts ...ResourceOption) (*AccountMember, error)
public static AccountMember Get(string name, Input<string> id, AccountMemberState? state, CustomResourceOptions? opts = null)
public static AccountMember get(String name, Output<String> id, AccountMemberState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Email
Address string The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- Role
Ids List<string> Array of account role IDs that you want to assign to a member.
- Email
Address string The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- Role
Ids []string Array of account role IDs that you want to assign to a member.
- email
Address String The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role
Ids List Array of account role IDs that you want to assign to a member.
- email
Address string The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role
Ids string[] Array of account role IDs that you want to assign to a member.
- email_
address str The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role_
ids Sequence[str] Array of account role IDs that you want to assign to a member.
- email
Address String The email address of the user who you wish to manage. Note: Following creation, this field becomes read only via the API and cannot be updated.
- role
Ids List Array of account role IDs that you want to assign to a member.
Import
Account members can be imported using a composite ID formed of account ID and account member ID, e.g.
$ pulumi import cloudflare:index/accountMember:AccountMember example_user d41d8cd98f00b204e9800998ecf8427e/b58c6f14d292556214bd64909bcdb118
where* d41d8cd98f00b204e9800998ecf8427e
- account ID as returned by the API * b58c6f14d292556214bd64909bcdb118
- account member ID as returned by the API
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.