Documentation
¶
Index ¶
- type Policy
- type PolicyArgs
- type PolicyArray
- type PolicyArrayInput
- type PolicyArrayOutput
- type PolicyInput
- type PolicyMap
- type PolicyMapInput
- type PolicyMapOutput
- type PolicyOutput
- func (o PolicyOutput) Description() pulumi.StringPtrOutput
- func (PolicyOutput) ElementType() reflect.Type
- func (o PolicyOutput) Name() pulumi.StringOutput
- func (o PolicyOutput) PolicyContents() PolicyPolicyContentArrayOutput
- func (o PolicyOutput) ToPolicyOutput() PolicyOutput
- func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
- type PolicyPolicyContent
- type PolicyPolicyContentArgs
- type PolicyPolicyContentArray
- type PolicyPolicyContentArrayInput
- type PolicyPolicyContentArrayOutput
- func (PolicyPolicyContentArrayOutput) ElementType() reflect.Type
- func (o PolicyPolicyContentArrayOutput) Index(i pulumi.IntInput) PolicyPolicyContentOutput
- func (o PolicyPolicyContentArrayOutput) ToPolicyPolicyContentArrayOutput() PolicyPolicyContentArrayOutput
- func (o PolicyPolicyContentArrayOutput) ToPolicyPolicyContentArrayOutputWithContext(ctx context.Context) PolicyPolicyContentArrayOutput
- type PolicyPolicyContentInput
- type PolicyPolicyContentOutput
- func (PolicyPolicyContentOutput) ElementType() reflect.Type
- func (o PolicyPolicyContentOutput) Statements() PolicyPolicyContentStatementArrayOutput
- func (o PolicyPolicyContentOutput) ToPolicyPolicyContentOutput() PolicyPolicyContentOutput
- func (o PolicyPolicyContentOutput) ToPolicyPolicyContentOutputWithContext(ctx context.Context) PolicyPolicyContentOutput
- type PolicyPolicyContentStatement
- type PolicyPolicyContentStatementArgs
- func (PolicyPolicyContentStatementArgs) ElementType() reflect.Type
- func (i PolicyPolicyContentStatementArgs) ToPolicyPolicyContentStatementOutput() PolicyPolicyContentStatementOutput
- func (i PolicyPolicyContentStatementArgs) ToPolicyPolicyContentStatementOutputWithContext(ctx context.Context) PolicyPolicyContentStatementOutput
- type PolicyPolicyContentStatementArray
- func (PolicyPolicyContentStatementArray) ElementType() reflect.Type
- func (i PolicyPolicyContentStatementArray) ToPolicyPolicyContentStatementArrayOutput() PolicyPolicyContentStatementArrayOutput
- func (i PolicyPolicyContentStatementArray) ToPolicyPolicyContentStatementArrayOutputWithContext(ctx context.Context) PolicyPolicyContentStatementArrayOutput
- type PolicyPolicyContentStatementArrayInput
- type PolicyPolicyContentStatementArrayOutput
- func (PolicyPolicyContentStatementArrayOutput) ElementType() reflect.Type
- func (o PolicyPolicyContentStatementArrayOutput) Index(i pulumi.IntInput) PolicyPolicyContentStatementOutput
- func (o PolicyPolicyContentStatementArrayOutput) ToPolicyPolicyContentStatementArrayOutput() PolicyPolicyContentStatementArrayOutput
- func (o PolicyPolicyContentStatementArrayOutput) ToPolicyPolicyContentStatementArrayOutputWithContext(ctx context.Context) PolicyPolicyContentStatementArrayOutput
- type PolicyPolicyContentStatementInput
- type PolicyPolicyContentStatementOutput
- func (o PolicyPolicyContentStatementOutput) Actions() pulumi.StringArrayOutput
- func (o PolicyPolicyContentStatementOutput) Effect() pulumi.StringOutput
- func (PolicyPolicyContentStatementOutput) ElementType() reflect.Type
- func (o PolicyPolicyContentStatementOutput) Resources() pulumi.StringArrayOutput
- func (o PolicyPolicyContentStatementOutput) ToPolicyPolicyContentStatementOutput() PolicyPolicyContentStatementOutput
- func (o PolicyPolicyContentStatementOutput) ToPolicyPolicyContentStatementOutputWithContext(ctx context.Context) PolicyPolicyContentStatementOutput
- type PolicyState
- type ProgrammaticUser
- type ProgrammaticUserAccount
- type ProgrammaticUserAccountArgs
- type ProgrammaticUserAccountArray
- func (ProgrammaticUserAccountArray) ElementType() reflect.Type
- func (i ProgrammaticUserAccountArray) ToProgrammaticUserAccountArrayOutput() ProgrammaticUserAccountArrayOutput
- func (i ProgrammaticUserAccountArray) ToProgrammaticUserAccountArrayOutputWithContext(ctx context.Context) ProgrammaticUserAccountArrayOutput
- type ProgrammaticUserAccountArrayInput
- type ProgrammaticUserAccountArrayOutput
- func (ProgrammaticUserAccountArrayOutput) ElementType() reflect.Type
- func (o ProgrammaticUserAccountArrayOutput) Index(i pulumi.IntInput) ProgrammaticUserAccountOutput
- func (o ProgrammaticUserAccountArrayOutput) ToProgrammaticUserAccountArrayOutput() ProgrammaticUserAccountArrayOutput
- func (o ProgrammaticUserAccountArrayOutput) ToProgrammaticUserAccountArrayOutputWithContext(ctx context.Context) ProgrammaticUserAccountArrayOutput
- type ProgrammaticUserAccountInput
- type ProgrammaticUserAccountOutput
- func (o ProgrammaticUserAccountOutput) AccountId() pulumi.StringOutput
- func (o ProgrammaticUserAccountOutput) AccountRole() pulumi.StringOutput
- func (ProgrammaticUserAccountOutput) ElementType() reflect.Type
- func (o ProgrammaticUserAccountOutput) ToProgrammaticUserAccountOutput() ProgrammaticUserAccountOutput
- func (o ProgrammaticUserAccountOutput) ToProgrammaticUserAccountOutputWithContext(ctx context.Context) ProgrammaticUserAccountOutput
- type ProgrammaticUserArgs
- type ProgrammaticUserArray
- type ProgrammaticUserArrayInput
- type ProgrammaticUserArrayOutput
- func (ProgrammaticUserArrayOutput) ElementType() reflect.Type
- func (o ProgrammaticUserArrayOutput) Index(i pulumi.IntInput) ProgrammaticUserOutput
- func (o ProgrammaticUserArrayOutput) ToProgrammaticUserArrayOutput() ProgrammaticUserArrayOutput
- func (o ProgrammaticUserArrayOutput) ToProgrammaticUserArrayOutputWithContext(ctx context.Context) ProgrammaticUserArrayOutput
- type ProgrammaticUserInput
- type ProgrammaticUserMap
- type ProgrammaticUserMapInput
- type ProgrammaticUserMapOutput
- func (ProgrammaticUserMapOutput) ElementType() reflect.Type
- func (o ProgrammaticUserMapOutput) MapIndex(k pulumi.StringInput) ProgrammaticUserOutput
- func (o ProgrammaticUserMapOutput) ToProgrammaticUserMapOutput() ProgrammaticUserMapOutput
- func (o ProgrammaticUserMapOutput) ToProgrammaticUserMapOutputWithContext(ctx context.Context) ProgrammaticUserMapOutput
- type ProgrammaticUserOutput
- func (o ProgrammaticUserOutput) Accounts() ProgrammaticUserAccountArrayOutput
- func (o ProgrammaticUserOutput) Description() pulumi.StringPtrOutput
- func (ProgrammaticUserOutput) ElementType() reflect.Type
- func (o ProgrammaticUserOutput) Name() pulumi.StringOutput
- func (o ProgrammaticUserOutput) Policies() ProgrammaticUserPolicyArrayOutput
- func (o ProgrammaticUserOutput) ToProgrammaticUserOutput() ProgrammaticUserOutput
- func (o ProgrammaticUserOutput) ToProgrammaticUserOutputWithContext(ctx context.Context) ProgrammaticUserOutput
- func (o ProgrammaticUserOutput) UserGroupIds() pulumi.StringArrayOutput
- type ProgrammaticUserPolicy
- type ProgrammaticUserPolicyArgs
- type ProgrammaticUserPolicyArray
- func (ProgrammaticUserPolicyArray) ElementType() reflect.Type
- func (i ProgrammaticUserPolicyArray) ToProgrammaticUserPolicyArrayOutput() ProgrammaticUserPolicyArrayOutput
- func (i ProgrammaticUserPolicyArray) ToProgrammaticUserPolicyArrayOutputWithContext(ctx context.Context) ProgrammaticUserPolicyArrayOutput
- type ProgrammaticUserPolicyArrayInput
- type ProgrammaticUserPolicyArrayOutput
- func (ProgrammaticUserPolicyArrayOutput) ElementType() reflect.Type
- func (o ProgrammaticUserPolicyArrayOutput) Index(i pulumi.IntInput) ProgrammaticUserPolicyOutput
- func (o ProgrammaticUserPolicyArrayOutput) ToProgrammaticUserPolicyArrayOutput() ProgrammaticUserPolicyArrayOutput
- func (o ProgrammaticUserPolicyArrayOutput) ToProgrammaticUserPolicyArrayOutputWithContext(ctx context.Context) ProgrammaticUserPolicyArrayOutput
- type ProgrammaticUserPolicyInput
- type ProgrammaticUserPolicyOutput
- func (ProgrammaticUserPolicyOutput) ElementType() reflect.Type
- func (o ProgrammaticUserPolicyOutput) PolicyAccountIds() pulumi.StringArrayOutput
- func (o ProgrammaticUserPolicyOutput) PolicyId() pulumi.StringOutput
- func (o ProgrammaticUserPolicyOutput) ToProgrammaticUserPolicyOutput() ProgrammaticUserPolicyOutput
- func (o ProgrammaticUserPolicyOutput) ToProgrammaticUserPolicyOutputWithContext(ctx context.Context) ProgrammaticUserPolicyOutput
- type ProgrammaticUserState
- type User
- type UserArgs
- type UserArray
- type UserArrayInput
- type UserArrayOutput
- type UserGroup
- type UserGroupArgs
- type UserGroupArray
- type UserGroupArrayInput
- type UserGroupArrayOutput
- func (UserGroupArrayOutput) ElementType() reflect.Type
- func (o UserGroupArrayOutput) Index(i pulumi.IntInput) UserGroupOutput
- func (o UserGroupArrayOutput) ToUserGroupArrayOutput() UserGroupArrayOutput
- func (o UserGroupArrayOutput) ToUserGroupArrayOutputWithContext(ctx context.Context) UserGroupArrayOutput
- type UserGroupInput
- type UserGroupMap
- type UserGroupMapInput
- type UserGroupMapOutput
- type UserGroupOutput
- func (o UserGroupOutput) Description() pulumi.StringPtrOutput
- func (UserGroupOutput) ElementType() reflect.Type
- func (o UserGroupOutput) Name() pulumi.StringOutput
- func (o UserGroupOutput) Policies() UserGroupPolicyArrayOutput
- func (o UserGroupOutput) ToUserGroupOutput() UserGroupOutput
- func (o UserGroupOutput) ToUserGroupOutputWithContext(ctx context.Context) UserGroupOutput
- func (o UserGroupOutput) UserIds() pulumi.StringArrayOutput
- type UserGroupPolicy
- type UserGroupPolicyArgs
- type UserGroupPolicyArray
- type UserGroupPolicyArrayInput
- type UserGroupPolicyArrayOutput
- func (UserGroupPolicyArrayOutput) ElementType() reflect.Type
- func (o UserGroupPolicyArrayOutput) Index(i pulumi.IntInput) UserGroupPolicyOutput
- func (o UserGroupPolicyArrayOutput) ToUserGroupPolicyArrayOutput() UserGroupPolicyArrayOutput
- func (o UserGroupPolicyArrayOutput) ToUserGroupPolicyArrayOutputWithContext(ctx context.Context) UserGroupPolicyArrayOutput
- type UserGroupPolicyInput
- type UserGroupPolicyOutput
- func (o UserGroupPolicyOutput) AccountIds() pulumi.StringArrayOutput
- func (UserGroupPolicyOutput) ElementType() reflect.Type
- func (o UserGroupPolicyOutput) PolicyId() pulumi.StringOutput
- func (o UserGroupPolicyOutput) ToUserGroupPolicyOutput() UserGroupPolicyOutput
- func (o UserGroupPolicyOutput) ToUserGroupPolicyOutputWithContext(ctx context.Context) UserGroupPolicyOutput
- type UserGroupState
- type UserInput
- type UserMap
- type UserMapInput
- type UserMapOutput
- type UserOutput
- func (UserOutput) ElementType() reflect.Type
- func (o UserOutput) Email() pulumi.StringOutput
- func (o UserOutput) FirstName() pulumi.StringOutput
- func (o UserOutput) LastName() pulumi.StringOutput
- func (o UserOutput) Password() pulumi.StringOutput
- func (o UserOutput) Policies() UserPolicyArrayOutput
- func (o UserOutput) Role() pulumi.StringPtrOutput
- func (o UserOutput) ToUserOutput() UserOutput
- func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput
- func (o UserOutput) UserGroupIds() pulumi.StringArrayOutput
- type UserPolicy
- type UserPolicyArgs
- type UserPolicyArray
- type UserPolicyArrayInput
- type UserPolicyArrayOutput
- func (UserPolicyArrayOutput) ElementType() reflect.Type
- func (o UserPolicyArrayOutput) Index(i pulumi.IntInput) UserPolicyOutput
- func (o UserPolicyArrayOutput) ToUserPolicyArrayOutput() UserPolicyArrayOutput
- func (o UserPolicyArrayOutput) ToUserPolicyArrayOutputWithContext(ctx context.Context) UserPolicyArrayOutput
- type UserPolicyInput
- type UserPolicyOutput
- func (UserPolicyOutput) ElementType() reflect.Type
- func (o UserPolicyOutput) PolicyAccountIds() pulumi.StringArrayOutput
- func (o UserPolicyOutput) PolicyId() pulumi.StringOutput
- func (o UserPolicyOutput) ToUserPolicyOutput() UserPolicyOutput
- func (o UserPolicyOutput) ToUserPolicyOutputWithContext(ctx context.Context) UserPolicyOutput
- type UserState
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, "terraformPolicy", &organization.PolicyArgs{ 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) 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 (o PolicyArrayOutput) Index(i pulumi.IntInput) PolicyOutput
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) 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 (o PolicyMapOutput) MapIndex(k pulumi.StringInput) PolicyOutput
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) 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) ElementType() reflect.Type
func (PolicyPolicyContentArrayOutput) Index ¶
func (o PolicyPolicyContentArrayOutput) Index(i pulumi.IntInput) PolicyPolicyContentOutput
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 ¶
func (o PolicyPolicyContentOutput) Statements() PolicyPolicyContentStatementArrayOutput
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 { // Set a list of required actions for this permissions statement. // Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/). Actions []string `pulumi:"actions"` // Valid values "ALLOW", "DENY". Effect string `pulumi:"effect"` // Set a list of resources IDs. In order to include all resources in this statement - use "*". Resources []string `pulumi:"resources"` }
type PolicyPolicyContentStatementArgs ¶
type PolicyPolicyContentStatementArgs struct { // Set a list of required actions for this permissions statement. // Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/). Actions pulumi.StringArrayInput `pulumi:"actions"` // Valid values "ALLOW", "DENY". Effect pulumi.StringInput `pulumi:"effect"` // Set a list of resources IDs. In order to include all resources in this statement - use "*". Resources pulumi.StringArrayInput `pulumi:"resources"` }
func (PolicyPolicyContentStatementArgs) ElementType ¶
func (PolicyPolicyContentStatementArgs) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 (o PolicyPolicyContentStatementOutput) Actions() pulumi.StringArrayOutput
Set a list of required actions for this permissions statement. Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/).
func (PolicyPolicyContentStatementOutput) Effect ¶
func (o PolicyPolicyContentStatementOutput) Effect() pulumi.StringOutput
Valid values "ALLOW", "DENY".
func (PolicyPolicyContentStatementOutput) ElementType ¶
func (PolicyPolicyContentStatementOutput) ElementType() reflect.Type
func (PolicyPolicyContentStatementOutput) Resources ¶
func (o PolicyPolicyContentStatementOutput) Resources() pulumi.StringArrayOutput
Set a list of resources IDs. In order to include all resources in this statement - use "*".
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, "terraformProgUser", &organization.ProgrammaticUserArgs{ Description: pulumi.String("creating programmatic user"), Policies: organization.ProgrammaticUserPolicyArray{ &organization.ProgrammaticUserPolicyArgs{ PolicyAccountIds: pulumi.StringArray{ pulumi.String("act-a1b2c3d4"), }, PolicyId: pulumi.String("pol-g75d8c06"), }, }, 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 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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (ProgrammaticUserAccountArrayOutput) Index ¶
func (o ProgrammaticUserAccountArrayOutput) Index(i pulumi.IntInput) ProgrammaticUserAccountOutput
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 ¶
func (o ProgrammaticUserAccountOutput) AccountId() pulumi.StringOutput
Account ID the programmatic user will have access to.
func (ProgrammaticUserAccountOutput) AccountRole ¶
func (o ProgrammaticUserAccountOutput) AccountRole() pulumi.StringOutput
(Enum: `"viewer", "editor") Role to be associated with the programmatic user for this account.
func (ProgrammaticUserAccountOutput) ElementType ¶
func (ProgrammaticUserAccountOutput) ElementType() reflect.Type
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) ElementType() reflect.Type
func (ProgrammaticUserArrayOutput) Index ¶
func (o ProgrammaticUserArrayOutput) Index(i pulumi.IntInput) ProgrammaticUserOutput
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 (o ProgrammaticUserMapOutput) MapIndex(k pulumi.StringInput) ProgrammaticUserOutput
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 ¶
func (o ProgrammaticUserOutput) Accounts() ProgrammaticUserAccountArrayOutput
All the accounts the programmatic user will have access to. If used - Cannot be empty.
func (ProgrammaticUserOutput) Description ¶
func (o ProgrammaticUserOutput) Description() pulumi.StringPtrOutput
Brief description of the user.
func (ProgrammaticUserOutput) ElementType ¶
func (ProgrammaticUserOutput) ElementType() reflect.Type
func (ProgrammaticUserOutput) Name ¶
func (o ProgrammaticUserOutput) Name() pulumi.StringOutput
Name of the programmatic user.
func (ProgrammaticUserOutput) Policies ¶
func (o ProgrammaticUserOutput) Policies() ProgrammaticUserPolicyArrayOutput
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 ¶
func (o ProgrammaticUserOutput) UserGroupIds() pulumi.StringArrayOutput
A list of the user groups to register the given user to (should be existing user groups only)
type ProgrammaticUserPolicy ¶
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (ProgrammaticUserPolicyArrayOutput) Index ¶
func (o ProgrammaticUserPolicyArrayOutput) Index(i pulumi.IntInput) ProgrammaticUserPolicyOutput
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) ElementType() reflect.Type
func (ProgrammaticUserPolicyOutput) PolicyAccountIds ¶
func (o ProgrammaticUserPolicyOutput) PolicyAccountIds() pulumi.StringArrayOutput
A list of the accounts that the policy should be enforced for the user.
func (ProgrammaticUserPolicyOutput) PolicyId ¶
func (o ProgrammaticUserPolicyOutput) PolicyId() pulumi.StringOutput
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, "terraformUser", &organization.UserArgs{ Email: pulumi.String("abc@xyz.com"), FirstName: pulumi.String("test"), LastName: pulumi.String("user"), Password: pulumi.String("testUser@123"), Policies: organization.UserPolicyArray{ &organization.UserPolicyArgs{ PolicyAccountIds: pulumi.StringArray{ pulumi.String("act-abcf4245"), }, PolicyId: pulumi.String("pol-abcd1236"), }, }, Role: pulumi.String("viewer"), 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) 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 ¶
type UserArray ¶
type UserArray []UserInput
func (UserArray) ElementType ¶
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 (o UserArrayOutput) Index(i pulumi.IntInput) UserOutput
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, "terraformUserGroup", &organization.UserGroupArgs{ Description: pulumi.String("user group by terraform"), Policies: organization.UserGroupPolicyArray{ &organization.UserGroupPolicyArgs{ AccountIds: pulumi.StringArray{ pulumi.String("act-a1b2c3d4"), }, PolicyId: pulumi.String("pol-vv7d8c06"), }, }, UserIds: pulumi.StringArray{ pulumi.String("u-372gf6ae"), }, }) 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) 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 (o UserGroupArrayOutput) Index(i pulumi.IntInput) UserGroupOutput
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 (o UserGroupMapOutput) MapIndex(k pulumi.StringInput) UserGroupOutput
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) Policies ¶
func (o UserGroupOutput) Policies() UserGroupPolicyArrayOutput
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 ¶
func (o UserGroupOutput) UserIds() pulumi.StringArrayOutput
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 (o UserGroupPolicyArrayOutput) Index(i pulumi.IntInput) UserGroupPolicyOutput
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 ¶
func (o UserGroupPolicyOutput) AccountIds() pulumi.StringArrayOutput
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 ¶
func (o UserGroupPolicyOutput) PolicyId() pulumi.StringOutput
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 ¶
func (UserMap) ElementType ¶
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 (o UserMapOutput) MapIndex(k pulumi.StringInput) UserOutput
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) 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) Policies ¶
func (o UserOutput) Policies() UserPolicyArrayOutput
The policies to register under the given group (should be existing policies only).
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 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 (o UserPolicyArrayOutput) Index(i pulumi.IntInput) UserPolicyOutput
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 }