organization

package
v3.76.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	pulumi.CustomResourceState

	// Short description of policy.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Name of the Policy.
	Name pulumi.StringOutput `pulumi:"name"`
	// Set permissions objects list.
	PolicyContents PolicyPolicyContentArrayOutput `pulumi:"policyContents"`
}

Provides a Spotinst access policy.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/organization"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := organization.NewPolicy(ctx, "terraform_policy", &organization.PolicyArgs{
			Name:        pulumi.String("test-policy"),
			Description: pulumi.String("policy by terraform"),
			PolicyContents: organization.PolicyPolicyContentArray{
				&organization.PolicyPolicyContentArgs{
					Statements: organization.PolicyPolicyContentStatementArray{
						&organization.PolicyPolicyContentStatementArgs{
							Actions: pulumi.StringArray{
								pulumi.String("ocean:deleteCluster"),
							},
							Effect: pulumi.String("DENY"),
							Resources: pulumi.StringArray{
								pulumi.String("o-abcd1234"),
								pulumi.String("o-defg6789"),
							},
						},
						&organization.PolicyPolicyContentStatementArgs{
							Actions: pulumi.StringArray{
								pulumi.String("ocean:createCluster"),
							},
							Effect: pulumi.String("DENY"),
							Resources: pulumi.StringArray{
								pulumi.String("o-fhau4752"),
								pulumi.String("o-761owf4r3"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetPolicy

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)

GetPolicy gets an existing Policy 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 NewPolicy

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)

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

func (*Policy) ElementType

func (*Policy) ElementType() reflect.Type

func (*Policy) ToPolicyOutput

func (i *Policy) ToPolicyOutput() PolicyOutput

func (*Policy) ToPolicyOutputWithContext

func (i *Policy) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyArgs

type PolicyArgs struct {
	// Short description of policy.
	Description pulumi.StringPtrInput
	// Name of the Policy.
	Name pulumi.StringPtrInput
	// Set permissions objects list.
	PolicyContents PolicyPolicyContentArrayInput
}

The set of arguments for constructing a Policy resource.

func (PolicyArgs) ElementType

func (PolicyArgs) ElementType() reflect.Type

type PolicyArray

type PolicyArray []PolicyInput

func (PolicyArray) ElementType

func (PolicyArray) ElementType() reflect.Type

func (PolicyArray) ToPolicyArrayOutput

func (i PolicyArray) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArray) ToPolicyArrayOutputWithContext

func (i PolicyArray) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyArrayInput

type PolicyArrayInput interface {
	pulumi.Input

	ToPolicyArrayOutput() PolicyArrayOutput
	ToPolicyArrayOutputWithContext(context.Context) PolicyArrayOutput
}

PolicyArrayInput is an input type that accepts PolicyArray and PolicyArrayOutput values. You can construct a concrete instance of `PolicyArrayInput` via:

PolicyArray{ PolicyArgs{...} }

type PolicyArrayOutput

type PolicyArrayOutput struct{ *pulumi.OutputState }

func (PolicyArrayOutput) ElementType

func (PolicyArrayOutput) ElementType() reflect.Type

func (PolicyArrayOutput) Index

func (PolicyArrayOutput) ToPolicyArrayOutput

func (o PolicyArrayOutput) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArrayOutput) ToPolicyArrayOutputWithContext

func (o PolicyArrayOutput) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyInput

type PolicyInput interface {
	pulumi.Input

	ToPolicyOutput() PolicyOutput
	ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
}

type PolicyMap

type PolicyMap map[string]PolicyInput

func (PolicyMap) ElementType

func (PolicyMap) ElementType() reflect.Type

func (PolicyMap) ToPolicyMapOutput

func (i PolicyMap) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMap) ToPolicyMapOutputWithContext

func (i PolicyMap) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyMapInput

type PolicyMapInput interface {
	pulumi.Input

	ToPolicyMapOutput() PolicyMapOutput
	ToPolicyMapOutputWithContext(context.Context) PolicyMapOutput
}

PolicyMapInput is an input type that accepts PolicyMap and PolicyMapOutput values. You can construct a concrete instance of `PolicyMapInput` via:

PolicyMap{ "key": PolicyArgs{...} }

type PolicyMapOutput

type PolicyMapOutput struct{ *pulumi.OutputState }

func (PolicyMapOutput) ElementType

func (PolicyMapOutput) ElementType() reflect.Type

func (PolicyMapOutput) MapIndex

func (PolicyMapOutput) ToPolicyMapOutput

func (o PolicyMapOutput) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMapOutput) ToPolicyMapOutputWithContext

func (o PolicyMapOutput) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyOutput

type PolicyOutput struct{ *pulumi.OutputState }

func (PolicyOutput) Description

func (o PolicyOutput) Description() pulumi.StringPtrOutput

Short description of policy.

func (PolicyOutput) ElementType

func (PolicyOutput) ElementType() reflect.Type

func (PolicyOutput) Name

func (o PolicyOutput) Name() pulumi.StringOutput

Name of the Policy.

func (PolicyOutput) PolicyContents

func (o PolicyOutput) PolicyContents() PolicyPolicyContentArrayOutput

Set permissions objects list.

func (PolicyOutput) ToPolicyOutput

func (o PolicyOutput) ToPolicyOutput() PolicyOutput

func (PolicyOutput) ToPolicyOutputWithContext

func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyPolicyContent

type PolicyPolicyContent struct {
	// List of permissions statements.
	Statements []PolicyPolicyContentStatement `pulumi:"statements"`
}

type PolicyPolicyContentArgs

type PolicyPolicyContentArgs struct {
	// List of permissions statements.
	Statements PolicyPolicyContentStatementArrayInput `pulumi:"statements"`
}

func (PolicyPolicyContentArgs) ElementType

func (PolicyPolicyContentArgs) ElementType() reflect.Type

func (PolicyPolicyContentArgs) ToPolicyPolicyContentOutput

func (i PolicyPolicyContentArgs) ToPolicyPolicyContentOutput() PolicyPolicyContentOutput

func (PolicyPolicyContentArgs) ToPolicyPolicyContentOutputWithContext

func (i PolicyPolicyContentArgs) ToPolicyPolicyContentOutputWithContext(ctx context.Context) PolicyPolicyContentOutput

type PolicyPolicyContentArray

type PolicyPolicyContentArray []PolicyPolicyContentInput

func (PolicyPolicyContentArray) ElementType

func (PolicyPolicyContentArray) ElementType() reflect.Type

func (PolicyPolicyContentArray) ToPolicyPolicyContentArrayOutput

func (i PolicyPolicyContentArray) ToPolicyPolicyContentArrayOutput() PolicyPolicyContentArrayOutput

func (PolicyPolicyContentArray) ToPolicyPolicyContentArrayOutputWithContext

func (i PolicyPolicyContentArray) ToPolicyPolicyContentArrayOutputWithContext(ctx context.Context) PolicyPolicyContentArrayOutput

