cloudflare.AccountMember
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleAccountMember = new cloudflare.AccountMember("example_account_member", {
accountId: "eb78d65290b24279ba6f44721b3ea3c4",
email: "user@example.com",
roles: ["3536bcfad5faccb999b47003c79917fb"],
status: "accepted",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_account_member = cloudflare.AccountMember("example_account_member",
account_id="eb78d65290b24279ba6f44721b3ea3c4",
email="user@example.com",
roles=["3536bcfad5faccb999b47003c79917fb"],
status="accepted")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewAccountMember(ctx, "example_account_member", &cloudflare.AccountMemberArgs{
AccountId: pulumi.String("eb78d65290b24279ba6f44721b3ea3c4"),
Email: pulumi.String("user@example.com"),
Roles: pulumi.StringArray{
pulumi.String("3536bcfad5faccb999b47003c79917fb"),
},
Status: pulumi.String("accepted"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleAccountMember = new Cloudflare.AccountMember("example_account_member", new()
{
AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
Email = "user@example.com",
Roles = new[]
{
"3536bcfad5faccb999b47003c79917fb",
},
Status = "accepted",
});
});
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 exampleAccountMember = new AccountMember("exampleAccountMember", AccountMemberArgs.builder()
.accountId("eb78d65290b24279ba6f44721b3ea3c4")
.email("user@example.com")
.roles("3536bcfad5faccb999b47003c79917fb")
.status("accepted")
.build());
}
}
resources:
exampleAccountMember:
type: cloudflare:AccountMember
name: example_account_member
properties:
accountId: eb78d65290b24279ba6f44721b3ea3c4
email: user@example.com
roles:
- 3536bcfad5faccb999b47003c79917fb
status: accepted
Create AccountMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccountMember(name: string, args: AccountMemberArgs, opts?: CustomResourceOptions);
@overload
def AccountMember(resource_name: str,
args: AccountMemberArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccountMember(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
email: Optional[str] = None,
policies: Optional[Sequence[AccountMemberPolicyArgs]] = None,
roles: Optional[Sequence[str]] = None,
status: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var accountMemberResource = new Cloudflare.AccountMember("accountMemberResource", new()
{
AccountId = "string",
Email = "string",
Policies = new[]
{
new Cloudflare.Inputs.AccountMemberPolicyArgs
{
Access = "string",
PermissionGroups = new[]
{
new Cloudflare.Inputs.AccountMemberPolicyPermissionGroupArgs
{
Id = "string",
},
},
ResourceGroups = new[]
{
new Cloudflare.Inputs.AccountMemberPolicyResourceGroupArgs
{
Id = "string",
},
},
Id = "string",
},
},
Roles = new[]
{
"string",
},
Status = "string",
});
example, err := cloudflare.NewAccountMember(ctx, "accountMemberResource", &cloudflare.AccountMemberArgs{
AccountId: pulumi.String("string"),
Email: pulumi.String("string"),
Policies: cloudflare.AccountMemberPolicyArray{
&cloudflare.AccountMemberPolicyArgs{
Access: pulumi.String("string"),
PermissionGroups: cloudflare.AccountMemberPolicyPermissionGroupArray{
&cloudflare.AccountMemberPolicyPermissionGroupArgs{
Id: pulumi.String("string"),
},
},
ResourceGroups: cloudflare.AccountMemberPolicyResourceGroupArray{
&cloudflare.AccountMemberPolicyResourceGroupArgs{
Id: pulumi.String("string"),
},
},
Id: pulumi.String("string"),
},
},
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
})
var accountMemberResource = new AccountMember("accountMemberResource", AccountMemberArgs.builder()
.accountId("string")
.email("string")
.policies(AccountMemberPolicyArgs.builder()
.access("string")
.permissionGroups(AccountMemberPolicyPermissionGroupArgs.builder()
.id("string")
.build())
.resourceGroups(AccountMemberPolicyResourceGroupArgs.builder()
.id("string")
.build())
.id("string")
.build())
.roles("string")
.status("string")
.build());
account_member_resource = cloudflare.AccountMember("accountMemberResource",
account_id="string",
email="string",
policies=[{
"access": "string",
"permission_groups": [{
"id": "string",
}],
"resource_groups": [{
"id": "string",
}],
"id": "string",
}],
roles=["string"],
status="string")
const accountMemberResource = new cloudflare.AccountMember("accountMemberResource", {
accountId: "string",
email: "string",
policies: [{
access: "string",
permissionGroups: [{
id: "string",
}],
resourceGroups: [{
id: "string",
}],
id: "string",
}],
roles: ["string"],
status: "string",
});
type: cloudflare:AccountMember
properties:
accountId: string
email: string
policies:
- access: string
id: string
permissionGroups:
- id: string
resourceGroups:
- id: string
roles:
- string
status: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccountMember resource accepts the following input properties:
- account_
id str - Account identifier tag.
- email str
- The contact email address of the user.
- policies
Sequence[Account
Member Policy Args] - Array of policies associated with this member.
- roles Sequence[str]
- Array of roles associated with this member.
- status str
- Available values: "accepted", "pending".
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.
- User
Account
Member User - Details of the user associated to the membership.
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Account
Member User - Details of the user associated to the membership.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Account
Member User - Details of the user associated to the membership.
- id string
- The provider-assigned unique ID for this managed resource.
- user
Account
Member User - Details of the user associated to the membership.
- id str
- The provider-assigned unique ID for this managed resource.
- user
Account
Member User - Details of the user associated to the membership.
- id String
- The provider-assigned unique ID for this managed resource.
- user Property Map
- Details of the user associated to the membership.
Look up 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,
account_id: Optional[str] = None,
email: Optional[str] = None,
policies: Optional[Sequence[AccountMemberPolicyArgs]] = None,
roles: Optional[Sequence[str]] = None,
status: Optional[str] = None,
user: Optional[AccountMemberUserArgs] = 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)
resources: _: type: cloudflare:AccountMember get: id: ${id}
- 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.
- Account
Id string - Account identifier tag.
- Email string
- The contact email address of the user.
- Policies
List<Account
Member Policy> - Array of policies associated with this member.
- Roles List<string>
- Array of roles associated with this member.
- Status string
- Available values: "accepted", "pending".
- User
Account
Member User - Details of the user associated to the membership.
- Account
Id string - Account identifier tag.
- Email string
- The contact email address of the user.
- Policies
[]Account
Member Policy Args - Array of policies associated with this member.
- Roles []string
- Array of roles associated with this member.
- Status string
- Available values: "accepted", "pending".
- User
Account
Member User Args - Details of the user associated to the membership.
- account
Id String - Account identifier tag.
- email String
- The contact email address of the user.
- policies
List<Account
Member Policy> - Array of policies associated with this member.
- roles List<String>
- Array of roles associated with this member.
- status String
- Available values: "accepted", "pending".
- user
Account
Member User - Details of the user associated to the membership.
- account
Id string - Account identifier tag.
- email string
- The contact email address of the user.
- policies
Account
Member Policy[] - Array of policies associated with this member.
- roles string[]
- Array of roles associated with this member.
- status string
- Available values: "accepted", "pending".
- user
Account
Member User - Details of the user associated to the membership.
- account_
id str - Account identifier tag.
- email str
- The contact email address of the user.
- policies
Sequence[Account
Member Policy Args] - Array of policies associated with this member.
- roles Sequence[str]
- Array of roles associated with this member.
- status str
- Available values: "accepted", "pending".
- user
Account
Member User Args - Details of the user associated to the membership.
- account
Id String - Account identifier tag.
- email String
- The contact email address of the user.
- policies List<Property Map>
- Array of policies associated with this member.
- roles List<String>
- Array of roles associated with this member.
- status String
- Available values: "accepted", "pending".
- user Property Map
- Details of the user associated to the membership.
Supporting Types
AccountMemberPolicy, AccountMemberPolicyArgs
- Access string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- Permission
Groups List<AccountMember Policy Permission Group> - A set of permission groups that are specified to the policy.
- Resource
Groups List<AccountMember Policy Resource Group> - A list of resource groups that the policy applies to.
- Id string
- Policy identifier.
- Access string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- Permission
Groups []AccountMember Policy Permission Group - A set of permission groups that are specified to the policy.
- Resource
Groups []AccountMember Policy Resource Group - A list of resource groups that the policy applies to.
- Id string
- Policy identifier.
- access String
- Allow or deny operations against the resources. Available values: "allow", "deny".
- permission
Groups List<AccountMember Policy Permission Group> - A set of permission groups that are specified to the policy.
- resource
Groups List<AccountMember Policy Resource Group> - A list of resource groups that the policy applies to.
- id String
- Policy identifier.
- access string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- permission
Groups AccountMember Policy Permission Group[] - A set of permission groups that are specified to the policy.
- resource
Groups AccountMember Policy Resource Group[] - A list of resource groups that the policy applies to.
- id string
- Policy identifier.
- access str
- Allow or deny operations against the resources. Available values: "allow", "deny".
- permission_
groups Sequence[AccountMember Policy Permission Group] - A set of permission groups that are specified to the policy.
- resource_
groups Sequence[AccountMember Policy Resource Group] - A list of resource groups that the policy applies to.
- id str
- Policy identifier.
- access String
- Allow or deny operations against the resources. Available values: "allow", "deny".
- permission
Groups List<Property Map> - A set of permission groups that are specified to the policy.
- resource
Groups List<Property Map> - A list of resource groups that the policy applies to.
- id String
- Policy identifier.
AccountMemberPolicyPermissionGroup, AccountMemberPolicyPermissionGroupArgs
- Id string
- Identifier of the group.
- Id string
- Identifier of the group.
- id String
- Identifier of the group.
- id string
- Identifier of the group.
- id str
- Identifier of the group.
- id String
- Identifier of the group.
AccountMemberPolicyResourceGroup, AccountMemberPolicyResourceGroupArgs
- Id string
- Identifier of the group.
- Id string
- Identifier of the group.
- id String
- Identifier of the group.
- id string
- Identifier of the group.
- id str
- Identifier of the group.
- id String
- Identifier of the group.
AccountMemberUser, AccountMemberUserArgs
- Email string
- The contact email address of the user.
- First
Name string - User's first name
- Id string
- Identifier
- Last
Name string - User's last name
- Two
Factor boolAuthentication Enabled - Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
- Email string
- The contact email address of the user.
- First
Name string - User's first name
- Id string
- Identifier
- Last
Name string - User's last name
- Two
Factor boolAuthentication Enabled - Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
- email String
- The contact email address of the user.
- first
Name String - User's first name
- id String
- Identifier
- last
Name String - User's last name
- two
Factor BooleanAuthentication Enabled - Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
- email string
- The contact email address of the user.
- first
Name string - User's first name
- id string
- Identifier
- last
Name string - User's last name
- two
Factor booleanAuthentication Enabled - Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
- email str
- The contact email address of the user.
- first_
name str - User's first name
- id str
- Identifier
- last_
name str - User's last name
- two_
factor_ boolauthentication_ enabled - Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
- email String
- The contact email address of the user.
- first
Name String - User's first name
- id String
- Identifier
- last
Name String - User's last name
- two
Factor BooleanAuthentication Enabled - Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.
Import
$ pulumi import cloudflare:index/accountMember:AccountMember example '<account_id>/<member_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.