aws

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataAwsAssumeRolePolicy

func DataAwsAssumeRolePolicy() common.Resource

DataAwsAssumeRolePolicy ...

func DataAwsBucketPolicy

func DataAwsBucketPolicy() common.Resource

DataAwsBucketPolicy ...

func DataAwsCrossaccountPolicy

func DataAwsCrossaccountPolicy() common.Resource

DataAwsCrossaccountPolicy defines the cross-account policy

func DataAwsUnityCatalogAssumeRolePolicy added in v1.47.0

func DataAwsUnityCatalogAssumeRolePolicy() common.Resource

func DataAwsUnityCatalogPolicy added in v1.36.2

func DataAwsUnityCatalogPolicy() common.Resource

func DataSourceInstanceProfiles added in v1.31.0

func DataSourceInstanceProfiles() common.Resource

func ResourceGroupInstanceProfile

func ResourceGroupInstanceProfile() common.Resource

ResourceGroupInstanceProfile defines group role resource

func ResourceInstanceProfile

func ResourceInstanceProfile() common.Resource

ResourceInstanceProfile manages Instance Profile ARN binding

func ResourceServicePrincipalRole

func ResourceServicePrincipalRole() common.Resource

ResourceServicePrincipalRole binds service principal and instance profile

func ResourceUserInstanceProfile

func ResourceUserInstanceProfile() common.Resource

ResourceUserInstanceProfile binds user and instance profile

func ResourceUserRole

func ResourceUserRole() common.Resource

func ValidArn added in v1.9.1

func ValidArn(v any, c cty.Path) diag.Diagnostics

ValidArn validate if it's valid instance profile or role ARN

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

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

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

Update updates the IAM role ARN of an existing instance profile

Jump to

Keyboard shortcuts

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