provider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewAPITokenResource added in v0.0.8

func NewAPITokenResource() resource.Resource

func NewAPITokensDataSource added in v0.0.8

func NewAPITokensDataSource() datasource.DataSource

func NewAccountResource

func NewAccountResource() resource.Resource

func NewAccountTypeResource

func NewAccountTypeResource() resource.Resource

func NewAccountTypesDataSource

func NewAccountTypesDataSource() datasource.DataSource

func NewAccountsDataSource

func NewAccountsDataSource() datasource.DataSource

func NewGroupMembershipResource added in v0.0.7

func NewGroupMembershipResource() resource.Resource

func NewGroupResource added in v0.0.4

func NewGroupResource() resource.Resource

func NewGroupsDataSource

func NewGroupsDataSource() datasource.DataSource

func NewPermissionSetAssignmentResource added in v0.0.5

func NewPermissionSetAssignmentResource() resource.Resource

func NewPermissionSetAssignmentsDataSource added in v0.0.5

func NewPermissionSetAssignmentsDataSource() datasource.DataSource

func NewPermissionSetResource added in v0.0.5

func NewPermissionSetResource() resource.Resource

func NewPermissionSetsDataSource added in v0.0.5

func NewPermissionSetsDataSource() datasource.DataSource

func NewUserResource added in v0.0.7

func NewUserResource() resource.Resource

func NewUsersDataSource added in v0.0.7

func NewUsersDataSource() datasource.DataSource

func TagsSchema

func TagsSchema() *schema.Schema

TagsSchema returns the schema to use for tags.

Types

type APITokenDataSourceModel added in v0.0.8

type APITokenDataSourceModel struct {
	ID         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Role       types.String `tfsdk:"role"`
	Status     types.String `tfsdk:"status"`
	CreatedTS  types.String `tfsdk:"created_ts"`
	ModifiedTS types.String `tfsdk:"modified_ts"`
	Tags       types.Map    `tfsdk:"tags"`
}

type APITokenFiltersModel added in v0.0.8

type APITokenFiltersModel struct {
	IDs types.List `tfsdk:"ids"`
}

type APITokenResource added in v0.0.8

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

APITokenResource defines the resource implementation.

func (*APITokenResource) Configure added in v0.0.8

func (*APITokenResource) Create added in v0.0.8

func (*APITokenResource) Delete added in v0.0.8

func (*APITokenResource) ImportState added in v0.0.8

func (*APITokenResource) Metadata added in v0.0.8

func (*APITokenResource) Read added in v0.0.8

func (*APITokenResource) Schema added in v0.0.8

func (*APITokenResource) Update added in v0.0.8

type APITokenResourceModel added in v0.0.8

type APITokenResourceModel struct {
	ID         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Role       types.String `tfsdk:"role"`
	Status     types.String `tfsdk:"status"`
	CreatedTS  types.String `tfsdk:"created_ts"`
	ModifiedTS types.String `tfsdk:"modified_ts"`
	Tags       types.Map    `tfsdk:"tags"`
}

type APITokensDataSource added in v0.0.8

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

APITokensDataSource defines the data source implementation.

func (*APITokensDataSource) Configure added in v0.0.8

func (*APITokensDataSource) Metadata added in v0.0.8

func (*APITokensDataSource) Read added in v0.0.8

func (*APITokensDataSource) Schema added in v0.0.8

type APITokensDataSourceModel added in v0.0.8

type APITokensDataSourceModel struct {
	ID        types.String              `tfsdk:"id"`
	Filters   *APITokenFiltersModel     `tfsdk:"filters"`
	APITokens []APITokenDataSourceModel `tfsdk:"api_tokens"`
}

APITokensDataSourceModel describes the data source data model.

type AccountDataSourceModel

type AccountDataSourceModel struct {
	ID              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	AccountTypeID   types.String `tfsdk:"account_type_id"`
	AccountType     types.String `tfsdk:"account_type"`
	Status          types.String `tfsdk:"status"`
	AWsAccountID    types.String `tfsdk:"aws_account_id"`
	AwsAccountAlias types.String `tfsdk:"aws_account_alias"`
	AWSLoginUrls    types.Object `tfsdk:"aws_login_urls"`
	Tags            types.Map    `tfsdk:"tags"`
}

type AccountFiltersModel

type AccountFiltersModel struct {
	Names types.List `tfsdk:"names"`
}

type AccountResource

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

AccountResource defines the resource implementation.

func (*AccountResource) Configure

func (*AccountResource) Create

func (*AccountResource) Delete

func (*AccountResource) ImportState

func (*AccountResource) Metadata

func (*AccountResource) Read

func (*AccountResource) Schema

func (*AccountResource) Update

type AccountResourceModel

