Documentation
¶
Index ¶
- func DataAwsAssumeRolePolicy() common.Resource
- func DataAwsBucketPolicy() common.Resource
- func DataAwsCrossaccountPolicy() common.Resource
- func DataAwsUnityCatalogAssumeRolePolicy() common.Resource
- func DataAwsUnityCatalogPolicy() common.Resource
- func DataSourceInstanceProfiles() common.Resource
- func ResourceGroupInstanceProfile() common.Resource
- func ResourceInstanceProfile() common.Resource
- func ResourceServicePrincipalRole() common.Resource
- func ResourceUserInstanceProfile() common.Resource
- func ResourceUserRole() common.Resource
- func ValidArn(v any, c cty.Path) diag.Diagnostics
- type InstanceProfileInfo
- type InstanceProfileList
- type InstanceProfilesAPI
- func (a InstanceProfilesAPI) Create(ipi InstanceProfileInfo) error
- func (a InstanceProfilesAPI) Delete(instanceProfileARN string) error
- func (a InstanceProfilesAPI) IsRegistered(arn string) bool
- func (a InstanceProfilesAPI) List() ([]InstanceProfileInfo, error)
- func (a InstanceProfilesAPI) Read(instanceProfileARN string) (result InstanceProfileInfo, err error)
- func (a InstanceProfilesAPI) Synchronized(arn string, testCallback func() bool)
- func (a InstanceProfilesAPI) Update(ipi InstanceProfileInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataAwsAssumeRolePolicy ¶
DataAwsAssumeRolePolicy ...
func DataAwsCrossaccountPolicy ¶
DataAwsCrossaccountPolicy defines the cross-account policy
func DataAwsUnityCatalogAssumeRolePolicy ¶ added in v1.47.0
func DataAwsUnityCatalogPolicy ¶ added in v1.36.2
func DataSourceInstanceProfiles ¶ added in v1.31.0
func ResourceGroupInstanceProfile ¶
ResourceGroupInstanceProfile defines group role resource
func ResourceInstanceProfile ¶
ResourceInstanceProfile manages Instance Profile ARN binding
func ResourceServicePrincipalRole ¶
ResourceServicePrincipalRole binds service principal and instance profile
func ResourceUserInstanceProfile ¶
ResourceUserInstanceProfile binds user and instance profile
func ResourceUserRole ¶
Types ¶
type InstanceProfileInfo ¶
type InstanceProfileInfo struct { InstanceProfileArn string `json:"instance_profile_arn"` IamRoleArn string `json:"iam_role_arn,omitempty"` IsMetaInstanceProfile bool `json:"is_meta_instance_profile,omitempty"` SkipValidation bool `json:"skip_validation,omitempty" tf:"computed"` }
InstanceProfileInfo contains the ARN for aws instance profiles
type InstanceProfileList ¶
type InstanceProfileList struct {
InstanceProfiles []InstanceProfileInfo `json:"instance_profiles,omitempty"`
}
InstanceProfileList ...
type InstanceProfilesAPI ¶
type InstanceProfilesAPI struct {
// contains filtered or unexported fields
}
InstanceProfilesAPI exposes the instance profiles api on the AWS deployment of Databricks
func NewInstanceProfilesAPI ¶
func NewInstanceProfilesAPI(ctx context.Context, m any) InstanceProfilesAPI
NewInstanceProfilesAPI creates InstanceProfilesAPI instance from provider meta
func (InstanceProfilesAPI) Create ¶
func (a InstanceProfilesAPI) Create(ipi InstanceProfileInfo) error
Create creates an instance profile record on Databricks
func (InstanceProfilesAPI) Delete ¶
func (a InstanceProfilesAPI) Delete(instanceProfileARN string) error
Delete deletes the instance profile given an instance profile arn
func (InstanceProfilesAPI) IsRegistered ¶
func (a InstanceProfilesAPI) IsRegistered(arn string) bool
IsRegistered checks if instance profile exists
func (InstanceProfilesAPI) List ¶
func (a InstanceProfilesAPI) List() ([]InstanceProfileInfo, error)
List lists all the instance profiles in the workspace
func (InstanceProfilesAPI) Read ¶
func (a InstanceProfilesAPI) Read(instanceProfileARN string) (result InstanceProfileInfo, err error)
Read returns the ARN back if it exists on the Databricks workspace
func (InstanceProfilesAPI) Synchronized ¶
func (a InstanceProfilesAPI) Synchronized(arn string, testCallback func() bool)
Synchronized test helper for working with only single instance profile
func (InstanceProfilesAPI) Update ¶ added in v1.9.1
func (a InstanceProfilesAPI) Update(ipi InstanceProfileInfo) error
Update updates the IAM role ARN of an existing instance profile
Source Files
¶
- data_aws_assume_role_policy.go
- data_aws_bucket_policy.go
- data_aws_crossaccount_policy.go
- data_aws_unity_catalog_assume_role_policy.go
- data_aws_unity_catalog_policy.go
- data_instance_profiles.go
- resource_group_instance_profile.go
- resource_instance_profile.go
- resource_service_principal_role.go
- resource_user_instance_profile.go
- resource_user_role.go