type PolicyPolicyContentArrayInput

type PolicyPolicyContentArrayInput interface {
	pulumi.Input

	ToPolicyPolicyContentArrayOutput() PolicyPolicyContentArrayOutput
	ToPolicyPolicyContentArrayOutputWithContext(context.Context) PolicyPolicyContentArrayOutput
}

PolicyPolicyContentArrayInput is an input type that accepts PolicyPolicyContentArray and PolicyPolicyContentArrayOutput values. You can construct a concrete instance of `PolicyPolicyContentArrayInput` via:

PolicyPolicyContentArray{ PolicyPolicyContentArgs{...} }

type PolicyPolicyContentArrayOutput

type PolicyPolicyContentArrayOutput struct{ *pulumi.OutputState }

func (PolicyPolicyContentArrayOutput) ElementType

func (PolicyPolicyContentArrayOutput) Index

func (PolicyPolicyContentArrayOutput) ToPolicyPolicyContentArrayOutput

func (o PolicyPolicyContentArrayOutput) ToPolicyPolicyContentArrayOutput() PolicyPolicyContentArrayOutput

func (PolicyPolicyContentArrayOutput) ToPolicyPolicyContentArrayOutputWithContext

func (o PolicyPolicyContentArrayOutput) ToPolicyPolicyContentArrayOutputWithContext(ctx context.Context) PolicyPolicyContentArrayOutput

type PolicyPolicyContentInput

type PolicyPolicyContentInput interface {
	pulumi.Input

	ToPolicyPolicyContentOutput() PolicyPolicyContentOutput
	ToPolicyPolicyContentOutputWithContext(context.Context) PolicyPolicyContentOutput
}

PolicyPolicyContentInput is an input type that accepts PolicyPolicyContentArgs and PolicyPolicyContentOutput values. You can construct a concrete instance of `PolicyPolicyContentInput` via:

PolicyPolicyContentArgs{...}

type PolicyPolicyContentOutput

type PolicyPolicyContentOutput struct{ *pulumi.OutputState }

func (PolicyPolicyContentOutput) ElementType

func (PolicyPolicyContentOutput) ElementType() reflect.Type

func (PolicyPolicyContentOutput) Statements

List of permissions statements.

func (PolicyPolicyContentOutput) ToPolicyPolicyContentOutput

func (o PolicyPolicyContentOutput) ToPolicyPolicyContentOutput() PolicyPolicyContentOutput

func (PolicyPolicyContentOutput) ToPolicyPolicyContentOutputWithContext

func (o PolicyPolicyContentOutput) ToPolicyPolicyContentOutputWithContext(ctx context.Context) PolicyPolicyContentOutput

type PolicyPolicyContentStatement

type PolicyPolicyContentStatement struct {
	Actions   []string `pulumi:"actions"`
	Effect    string   `pulumi:"effect"`
	Resources []string `pulumi:"resources"`
}

type PolicyPolicyContentStatementArgs

type PolicyPolicyContentStatementArgs struct {
	Actions   pulumi.StringArrayInput `pulumi:"actions"`
	Effect    pulumi.StringInput      `pulumi:"effect"`
	Resources pulumi.StringArrayInput `pulumi:"resources"`
}

func (PolicyPolicyContentStatementArgs) ElementType

func (PolicyPolicyContentStatementArgs) ToPolicyPolicyContentStatementOutput

func (i PolicyPolicyContentStatementArgs) ToPolicyPolicyContentStatementOutput() PolicyPolicyContentStatementOutput

func (PolicyPolicyContentStatementArgs) ToPolicyPolicyContentStatementOutputWithContext

func (i PolicyPolicyContentStatementArgs) ToPolicyPolicyContentStatementOutputWithContext(ctx context.Context) PolicyPolicyContentStatementOutput

type PolicyPolicyContentStatementArray

type PolicyPolicyContentStatementArray []PolicyPolicyContentStatementInput

func (PolicyPolicyContentStatementArray) ElementType

func (PolicyPolicyContentStatementArray) ToPolicyPolicyContentStatementArrayOutput

func (i PolicyPolicyContentStatementArray) ToPolicyPolicyContentStatementArrayOutput() PolicyPolicyContentStatementArrayOutput

func (PolicyPolicyContentStatementArray) ToPolicyPolicyContentStatementArrayOutputWithContext

func (i PolicyPolicyContentStatementArray) ToPolicyPolicyContentStatementArrayOutputWithContext(ctx context.Context) PolicyPolicyContentStatementArrayOutput

type PolicyPolicyContentStatementArrayInput

type PolicyPolicyContentStatementArrayInput interface {
	pulumi.Input

	ToPolicyPolicyContentStatementArrayOutput() PolicyPolicyContentStatementArrayOutput
	ToPolicyPolicyContentStatementArrayOutputWithContext(context.Context) PolicyPolicyContentStatementArrayOutput
}

PolicyPolicyContentStatementArrayInput is an input type that accepts PolicyPolicyContentStatementArray and PolicyPolicyContentStatementArrayOutput values. You can construct a concrete instance of `PolicyPolicyContentStatementArrayInput` via:

PolicyPolicyContentStatementArray{ PolicyPolicyContentStatementArgs{...} }

type PolicyPolicyContentStatementArrayOutput

type PolicyPolicyContentStatementArrayOutput struct{ *pulumi.OutputState }

func (PolicyPolicyContentStatementArrayOutput) ElementType

func (PolicyPolicyContentStatementArrayOutput) Index

func (PolicyPolicyContentStatementArrayOutput) ToPolicyPolicyContentStatementArrayOutput

func (o PolicyPolicyContentStatementArrayOutput) ToPolicyPolicyContentStatementArrayOutput() PolicyPolicyContentStatementArrayOutput

func (PolicyPolicyContentStatementArrayOutput) ToPolicyPolicyContentStatementArrayOutputWithContext

func (o PolicyPolicyContentStatementArrayOutput) ToPolicyPolicyContentStatementArrayOutputWithContext(ctx context.Context) PolicyPolicyContentStatementArrayOutput

type PolicyPolicyContentStatementInput

type PolicyPolicyContentStatementInput interface {
	pulumi.Input

	ToPolicyPolicyContentStatementOutput() PolicyPolicyContentStatementOutput
	ToPolicyPolicyContentStatementOutputWithContext(context.Context) PolicyPolicyContentStatementOutput
}

PolicyPolicyContentStatementInput is an input type that accepts PolicyPolicyContentStatementArgs and PolicyPolicyContentStatementOutput values. You can construct a concrete instance of `PolicyPolicyContentStatementInput` via:

PolicyPolicyContentStatementArgs{...}

type PolicyPolicyContentStatementOutput

type PolicyPolicyContentStatementOutput struct{ *pulumi.OutputState }

func (PolicyPolicyContentStatementOutput) Actions

func (PolicyPolicyContentStatementOutput) Effect

