bitwarden.OrgCollection
Explore with Pulumi AI
Manages an organization collection.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitwarden.BitwardenFunctions;
import com.pulumi.bitwarden.inputs.GetOrganizationArgs;
import com.pulumi.bitwarden.OrgCollection;
import com.pulumi.bitwarden.OrgCollectionArgs;
import com.pulumi.bitwarden.inputs.OrgCollectionMemberArgs;
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) {
final var terraform = BitwardenFunctions.getOrganization(GetOrganizationArgs.builder()
.search("Terraform")
.build());
var infrastructure = new OrgCollection("infrastructure", OrgCollectionArgs.builder()
.organizationId(terraform.applyValue(getOrganizationResult -> getOrganizationResult.id()))
.build());
var generated = new OrgCollection("generated", OrgCollectionArgs.builder()
.organizationId(terraform.applyValue(getOrganizationResult -> getOrganizationResult.id()))
.members(OrgCollectionMemberArgs.builder()
.email("devops@example.com")
.build())
.build());
}
}
resources:
infrastructure:
type: bitwarden:OrgCollection
properties:
organizationId: ${terraform.id}
generated:
type: bitwarden:OrgCollection
properties:
organizationId: ${terraform.id}
members:
- email: devops@example.com
variables:
terraform:
fn::invoke:
function: bitwarden:getOrganization
arguments:
search: Terraform
Create OrgCollection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrgCollection(name: string, args: OrgCollectionArgs, opts?: CustomResourceOptions);
@overload
def OrgCollection(resource_name: str,
args: OrgCollectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrgCollection(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
members: Optional[Sequence[OrgCollectionMemberArgs]] = None,
name: Optional[str] = None,
org_collection_id: Optional[str] = None)
func NewOrgCollection(ctx *Context, name string, args OrgCollectionArgs, opts ...ResourceOption) (*OrgCollection, error)
public OrgCollection(string name, OrgCollectionArgs args, CustomResourceOptions? opts = null)
public OrgCollection(String name, OrgCollectionArgs args)
public OrgCollection(String name, OrgCollectionArgs args, CustomResourceOptions options)
type: bitwarden:OrgCollection
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 OrgCollectionArgs
- 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 OrgCollectionArgs
- 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 OrgCollectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrgCollectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrgCollectionArgs
- 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 orgCollectionResource = new Bitwarden.OrgCollection("orgCollectionResource", new()
{
OrganizationId = "string",
Members = new[]
{
new Bitwarden.Inputs.OrgCollectionMemberArgs
{
Id = "string",
HidePasswords = false,
ReadOnly = false,
},
},
Name = "string",
OrgCollectionId = "string",
});
example, err := bitwarden.NewOrgCollection(ctx, "orgCollectionResource", &bitwarden.OrgCollectionArgs{
OrganizationId: pulumi.String("string"),
Members: bitwarden.OrgCollectionMemberArray{
&bitwarden.OrgCollectionMemberArgs{
Id: pulumi.String("string"),
HidePasswords: pulumi.Bool(false),
ReadOnly: pulumi.Bool(false),
},
},
Name: pulumi.String("string"),
OrgCollectionId: pulumi.String("string"),
})
var orgCollectionResource = new OrgCollection("orgCollectionResource", OrgCollectionArgs.builder()
.organizationId("string")
.members(OrgCollectionMemberArgs.builder()
.id("string")
.hidePasswords(false)
.readOnly(false)
.build())
.name("string")
.orgCollectionId("string")
.build());
org_collection_resource = bitwarden.OrgCollection("orgCollectionResource",
organization_id="string",
members=[{
"id": "string",
"hide_passwords": False,
"read_only": False,
}],
name="string",
org_collection_id="string")
const orgCollectionResource = new bitwarden.OrgCollection("orgCollectionResource", {
organizationId: "string",
members: [{
id: "string",
hidePasswords: false,
readOnly: false,
}],
name: "string",
orgCollectionId: "string",
});
type: bitwarden:OrgCollection
properties:
members:
- hidePasswords: false
id: string
readOnly: false
name: string
orgCollectionId: string
organizationId: string
OrgCollection 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 OrgCollection resource accepts the following input properties:
- Organization
Id string - Identifier of the organization.
- Members
List<Org
Collection Member> - [Experimental] Member of a collection.
- Name string
- Name.
- Org
Collection stringId - Identifier.
- Organization
Id string - Identifier of the organization.
- Members
[]Org
Collection Member Args - [Experimental] Member of a collection.
- Name string
- Name.
- Org
Collection stringId - Identifier.
- organization
Id String - Identifier of the organization.
- members
List<Org
Collection Member> - [Experimental] Member of a collection.
- name String
- Name.
- org
Collection StringId - Identifier.
- organization
Id string - Identifier of the organization.
- members
Org
Collection Member[] - [Experimental] Member of a collection.
- name string
- Name.
- org
Collection stringId - Identifier.
- organization_
id str - Identifier of the organization.
- members
Sequence[Org
Collection Member Args] - [Experimental] Member of a collection.
- name str
- Name.
- org_
collection_ strid - Identifier.
- organization
Id String - Identifier of the organization.
- members List<Property Map>
- [Experimental] Member of a collection.
- name String
- Name.
- org
Collection StringId - Identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrgCollection 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 Existing OrgCollection Resource
Get an existing OrgCollection 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?: OrgCollectionState, opts?: CustomResourceOptions): OrgCollection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
members: Optional[Sequence[OrgCollectionMemberArgs]] = None,
name: Optional[str] = None,
org_collection_id: Optional[str] = None,
organization_id: Optional[str] = None) -> OrgCollection
func GetOrgCollection(ctx *Context, name string, id IDInput, state *OrgCollectionState, opts ...ResourceOption) (*OrgCollection, error)
public static OrgCollection Get(string name, Input<string> id, OrgCollectionState? state, CustomResourceOptions? opts = null)
public static OrgCollection get(String name, Output<String> id, OrgCollectionState state, CustomResourceOptions options)
resources: _: type: bitwarden:OrgCollection 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.
- Members
List<Org
Collection Member> - [Experimental] Member of a collection.
- Name string
- Name.
- Org
Collection stringId - Identifier.
- Organization
Id string - Identifier of the organization.
- Members
[]Org
Collection Member Args - [Experimental] Member of a collection.
- Name string
- Name.
- Org
Collection stringId - Identifier.
- Organization
Id string - Identifier of the organization.
- members
List<Org
Collection Member> - [Experimental] Member of a collection.
- name String
- Name.
- org
Collection StringId - Identifier.
- organization
Id String - Identifier of the organization.
- members
Org
Collection Member[] - [Experimental] Member of a collection.
- name string
- Name.
- org
Collection stringId - Identifier.
- organization
Id string - Identifier of the organization.
- members
Sequence[Org
Collection Member Args] - [Experimental] Member of a collection.
- name str
- Name.
- org_
collection_ strid - Identifier.
- organization_
id str - Identifier of the organization.
- members List<Property Map>
- [Experimental] Member of a collection.
- name String
- Name.
- org
Collection StringId - Identifier.
- organization
Id String - Identifier of the organization.
Supporting Types
OrgCollectionMember, OrgCollectionMemberArgs
- Id string
- Identifier.
- Hide
Passwords bool - [Experimental] Hide passwords.
- Read
Only bool - [Experimental] Read/Write permissions.
- Id string
- Identifier.
- Hide
Passwords bool - [Experimental] Hide passwords.
- Read
Only bool - [Experimental] Read/Write permissions.
- id String
- Identifier.
- hide
Passwords Boolean - [Experimental] Hide passwords.
- read
Only Boolean - [Experimental] Read/Write permissions.
- id string
- Identifier.
- hide
Passwords boolean - [Experimental] Hide passwords.
- read
Only boolean - [Experimental] Read/Write permissions.
- id str
- Identifier.
- hide_
passwords bool - [Experimental] Hide passwords.
- read_
only bool - [Experimental] Read/Write permissions.
- id String
- Identifier.
- hide
Passwords Boolean - [Experimental] Hide passwords.
- read
Only Boolean - [Experimental] Read/Write permissions.
Import
$ pulumi import bitwarden:index/orgCollection:OrgCollection example <organization_id>/<collection_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bitwarden maxlaverse/terraform-provider-bitwarden
- License
- Notes
- This Pulumi package is based on the
bitwarden
Terraform Provider.