onepassword

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Use the 1Password Pulumi provider to access and manage items in your 1Password vaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetItemSection

type GetItemSection struct {
	// A list of custom fields in the section.
	Fields []GetItemSectionField `pulumi:"fields"`
	// A unique identifier for the section.
	Id string `pulumi:"id"`
	// The label for the section.
	Label string `pulumi:"label"`
}

type GetItemSectionArgs

type GetItemSectionArgs struct {
	// A list of custom fields in the section.
	Fields GetItemSectionFieldArrayInput `pulumi:"fields"`
	// A unique identifier for the section.
	Id pulumi.StringInput `pulumi:"id"`
	// The label for the section.
	Label pulumi.StringInput `pulumi:"label"`
}

func (GetItemSectionArgs) ElementType

func (GetItemSectionArgs) ElementType() reflect.Type

func (GetItemSectionArgs) ToGetItemSectionOutput

func (i GetItemSectionArgs) ToGetItemSectionOutput() GetItemSectionOutput

func (GetItemSectionArgs) ToGetItemSectionOutputWithContext

func (i GetItemSectionArgs) ToGetItemSectionOutputWithContext(ctx context.Context) GetItemSectionOutput

type GetItemSectionArray

type GetItemSectionArray []GetItemSectionInput

func (GetItemSectionArray) ElementType

func (GetItemSectionArray) ElementType() reflect.Type

func (GetItemSectionArray) ToGetItemSectionArrayOutput

func (i GetItemSectionArray) ToGetItemSectionArrayOutput() GetItemSectionArrayOutput

func (GetItemSectionArray) ToGetItemSectionArrayOutputWithContext

func (i GetItemSectionArray) ToGetItemSectionArrayOutputWithContext(ctx context.Context) GetItemSectionArrayOutput

type GetItemSectionArrayInput

type GetItemSectionArrayInput interface {
	pulumi.Input

	ToGetItemSectionArrayOutput() GetItemSectionArrayOutput
	ToGetItemSectionArrayOutputWithContext(context.Context) GetItemSectionArrayOutput
}

GetItemSectionArrayInput is an input type that accepts GetItemSectionArray and GetItemSectionArrayOutput values. You can construct a concrete instance of `GetItemSectionArrayInput` via:

GetItemSectionArray{ GetItemSectionArgs{...} }

type GetItemSectionArrayOutput

type GetItemSectionArrayOutput struct{ *pulumi.OutputState }

func (GetItemSectionArrayOutput) ElementType

func (GetItemSectionArrayOutput) ElementType() reflect.Type

func (GetItemSectionArrayOutput) Index

func (GetItemSectionArrayOutput) ToGetItemSectionArrayOutput

func (o GetItemSectionArrayOutput) ToGetItemSectionArrayOutput() GetItemSectionArrayOutput

func (GetItemSectionArrayOutput) ToGetItemSectionArrayOutputWithContext

func (o GetItemSectionArrayOutput) ToGetItemSectionArrayOutputWithContext(ctx context.Context) GetItemSectionArrayOutput

type GetItemSectionField

type GetItemSectionField struct {
	// A unique identifier for the field.
	Id string `pulumi:"id"`
	// The label for the field.
	Label string `pulumi:"label"`
	// Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
	Purpose string `pulumi:"purpose"`
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type string `pulumi:"type"`
	// The value of the field.
	Value string `pulumi:"value"`
}

type GetItemSectionFieldArgs

type GetItemSectionFieldArgs struct {
	// A unique identifier for the field.
	Id pulumi.StringInput `pulumi:"id"`
	// The label for the field.
	Label pulumi.StringInput `pulumi:"label"`
	// Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
	Purpose pulumi.StringInput `pulumi:"purpose"`
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type pulumi.StringInput `pulumi:"type"`
	// The value of the field.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetItemSectionFieldArgs) ElementType

func (GetItemSectionFieldArgs) ElementType() reflect.Type

func (GetItemSectionFieldArgs) ToGetItemSectionFieldOutput

func (i GetItemSectionFieldArgs) ToGetItemSectionFieldOutput() GetItemSectionFieldOutput

func (GetItemSectionFieldArgs) ToGetItemSectionFieldOutputWithContext

func (i GetItemSectionFieldArgs) ToGetItemSectionFieldOutputWithContext(ctx context.Context) GetItemSectionFieldOutput

type GetItemSectionFieldArray

type GetItemSectionFieldArray []GetItemSectionFieldInput

func (GetItemSectionFieldArray) ElementType

func (GetItemSectionFieldArray) ElementType() reflect.Type

func (GetItemSectionFieldArray) ToGetItemSectionFieldArrayOutput

func (i GetItemSectionFieldArray) ToGetItemSectionFieldArrayOutput() GetItemSectionFieldArrayOutput

func (GetItemSectionFieldArray) ToGetItemSectionFieldArrayOutputWithContext

func (i GetItemSectionFieldArray) ToGetItemSectionFieldArrayOutputWithContext(ctx context.Context) GetItemSectionFieldArrayOutput

type GetItemSectionFieldArrayInput

type GetItemSectionFieldArrayInput interface {
	pulumi.Input

	ToGetItemSectionFieldArrayOutput() GetItemSectionFieldArrayOutput
	ToGetItemSectionFieldArrayOutputWithContext(context.Context) GetItemSectionFieldArrayOutput
}

GetItemSectionFieldArrayInput is an input type that accepts GetItemSectionFieldArray and GetItemSectionFieldArrayOutput values. You can construct a concrete instance of `GetItemSectionFieldArrayInput` via:

GetItemSectionFieldArray{ GetItemSectionFieldArgs{...} }

type GetItemSectionFieldArrayOutput

type GetItemSectionFieldArrayOutput struct{ *pulumi.OutputState }

func (GetItemSectionFieldArrayOutput) ElementType

func (GetItemSectionFieldArrayOutput) Index

func (GetItemSectionFieldArrayOutput) ToGetItemSectionFieldArrayOutput

func (o GetItemSectionFieldArrayOutput) ToGetItemSectionFieldArrayOutput() GetItemSectionFieldArrayOutput

func (GetItemSectionFieldArrayOutput) ToGetItemSectionFieldArrayOutputWithContext

func (o GetItemSectionFieldArrayOutput) ToGetItemSectionFieldArrayOutputWithContext(ctx context.Context) GetItemSectionFieldArrayOutput

type GetItemSectionFieldInput

type GetItemSectionFieldInput interface {
	pulumi.Input

	ToGetItemSectionFieldOutput() GetItemSectionFieldOutput
	ToGetItemSectionFieldOutputWithContext(context.Context) GetItemSectionFieldOutput
}

GetItemSectionFieldInput is an input type that accepts GetItemSectionFieldArgs and GetItemSectionFieldOutput values. You can construct a concrete instance of `GetItemSectionFieldInput` via:

GetItemSectionFieldArgs{...}

type GetItemSectionFieldOutput

type GetItemSectionFieldOutput struct{ *pulumi.OutputState }

func (GetItemSectionFieldOutput) ElementType

func (GetItemSectionFieldOutput) ElementType() reflect.Type

func (GetItemSectionFieldOutput) Id

A unique identifier for the field.

func (GetItemSectionFieldOutput) Label

The label for the field.

func (GetItemSectionFieldOutput) Purpose

Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]