type AccountResourceModel struct {
	ID              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	Status          types.String `tfsdk:"status"`
	AWsAccountID    types.String `tfsdk:"aws_account_id"`
	AccountTypeID   types.String `tfsdk:"account_type_id"`
	AccountType     types.String `tfsdk:"account_type"`
	AwsAccountAlias types.String `tfsdk:"aws_account_alias"`
	Tags            types.Map    `tfsdk:"tags"`
}

type AccountTypeDataSourceModel

type AccountTypeDataSourceModel struct {
	ID     types.String `tfsdk:"id"`
	Name   types.String `tfsdk:"name"`
	Status types.String `tfsdk:"status"`
}

type AccountTypeFiltersModel

type AccountTypeFiltersModel struct {
	IDs types.List `tfsdk:"ids"`
}

type AccountTypeResource

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

AccountTypeResource defines the resource implementation.

func (*AccountTypeResource) Configure

func (*AccountTypeResource) Create

func (*AccountTypeResource) Delete

func (*AccountTypeResource) ImportState

func (*AccountTypeResource) Metadata

func (*AccountTypeResource) Read

func (*AccountTypeResource) Schema

func (*AccountTypeResource) Update

type AccountTypeResourceModel

type AccountTypeResourceModel struct {
	ID     types.String `tfsdk:"id"`
	Name   types.String `tfsdk:"name"`
	Status types.String `tfsdk:"status"`
}

type AccountTypesDataSource

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

AccountTypesDataSource defines the data source implementation.

func (*AccountTypesDataSource) Configure

func (*AccountTypesDataSource) Metadata

func (*AccountTypesDataSource) Read

func (*AccountTypesDataSource) Schema

type AccountTypesDataSourceModel

type AccountTypesDataSourceModel struct {
	Filters      *AccountTypeFiltersModel     `tfsdk:"filters"`
	AccountTypes []AccountTypeDataSourceModel `tfsdk:"account_types"`
}

AccountTypesDataSourceModel describes the data source data model.

type AccountsDataSource

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

AccountDataSource defines the data source implementation.

func (*AccountsDataSource) Configure

func (*AccountsDataSource) Metadata

func (*AccountsDataSource) Read

func (*AccountsDataSource) Schema

type AccountsDataSourceModel

type AccountsDataSourceModel struct {
	Filters  *AccountFiltersModel     `tfsdk:"filters"`
	Accounts []AccountDataSourceModel `tfsdk:"accounts"`
}

AccountDataSourceModel describes the data source data model.

type GroupDataSourceModel

type GroupDataSourceModel struct {
	ID     types.String `tfsdk:"id"`
	Name   types.String `tfsdk:"name"`
	Status types.String `tfsdk:"status"`
	Type   types.String `tfsdk:"type"`
}

type GroupMembershipResource added in v0.0.7

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

GroupMembershipResource defines the resource implementation.

func (*GroupMembershipResource) Configure added in v0.0.7

func (*GroupMembershipResource) Create added in v0.0.7

func (*GroupMembershipResource) Delete added in v0.0.7

func (*GroupMembershipResource) ImportState added in v0.0.7

func (*GroupMembershipResource) Metadata added in v0.0.7

func (*GroupMembershipResource) Read added in v0.0.7

func (*GroupMembershipResource) Schema added in v0.0.7

func (*GroupMembershipResource) Update added in v0.0.7

type GroupMembershipResourceModel added in v0.0.7

type GroupMembershipResourceModel struct {
	ID       types.String `tfsdk:"id"`
	UsersIDs types.Set    `tfsdk:"user_ids"`
}

type GroupResource added in v0.0.4

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

GroupResource defines the resource implementation.

func (*GroupResource) Configure added in v0.0.4

func (*GroupResource) Create added in v0.0.4

func (*GroupResource) Delete added in v0.0.4

func (*GroupResource) ImportState added in v0.0.4

func (*GroupResource) Metadata added in v0.0.4

func (*GroupResource) Read added in v0.0.4

func (*GroupResource) Schema added in v0.0.4

func (*GroupResource) Update added in v0.0.4

type GroupResourceModel added in v0.0.4

type GroupResourceModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
	Type types.String `tfsdk:"type"`
}

type GroupsDataSource

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

GroupsDataSource defines the data source implementation.

func (*GroupsDataSource) Configure

func (*GroupsDataSource) Metadata

func (*GroupsDataSource) Read

func (*GroupsDataSource) Schema

type GroupsDataSourceModel

type GroupsDataSourceModel struct {
	ID      types.String           `tfsdk:"id"`
	Filters *GroupsFiltersModel    `tfsdk:"filters"`
	Groups  []GroupDataSourceModel `tfsdk:"groups"`
}

GroupsDataSourceModel describes the data source data model.

