Versions in this module Expand all Collapse all v1 v1.175.0 Sep 27, 2023 v1.174.0 Sep 15, 2023 v1.173.0 Sep 12, 2023 v1.172.0 Aug 18, 2023 Changes in this version + type Account struct + Id *string + Role *string + func (o *Account) SetAccountId(v *string) *Account + func (o *Account) SetRole(v *string) *Account + func (o Account) MarshalJSON() ([]byte, error) + type CreatePolicyInput struct + Policy *Policy + type CreatePolicyOutput struct + Policy *Policy + type CreateProgrammaticUserOutput struct + ProgrammaticUser *ProgrammaticUser + type CreateUserGroupOutput struct + UserGroup *UserGroup + type CreateUserOutput struct + User *User + type DeletePolicyInput struct + PolicyID *string + type DeletePolicyOutput struct + type DeleteUserGroupInput struct + UserGroupID *string + type DeleteUserGroupOutput struct + type DeleteUserInput struct + UserID *string + type DeleteUserOutput struct + type GetGroupUser struct + Type *string + UserId *string + UserName *string + type Group struct + Id *string + Name *string + PolicyNames []*string + type ListPoliciesInput struct + type ListPoliciesOutput struct + Policies []*Policy + type ListUserGroupsInput struct + type ListUserGroupsOutput struct + UserGroups []*UserGroup + type ListUsersInput struct + type ListUsersOutput struct + Users []*User + type Policy struct + Description *string + Name *string + PolicyContent *PolicyContent + PolicyID *string + func (o *Policy) SetDescription(v *string) *Policy + func (o *Policy) SetName(v *string) *Policy + func (o *Policy) SetPolicyContent(v *PolicyContent) *Policy + func (o Policy) MarshalJSON() ([]byte, error) + type PolicyContent struct + Statements []*Statement + func (o *PolicyContent) SetStatements(v []*Statement) *PolicyContent + func (o PolicyContent) MarshalJSON() ([]byte, error) + type ProgPolicy struct + AccountIds []string + PolicyId *string + func (o *ProgPolicy) SetAccountIds(v []string) *ProgPolicy + func (o *ProgPolicy) SetPolicyId(v *string) *ProgPolicy + func (o ProgPolicy) MarshalJSON() ([]byte, error) + type ProgrammaticUser struct + Accounts []*Account + Description *string + Name *string + Policies []*ProgPolicy + ProgUserId *string + Token *string + func (o *ProgrammaticUser) SetAccounts(v []*Account) *ProgrammaticUser + func (o *ProgrammaticUser) SetDescription(v *string) *ProgrammaticUser + func (o *ProgrammaticUser) SetName(v *string) *ProgrammaticUser + func (o *ProgrammaticUser) SetPolicies(v []*ProgPolicy) *ProgrammaticUser + func (o ProgrammaticUser) MarshalJSON() ([]byte, error) + type ReadPolicyInput struct + PolicyID *string + type ReadPolicyOutput struct + Policy *Policy + type ReadProgUserOutput struct + ProgUser *ProgrammaticUser + type ReadUserGroupInput struct + UserGroupID *string + type ReadUserGroupOutput struct + UserGroup *UserGroup + type ReadUserInput struct + UserID *string + type ReadUserOutput struct + User *User + type Service interface + CreatePolicy func(context.Context, *CreatePolicyInput) (*CreatePolicyOutput, error) + CreateProgUser func(context.Context, *ProgrammaticUser) (*CreateProgrammaticUserOutput, error) + CreateUser func(context.Context, *User, *bool) (*CreateUserOutput, error) + CreateUserGroup func(context.Context, *UserGroup) (*CreateUserGroupOutput, error) + DeletePolicy func(context.Context, *DeletePolicyInput) (*DeletePolicyOutput, error) + DeleteUser func(context.Context, *DeleteUserInput) (*DeleteUserOutput, error) + DeleteUserGroup func(context.Context, *DeleteUserGroupInput) (*DeleteUserGroupOutput, error) + ListPolicies func(context.Context, *ListPoliciesInput) (*ListPoliciesOutput, error) + ListUserGroups func(context.Context, *ListUserGroupsInput) (*ListUserGroupsOutput, error) + ListUsers func(context.Context, *ListUsersInput) (*ListUsersOutput, error) + ReadPolicy func(context.Context, *ReadPolicyInput) (*ReadPolicyOutput, error) + ReadProgUser func(context.Context, *ReadUserInput) (*ReadProgUserOutput, error) + ReadUser func(context.Context, *ReadUserInput) (*ReadUserOutput, error) + ReadUserGroup func(context.Context, *ReadUserGroupInput) (*ReadUserGroupOutput, error) + UpdatePolicy func(context.Context, *UpdatePolicyInput) (*UpdatePolicyOutput, error) + UpdateUserGroup func(context.Context, *UserGroup) error + type ServiceOp struct + Client *client.Client + func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp + func (s *ServiceOp) CreatePolicy(ctx context.Context, input *CreatePolicyInput) (*CreatePolicyOutput, error) + func (s *ServiceOp) CreateProgUser(ctx context.Context, input *ProgrammaticUser) (*CreateProgrammaticUserOutput, error) + func (s *ServiceOp) CreateUser(ctx context.Context, input *User, generateToken *bool) (*CreateUserOutput, error) + func (s *ServiceOp) CreateUserGroup(ctx context.Context, input *UserGroup) (*CreateUserGroupOutput, error) + func (s *ServiceOp) DeletePolicy(ctx context.Context, input *DeletePolicyInput) (*DeletePolicyOutput, error) + func (s *ServiceOp) DeleteUser(ctx context.Context, input *DeleteUserInput) (*DeleteUserOutput, error) + func (s *ServiceOp) DeleteUserGroup(ctx context.Context, input *DeleteUserGroupInput) (*DeleteUserGroupOutput, error) + func (s *ServiceOp) ListPolicies(ctx context.Context, input *ListPoliciesInput) (*ListPoliciesOutput, error) + func (s *ServiceOp) ListUserGroups(ctx context.Context, input *ListUserGroupsInput) (*ListUserGroupsOutput, error) + func (s *ServiceOp) ListUsers(ctx context.Context, input *ListUsersInput) (*ListUsersOutput, error) + func (s *ServiceOp) ReadPolicy(ctx context.Context, input *ReadPolicyInput) (*ReadPolicyOutput, error) + func (s *ServiceOp) ReadProgUser(ctx context.Context, input *ReadUserInput) (*ReadProgUserOutput, error) + func (s *ServiceOp) ReadUser(ctx context.Context, input *ReadUserInput) (*ReadUserOutput, error) + func (s *ServiceOp) ReadUserGroup(ctx context.Context, input *ReadUserGroupInput) (*ReadUserGroupOutput, error) + func (s *ServiceOp) UpdatePolicy(ctx context.Context, input *UpdatePolicyInput) (*UpdatePolicyOutput, error) + func (s *ServiceOp) UpdateUserGroup(ctx context.Context, input *UserGroup) error + type Statement struct + Actions []string + Effect *string + Resources []string + func (o *Statement) SetActions(v []string) *Statement + func (o *Statement) SetEffect(v *string) *Statement + func (o *Statement) SetResources(v []string) *Statement + func (o Statement) MarshalJSON() ([]byte, error) + type Token struct + CreatedAt *string + Name *string + TokenId *int + TokenLastDigits *string + type UpdatePolicyInput struct + Policy *Policy + type UpdatePolicyOutput struct + Policy *Policy + type UpdateUserGroupInput struct + UserGroupID *string + type User struct + DisplayName *string + Email *string + FirstName *string + GroupNames []*string + Groups []*Group + Id *int + LastName *string + Mfa *bool + OrganizationId *int + Password *string + PersonalAccessToken *string + Policies []*UserPolicy + Role *string + Tokens []*Token + Type *string + UserID *string + Username *string + func (o *User) SetEmail(v *string) *User + func (o *User) SetFirstName(v *string) *User + func (o *User) SetLastName(v *string) *User + func (o *User) SetPassword(v *string) *User + func (o *User) SetRole(v *string) *User + func (o User) MarshalJSON() ([]byte, error) + type UserGroup struct + CreatedAt *string + Description *string + Name *string + Policies []*UserGroupPolicy + PolicyNames []string + UserGroupId *string + UserIds []string + Users []*GetGroupUser + UsersCount *int + func (o *UserGroup) SetDescription(v *string) *UserGroup + func (o *UserGroup) SetName(v *string) *UserGroup + func (o *UserGroup) SetPolicies(v []*UserGroupPolicy) *UserGroup + func (o *UserGroup) SetUserIds(v []string) *UserGroup + func (o UserGroup) MarshalJSON() ([]byte, error) + type UserGroupPolicy struct + AccountIds []string + PolicyId *string + PolicyName *string + PolicyType *string + func (o *UserGroupPolicy) SetAccountIds(v []string) *UserGroupPolicy + func (o *UserGroupPolicy) SetPolicyId(v *string) *UserGroupPolicy + func (o UserGroupPolicy) MarshalJSON() ([]byte, error) + type UserPolicy struct + AccountIds []string + PolicyId *string + PolicyName *string + PolicyType *string