iam

package
v0.18.3-alpha202402271002 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package iam provides a Terraform datasource.

Package org provides a Terraform datasource.

Package iam provides a Terraform datasource.

Package iam provides a Terraform resource.

Package org provides a Terraform resource to manage org users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIAMRightDataSource

func NewIAMRightDataSource() datasource.DataSource

func NewIAMUserResource

func NewIAMUserResource() resource.Resource

NewuserResource is a helper function to simplify the provider implementation.

func NewRoleDataSource

func NewRoleDataSource() datasource.DataSource

func NewRoleResource

func NewRoleResource() resource.Resource

NewroleResource is a helper function to simplify the provider implementation.

func NewRolesDataSource added in v0.18.2

func NewRolesDataSource() datasource.DataSource

func NewTokenResource added in v0.10.0

func NewTokenResource() resource.Resource

NewTokenResource is a helper function to simplify the provider implementation.

func NewUserDataSource

func NewUserDataSource() datasource.DataSource

NewuserDataSource returns a new Org User data source.

Types

type RightModel added in v0.7.0

type RightModel struct {
	BundleKey     supertypes.StringValue    `tfsdk:"bundle_key"`
	CategoryID    supertypes.StringValue    `tfsdk:"category_id"`
	Description   supertypes.StringValue    `tfsdk:"description"`
	ID            supertypes.StringValue    `tfsdk:"id"`
	ImpliedRights supertypes.SetNestedValue `tfsdk:"implied_rights"`
	Name          supertypes.StringValue    `tfsdk:"name"`
	RightType     supertypes.StringValue    `tfsdk:"right_type"`
}

func NewIAMRight added in v0.7.0

func NewIAMRight(t any) *RightModel

func (*RightModel) Copy added in v0.7.0

func (rm *RightModel) Copy() *RightModel

func (*RightModel) GetImpliedRights added in v0.7.0

func (rm *RightModel) GetImpliedRights(ctx context.Context) (values RightModelImpliedRights, diags diag.Diagnostics)

GetImpliedRights returns the value of the ImpliedRights field.

type RightModelImpliedRight added in v0.7.0

type RightModelImpliedRight struct {
	ID   supertypes.StringValue `tfsdk:"id"`
	Name supertypes.StringValue `tfsdk:"name"`
}

* ImpliedRight.

type RightModelImpliedRights added in v0.7.0

type RightModelImpliedRights []RightModelImpliedRight

* ImpliedRights.

type RoleDataSourceModel added in v0.18.2

type RoleDataSourceModel struct {
	ID          supertypes.StringValue        `tfsdk:"id"`
	Name        supertypes.StringValue        `tfsdk:"name"`
	Description supertypes.StringValue        `tfsdk:"description"`
	ReadOnly    supertypes.BoolValue          `tfsdk:"read_only"`
	Rights      supertypes.SetValueOf[string] `tfsdk:"rights"`
}

type RoleResourceModel added in v0.18.2

type RoleResourceModel struct {
	ID          supertypes.StringValue        `tfsdk:"id"`
	Name        supertypes.StringValue        `tfsdk:"name"`
	Description supertypes.StringValue        `tfsdk:"description"`
	Rights      supertypes.SetValueOf[string] `tfsdk:"rights"`
}

type RolesDataSource added in v0.18.2

type RolesDataSource struct {
	// contains filtered or unexported fields
}

func (*RolesDataSource) Configure added in v0.18.2

func (*RolesDataSource) Init added in v0.18.2

func (d *RolesDataSource) Init(ctx context.Context, dm *RolesModel) (diags diag.Diagnostics)

Init Initializes the data source.

func (*RolesDataSource) Metadata added in v0.18.2

func (*RolesDataSource) Read added in v0.18.2

func (*RolesDataSource) Schema added in v0.18.2

type RolesModel added in v0.18.2

type RolesModel struct {
	ID    supertypes.StringValue                                 `tfsdk:"id"`
	Roles supertypes.MapNestedObjectValueOf[RoleDataSourceModel] `tfsdk:"roles"`
}

type TokenModel added in v0.10.0

type TokenModel struct {
	FileName      supertypes.StringValue `tfsdk:"file_name"`
	ID            supertypes.StringValue `tfsdk:"id"`
	Name          supertypes.StringValue `tfsdk:"name"`
	PrintToken    supertypes.BoolValue   `tfsdk:"print_token"`
	SaveInFile    supertypes.BoolValue   `tfsdk:"save_in_file"`
	SaveInTfstate supertypes.BoolValue   `tfsdk:"save_in_tfstate"`
	Token         supertypes.StringValue `tfsdk:"token"`
}

func (*TokenModel) Copy added in v0.10.0

func (rm *TokenModel) Copy() *TokenModel

Jump to

Keyboard shortcuts

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