type GroupsFiltersModel

type GroupsFiltersModel struct {
	IDs types.List `tfsdk:"ids"`
}

type PermissionSetAssignmentDataSourceModel added in v0.0.5

type PermissionSetAssignmentDataSourceModel struct {
	ID             types.String `tfsdk:"id"`
	AccountTypeID  types.String `tfsdk:"account_type_id"`
	GroupID        types.String `tfsdk:"group_id"`
	Status         types.String `tfsdk:"status"`
	LastModifiedBy types.String `tfsdk:"last_modified_by"`
	LastModifiedTS types.String `tfsdk:"last_modified_ts"`
	CreatedBy      types.String `tfsdk:"created_by"`
	CreatedTS      types.String `tfsdk:"created_ts"`
}

type PermissionSetAssignmentResource added in v0.0.5

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

PermissionSetAssignmentResource defines the resource implementation.

func (*PermissionSetAssignmentResource) Configure added in v0.0.5

func (*PermissionSetAssignmentResource) Create added in v0.0.5

func (*PermissionSetAssignmentResource) Delete added in v0.0.5

func (*PermissionSetAssignmentResource) ImportState added in v0.0.5

func (*PermissionSetAssignmentResource) Metadata added in v0.0.5

func (*PermissionSetAssignmentResource) Read added in v0.0.5

func (*PermissionSetAssignmentResource) Schema added in v0.0.5

func (*PermissionSetAssignmentResource) Update added in v0.0.5

type PermissionSetAssignmentResourceModel added in v0.0.5

type PermissionSetAssignmentResourceModel struct {
	ID              types.String `tfsdk:"id"`
	PermissionSetID types.String `tfsdk:"permission_set_id"`
	AccountTypeID   types.String `tfsdk:"account_type_id"`
	GroupID         types.String `tfsdk:"group_id"`
	Status          types.String `tfsdk:"status"`
	CreatedBy       types.String `tfsdk:"created_by"`
	CreatedTS       types.String `tfsdk:"created_ts"`
}

type PermissionSetAssignmentsDataSource added in v0.0.5

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

PermissionSetAssignmentsDataSource defines the data source implementation.

func (*PermissionSetAssignmentsDataSource) Configure added in v0.0.5

func (*PermissionSetAssignmentsDataSource) Metadata added in v0.0.5

func (*PermissionSetAssignmentsDataSource) Read added in v0.0.5

func (*PermissionSetAssignmentsDataSource) Schema added in v0.0.5

type PermissionSetAssignmentsDataSourceModel added in v0.0.5

type PermissionSetAssignmentsDataSourceModel struct {
	PermissionSetID types.String                             `tfsdk:"permission_set_id"`
	Filters         *PermissionSetAssignmentsFiltersModel    `tfsdk:"filters"`
	Assignments     []PermissionSetAssignmentDataSourceModel `tfsdk:"assignments"`
}

PermissionSetAssignmentsDataSourceModel describes the data source data model.

type PermissionSetAssignmentsFiltersModel added in v0.0.5

type PermissionSetAssignmentsFiltersModel struct {
	Statuses types.List `tfsdk:"statuses"`
}

type PermissionSetDataSourceModel added in v0.0.5

type PermissionSetDataSourceModel struct {
	ID                 types.String `tfsdk:"id"`
	Name               types.String `tfsdk:"name"`
	Status             types.String `tfsdk:"status"`
	Description        types.String `tfsdk:"description"`
	CreatedBy          types.String `tfsdk:"created_by"`
	CreatedTS          types.String `tfsdk:"created_ts"`
	MaxSessionDuration types.Int64  `tfsdk:"max_session_duration"`
	Tags               types.Map    `tfsdk:"tags"`
}

type PermissionSetInlinePolicyData added in v0.0.5

type PermissionSetInlinePolicyData struct {
	Name   types.String `tfsdk:"name"`
	Policy types.String `tfsdk:"policy"`
}

type PermissionSetResource added in v0.0.5

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

PermissionSetResource defines the resource implementation.

func (*PermissionSetResource) Configure added in v0.0.5

func (*PermissionSetResource) Create added in v0.0.5

func (*PermissionSetResource) Delete added in v0.0.5

func (*PermissionSetResource) ImportState added in v0.0.5

func (*PermissionSetResource) Metadata added in v0.0.5

func (*PermissionSetResource) Read added in v0.0.5

func (*PermissionSetResource) Schema added in v0.0.5

func (*PermissionSetResource) Update added in v0.0.5

type PermissionSetResourceModel added in v0.0.5

