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 ¶
- func NewIAMRightDataSource() datasource.DataSource
- func NewIAMUserResource() resource.Resource
- func NewRoleDataSource() datasource.DataSource
- func NewRoleResource() resource.Resource
- func NewRolesDataSource() datasource.DataSource
- func NewTokenResource() resource.Resource
- func NewUserDataSource() datasource.DataSource
- type RightModel
- type RightModelImpliedRight
- type RightModelImpliedRights
- type RoleDataSourceModel
- type RoleResourceModel
- type RolesDataSource
- func (d *RolesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *RolesDataSource) Init(ctx context.Context, dm *RolesModel) (diags diag.Diagnostics)
- func (d *RolesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *RolesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RolesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RolesModel
- type TokenModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIAMRightDataSource ¶
func NewIAMRightDataSource() datasource.DataSource
func NewIAMUserResource ¶
NewuserResource is a helper function to simplify the provider implementation.
func NewRoleDataSource ¶
func NewRoleDataSource() datasource.DataSource
func NewRoleResource ¶
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
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 (d *RolesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
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 (d *RolesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*RolesDataSource) Read ¶ added in v0.18.2
func (d *RolesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RolesDataSource) Schema ¶ added in v0.18.2
func (d *RolesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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
Source Files ¶
- base.go
- right_datasource.go
- right_schema.go
- right_types.go
- role_common.go
- role_datasource.go
- role_resource.go
- role_schema.go
- role_types.go
- roles_datasource.go
- roles_schema.go
- roles_types.go
- token_resource.go
- token_schema.go
- token_types.go
- user_common.go
- user_datasource.go
- user_resource.go
- user_schema.go
- user_types.go