func (PolicyPolicyContentStatementOutput) ElementType

func (PolicyPolicyContentStatementOutput) Resources

func (PolicyPolicyContentStatementOutput) ToPolicyPolicyContentStatementOutput

func (o PolicyPolicyContentStatementOutput) ToPolicyPolicyContentStatementOutput() PolicyPolicyContentStatementOutput

func (PolicyPolicyContentStatementOutput) ToPolicyPolicyContentStatementOutputWithContext

func (o PolicyPolicyContentStatementOutput) ToPolicyPolicyContentStatementOutputWithContext(ctx context.Context) PolicyPolicyContentStatementOutput

type PolicyState

type PolicyState struct {
	// Short description of policy.
	Description pulumi.StringPtrInput
	// Name of the Policy.
	Name pulumi.StringPtrInput
	// Set permissions objects list.
	PolicyContents PolicyPolicyContentArrayInput
}

func (PolicyState) ElementType

func (PolicyState) ElementType() reflect.Type

type ProgrammaticUser

type ProgrammaticUser struct {
	pulumi.CustomResourceState

	// All the accounts the programmatic user will have access to.
	// If used - Cannot be empty.
	Accounts ProgrammaticUserAccountArrayOutput `pulumi:"accounts"`
	// Brief description of the user.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Name of the programmatic user.
	Name pulumi.StringOutput `pulumi:"name"`
	// All the policies the programmatic user will have access to.
	// If used - Cannot be empty.
	Policies ProgrammaticUserPolicyArrayOutput `pulumi:"policies"`
	// A list of the user groups to register the given user to (should be existing user groups only)
	UserGroupIds pulumi.StringArrayOutput `pulumi:"userGroupIds"`
}

Provides a Spotinst programmatic user in the creator's organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/organization"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := organization.NewProgrammaticUser(ctx, "terraform_prog_user", &organization.ProgrammaticUserArgs{
			Name:        pulumi.String("test-prog-user"),
			Description: pulumi.String("creating programmatic user"),
			Policies: organization.ProgrammaticUserPolicyArray{
				&organization.ProgrammaticUserPolicyArgs{
					PolicyId: pulumi.String("pol-g75d8c06"),
					PolicyAccountIds: pulumi.StringArray{
						pulumi.String("act-a1b2c3d4"),
					},
				},
			},
			UserGroupIds: pulumi.StringArray{
				pulumi.String("ugr-abcd1234"),
				pulumi.String("ugr-defg8763"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetProgrammaticUser

func GetProgrammaticUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProgrammaticUserState, opts ...pulumi.ResourceOption) (*ProgrammaticUser, error)

GetProgrammaticUser gets an existing ProgrammaticUser 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 NewProgrammaticUser

func NewProgrammaticUser(ctx *pulumi.Context,
	name string, args *ProgrammaticUserArgs, opts ...pulumi.ResourceOption) (*ProgrammaticUser, error)

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

func (*ProgrammaticUser) ElementType

func (*ProgrammaticUser) ElementType() reflect.Type

func (*ProgrammaticUser) ToProgrammaticUserOutput

func (i *ProgrammaticUser) ToProgrammaticUserOutput() ProgrammaticUserOutput

func (*ProgrammaticUser) ToProgrammaticUserOutputWithContext

func (i *ProgrammaticUser) ToProgrammaticUserOutputWithContext(ctx context.Context) ProgrammaticUserOutput

type ProgrammaticUserAccount

type ProgrammaticUserAccount struct {
	// Account ID the programmatic user will have access to.
	AccountId string `pulumi:"accountId"`
	// (Enum: `"viewer", "editor") Role to be associated with the
	// programmatic user for this account.
	AccountRole string `pulumi:"accountRole"`
}

type ProgrammaticUserAccountArgs

type ProgrammaticUserAccountArgs struct {
	// Account ID the programmatic user will have access to.
	AccountId pulumi.StringInput `pulumi:"accountId"`
	// (Enum: `"viewer", "editor") Role to be associated with the
	// programmatic user for this account.
	AccountRole pulumi.StringInput `pulumi:"accountRole"`
}

func (ProgrammaticUserAccountArgs) ElementType

func (ProgrammaticUserAccountArgs) ToProgrammaticUserAccountOutput

func (i ProgrammaticUserAccountArgs) ToProgrammaticUserAccountOutput() ProgrammaticUserAccountOutput

func (ProgrammaticUserAccountArgs) ToProgrammaticUserAccountOutputWithContext

func (i ProgrammaticUserAccountArgs) ToProgrammaticUserAccountOutputWithContext(ctx context.Context) ProgrammaticUserAccountOutput

type ProgrammaticUserAccountArray

type ProgrammaticUserAccountArray []ProgrammaticUserAccountInput

func (ProgrammaticUserAccountArray) ElementType

func (ProgrammaticUserAccountArray) ToProgrammaticUserAccountArrayOutput

func (i ProgrammaticUserAccountArray) ToProgrammaticUserAccountArrayOutput() ProgrammaticUserAccountArrayOutput

func (ProgrammaticUserAccountArray) ToProgrammaticUserAccountArrayOutputWithContext

func (i ProgrammaticUserAccountArray) ToProgrammaticUserAccountArrayOutputWithContext(ctx context.Context) ProgrammaticUserAccountArrayOutput

type ProgrammaticUserAccountArrayInput

type ProgrammaticUserAccountArrayInput interface {
	pulumi.Input

	ToProgrammaticUserAccountArrayOutput() ProgrammaticUserAccountArrayOutput
	ToProgrammaticUserAccountArrayOutputWithContext(context.Context) ProgrammaticUserAccountArrayOutput
}

ProgrammaticUserAccountArrayInput is an input type that accepts ProgrammaticUserAccountArray and ProgrammaticUserAccountArrayOutput values. You can construct a concrete instance of `ProgrammaticUserAccountArrayInput` via:

ProgrammaticUserAccountArray{ ProgrammaticUserAccountArgs{...} }

type ProgrammaticUserAccountArrayOutput

type ProgrammaticUserAccountArrayOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserAccountArrayOutput) ElementType

func (ProgrammaticUserAccountArrayOutput) Index

func (ProgrammaticUserAccountArrayOutput) ToProgrammaticUserAccountArrayOutput

func (o ProgrammaticUserAccountArrayOutput) ToProgrammaticUserAccountArrayOutput() ProgrammaticUserAccountArrayOutput

func (ProgrammaticUserAccountArrayOutput) ToProgrammaticUserAccountArrayOutputWithContext

func (o ProgrammaticUserAccountArrayOutput) ToProgrammaticUserAccountArrayOutputWithContext(ctx context.Context) ProgrammaticUserAccountArrayOutput

type ProgrammaticUserAccountInput

type ProgrammaticUserAccountInput interface {
	pulumi.Input

	ToProgrammaticUserAccountOutput() ProgrammaticUserAccountOutput
	ToProgrammaticUserAccountOutputWithContext(context.Context) ProgrammaticUserAccountOutput
}

