Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

Project

Create a Project Resource

new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
def Project(resource_name: str, opts: Optional[ResourceOptions] = None, name: Optional[str] = None, org_id: Optional[str] = None, teams: Optional[Sequence[ProjectTeamArgs]] = None)
func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Project Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Project resource accepts the following input properties:

OrgId string

The ID of the organization you want to create the project within.

Name string

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

Teams List<ProjectTeamArgs>
OrgId string

The ID of the organization you want to create the project within.

Name string

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

Teams []ProjectTeam
orgId string

The ID of the organization you want to create the project within.

name string

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

teams ProjectTeam[]
org_id str

The ID of the organization you want to create the project within.

name str

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

teams Sequence[ProjectTeamArgs]

Outputs

All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

ClusterCount int

The number of Atlas clusters deployed in the project..

Created string

The ISO-8601-formatted timestamp of when Atlas created the project..

Id string
The provider-assigned unique ID for this managed resource.
ClusterCount int

The number of Atlas clusters deployed in the project..

Created string

The ISO-8601-formatted timestamp of when Atlas created the project..

Id string
The provider-assigned unique ID for this managed resource.
clusterCount number

The number of Atlas clusters deployed in the project..

created string

The ISO-8601-formatted timestamp of when Atlas created the project..

id string
The provider-assigned unique ID for this managed resource.
cluster_count int

The number of Atlas clusters deployed in the project..

created str

The ISO-8601-formatted timestamp of when Atlas created the project..

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Project Resource

Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, cluster_count: Optional[int] = None, created: Optional[str] = None, name: Optional[str] = None, org_id: Optional[str] = None, teams: Optional[Sequence[ProjectTeamArgs]] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

ClusterCount int

The number of Atlas clusters deployed in the project..

Created string

The ISO-8601-formatted timestamp of when Atlas created the project..

Name string

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

OrgId string

The ID of the organization you want to create the project within.

Teams List<ProjectTeamArgs>
ClusterCount int

The number of Atlas clusters deployed in the project..

Created string

The ISO-8601-formatted timestamp of when Atlas created the project..

Name string

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

OrgId string

The ID of the organization you want to create the project within.

Teams []ProjectTeam
clusterCount number

The number of Atlas clusters deployed in the project..

created string

The ISO-8601-formatted timestamp of when Atlas created the project..

name string

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

orgId string

The ID of the organization you want to create the project within.

teams ProjectTeam[]
cluster_count int

The number of Atlas clusters deployed in the project..

created str

The ISO-8601-formatted timestamp of when Atlas created the project..

name str

The name of the project you want to create. (Cannot be changed via this Provider after creation.)

org_id str

The ID of the organization you want to create the project within.

teams Sequence[ProjectTeamArgs]

Supporting Types

ProjectTeam

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

RoleNames List<string>

Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The following are valid roles: * GROUP_OWNER * GROUP_READ_ONLY * GROUP_DATA_ACCESS_ADMIN * GROUP_DATA_ACCESS_READ_WRITE * GROUP_DATA_ACCESS_READ_ONLY * GROUP_CLUSTER_MANAGER

TeamId string

The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.

RoleNames []string

Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The following are valid roles: * GROUP_OWNER * GROUP_READ_ONLY * GROUP_DATA_ACCESS_ADMIN * GROUP_DATA_ACCESS_READ_WRITE * GROUP_DATA_ACCESS_READ_ONLY * GROUP_CLUSTER_MANAGER

TeamId string

The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.

roleNames string[]

Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The following are valid roles: * GROUP_OWNER * GROUP_READ_ONLY * GROUP_DATA_ACCESS_ADMIN * GROUP_DATA_ACCESS_READ_WRITE * GROUP_DATA_ACCESS_READ_ONLY * GROUP_CLUSTER_MANAGER

teamId string

The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.

role_names Sequence[str]

Each string in the array represents a project role you want to assign to the team. Every user associated with the team inherits these roles. You must specify an array even if you are only associating a single role with the team. The following are valid roles: * GROUP_OWNER * GROUP_READ_ONLY * GROUP_DATA_ACCESS_ADMIN * GROUP_DATA_ACCESS_READ_WRITE * GROUP_DATA_ACCESS_READ_ONLY * GROUP_CLUSTER_MANAGER

team_id str

The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.

Package Details

Repository
https://github.com/pulumi/pulumi-mongodbatlas
License
Apache-2.0
Notes
This Pulumi package is based on the mongodbatlas Terraform Provider.