func (GetItemSectionFieldOutput) ToGetItemSectionFieldOutput

func (o GetItemSectionFieldOutput) ToGetItemSectionFieldOutput() GetItemSectionFieldOutput

func (GetItemSectionFieldOutput) ToGetItemSectionFieldOutputWithContext

func (o GetItemSectionFieldOutput) ToGetItemSectionFieldOutputWithContext(ctx context.Context) GetItemSectionFieldOutput

func (GetItemSectionFieldOutput) Type

The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]

func (GetItemSectionFieldOutput) Value

The value of the field.

type GetItemSectionInput

type GetItemSectionInput interface {
	pulumi.Input

	ToGetItemSectionOutput() GetItemSectionOutput
	ToGetItemSectionOutputWithContext(context.Context) GetItemSectionOutput
}

GetItemSectionInput is an input type that accepts GetItemSectionArgs and GetItemSectionOutput values. You can construct a concrete instance of `GetItemSectionInput` via:

GetItemSectionArgs{...}

type GetItemSectionOutput

type GetItemSectionOutput struct{ *pulumi.OutputState }

func (GetItemSectionOutput) ElementType

func (GetItemSectionOutput) ElementType() reflect.Type

func (GetItemSectionOutput) Fields

A list of custom fields in the section.

func (GetItemSectionOutput) Id

A unique identifier for the section.

func (GetItemSectionOutput) Label

The label for the section.

func (GetItemSectionOutput) ToGetItemSectionOutput

func (o GetItemSectionOutput) ToGetItemSectionOutput() GetItemSectionOutput

func (GetItemSectionOutput) ToGetItemSectionOutputWithContext

func (o GetItemSectionOutput) ToGetItemSectionOutputWithContext(ctx context.Context) GetItemSectionOutput

type GetVaultArgs

type GetVaultArgs struct {
	// The name of the vault to retrieve. This field will be populated with the name of the vault if the vault it looked up by its UUID.
	Name *string `pulumi:"name"`
	// The UUID of the vault to retrieve. This field will be populated with the UUID of the vault if the vault it looked up by its name.
	Uuid *string `pulumi:"uuid"`
}

A collection of arguments for invoking getVault.

type GetVaultOutputArgs

type GetVaultOutputArgs struct {
	// The name of the vault to retrieve. This field will be populated with the name of the vault if the vault it looked up by its UUID.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The UUID of the vault to retrieve. This field will be populated with the UUID of the vault if the vault it looked up by its name.
	Uuid pulumi.StringPtrInput `pulumi:"uuid"`
}

A collection of arguments for invoking getVault.

func (GetVaultOutputArgs) ElementType

func (GetVaultOutputArgs) ElementType() reflect.Type

type GetVaultResult

type GetVaultResult struct {
	// The description of the vault.
	Description string `pulumi:"description"`
	Id          string `pulumi:"id"`
	// The name of the vault to retrieve. This field will be populated with the name of the vault if the vault it looked up by its UUID.
	Name string `pulumi:"name"`
	// The UUID of the vault to retrieve. This field will be populated with the UUID of the vault if the vault it looked up by its name.
	Uuid string `pulumi:"uuid"`
}

A collection of values returned by getVault.

func GetVault

func GetVault(ctx *pulumi.Context, args *GetVaultArgs, opts ...pulumi.InvokeOption) (*GetVaultResult, error)

Use this data source to get details of a vault by either its name or uuid.

type GetVaultResultOutput

type GetVaultResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVault.

func (GetVaultResultOutput) Description

func (o GetVaultResultOutput) Description() pulumi.StringOutput

The description of the vault.

func (GetVaultResultOutput) ElementType

func (GetVaultResultOutput) ElementType() reflect.Type

func (GetVaultResultOutput) Id

func (GetVaultResultOutput) Name

The name of the vault to retrieve. This field will be populated with the name of the vault if the vault it looked up by its UUID.

func (GetVaultResultOutput) ToGetVaultResultOutput

func (o GetVaultResultOutput) ToGetVaultResultOutput() GetVaultResultOutput

func (GetVaultResultOutput) ToGetVaultResultOutputWithContext

func (o GetVaultResultOutput) ToGetVaultResultOutputWithContext(ctx context.Context) GetVaultResultOutput

func (GetVaultResultOutput) Uuid

The UUID of the vault to retrieve. This field will be populated with the UUID of the vault if the vault it looked up by its name.

type Item

type Item struct {
	pulumi.CustomResourceState

	// The category of the item. One of ["login" "password" "database"]
	Category pulumi.StringPtrOutput `pulumi:"category"`
	// (Only applies to the database category) The name of the database.
	Database pulumi.StringPtrOutput `pulumi:"database"`
	// (Only applies to the database category) The address where the database can be found
	Hostname pulumi.StringPtrOutput `pulumi:"hostname"`
	// Password for this item.
	Password pulumi.StringOutput `pulumi:"password"`
	// Password for this item.
	PasswordRecipe ItemPasswordRecipePtrOutput `pulumi:"passwordRecipe"`
	// (Only applies to the database category) The port the database is listening on.
	Port pulumi.StringPtrOutput `pulumi:"port"`
	// A list of custom sections in an item
	Sections ItemSectionArrayOutput `pulumi:"sections"`
	// An array of strings of the tags assigned to the item.
	Tags pulumi.StringArrayOutput `pulumi:"tags"`
	// The title of the item.
	Title pulumi.StringPtrOutput `pulumi:"title"`
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type pulumi.StringPtrOutput `pulumi:"type"`
	// The primary URL for the item.
	Url pulumi.StringPtrOutput `pulumi:"url"`
	// Username for this item.
	Username pulumi.StringPtrOutput `pulumi:"username"`
	// The UUID of the item. Item identifiers are unique within a specific vault.
	Uuid pulumi.StringOutput `pulumi:"uuid"`
	// The UUID of the vault the item is in.
	Vault pulumi.StringOutput `pulumi:"vault"`
}