ProgrammaticUserAccountInput is an input type that accepts ProgrammaticUserAccountArgs and ProgrammaticUserAccountOutput values. You can construct a concrete instance of `ProgrammaticUserAccountInput` via:

ProgrammaticUserAccountArgs{...}

type ProgrammaticUserAccountOutput

type ProgrammaticUserAccountOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserAccountOutput) AccountId

Account ID the programmatic user will have access to.

func (ProgrammaticUserAccountOutput) AccountRole

(Enum: `"viewer", "editor") Role to be associated with the programmatic user for this account.

func (ProgrammaticUserAccountOutput) ElementType

func (ProgrammaticUserAccountOutput) ToProgrammaticUserAccountOutput

func (o ProgrammaticUserAccountOutput) ToProgrammaticUserAccountOutput() ProgrammaticUserAccountOutput

func (ProgrammaticUserAccountOutput) ToProgrammaticUserAccountOutputWithContext

func (o ProgrammaticUserAccountOutput) ToProgrammaticUserAccountOutputWithContext(ctx context.Context) ProgrammaticUserAccountOutput

type ProgrammaticUserArgs

type ProgrammaticUserArgs struct {
	// All the accounts the programmatic user will have access to.
	// If used - Cannot be empty.
	Accounts ProgrammaticUserAccountArrayInput
	// Brief description of the user.
	Description pulumi.StringPtrInput
	// Name of the programmatic user.
	Name pulumi.StringPtrInput
	// All the policies the programmatic user will have access to.
	// If used - Cannot be empty.
	Policies ProgrammaticUserPolicyArrayInput
	// A list of the user groups to register the given user to (should be existing user groups only)
	UserGroupIds pulumi.StringArrayInput
}

The set of arguments for constructing a ProgrammaticUser resource.

func (ProgrammaticUserArgs) ElementType

func (ProgrammaticUserArgs) ElementType() reflect.Type

type ProgrammaticUserArray

type ProgrammaticUserArray []ProgrammaticUserInput

func (ProgrammaticUserArray) ElementType

func (ProgrammaticUserArray) ElementType() reflect.Type

func (ProgrammaticUserArray) ToProgrammaticUserArrayOutput

func (i ProgrammaticUserArray) ToProgrammaticUserArrayOutput() ProgrammaticUserArrayOutput

func (ProgrammaticUserArray) ToProgrammaticUserArrayOutputWithContext

func (i ProgrammaticUserArray) ToProgrammaticUserArrayOutputWithContext(ctx context.Context) ProgrammaticUserArrayOutput

type ProgrammaticUserArrayInput

type ProgrammaticUserArrayInput interface {
	pulumi.Input

	ToProgrammaticUserArrayOutput() ProgrammaticUserArrayOutput
	ToProgrammaticUserArrayOutputWithContext(context.Context) ProgrammaticUserArrayOutput
}

ProgrammaticUserArrayInput is an input type that accepts ProgrammaticUserArray and ProgrammaticUserArrayOutput values. You can construct a concrete instance of `ProgrammaticUserArrayInput` via:

ProgrammaticUserArray{ ProgrammaticUserArgs{...} }

type ProgrammaticUserArrayOutput

type ProgrammaticUserArrayOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserArrayOutput) ElementType

func (ProgrammaticUserArrayOutput) Index

func (ProgrammaticUserArrayOutput) ToProgrammaticUserArrayOutput

func (o ProgrammaticUserArrayOutput) ToProgrammaticUserArrayOutput() ProgrammaticUserArrayOutput

func (ProgrammaticUserArrayOutput) ToProgrammaticUserArrayOutputWithContext

func (o ProgrammaticUserArrayOutput) ToProgrammaticUserArrayOutputWithContext(ctx context.Context) ProgrammaticUserArrayOutput

type ProgrammaticUserInput

type ProgrammaticUserInput interface {
	pulumi.Input

	ToProgrammaticUserOutput() ProgrammaticUserOutput
	ToProgrammaticUserOutputWithContext(ctx context.Context) ProgrammaticUserOutput
}

type ProgrammaticUserMap

type ProgrammaticUserMap map[string]ProgrammaticUserInput

func (ProgrammaticUserMap) ElementType

func (ProgrammaticUserMap) ElementType() reflect.Type

func (ProgrammaticUserMap) ToProgrammaticUserMapOutput

func (i ProgrammaticUserMap) ToProgrammaticUserMapOutput() ProgrammaticUserMapOutput

func (ProgrammaticUserMap) ToProgrammaticUserMapOutputWithContext

func (i ProgrammaticUserMap) ToProgrammaticUserMapOutputWithContext(ctx context.Context) ProgrammaticUserMapOutput

type ProgrammaticUserMapInput

type ProgrammaticUserMapInput interface {
	pulumi.Input

	ToProgrammaticUserMapOutput() ProgrammaticUserMapOutput
	ToProgrammaticUserMapOutputWithContext(context.Context) ProgrammaticUserMapOutput
}

ProgrammaticUserMapInput is an input type that accepts ProgrammaticUserMap and ProgrammaticUserMapOutput values. You can construct a concrete instance of `ProgrammaticUserMapInput` via:

ProgrammaticUserMap{ "key": ProgrammaticUserArgs{...} }

type ProgrammaticUserMapOutput

type ProgrammaticUserMapOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserMapOutput) ElementType

func (ProgrammaticUserMapOutput) ElementType() reflect.Type

func (ProgrammaticUserMapOutput) MapIndex

func (ProgrammaticUserMapOutput) ToProgrammaticUserMapOutput

func (o ProgrammaticUserMapOutput) ToProgrammaticUserMapOutput() ProgrammaticUserMapOutput

func (ProgrammaticUserMapOutput) ToProgrammaticUserMapOutputWithContext

func (o ProgrammaticUserMapOutput) ToProgrammaticUserMapOutputWithContext(ctx context.Context) ProgrammaticUserMapOutput

type ProgrammaticUserOutput

type ProgrammaticUserOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserOutput) Accounts

All the accounts the programmatic user will have access to. If used - Cannot be empty.

func (ProgrammaticUserOutput) Description

Brief description of the user.

func (ProgrammaticUserOutput) ElementType

func (ProgrammaticUserOutput) ElementType() reflect.Type

func (ProgrammaticUserOutput) Name

Name of the programmatic user.

func (ProgrammaticUserOutput) Policies

All the policies the programmatic user will have access to. If used - Cannot be empty.

func (ProgrammaticUserOutput) ToProgrammaticUserOutput

func (o ProgrammaticUserOutput) ToProgrammaticUserOutput() ProgrammaticUserOutput

func (ProgrammaticUserOutput) ToProgrammaticUserOutputWithContext

func (o ProgrammaticUserOutput) ToProgrammaticUserOutputWithContext(ctx context.Context) ProgrammaticUserOutput

func (ProgrammaticUserOutput) UserGroupIds

A list of the user groups to register the given user to (should be existing user groups only)

type ProgrammaticUserPolicy

type ProgrammaticUserPolicy struct {
	// A list of the accounts that the policy should be
	// enforced for the user.
	PolicyAccountIds []string `pulumi:"policyAccountIds"`
	// Policy ID the programmatic user will have access to.
	PolicyId string `pulumi:"policyId"`
}

type ProgrammaticUserPolicyArgs

type ProgrammaticUserPolicyArgs struct {
	// A list of the accounts that the policy should be
	// enforced for the user.
	PolicyAccountIds pulumi.StringArrayInput `pulumi:"policyAccountIds"`
	// Policy ID the programmatic user will have access to.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
}

func (ProgrammaticUserPolicyArgs) ElementType

func (ProgrammaticUserPolicyArgs) ElementType() reflect.Type

func (ProgrammaticUserPolicyArgs) ToProgrammaticUserPolicyOutput

func (i ProgrammaticUserPolicyArgs) ToProgrammaticUserPolicyOutput() ProgrammaticUserPolicyOutput

func (ProgrammaticUserPolicyArgs) ToProgrammaticUserPolicyOutputWithContext

func (i ProgrammaticUserPolicyArgs) ToProgrammaticUserPolicyOutputWithContext(ctx context.Context) ProgrammaticUserPolicyOutput

type ProgrammaticUserPolicyArray

type ProgrammaticUserPolicyArray []ProgrammaticUserPolicyInput

func (ProgrammaticUserPolicyArray) ElementType

func (ProgrammaticUserPolicyArray) ToProgrammaticUserPolicyArrayOutput

func (i ProgrammaticUserPolicyArray) ToProgrammaticUserPolicyArrayOutput() ProgrammaticUserPolicyArrayOutput

func (ProgrammaticUserPolicyArray) ToProgrammaticUserPolicyArrayOutputWithContext

func (i ProgrammaticUserPolicyArray) ToProgrammaticUserPolicyArrayOutputWithContext(ctx context.Context) ProgrammaticUserPolicyArrayOutput

type ProgrammaticUserPolicyArrayInput

type ProgrammaticUserPolicyArrayInput interface {
	pulumi.Input

	ToProgrammaticUserPolicyArrayOutput() ProgrammaticUserPolicyArrayOutput
	ToProgrammaticUserPolicyArrayOutputWithContext(context.Context) ProgrammaticUserPolicyArrayOutput
}

ProgrammaticUserPolicyArrayInput is an input type that accepts ProgrammaticUserPolicyArray and ProgrammaticUserPolicyArrayOutput values. You can construct a concrete instance of `ProgrammaticUserPolicyArrayInput` via:

ProgrammaticUserPolicyArray{ ProgrammaticUserPolicyArgs{...} }

type ProgrammaticUserPolicyArrayOutput

type ProgrammaticUserPolicyArrayOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserPolicyArrayOutput) ElementType

func (ProgrammaticUserPolicyArrayOutput) Index

func (ProgrammaticUserPolicyArrayOutput) ToProgrammaticUserPolicyArrayOutput

func (o ProgrammaticUserPolicyArrayOutput) ToProgrammaticUserPolicyArrayOutput() ProgrammaticUserPolicyArrayOutput

func (ProgrammaticUserPolicyArrayOutput) ToProgrammaticUserPolicyArrayOutputWithContext

func (o ProgrammaticUserPolicyArrayOutput) ToProgrammaticUserPolicyArrayOutputWithContext(ctx context.Context) ProgrammaticUserPolicyArrayOutput

type ProgrammaticUserPolicyInput

type ProgrammaticUserPolicyInput interface {
	pulumi.Input

	ToProgrammaticUserPolicyOutput() ProgrammaticUserPolicyOutput
	ToProgrammaticUserPolicyOutputWithContext(context.Context) ProgrammaticUserPolicyOutput
}

ProgrammaticUserPolicyInput is an input type that accepts ProgrammaticUserPolicyArgs and ProgrammaticUserPolicyOutput values. You can construct a concrete instance of `ProgrammaticUserPolicyInput` via:

ProgrammaticUserPolicyArgs{...}

type ProgrammaticUserPolicyOutput

type ProgrammaticUserPolicyOutput struct{ *pulumi.OutputState }

func (ProgrammaticUserPolicyOutput) ElementType

func (ProgrammaticUserPolicyOutput) PolicyAccountIds

A list of the accounts that the policy should be enforced for the user.

func (ProgrammaticUserPolicyOutput) PolicyId

Policy ID the programmatic user will have access to.

func (ProgrammaticUserPolicyOutput) ToProgrammaticUserPolicyOutput

func (o ProgrammaticUserPolicyOutput) ToProgrammaticUserPolicyOutput() ProgrammaticUserPolicyOutput

func (ProgrammaticUserPolicyOutput) ToProgrammaticUserPolicyOutputWithContext

func (o ProgrammaticUserPolicyOutput) ToProgrammaticUserPolicyOutputWithContext(ctx context.Context) ProgrammaticUserPolicyOutput

type ProgrammaticUserState

type ProgrammaticUserState struct {
	// All the accounts the programmatic user will have access to.
	// If used - Cannot be empty.
	Accounts ProgrammaticUserAccountArrayInput
	// Brief description of the user.
	Description pulumi.StringPtrInput
	// Name of the programmatic user.
	Name pulumi.StringPtrInput
	// All the policies the programmatic user will have access to.
	// If used - Cannot be empty.
	Policies ProgrammaticUserPolicyArrayInput
	// A list of the user groups to register the given user to (should be existing user groups only)
	UserGroupIds pulumi.StringArrayInput
}

func (ProgrammaticUserState) ElementType

func (ProgrammaticUserState) ElementType() reflect.Type

type User

type User struct {
	pulumi.CustomResourceState

	// Email.
	Email pulumi.StringOutput `pulumi:"email"`
	// The first name of the user.
	FirstName pulumi.StringOutput `pulumi:"firstName"`
	// The last name of the user.
	LastName pulumi.StringOutput `pulumi:"lastName"`
	// Password.
	Password pulumi.StringOutput `pulumi:"password"`
	// The policies to register under the given group
	// (should be existing policies only).
	Policies UserPolicyArrayOutput `pulumi:"policies"`
	// User's role.
	Role pulumi.StringPtrOutput `pulumi:"role"`
	// A list of the user groups to register the given user to (should be existing user groups only)
	UserGroupIds pulumi.StringArrayOutput `pulumi:"userGroupIds"`
}

Provides a Spotinst User in the creator's organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/organization"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := organization.NewUser(ctx, "terraform_user", &organization.UserArgs{
			Email:     pulumi.String("abc@xyz.com"),
			FirstName: pulumi.String("test"),
			LastName:  pulumi.String("user"),
			Password:  pulumi.String("testUser@123"),
			Role:      pulumi.String("viewer"),
			Policies: organization.UserPolicyArray{
				&organization.UserPolicyArgs{
					PolicyId: pulumi.String("pol-abcd1236"),
					PolicyAccountIds: pulumi.StringArray{
						pulumi.String("act-abcf4245"),
					},
				},
			},
			UserGroupIds: pulumi.StringArray{
				pulumi.String("ugr-abcd1234"),
				pulumi.String("ugr-defg8763"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetUser

func GetUser(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)

GetUser gets an existing User 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 NewUser

func NewUser(ctx *pulumi.Context,
	name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)

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

func (*User) ElementType

func (*User) ElementType() reflect.Type

func (*User) ToUserOutput

func (i *User) ToUserOutput() UserOutput

func (*User) ToUserOutputWithContext

func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput

type UserArgs

type UserArgs struct {
	// Email.
	Email pulumi.StringInput
	// The first name of the user.
	FirstName pulumi.StringInput
	// The last name of the user.
	LastName pulumi.StringInput
	// Password.
	Password pulumi.StringPtrInput
	// The policies to register under the given group
	// (should be existing policies only).
	Policies UserPolicyArrayInput
	// User's role.
	Role pulumi.StringPtrInput
	// A list of the user groups to register the given user to (should be existing user groups only)
	UserGroupIds pulumi.StringArrayInput
}

The set of arguments for constructing a User resource.

func (UserArgs) ElementType

func (UserArgs) ElementType() reflect.Type

type UserArray

type UserArray []UserInput

func (UserArray) ElementType

func (UserArray) ElementType() reflect.Type

func (UserArray) ToUserArrayOutput

func (i UserArray) ToUserArrayOutput() UserArrayOutput

func (UserArray) ToUserArrayOutputWithContext

func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserArrayInput

type UserArrayInput interface {
	pulumi.Input

	ToUserArrayOutput() UserArrayOutput
	ToUserArrayOutputWithContext(context.Context) UserArrayOutput
}

UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:

UserArray{ UserArgs{...} }

type UserArrayOutput

type UserArrayOutput struct{ *pulumi.OutputState }

func (UserArrayOutput) ElementType

func (UserArrayOutput) ElementType() reflect.Type

func (UserArrayOutput) Index

func (UserArrayOutput) ToUserArrayOutput

func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput

func (UserArrayOutput) ToUserArrayOutputWithContext

func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput

type UserGroup

type UserGroup struct {
	pulumi.CustomResourceState

	// User group description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// User group name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The policies to register under the given group
	// (should be existing policies only).
	Policies UserGroupPolicyArrayOutput `pulumi:"policies"`
	// The users to register under the created group
	// (should be existing users only).
	UserIds pulumi.StringArrayOutput `pulumi:"userIds"`
}

Provides a Spotinst user-group of your Spot organization.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/organization"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := organization.NewUserGroup(ctx, "terraform_user_group", &organization.UserGroupArgs{
			Name:        pulumi.String("test_user_group"),
			Description: pulumi.String("user group by terraform"),
			UserIds: pulumi.StringArray{
				pulumi.String("u-372gf6ae"),
			},
			Policies: organization.UserGroupPolicyArray{
				&organization.UserGroupPolicyArgs{
					AccountIds: pulumi.StringArray{
						pulumi.String("act-a1b2c3d4"),
					},
					PolicyId: pulumi.String("pol-vv7d8c06"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetUserGroup

func GetUserGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UserGroupState, opts ...pulumi.ResourceOption) (*UserGroup, error)

GetUserGroup gets an existing UserGroup 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 NewUserGroup

func NewUserGroup(ctx *pulumi.Context,
	name string, args *UserGroupArgs, opts ...pulumi.ResourceOption) (*UserGroup, error)

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

func (*UserGroup) ElementType

func (*UserGroup) ElementType() reflect.Type

func (*UserGroup) ToUserGroupOutput

func (i *UserGroup) ToUserGroupOutput() UserGroupOutput

func (*UserGroup) ToUserGroupOutputWithContext

func (i *UserGroup) ToUserGroupOutputWithContext(ctx context.Context) UserGroupOutput

type UserGroupArgs

type UserGroupArgs struct {
	// User group description.
	Description pulumi.StringPtrInput
	// User group name.
	Name pulumi.StringPtrInput
	// The policies to register under the given group
	// (should be existing policies only).
	Policies UserGroupPolicyArrayInput
	// The users to register under the created group
	// (should be existing users only).
	UserIds pulumi.StringArrayInput
}

The set of arguments for constructing a UserGroup resource.

func (UserGroupArgs) ElementType

func (UserGroupArgs) ElementType() reflect.Type

type UserGroupArray

type UserGroupArray []UserGroupInput

func (UserGroupArray) ElementType

func (UserGroupArray) ElementType() reflect.Type

func (UserGroupArray) ToUserGroupArrayOutput

func (i UserGroupArray) ToUserGroupArrayOutput() UserGroupArrayOutput

func (UserGroupArray) ToUserGroupArrayOutputWithContext

func (i UserGroupArray) ToUserGroupArrayOutputWithContext(ctx context.Context) UserGroupArrayOutput

type UserGroupArrayInput

type UserGroupArrayInput interface {
	pulumi.Input

	ToUserGroupArrayOutput() UserGroupArrayOutput
	ToUserGroupArrayOutputWithContext(context.Context) UserGroupArrayOutput
}

UserGroupArrayInput is an input type that accepts UserGroupArray and UserGroupArrayOutput values. You can construct a concrete instance of `UserGroupArrayInput` via:

UserGroupArray{ UserGroupArgs{...} }

type UserGroupArrayOutput

type UserGroupArrayOutput struct{ *pulumi.OutputState }

func (UserGroupArrayOutput) ElementType

func (UserGroupArrayOutput) ElementType() reflect.Type

func (UserGroupArrayOutput) Index

func (UserGroupArrayOutput) ToUserGroupArrayOutput

func (o UserGroupArrayOutput) ToUserGroupArrayOutput() UserGroupArrayOutput

func (UserGroupArrayOutput) ToUserGroupArrayOutputWithContext

func (o UserGroupArrayOutput) ToUserGroupArrayOutputWithContext(ctx context.Context) UserGroupArrayOutput

type UserGroupInput

type UserGroupInput interface {
	pulumi.Input

	ToUserGroupOutput() UserGroupOutput
	ToUserGroupOutputWithContext(ctx context.Context) UserGroupOutput
}

type UserGroupMap

type UserGroupMap map[string]UserGroupInput

func (UserGroupMap) ElementType

func (UserGroupMap) ElementType() reflect.Type

func (UserGroupMap) ToUserGroupMapOutput

func (i UserGroupMap) ToUserGroupMapOutput() UserGroupMapOutput

func (UserGroupMap) ToUserGroupMapOutputWithContext

func (i UserGroupMap) ToUserGroupMapOutputWithContext(ctx context.Context) UserGroupMapOutput

type UserGroupMapInput

type UserGroupMapInput interface {
	pulumi.Input

	ToUserGroupMapOutput() UserGroupMapOutput
	ToUserGroupMapOutputWithContext(context.Context) UserGroupMapOutput
}

UserGroupMapInput is an input type that accepts UserGroupMap and UserGroupMapOutput values. You can construct a concrete instance of `UserGroupMapInput` via:

UserGroupMap{ "key": UserGroupArgs{...} }

type UserGroupMapOutput

type UserGroupMapOutput struct{ *pulumi.OutputState }

func (UserGroupMapOutput) ElementType

func (UserGroupMapOutput) ElementType() reflect.Type

func (UserGroupMapOutput) MapIndex

func (UserGroupMapOutput) ToUserGroupMapOutput

func (o UserGroupMapOutput) ToUserGroupMapOutput() UserGroupMapOutput

func (UserGroupMapOutput) ToUserGroupMapOutputWithContext

func (o UserGroupMapOutput) ToUserGroupMapOutputWithContext(ctx context.Context) UserGroupMapOutput

type UserGroupOutput

type UserGroupOutput struct{ *pulumi.OutputState }

func (UserGroupOutput) Description

func (o UserGroupOutput) Description() pulumi.StringPtrOutput

User group description.

func (UserGroupOutput) ElementType

func (UserGroupOutput) ElementType() reflect.Type

func (UserGroupOutput) Name

User group name.

func (UserGroupOutput) Policies

The policies to register under the given group (should be existing policies only).

func (UserGroupOutput) ToUserGroupOutput

func (o UserGroupOutput) ToUserGroupOutput() UserGroupOutput

func (UserGroupOutput) ToUserGroupOutputWithContext

func (o UserGroupOutput) ToUserGroupOutputWithContext(ctx context.Context) UserGroupOutput

func (UserGroupOutput) UserIds

The users to register under the created group (should be existing users only).

type UserGroupPolicy

type UserGroupPolicy struct {
	// A list of accounts to register with the assigned under the
	// given group (should be existing accounts only).
	AccountIds []string `pulumi:"accountIds"`
	// A policy to register under the given group
	// (should be existing policy only).
	PolicyId string `pulumi:"policyId"`
}

type UserGroupPolicyArgs

type UserGroupPolicyArgs struct {
	// A list of accounts to register with the assigned under the
	// given group (should be existing accounts only).
	AccountIds pulumi.StringArrayInput `pulumi:"accountIds"`
	// A policy to register under the given group
	// (should be existing policy only).
	PolicyId pulumi.StringInput `pulumi:"policyId"`
}

func (UserGroupPolicyArgs) ElementType

func (UserGroupPolicyArgs) ElementType() reflect.Type

func (UserGroupPolicyArgs) ToUserGroupPolicyOutput

func (i UserGroupPolicyArgs) ToUserGroupPolicyOutput() UserGroupPolicyOutput

func (UserGroupPolicyArgs) ToUserGroupPolicyOutputWithContext

func (i UserGroupPolicyArgs) ToUserGroupPolicyOutputWithContext(ctx context.Context) UserGroupPolicyOutput

type UserGroupPolicyArray

type UserGroupPolicyArray []UserGroupPolicyInput

func (UserGroupPolicyArray) ElementType

func (UserGroupPolicyArray) ElementType() reflect.Type

func (UserGroupPolicyArray) ToUserGroupPolicyArrayOutput

func (i UserGroupPolicyArray) ToUserGroupPolicyArrayOutput() UserGroupPolicyArrayOutput

func (UserGroupPolicyArray) ToUserGroupPolicyArrayOutputWithContext

func (i UserGroupPolicyArray) ToUserGroupPolicyArrayOutputWithContext(ctx context.Context) UserGroupPolicyArrayOutput

type UserGroupPolicyArrayInput

type UserGroupPolicyArrayInput interface {
	pulumi.Input

	ToUserGroupPolicyArrayOutput() UserGroupPolicyArrayOutput
	ToUserGroupPolicyArrayOutputWithContext(context.Context) UserGroupPolicyArrayOutput
}

UserGroupPolicyArrayInput is an input type that accepts UserGroupPolicyArray and UserGroupPolicyArrayOutput values. You can construct a concrete instance of `UserGroupPolicyArrayInput` via:

UserGroupPolicyArray{ UserGroupPolicyArgs{...} }

type UserGroupPolicyArrayOutput

type UserGroupPolicyArrayOutput struct{ *pulumi.OutputState }

func (UserGroupPolicyArrayOutput) ElementType

func (UserGroupPolicyArrayOutput) ElementType() reflect.Type

func (UserGroupPolicyArrayOutput) Index

func (UserGroupPolicyArrayOutput) ToUserGroupPolicyArrayOutput

func (o UserGroupPolicyArrayOutput) ToUserGroupPolicyArrayOutput() UserGroupPolicyArrayOutput

func (UserGroupPolicyArrayOutput) ToUserGroupPolicyArrayOutputWithContext

func (o UserGroupPolicyArrayOutput) ToUserGroupPolicyArrayOutputWithContext(ctx context.Context) UserGroupPolicyArrayOutput

type UserGroupPolicyInput

type UserGroupPolicyInput interface {
	pulumi.Input

	ToUserGroupPolicyOutput() UserGroupPolicyOutput
	ToUserGroupPolicyOutputWithContext(context.Context) UserGroupPolicyOutput
}

UserGroupPolicyInput is an input type that accepts UserGroupPolicyArgs and UserGroupPolicyOutput values. You can construct a concrete instance of `UserGroupPolicyInput` via:

UserGroupPolicyArgs{...}

type UserGroupPolicyOutput

type UserGroupPolicyOutput struct{ *pulumi.OutputState }

func (UserGroupPolicyOutput) AccountIds

A list of accounts to register with the assigned under the given group (should be existing accounts only).

func (UserGroupPolicyOutput) ElementType

func (UserGroupPolicyOutput) ElementType() reflect.Type

func (UserGroupPolicyOutput) PolicyId

A policy to register under the given group (should be existing policy only).

func (UserGroupPolicyOutput) ToUserGroupPolicyOutput

func (o UserGroupPolicyOutput) ToUserGroupPolicyOutput() UserGroupPolicyOutput

func (UserGroupPolicyOutput) ToUserGroupPolicyOutputWithContext

func (o UserGroupPolicyOutput) ToUserGroupPolicyOutputWithContext(ctx context.Context) UserGroupPolicyOutput

type UserGroupState

type UserGroupState struct {
	// User group description.
	Description pulumi.StringPtrInput
	// User group name.
	Name pulumi.StringPtrInput
	// The policies to register under the given group
	// (should be existing policies only).
	Policies UserGroupPolicyArrayInput
	// The users to register under the created group
	// (should be existing users only).
	UserIds pulumi.StringArrayInput
}

func (UserGroupState) ElementType

func (UserGroupState) ElementType() reflect.Type

type UserInput

type UserInput interface {
	pulumi.Input

	ToUserOutput() UserOutput
	ToUserOutputWithContext(ctx context.Context) UserOutput
}

type UserMap

type UserMap map[string]UserInput

func (UserMap) ElementType

func (UserMap) ElementType() reflect.Type

func (UserMap) ToUserMapOutput

func (i UserMap) ToUserMapOutput() UserMapOutput

func (UserMap) ToUserMapOutputWithContext

func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserMapInput

type UserMapInput interface {
	pulumi.Input

	ToUserMapOutput() UserMapOutput
	ToUserMapOutputWithContext(context.Context) UserMapOutput
}

UserMapInput is an input type that accepts UserMap and UserMapOutput values. You can construct a concrete instance of `UserMapInput` via:

UserMap{ "key": UserArgs{...} }

type UserMapOutput

type UserMapOutput struct{ *pulumi.OutputState }

func (UserMapOutput) ElementType

func (UserMapOutput) ElementType() reflect.Type

func (UserMapOutput) MapIndex

func (UserMapOutput) ToUserMapOutput

func (o UserMapOutput) ToUserMapOutput() UserMapOutput

func (UserMapOutput) ToUserMapOutputWithContext

func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput

type UserOutput

type UserOutput struct{ *pulumi.OutputState }

func (UserOutput) ElementType

func (UserOutput) ElementType() reflect.Type

func (UserOutput) Email

func (o UserOutput) Email() pulumi.StringOutput

Email.

func (UserOutput) FirstName

func (o UserOutput) FirstName() pulumi.StringOutput

The first name of the user.

func (UserOutput) LastName

func (o UserOutput) LastName() pulumi.StringOutput

The last name of the user.

func (UserOutput) Password

func (o UserOutput) Password() pulumi.StringOutput

Password.

func (UserOutput) Policies

func (o UserOutput) Policies() UserPolicyArrayOutput

The policies to register under the given group (should be existing policies only).

func (UserOutput) Role

User's role.

func (UserOutput) ToUserOutput

func (o UserOutput) ToUserOutput() UserOutput

func (UserOutput) ToUserOutputWithContext

func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput

func (UserOutput) UserGroupIds

func (o UserOutput) UserGroupIds() pulumi.StringArrayOutput

A list of the user groups to register the given user to (should be existing user groups only)

type UserPolicy

type UserPolicy struct {
	PolicyAccountIds []string `pulumi:"policyAccountIds"`
	// A policy to register under the given group
	// (should be existing policy only).
	PolicyId string `pulumi:"policyId"`
}

type UserPolicyArgs

type UserPolicyArgs struct {
	PolicyAccountIds pulumi.StringArrayInput `pulumi:"policyAccountIds"`
	// A policy to register under the given group
	// (should be existing policy only).
	PolicyId pulumi.StringInput `pulumi:"policyId"`
}

func (UserPolicyArgs) ElementType

func (UserPolicyArgs) ElementType() reflect.Type

func (UserPolicyArgs) ToUserPolicyOutput

func (i UserPolicyArgs) ToUserPolicyOutput() UserPolicyOutput

func (UserPolicyArgs) ToUserPolicyOutputWithContext

func (i UserPolicyArgs) ToUserPolicyOutputWithContext(ctx context.Context) UserPolicyOutput

type UserPolicyArray

type UserPolicyArray []UserPolicyInput

func (UserPolicyArray) ElementType

func (UserPolicyArray) ElementType() reflect.Type

func (UserPolicyArray) ToUserPolicyArrayOutput

func (i UserPolicyArray) ToUserPolicyArrayOutput() UserPolicyArrayOutput

func (UserPolicyArray) ToUserPolicyArrayOutputWithContext

func (i UserPolicyArray) ToUserPolicyArrayOutputWithContext(ctx context.Context) UserPolicyArrayOutput

type UserPolicyArrayInput

type UserPolicyArrayInput interface {
	pulumi.Input

	ToUserPolicyArrayOutput() UserPolicyArrayOutput
	ToUserPolicyArrayOutputWithContext(context.Context) UserPolicyArrayOutput
}

UserPolicyArrayInput is an input type that accepts UserPolicyArray and UserPolicyArrayOutput values. You can construct a concrete instance of `UserPolicyArrayInput` via:

UserPolicyArray{ UserPolicyArgs{...} }

type UserPolicyArrayOutput

type UserPolicyArrayOutput struct{ *pulumi.OutputState }

func (UserPolicyArrayOutput) ElementType

func (UserPolicyArrayOutput) ElementType() reflect.Type

func (UserPolicyArrayOutput) Index

func (UserPolicyArrayOutput) ToUserPolicyArrayOutput

func (o UserPolicyArrayOutput) ToUserPolicyArrayOutput() UserPolicyArrayOutput

func (UserPolicyArrayOutput) ToUserPolicyArrayOutputWithContext

func (o UserPolicyArrayOutput) ToUserPolicyArrayOutputWithContext(ctx context.Context) UserPolicyArrayOutput

type UserPolicyInput

type UserPolicyInput interface {
	pulumi.Input

	ToUserPolicyOutput() UserPolicyOutput
	ToUserPolicyOutputWithContext(context.Context) UserPolicyOutput
}

UserPolicyInput is an input type that accepts UserPolicyArgs and UserPolicyOutput values. You can construct a concrete instance of `UserPolicyInput` via:

UserPolicyArgs{...}

type UserPolicyOutput

type UserPolicyOutput struct{ *pulumi.OutputState }

func (UserPolicyOutput) ElementType

func (UserPolicyOutput) ElementType() reflect.Type

func (UserPolicyOutput) PolicyAccountIds

func (o UserPolicyOutput) PolicyAccountIds() pulumi.StringArrayOutput

func (UserPolicyOutput) PolicyId

func (o UserPolicyOutput) PolicyId() pulumi.StringOutput

A policy to register under the given group (should be existing policy only).

func (UserPolicyOutput) ToUserPolicyOutput

func (o UserPolicyOutput) ToUserPolicyOutput() UserPolicyOutput

func (UserPolicyOutput) ToUserPolicyOutputWithContext

func (o UserPolicyOutput) ToUserPolicyOutputWithContext(ctx context.Context) UserPolicyOutput

type UserState

type UserState struct {
	// Email.
	Email pulumi.StringPtrInput
	// The first name of the user.
	FirstName pulumi.StringPtrInput
	// The last name of the user.
	LastName pulumi.StringPtrInput
	// Password.
	Password pulumi.StringPtrInput
	// The policies to register under the given group
	// (should be existing policies only).
	Policies UserPolicyArrayInput
	// User's role.
	Role pulumi.StringPtrInput
	// A list of the user groups to register the given user to (should be existing user groups only)
	UserGroupIds pulumi.StringArrayInput
}

func (UserState) ElementType

func (UserState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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