type PermissionSetResourceModel struct {
	ID                   types.String `tfsdk:"id"`
	Name                 types.String `tfsdk:"name"`
	Status               types.String `tfsdk:"status"`
	Description          types.String `tfsdk:"description"`
	CreatedBy            types.String `tfsdk:"created_by"`
	CreatedTS            types.String `tfsdk:"created_ts"`
	MaxSessionDuration   types.Int64  `tfsdk:"max_session_duration"`
	Tags                 types.Map    `tfsdk:"tags"`
	InlinePolicies       types.Set    `tfsdk:"inline_policies"`
	AWSManagedPolicyArns types.List   `tfsdk:"aws_managed_policy_arns"`
}

type PermissionSetsDataSource added in v0.0.5

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

PermissionSetsDataSource defines the data source implementation.

func (*PermissionSetsDataSource) Configure added in v0.0.5

func (*PermissionSetsDataSource) Metadata added in v0.0.5

func (*PermissionSetsDataSource) Read added in v0.0.5

func (*PermissionSetsDataSource) Schema added in v0.0.5

type PermissionSetsDataSourceModel added in v0.0.5

type PermissionSetsDataSourceModel struct {
	ID             types.String                   `tfsdk:"id"`
	Filters        *PermissionSetsFiltersModel    `tfsdk:"filters"`
	PermissionSets []PermissionSetDataSourceModel `tfsdk:"permission_sets"`
}

PermissionSetsDataSourceModel describes the data source data model.

type PermissionSetsFiltersModel added in v0.0.5

type PermissionSetsFiltersModel struct {
	Statuses types.List `tfsdk:"statuses"`
}

type StaxProvider

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

StaxProvider defines the provider implementation.

func (*StaxProvider) Configure

func (*StaxProvider) DataSources

func (p *StaxProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*StaxProvider) Metadata

func (*StaxProvider) Resources

func (p *StaxProvider) Resources(ctx context.Context) []func() resource.Resource

func (*StaxProvider) Schema

type StaxProviderModel

type StaxProviderModel struct {
	Installation              types.String `tfsdk:"installation"`
	EndpointURL               types.String `tfsdk:"endpoint_url"`
	PermissionSetsEndpointURL types.String `tfsdk:"permission_sets_endpoint_url"`
	APITokenAccessKey         types.String `tfsdk:"api_token_access_key"`
	APITokenSecretKey         types.String `tfsdk:"api_token_secret_key"`
}

StaxProviderModel describes the provider data model.

type UserDataSourceModel added in v0.0.7

type UserDataSourceModel struct {
	ID         types.String `tfsdk:"id"`
	FirstName  types.String `tfsdk:"first_name"`
	LastName   types.String `tfsdk:"last_name"`
	Email      types.String `tfsdk:"email"`
	Role       types.String `tfsdk:"role"`
	Status     types.String `tfsdk:"status"`
	AuthOrigin types.String `tfsdk:"auth_origin"`
	CreatedTS  types.String `tfsdk:"created_ts"`
	ModifiedTS types.String `tfsdk:"modified_ts"`
}

type UserResource added in v0.0.7

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

UserResource defines the resource implementation.

func (*UserResource) Configure added in v0.0.7

func (*UserResource) Create added in v0.0.7

func (*UserResource) Delete added in v0.0.7

func (*UserResource) ImportState added in v0.0.7

func (*UserResource) Metadata added in v0.0.7

func (*UserResource) Read added in v0.0.7

func (*UserResource) Schema added in v0.0.7

func (*UserResource) Update added in v0.0.7

type UserResourceModel added in v0.0.7

type UserResourceModel struct {
	ID         types.String `tfsdk:"id"`
	FirstName  types.String `tfsdk:"first_name"`
	LastName   types.String `tfsdk:"last_name"`
	Email      types.String `tfsdk:"email"`
	Role       types.String `tfsdk:"role"`
	Status     types.String `tfsdk:"status"`
	AuthOrigin types.String `tfsdk:"auth_origin"`
	CreatedTS  types.String `tfsdk:"created_ts"`
	ModifiedTS types.String `tfsdk:"modified_ts"`
}

type UsersDataSource added in v0.0.7

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

UsersDataSource defines the data source implementation.

func (*UsersDataSource) Configure added in v0.0.7

func (*UsersDataSource) Metadata added in v0.0.7

func (*UsersDataSource) Read added in v0.0.7

func (*UsersDataSource) Schema added in v0.0.7

type UsersDataSourceModel added in v0.0.7

type UsersDataSourceModel struct {
	ID      types.String          `tfsdk:"id"`
	Filters *UsersFiltersModel    `tfsdk:"filters"`
	Users   []UserDataSourceModel `tfsdk:"users"`
}

UsersDataSourceModel describes the data source data model.

type UsersFiltersModel added in v0.0.7

type UsersFiltersModel struct {
	IDs types.List `tfsdk:"ids"`
}

Jump to

Keyboard shortcuts

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