A 1Password item.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/1Password/pulumi-onepassword/sdk/go/onepassword"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := onepassword.NewItem(ctx, "demoPassword", &onepassword.ItemArgs{
			Vault:    pulumi.Any(_var.Demo_vault),
			Title:    pulumi.String("Demo Password Recipe"),
			Category: pulumi.String("password"),
			PasswordRecipe: &onepassword.ItemPasswordRecipeArgs{
				Length:  pulumi.Int(40),
				Symbols: pulumi.Bool(false),
			},
			Sections: onepassword.ItemSectionArray{
				&onepassword.ItemSectionArgs{
					Label: pulumi.String("Credential metadata"),
					Fields: onepassword.ItemSectionFieldArray{
						&onepassword.ItemSectionFieldArgs{
							Label: pulumi.String("Expiration"),
							Type:  pulumi.String("DATE"),
							Value: pulumi.String("2024-01-31"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = onepassword.NewItem(ctx, "demoLogin", &onepassword.ItemArgs{
			Vault:    pulumi.Any(_var.Demo_vault),
			Title:    pulumi.String("Demo Terraform Login"),
			Category: pulumi.String("login"),
			Username: pulumi.String("test@example.com"),
		})
		if err != nil {
			return err
		}
		_, err = onepassword.NewItem(ctx, "demoDb", &onepassword.ItemArgs{
			Vault:    pulumi.Any(_var.Demo_vault),
			Category: pulumi.String("database"),
			Type:     pulumi.String("mysql"),
			Title:    pulumi.String("Demo TF Database"),
			Username: pulumi.String("root"),
			Database: pulumi.String("Example MySQL Instance"),
			Hostname: pulumi.String("localhost"),
			Port:     pulumi.String("3306"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

import an existing 1Password item

```sh $ pulumi import onepassword:index/item:Item myitem vaults/<vault uuid>/items/<item uuid> ```

func GetItem

func GetItem(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ItemState, opts ...pulumi.ResourceOption) (*Item, error)

GetItem gets an existing Item resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewItem

func NewItem(ctx *pulumi.Context,
	name string, args *ItemArgs, opts ...pulumi.ResourceOption) (*Item, error)

NewItem registers a new resource with the given unique name, arguments, and options.

func (*Item) ElementType

func (*Item) ElementType() reflect.Type

func (*Item) ToItemOutput

func (i *Item) ToItemOutput() ItemOutput

func (*Item) ToItemOutputWithContext

func (i *Item) ToItemOutputWithContext(ctx context.Context) ItemOutput

type ItemArgs

type ItemArgs struct {
	// The category of the item. One of ["login" "password" "database"]
	Category pulumi.StringPtrInput
	// (Only applies to the database category) The name of the database.
	Database pulumi.StringPtrInput
	// (Only applies to the database category) The address where the database can be found
	Hostname pulumi.StringPtrInput
	// Password for this item.
	Password pulumi.StringPtrInput
	// Password for this item.
	PasswordRecipe ItemPasswordRecipePtrInput
	// (Only applies to the database category) The port the database is listening on.
	Port pulumi.StringPtrInput
	// A list of custom sections in an item
	Sections ItemSectionArrayInput
	// An array of strings of the tags assigned to the item.
	Tags pulumi.StringArrayInput
	// The title of the item.
	Title pulumi.StringPtrInput
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type pulumi.StringPtrInput
	// The primary URL for the item.
	Url pulumi.StringPtrInput
	// Username for this item.
	Username pulumi.StringPtrInput
	// The UUID of the vault the item is in.
	Vault pulumi.StringInput
}

The set of arguments for constructing a Item resource.

func (ItemArgs) ElementType

func (ItemArgs) ElementType() reflect.Type

type ItemArray

type ItemArray []ItemInput

func (ItemArray) ElementType

func (ItemArray) ElementType() reflect.Type

func (ItemArray) ToItemArrayOutput

func (i ItemArray) ToItemArrayOutput() ItemArrayOutput

func (ItemArray) ToItemArrayOutputWithContext

func (i ItemArray) ToItemArrayOutputWithContext(ctx context.Context) ItemArrayOutput

type ItemArrayInput

type ItemArrayInput interface {
	pulumi.Input

	ToItemArrayOutput() ItemArrayOutput
	ToItemArrayOutputWithContext(context.Context) ItemArrayOutput
}

ItemArrayInput is an input type that accepts ItemArray and ItemArrayOutput values. You can construct a concrete instance of `ItemArrayInput` via:

ItemArray{ ItemArgs{...} }

type ItemArrayOutput

type ItemArrayOutput struct{ *pulumi.OutputState }

func (ItemArrayOutput) ElementType

func (ItemArrayOutput) ElementType() reflect.Type

func (ItemArrayOutput) Index

func (ItemArrayOutput) ToItemArrayOutput

func (o ItemArrayOutput) ToItemArrayOutput() ItemArrayOutput

func (ItemArrayOutput) ToItemArrayOutputWithContext

func (o ItemArrayOutput) ToItemArrayOutputWithContext(ctx context.Context) ItemArrayOutput

type ItemInput

type ItemInput interface {
	pulumi.Input

	ToItemOutput() ItemOutput
	ToItemOutputWithContext(ctx context.Context) ItemOutput
}

type ItemMap

type ItemMap map[string]ItemInput

func (ItemMap) ElementType

func (ItemMap) ElementType() reflect.Type

func (ItemMap) ToItemMapOutput

func (i ItemMap) ToItemMapOutput() ItemMapOutput

func (ItemMap) ToItemMapOutputWithContext

func (i ItemMap) ToItemMapOutputWithContext(ctx context.Context) ItemMapOutput

type ItemMapInput

type ItemMapInput interface {
	pulumi.Input

	ToItemMapOutput() ItemMapOutput
	ToItemMapOutputWithContext(context.Context) ItemMapOutput
}

ItemMapInput is an input type that accepts ItemMap and ItemMapOutput values. You can construct a concrete instance of `ItemMapInput` via:

ItemMap{ "key": ItemArgs{...} }

type ItemMapOutput

type ItemMapOutput struct{ *pulumi.OutputState }

func (ItemMapOutput) ElementType

func (ItemMapOutput) ElementType() reflect.Type

func (ItemMapOutput) MapIndex

func (ItemMapOutput) ToItemMapOutput

func (o ItemMapOutput) ToItemMapOutput() ItemMapOutput

func (ItemMapOutput) ToItemMapOutputWithContext

func (o ItemMapOutput) ToItemMapOutputWithContext(ctx context.Context) ItemMapOutput

type ItemOutput

type ItemOutput struct{ *pulumi.OutputState }

func (ItemOutput) Category

func (o ItemOutput) Category() pulumi.StringPtrOutput

The category of the item. One of ["login" "password" "database"]

func (ItemOutput) Database

func (o ItemOutput) Database() pulumi.StringPtrOutput

(Only applies to the database category) The name of the database.

func (ItemOutput) ElementType

func (ItemOutput) ElementType() reflect.Type

func (ItemOutput) Hostname

func (o ItemOutput) Hostname() pulumi.StringPtrOutput

(Only applies to the database category) The address where the database can be found

func (ItemOutput) Password

func (o ItemOutput) Password() pulumi.StringOutput

Password for this item.

func (ItemOutput) PasswordRecipe

func (o ItemOutput) PasswordRecipe() ItemPasswordRecipePtrOutput

Password for this item.

func (ItemOutput) Port

(Only applies to the database category) The port the database is listening on.

func (ItemOutput) Sections

func (o ItemOutput) Sections() ItemSectionArrayOutput

A list of custom sections in an item

func (ItemOutput) Tags

An array of strings of the tags assigned to the item.

func (ItemOutput) Title

func (o ItemOutput) Title() pulumi.StringPtrOutput

The title of the item.

func (ItemOutput) ToItemOutput

func (o ItemOutput) ToItemOutput() ItemOutput

func (ItemOutput) ToItemOutputWithContext

func (o ItemOutput) ToItemOutputWithContext(ctx context.Context) ItemOutput

func (ItemOutput) Type

The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]

func (ItemOutput) Url

The primary URL for the item.

func (ItemOutput) Username

func (o ItemOutput) Username() pulumi.StringPtrOutput

Username for this item.

func (ItemOutput) Uuid

func (o ItemOutput) Uuid() pulumi.StringOutput

The UUID of the item. Item identifiers are unique within a specific vault.

func (ItemOutput) Vault

func (o ItemOutput) Vault() pulumi.StringOutput

The UUID of the vault the item is in.

type ItemPasswordRecipe

type ItemPasswordRecipe struct {
	// Use digits [0-9] when generating the password.
	Digits *bool `pulumi:"digits"`
	// The length of the password to be generated.
	Length *int `pulumi:"length"`
	// Use letters [a-zA-Z] when generating the password.
	Letters *bool `pulumi:"letters"`
	// Use symbols [!@.-_*] when generating the password.
	Symbols *bool `pulumi:"symbols"`
}

type ItemPasswordRecipeArgs

type ItemPasswordRecipeArgs struct {
	// Use digits [0-9] when generating the password.
	Digits pulumi.BoolPtrInput `pulumi:"digits"`
	// The length of the password to be generated.
	Length pulumi.IntPtrInput `pulumi:"length"`
	// Use letters [a-zA-Z] when generating the password.
	Letters pulumi.BoolPtrInput `pulumi:"letters"`
	// Use symbols [!@.-_*] when generating the password.
	Symbols pulumi.BoolPtrInput `pulumi:"symbols"`
}

func (ItemPasswordRecipeArgs) ElementType

func (ItemPasswordRecipeArgs) ElementType() reflect.Type

func (ItemPasswordRecipeArgs) ToItemPasswordRecipeOutput

func (i ItemPasswordRecipeArgs) ToItemPasswordRecipeOutput() ItemPasswordRecipeOutput

func (ItemPasswordRecipeArgs) ToItemPasswordRecipeOutputWithContext

func (i ItemPasswordRecipeArgs) ToItemPasswordRecipeOutputWithContext(ctx context.Context) ItemPasswordRecipeOutput

func (ItemPasswordRecipeArgs) ToItemPasswordRecipePtrOutput

func (i ItemPasswordRecipeArgs) ToItemPasswordRecipePtrOutput() ItemPasswordRecipePtrOutput

func (ItemPasswordRecipeArgs) ToItemPasswordRecipePtrOutputWithContext

func (i ItemPasswordRecipeArgs) ToItemPasswordRecipePtrOutputWithContext(ctx context.Context) ItemPasswordRecipePtrOutput

type ItemPasswordRecipeInput

type ItemPasswordRecipeInput interface {
	pulumi.Input

	ToItemPasswordRecipeOutput() ItemPasswordRecipeOutput
	ToItemPasswordRecipeOutputWithContext(context.Context) ItemPasswordRecipeOutput
}

ItemPasswordRecipeInput is an input type that accepts ItemPasswordRecipeArgs and ItemPasswordRecipeOutput values. You can construct a concrete instance of `ItemPasswordRecipeInput` via:

ItemPasswordRecipeArgs{...}

type ItemPasswordRecipeOutput

type ItemPasswordRecipeOutput struct{ *pulumi.OutputState }

func (ItemPasswordRecipeOutput) Digits

Use digits [0-9] when generating the password.

func (ItemPasswordRecipeOutput) ElementType

func (ItemPasswordRecipeOutput) ElementType() reflect.Type

func (ItemPasswordRecipeOutput) Length

The length of the password to be generated.

func (ItemPasswordRecipeOutput) Letters

Use letters [a-zA-Z] when generating the password.

func (ItemPasswordRecipeOutput) Symbols

Use symbols [!@.-_*] when generating the password.

func (ItemPasswordRecipeOutput) ToItemPasswordRecipeOutput

func (o ItemPasswordRecipeOutput) ToItemPasswordRecipeOutput() ItemPasswordRecipeOutput

func (ItemPasswordRecipeOutput) ToItemPasswordRecipeOutputWithContext

func (o ItemPasswordRecipeOutput) ToItemPasswordRecipeOutputWithContext(ctx context.Context) ItemPasswordRecipeOutput

func (ItemPasswordRecipeOutput) ToItemPasswordRecipePtrOutput

func (o ItemPasswordRecipeOutput) ToItemPasswordRecipePtrOutput() ItemPasswordRecipePtrOutput

func (ItemPasswordRecipeOutput) ToItemPasswordRecipePtrOutputWithContext

func (o ItemPasswordRecipeOutput) ToItemPasswordRecipePtrOutputWithContext(ctx context.Context) ItemPasswordRecipePtrOutput

type ItemPasswordRecipePtrInput

type ItemPasswordRecipePtrInput interface {
	pulumi.Input

	ToItemPasswordRecipePtrOutput() ItemPasswordRecipePtrOutput
	ToItemPasswordRecipePtrOutputWithContext(context.Context) ItemPasswordRecipePtrOutput
}

ItemPasswordRecipePtrInput is an input type that accepts ItemPasswordRecipeArgs, ItemPasswordRecipePtr and ItemPasswordRecipePtrOutput values. You can construct a concrete instance of `ItemPasswordRecipePtrInput` via:

        ItemPasswordRecipeArgs{...}

or:

        nil

type ItemPasswordRecipePtrOutput

type ItemPasswordRecipePtrOutput struct{ *pulumi.OutputState }

func (ItemPasswordRecipePtrOutput) Digits

Use digits [0-9] when generating the password.

func (ItemPasswordRecipePtrOutput) Elem

func (ItemPasswordRecipePtrOutput) ElementType

func (ItemPasswordRecipePtrOutput) Length

The length of the password to be generated.

func (ItemPasswordRecipePtrOutput) Letters

Use letters [a-zA-Z] when generating the password.

func (ItemPasswordRecipePtrOutput) Symbols

Use symbols [!@.-_*] when generating the password.

func (ItemPasswordRecipePtrOutput) ToItemPasswordRecipePtrOutput

func (o ItemPasswordRecipePtrOutput) ToItemPasswordRecipePtrOutput() ItemPasswordRecipePtrOutput

func (ItemPasswordRecipePtrOutput) ToItemPasswordRecipePtrOutputWithContext

func (o ItemPasswordRecipePtrOutput) ToItemPasswordRecipePtrOutputWithContext(ctx context.Context) ItemPasswordRecipePtrOutput

type ItemSection

type ItemSection struct {
	// A list of custom fields in the section.
	Fields []ItemSectionField `pulumi:"fields"`
	// A unique identifier for the section.
	Id *string `pulumi:"id"`
	// The label for the section.
	Label string `pulumi:"label"`
}

type ItemSectionArgs

type ItemSectionArgs struct {
	// A list of custom fields in the section.
	Fields ItemSectionFieldArrayInput `pulumi:"fields"`
	// A unique identifier for the section.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The label for the section.
	Label pulumi.StringInput `pulumi:"label"`
}

func (ItemSectionArgs) ElementType

func (ItemSectionArgs) ElementType() reflect.Type

func (ItemSectionArgs) ToItemSectionOutput

func (i ItemSectionArgs) ToItemSectionOutput() ItemSectionOutput

func (ItemSectionArgs) ToItemSectionOutputWithContext

func (i ItemSectionArgs) ToItemSectionOutputWithContext(ctx context.Context) ItemSectionOutput

type ItemSectionArray

type ItemSectionArray []ItemSectionInput

func (ItemSectionArray) ElementType

func (ItemSectionArray) ElementType() reflect.Type

func (ItemSectionArray) ToItemSectionArrayOutput

func (i ItemSectionArray) ToItemSectionArrayOutput() ItemSectionArrayOutput

func (ItemSectionArray) ToItemSectionArrayOutputWithContext

func (i ItemSectionArray) ToItemSectionArrayOutputWithContext(ctx context.Context) ItemSectionArrayOutput

type ItemSectionArrayInput

type ItemSectionArrayInput interface {
	pulumi.Input

	ToItemSectionArrayOutput() ItemSectionArrayOutput
	ToItemSectionArrayOutputWithContext(context.Context) ItemSectionArrayOutput
}

ItemSectionArrayInput is an input type that accepts ItemSectionArray and ItemSectionArrayOutput values. You can construct a concrete instance of `ItemSectionArrayInput` via:

ItemSectionArray{ ItemSectionArgs{...} }

type ItemSectionArrayOutput

type ItemSectionArrayOutput struct{ *pulumi.OutputState }

func (ItemSectionArrayOutput) ElementType

func (ItemSectionArrayOutput) ElementType() reflect.Type

func (ItemSectionArrayOutput) Index

func (ItemSectionArrayOutput) ToItemSectionArrayOutput

func (o ItemSectionArrayOutput) ToItemSectionArrayOutput() ItemSectionArrayOutput

func (ItemSectionArrayOutput) ToItemSectionArrayOutputWithContext

func (o ItemSectionArrayOutput) ToItemSectionArrayOutputWithContext(ctx context.Context) ItemSectionArrayOutput

type ItemSectionField

type ItemSectionField struct {
	// A unique identifier for the field.
	Id *string `pulumi:"id"`
	// The label for the field.
	Label string `pulumi:"label"`
	// Password for this item.
	PasswordRecipe *ItemSectionFieldPasswordRecipe `pulumi:"passwordRecipe"`
	// Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
	Purpose *string `pulumi:"purpose"`
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type *string `pulumi:"type"`
	// The value of the field.
	Value *string `pulumi:"value"`
}

type ItemSectionFieldArgs

type ItemSectionFieldArgs struct {
	// A unique identifier for the field.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The label for the field.
	Label pulumi.StringInput `pulumi:"label"`
	// Password for this item.
	PasswordRecipe ItemSectionFieldPasswordRecipePtrInput `pulumi:"passwordRecipe"`
	// Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]
	Purpose pulumi.StringPtrInput `pulumi:"purpose"`
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type pulumi.StringPtrInput `pulumi:"type"`
	// The value of the field.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (ItemSectionFieldArgs) ElementType

func (ItemSectionFieldArgs) ElementType() reflect.Type

func (ItemSectionFieldArgs) ToItemSectionFieldOutput

func (i ItemSectionFieldArgs) ToItemSectionFieldOutput() ItemSectionFieldOutput

func (ItemSectionFieldArgs) ToItemSectionFieldOutputWithContext

func (i ItemSectionFieldArgs) ToItemSectionFieldOutputWithContext(ctx context.Context) ItemSectionFieldOutput

type ItemSectionFieldArray

type ItemSectionFieldArray []ItemSectionFieldInput

func (ItemSectionFieldArray) ElementType

func (ItemSectionFieldArray) ElementType() reflect.Type

func (ItemSectionFieldArray) ToItemSectionFieldArrayOutput

func (i ItemSectionFieldArray) ToItemSectionFieldArrayOutput() ItemSectionFieldArrayOutput

func (ItemSectionFieldArray) ToItemSectionFieldArrayOutputWithContext

func (i ItemSectionFieldArray) ToItemSectionFieldArrayOutputWithContext(ctx context.Context) ItemSectionFieldArrayOutput

type ItemSectionFieldArrayInput

type ItemSectionFieldArrayInput interface {
	pulumi.Input

	ToItemSectionFieldArrayOutput() ItemSectionFieldArrayOutput
	ToItemSectionFieldArrayOutputWithContext(context.Context) ItemSectionFieldArrayOutput
}

ItemSectionFieldArrayInput is an input type that accepts ItemSectionFieldArray and ItemSectionFieldArrayOutput values. You can construct a concrete instance of `ItemSectionFieldArrayInput` via:

ItemSectionFieldArray{ ItemSectionFieldArgs{...} }

type ItemSectionFieldArrayOutput

type ItemSectionFieldArrayOutput struct{ *pulumi.OutputState }

func (ItemSectionFieldArrayOutput) ElementType

func (ItemSectionFieldArrayOutput) Index

func (ItemSectionFieldArrayOutput) ToItemSectionFieldArrayOutput

func (o ItemSectionFieldArrayOutput) ToItemSectionFieldArrayOutput() ItemSectionFieldArrayOutput

func (ItemSectionFieldArrayOutput) ToItemSectionFieldArrayOutputWithContext

func (o ItemSectionFieldArrayOutput) ToItemSectionFieldArrayOutputWithContext(ctx context.Context) ItemSectionFieldArrayOutput

type ItemSectionFieldInput

type ItemSectionFieldInput interface {
	pulumi.Input

	ToItemSectionFieldOutput() ItemSectionFieldOutput
	ToItemSectionFieldOutputWithContext(context.Context) ItemSectionFieldOutput
}

ItemSectionFieldInput is an input type that accepts ItemSectionFieldArgs and ItemSectionFieldOutput values. You can construct a concrete instance of `ItemSectionFieldInput` via:

ItemSectionFieldArgs{...}

type ItemSectionFieldOutput

type ItemSectionFieldOutput struct{ *pulumi.OutputState }

func (ItemSectionFieldOutput) ElementType

func (ItemSectionFieldOutput) ElementType() reflect.Type

func (ItemSectionFieldOutput) Id

A unique identifier for the field.

func (ItemSectionFieldOutput) Label

The label for the field.

func (ItemSectionFieldOutput) PasswordRecipe

Password for this item.

func (ItemSectionFieldOutput) Purpose

Purpose indicates this is a special field: a username, password, or notes field. One of ["USERNAME" "PASSWORD" "NOTES"]

func (ItemSectionFieldOutput) ToItemSectionFieldOutput

func (o ItemSectionFieldOutput) ToItemSectionFieldOutput() ItemSectionFieldOutput

func (ItemSectionFieldOutput) ToItemSectionFieldOutputWithContext

func (o ItemSectionFieldOutput) ToItemSectionFieldOutputWithContext(ctx context.Context) ItemSectionFieldOutput

func (ItemSectionFieldOutput) Type

The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]

func (ItemSectionFieldOutput) Value

The value of the field.

type ItemSectionFieldPasswordRecipe

type ItemSectionFieldPasswordRecipe struct {
	// Use digits [0-9] when generating the password.
	Digits *bool `pulumi:"digits"`
	// The length of the password to be generated.
	Length *int `pulumi:"length"`
	// Use letters [a-zA-Z] when generating the password.
	Letters *bool `pulumi:"letters"`
	// Use symbols [!@.-_*] when generating the password.
	Symbols *bool `pulumi:"symbols"`
}

type ItemSectionFieldPasswordRecipeArgs

type ItemSectionFieldPasswordRecipeArgs struct {
	// Use digits [0-9] when generating the password.
	Digits pulumi.BoolPtrInput `pulumi:"digits"`
	// The length of the password to be generated.
	Length pulumi.IntPtrInput `pulumi:"length"`
	// Use letters [a-zA-Z] when generating the password.
	Letters pulumi.BoolPtrInput `pulumi:"letters"`
	// Use symbols [!@.-_*] when generating the password.
	Symbols pulumi.BoolPtrInput `pulumi:"symbols"`
}

func (ItemSectionFieldPasswordRecipeArgs) ElementType

func (ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipeOutput

func (i ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipeOutput() ItemSectionFieldPasswordRecipeOutput

func (ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipeOutputWithContext

func (i ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipeOutputWithContext(ctx context.Context) ItemSectionFieldPasswordRecipeOutput

func (ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipePtrOutput

func (i ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipePtrOutput() ItemSectionFieldPasswordRecipePtrOutput

func (ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipePtrOutputWithContext

func (i ItemSectionFieldPasswordRecipeArgs) ToItemSectionFieldPasswordRecipePtrOutputWithContext(ctx context.Context) ItemSectionFieldPasswordRecipePtrOutput

type ItemSectionFieldPasswordRecipeInput

type ItemSectionFieldPasswordRecipeInput interface {
	pulumi.Input

	ToItemSectionFieldPasswordRecipeOutput() ItemSectionFieldPasswordRecipeOutput
	ToItemSectionFieldPasswordRecipeOutputWithContext(context.Context) ItemSectionFieldPasswordRecipeOutput
}

ItemSectionFieldPasswordRecipeInput is an input type that accepts ItemSectionFieldPasswordRecipeArgs and ItemSectionFieldPasswordRecipeOutput values. You can construct a concrete instance of `ItemSectionFieldPasswordRecipeInput` via:

ItemSectionFieldPasswordRecipeArgs{...}

type ItemSectionFieldPasswordRecipeOutput

type ItemSectionFieldPasswordRecipeOutput struct{ *pulumi.OutputState }

func (ItemSectionFieldPasswordRecipeOutput) Digits

Use digits [0-9] when generating the password.

func (ItemSectionFieldPasswordRecipeOutput) ElementType

func (ItemSectionFieldPasswordRecipeOutput) Length

The length of the password to be generated.

func (ItemSectionFieldPasswordRecipeOutput) Letters

Use letters [a-zA-Z] when generating the password.

func (ItemSectionFieldPasswordRecipeOutput) Symbols

Use symbols [!@.-_*] when generating the password.

func (ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipeOutput

func (o ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipeOutput() ItemSectionFieldPasswordRecipeOutput

func (ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipeOutputWithContext

func (o ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipeOutputWithContext(ctx context.Context) ItemSectionFieldPasswordRecipeOutput

func (ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipePtrOutput

func (o ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipePtrOutput() ItemSectionFieldPasswordRecipePtrOutput

func (ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipePtrOutputWithContext

func (o ItemSectionFieldPasswordRecipeOutput) ToItemSectionFieldPasswordRecipePtrOutputWithContext(ctx context.Context) ItemSectionFieldPasswordRecipePtrOutput

type ItemSectionFieldPasswordRecipePtrInput

type ItemSectionFieldPasswordRecipePtrInput interface {
	pulumi.Input

	ToItemSectionFieldPasswordRecipePtrOutput() ItemSectionFieldPasswordRecipePtrOutput
	ToItemSectionFieldPasswordRecipePtrOutputWithContext(context.Context) ItemSectionFieldPasswordRecipePtrOutput
}

ItemSectionFieldPasswordRecipePtrInput is an input type that accepts ItemSectionFieldPasswordRecipeArgs, ItemSectionFieldPasswordRecipePtr and ItemSectionFieldPasswordRecipePtrOutput values. You can construct a concrete instance of `ItemSectionFieldPasswordRecipePtrInput` via:

        ItemSectionFieldPasswordRecipeArgs{...}

or:

        nil

type ItemSectionFieldPasswordRecipePtrOutput

type ItemSectionFieldPasswordRecipePtrOutput struct{ *pulumi.OutputState }

func (ItemSectionFieldPasswordRecipePtrOutput) Digits

Use digits [0-9] when generating the password.

func (ItemSectionFieldPasswordRecipePtrOutput) Elem

func (ItemSectionFieldPasswordRecipePtrOutput) ElementType

func (ItemSectionFieldPasswordRecipePtrOutput) Length

The length of the password to be generated.

func (ItemSectionFieldPasswordRecipePtrOutput) Letters

Use letters [a-zA-Z] when generating the password.

func (ItemSectionFieldPasswordRecipePtrOutput) Symbols

Use symbols [!@.-_*] when generating the password.

func (ItemSectionFieldPasswordRecipePtrOutput) ToItemSectionFieldPasswordRecipePtrOutput

func (o ItemSectionFieldPasswordRecipePtrOutput) ToItemSectionFieldPasswordRecipePtrOutput() ItemSectionFieldPasswordRecipePtrOutput

func (ItemSectionFieldPasswordRecipePtrOutput) ToItemSectionFieldPasswordRecipePtrOutputWithContext

func (o ItemSectionFieldPasswordRecipePtrOutput) ToItemSectionFieldPasswordRecipePtrOutputWithContext(ctx context.Context) ItemSectionFieldPasswordRecipePtrOutput

type ItemSectionInput

type ItemSectionInput interface {
	pulumi.Input

	ToItemSectionOutput() ItemSectionOutput
	ToItemSectionOutputWithContext(context.Context) ItemSectionOutput
}

ItemSectionInput is an input type that accepts ItemSectionArgs and ItemSectionOutput values. You can construct a concrete instance of `ItemSectionInput` via:

ItemSectionArgs{...}

type ItemSectionOutput

type ItemSectionOutput struct{ *pulumi.OutputState }

func (ItemSectionOutput) ElementType

func (ItemSectionOutput) ElementType() reflect.Type

func (ItemSectionOutput) Fields

A list of custom fields in the section.

func (ItemSectionOutput) Id

A unique identifier for the section.

func (ItemSectionOutput) Label

The label for the section.

func (ItemSectionOutput) ToItemSectionOutput

func (o ItemSectionOutput) ToItemSectionOutput() ItemSectionOutput

func (ItemSectionOutput) ToItemSectionOutputWithContext

func (o ItemSectionOutput) ToItemSectionOutputWithContext(ctx context.Context) ItemSectionOutput

type ItemState

type ItemState struct {
	// The category of the item. One of ["login" "password" "database"]
	Category pulumi.StringPtrInput
	// (Only applies to the database category) The name of the database.
	Database pulumi.StringPtrInput
	// (Only applies to the database category) The address where the database can be found
	Hostname pulumi.StringPtrInput
	// Password for this item.
	Password pulumi.StringPtrInput
	// Password for this item.
	PasswordRecipe ItemPasswordRecipePtrInput
	// (Only applies to the database category) The port the database is listening on.
	Port pulumi.StringPtrInput
	// A list of custom sections in an item
	Sections ItemSectionArrayInput
	// An array of strings of the tags assigned to the item.
	Tags pulumi.StringArrayInput
	// The title of the item.
	Title pulumi.StringPtrInput
	// The type of value stored in the field. One of ["STRING" "EMAIL" "CONCEALED" "URL" "OTP" "DATE" "MONTH_YEAR" "MENU"]
	Type pulumi.StringPtrInput
	// The primary URL for the item.
	Url pulumi.StringPtrInput
	// Username for this item.
	Username pulumi.StringPtrInput
	// The UUID of the item. Item identifiers are unique within a specific vault.
	Uuid pulumi.StringPtrInput
	// The UUID of the vault the item is in.
	Vault pulumi.StringPtrInput
}

func (ItemState) ElementType

func (ItemState) ElementType() reflect.Type

type LookupItemArgs

type LookupItemArgs struct {
	// Secure Note value.
	NoteValue *string `pulumi:"noteValue"`
	// The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.
	Title *string `pulumi:"title"`
	// The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.
	Uuid *string `pulumi:"uuid"`
	// The UUID of the vault the item is in.
	Vault string `pulumi:"vault"`
}

A collection of arguments for invoking getItem.

type LookupItemOutputArgs

type LookupItemOutputArgs struct {
	// Secure Note value.
	NoteValue pulumi.StringPtrInput `pulumi:"noteValue"`
	// The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.
	Title pulumi.StringPtrInput `pulumi:"title"`
	// The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.
	Uuid pulumi.StringPtrInput `pulumi:"uuid"`
	// The UUID of the vault the item is in.
	Vault pulumi.StringInput `pulumi:"vault"`
}

A collection of arguments for invoking getItem.

func (LookupItemOutputArgs) ElementType

func (LookupItemOutputArgs) ElementType() reflect.Type

type LookupItemResult

type LookupItemResult struct {
	// The category of the item. One of ["login" "password" "database"]
	Category string `pulumi:"category"`
	// (Only applies to the database category) The name of the database.
	Database string `pulumi:"database"`
	// (Only applies to the database category) The address where the database can be found
	Hostname string `pulumi:"hostname"`
	Id       string `pulumi:"id"`
	// Secure Note value.
	NoteValue string `pulumi:"noteValue"`
	// Password for this item.
	Password string `pulumi:"password"`
	// (Only applies to the database category) The port the database is listening on.
	Port string `pulumi:"port"`
	// A list of custom sections in an item
	Sections []GetItemSection `pulumi:"sections"`
	// An array of strings of the tags assigned to the item.
	Tags []string `pulumi:"tags"`
	// The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.
	Title string `pulumi:"title"`
	// (Only applies to the database category) The type of database. One of ["db2" "filemaker" "msaccess" "mssql" "mysql" "oracle" "postgresql" "sqlite" "other"]
	Type string `pulumi:"type"`
	// The primary URL for the item.
	Url string `pulumi:"url"`
	// Username for this item.
	Username string `pulumi:"username"`
	// The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.
	Uuid string `pulumi:"uuid"`
	// The UUID of the vault the item is in.
	Vault string `pulumi:"vault"`
}

A collection of values returned by getItem.

func LookupItem

func LookupItem(ctx *pulumi.Context, args *LookupItemArgs, opts ...pulumi.InvokeOption) (*LookupItemResult, error)

Use this data source to get details of an item by its vault uuid and either the title or the uuid of the item.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/1Password/pulumi-onepassword/sdk/go/onepassword"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := onepassword.LookupItem(ctx, &onepassword.LookupItemArgs{
			Vault: _var.Demo_vault,
			Uuid:  pulumi.StringRef(onepassword_item.Demo_sections.Uuid),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupItemResultOutput

type LookupItemResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getItem.

func (LookupItemResultOutput) Category

The category of the item. One of ["login" "password" "database"]

func (LookupItemResultOutput) Database

(Only applies to the database category) The name of the database.

func (LookupItemResultOutput) ElementType

func (LookupItemResultOutput) ElementType() reflect.Type

func (LookupItemResultOutput) Hostname

(Only applies to the database category) The address where the database can be found

func (LookupItemResultOutput) Id

func (LookupItemResultOutput) NoteValue

Secure Note value.

func (LookupItemResultOutput) Password

Password for this item.

func (LookupItemResultOutput) Port

(Only applies to the database category) The port the database is listening on.

func (LookupItemResultOutput) Sections

A list of custom sections in an item

func (LookupItemResultOutput) Tags

An array of strings of the tags assigned to the item.

func (LookupItemResultOutput) Title

The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.

func (LookupItemResultOutput) ToLookupItemResultOutput

func (o LookupItemResultOutput) ToLookupItemResultOutput() LookupItemResultOutput

func (LookupItemResultOutput) ToLookupItemResultOutputWithContext

func (o LookupItemResultOutput) ToLookupItemResultOutputWithContext(ctx context.Context) LookupItemResultOutput

func (LookupItemResultOutput) Type

(Only applies to the database category) The type of database. One of ["db2" "filemaker" "msaccess" "mssql" "mysql" "oracle" "postgresql" "sqlite" "other"]

func (LookupItemResultOutput) Url

The primary URL for the item.

func (LookupItemResultOutput) Username

Username for this item.

func (LookupItemResultOutput) Uuid

The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.

func (LookupItemResultOutput) Vault

The UUID of the vault the item is in.

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// A valid account's sign-in address or ID to use biometrics unlock. Can also be sourced from `OP_ACCOUNT` environment
	// variable. Provider will use the 1Password CLI if set.
	Account pulumi.StringPtrOutput `pulumi:"account"`
	// The path to the 1Password CLI binary. Can also be sourced from `OP_CLI_PATH` environment variable. Defaults to `op`.
	OpCliPath pulumi.StringPtrOutput `pulumi:"opCliPath"`
	// A valid 1Password service account token. Can also be sourced from `OP_SERVICE_ACCOUNT_TOKEN` environment variable.
	// Provider will use the 1Password CLI if set.
	ServiceAccountToken pulumi.StringPtrOutput `pulumi:"serviceAccountToken"`
	// A valid token for your 1Password Connect server. Can also be sourced from `OP_CONNECT_TOKEN` environment variable.
	// Provider will use 1Password Connect server if set.
	Token pulumi.StringPtrOutput `pulumi:"token"`
	// The HTTP(S) URL where your 1Password Connect server can be found. Can also be sourced `OP_CONNECT_HOST` environment
	// variable. Provider will use 1Password Connect server if set.
	Url pulumi.StringPtrOutput `pulumi:"url"`
}

The provider type for the onepassword package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// A valid account's sign-in address or ID to use biometrics unlock. Can also be sourced from `OP_ACCOUNT` environment
	// variable. Provider will use the 1Password CLI if set.
	Account pulumi.StringPtrInput
	// The path to the 1Password CLI binary. Can also be sourced from `OP_CLI_PATH` environment variable. Defaults to `op`.
	OpCliPath pulumi.StringPtrInput
	// A valid 1Password service account token. Can also be sourced from `OP_SERVICE_ACCOUNT_TOKEN` environment variable.
	// Provider will use the 1Password CLI if set.
	ServiceAccountToken pulumi.StringPtrInput
	// A valid token for your 1Password Connect server. Can also be sourced from `OP_CONNECT_TOKEN` environment variable.
	// Provider will use 1Password Connect server if set.
	Token pulumi.StringPtrInput
	// The HTTP(S) URL where your 1Password Connect server can be found. Can also be sourced `OP_CONNECT_HOST` environment
	// variable. Provider will use 1Password Connect server if set.
	Url pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) Account

A valid account's sign-in address or ID to use biometrics unlock. Can also be sourced from `OP_ACCOUNT` environment variable. Provider will use the 1Password CLI if set.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) OpCliPath

func (o ProviderOutput) OpCliPath() pulumi.StringPtrOutput

The path to the 1Password CLI binary. Can also be sourced from `OP_CLI_PATH` environment variable. Defaults to `op`.

func (ProviderOutput) ServiceAccountToken

func (o ProviderOutput) ServiceAccountToken() pulumi.StringPtrOutput

A valid 1Password service account token. Can also be sourced from `OP_SERVICE_ACCOUNT_TOKEN` environment variable. Provider will use the 1Password CLI if set.

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

func (ProviderOutput) Token

A valid token for your 1Password Connect server. Can also be sourced from `OP_CONNECT_TOKEN` environment variable. Provider will use 1Password Connect server if set.

func (ProviderOutput) Url

The HTTP(S) URL where your 1Password Connect server can be found. Can also be sourced `OP_CONNECT_HOST` environment variable. Provider will use 1Password Connect server if set.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL