Documentation
¶
Index ¶
- func DataAwsAssumeRolePolicy() *schema.Resource
- func DataAwsBucketPolicy() *schema.Resource
- func DataAwsCrossaccountPolicy() *schema.Resource
- func ResourceGroupInstanceProfile() *schema.Resource
- func ResourceInstanceProfile() *schema.Resource
- func ResourceServicePrincipalRole() *schema.Resource
- func ResourceUserInstanceProfile() *schema.Resource
- func ResourceUserRole() *schema.Resource
- func ValidInstanceProfile(v interface{}, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataAwsAssumeRolePolicy ¶
DataAwsAssumeRolePolicy ...
func DataAwsCrossaccountPolicy ¶ added in v0.6.1
DataAwsCrossaccountPolicy defines the cross-account policy
func ResourceGroupInstanceProfile ¶
ResourceGroupInstanceProfile defines group role resource
func ResourceInstanceProfile ¶
ResourceInstanceProfile manages Instance Profile ARN binding
func ResourceServicePrincipalRole ¶ added in v0.5.9
ResourceServicePrincipalRole binds service principal and instance profile
func ResourceUserInstanceProfile ¶
ResourceUserInstanceProfile binds user and instance profile
func ResourceUserRole ¶ added in v0.4.6
func ValidInstanceProfile ¶
func ValidInstanceProfile(v interface{}, c cty.Path) diag.Diagnostics
ValidInstanceProfile validate if it's valid instance profile ARN
Types ¶
type InstanceProfileInfo ¶
type InstanceProfileInfo struct { InstanceProfileArn string `json:"instance_profile_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 interface{}) 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