databricks.MetastoreDataAccess
Explore with Pulumi AI
Each databricks.Metastore requires an IAM role that will be assumed by Unity Catalog to access data. databricks.MetastoreDataAccess
defines this
Create MetastoreDataAccess Resource
new MetastoreDataAccess(name: string, args: MetastoreDataAccessArgs, opts?: CustomResourceOptions);
@overload
def MetastoreDataAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
aws_iam_role: Optional[MetastoreDataAccessAwsIamRoleArgs] = None,
azure_managed_identity: Optional[MetastoreDataAccessAzureManagedIdentityArgs] = None,
azure_service_principal: Optional[MetastoreDataAccessAzureServicePrincipalArgs] = None,
configuration_type: Optional[str] = None,
databricks_gcp_service_account: Optional[MetastoreDataAccessDatabricksGcpServiceAccountArgs] = None,
gcp_service_account_key: Optional[MetastoreDataAccessGcpServiceAccountKeyArgs] = None,
is_default: Optional[bool] = None,
metastore_id: Optional[str] = None,
name: Optional[str] = None)
@overload
def MetastoreDataAccess(resource_name: str,
args: MetastoreDataAccessArgs,
opts: Optional[ResourceOptions] = None)
func NewMetastoreDataAccess(ctx *Context, name string, args MetastoreDataAccessArgs, opts ...ResourceOption) (*MetastoreDataAccess, error)
public MetastoreDataAccess(string name, MetastoreDataAccessArgs args, CustomResourceOptions? opts = null)
public MetastoreDataAccess(String name, MetastoreDataAccessArgs args)
public MetastoreDataAccess(String name, MetastoreDataAccessArgs args, CustomResourceOptions options)
type: databricks:MetastoreDataAccess
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetastoreDataAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MetastoreDataAccessArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MetastoreDataAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetastoreDataAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetastoreDataAccessArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MetastoreDataAccess Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MetastoreDataAccess resource accepts the following input properties:
- Metastore
Id string Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- Aws
Iam MetastoreRole Data Access Aws Iam Role Args - Azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - Azure
Service MetastorePrincipal Data Access Azure Service Principal Args - Configuration
Type string - Databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - Gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - Is
Default bool - Name string
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- Metastore
Id string Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- Aws
Iam MetastoreRole Data Access Aws Iam Role Args - Azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - Azure
Service MetastorePrincipal Data Access Azure Service Principal Args - Configuration
Type string - Databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - Gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - Is
Default bool - Name string
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- metastore
Id String Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- aws
Iam MetastoreRole Data Access Aws Iam Role Args - azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - azure
Service MetastorePrincipal Data Access Azure Service Principal Args - configuration
Type String - databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - is
Default Boolean - name String
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- metastore
Id string Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- aws
Iam MetastoreRole Data Access Aws Iam Role Args - azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - azure
Service MetastorePrincipal Data Access Azure Service Principal Args - configuration
Type string - databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - is
Default boolean - name string
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- metastore_
id str Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- aws_
iam_ Metastorerole Data Access Aws Iam Role Args - azure_
managed_ Metastoreidentity Data Access Azure Managed Identity Args - azure_
service_ Metastoreprincipal Data Access Azure Service Principal Args - configuration_
type str - databricks_
gcp_ Metastoreservice_ account Data Access Databricks Gcp Service Account Args - gcp_
service_ Metastoreaccount_ key Data Access Gcp Service Account Key Args - is_
default bool - name str
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- metastore
Id String Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- aws
Iam Property MapRole - azure
Managed Property MapIdentity - azure
Service Property MapPrincipal - configuration
Type String - databricks
Gcp Property MapService Account - gcp
Service Property MapAccount Key - is
Default Boolean - name String
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetastoreDataAccess resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing MetastoreDataAccess Resource
Get an existing MetastoreDataAccess resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MetastoreDataAccessState, opts?: CustomResourceOptions): MetastoreDataAccess
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aws_iam_role: Optional[MetastoreDataAccessAwsIamRoleArgs] = None,
azure_managed_identity: Optional[MetastoreDataAccessAzureManagedIdentityArgs] = None,
azure_service_principal: Optional[MetastoreDataAccessAzureServicePrincipalArgs] = None,
configuration_type: Optional[str] = None,
databricks_gcp_service_account: Optional[MetastoreDataAccessDatabricksGcpServiceAccountArgs] = None,
gcp_service_account_key: Optional[MetastoreDataAccessGcpServiceAccountKeyArgs] = None,
is_default: Optional[bool] = None,
metastore_id: Optional[str] = None,
name: Optional[str] = None) -> MetastoreDataAccess
func GetMetastoreDataAccess(ctx *Context, name string, id IDInput, state *MetastoreDataAccessState, opts ...ResourceOption) (*MetastoreDataAccess, error)
public static MetastoreDataAccess Get(string name, Input<string> id, MetastoreDataAccessState? state, CustomResourceOptions? opts = null)
public static MetastoreDataAccess get(String name, Output<String> id, MetastoreDataAccessState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aws
Iam MetastoreRole Data Access Aws Iam Role Args - Azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - Azure
Service MetastorePrincipal Data Access Azure Service Principal Args - Configuration
Type string - Databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - Gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - Is
Default bool - Metastore
Id string Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- Name string
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- Aws
Iam MetastoreRole Data Access Aws Iam Role Args - Azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - Azure
Service MetastorePrincipal Data Access Azure Service Principal Args - Configuration
Type string - Databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - Gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - Is
Default bool - Metastore
Id string Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- Name string
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- aws
Iam MetastoreRole Data Access Aws Iam Role Args - azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - azure
Service MetastorePrincipal Data Access Azure Service Principal Args - configuration
Type String - databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - is
Default Boolean - metastore
Id String Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- name String
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- aws
Iam MetastoreRole Data Access Aws Iam Role Args - azure
Managed MetastoreIdentity Data Access Azure Managed Identity Args - azure
Service MetastorePrincipal Data Access Azure Service Principal Args - configuration
Type string - databricks
Gcp MetastoreService Account Data Access Databricks Gcp Service Account Args - gcp
Service MetastoreAccount Key Data Access Gcp Service Account Key Args - is
Default boolean - metastore
Id string Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- name string
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- aws_
iam_ Metastorerole Data Access Aws Iam Role Args - azure_
managed_ Metastoreidentity Data Access Azure Managed Identity Args - azure_
service_ Metastoreprincipal Data Access Azure Service Principal Args - configuration_
type str - databricks_
gcp_ Metastoreservice_ account Data Access Databricks Gcp Service Account Args - gcp_
service_ Metastoreaccount_ key Data Access Gcp Service Account Key Args - is_
default bool - metastore_
id str Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- name str
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
- aws
Iam Property MapRole - azure
Managed Property MapIdentity - azure
Service Property MapPrincipal - configuration
Type String - databricks
Gcp Property MapService Account - gcp
Service Property MapAccount Key - is
Default Boolean - metastore
Id String Unique identifier of the parent Metastore
aws_iam_role
optional configuration block for credential details for AWS:- name String
Name of Data Access Configuration, which must be unique within the databricks_metastore. Change forces creation of a new resource.
Supporting Types
MetastoreDataAccessAwsIamRole
- Role
Arn string The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
azure_service_principal
optional configuration block for credential details for Azure:
- Role
Arn string The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
azure_service_principal
optional configuration block for credential details for Azure:
- role
Arn String The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
azure_service_principal
optional configuration block for credential details for Azure:
- role
Arn string The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
azure_service_principal
optional configuration block for credential details for Azure:
- role_
arn str The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
azure_service_principal
optional configuration block for credential details for Azure:
- role
Arn String The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
azure_service_principal
optional configuration block for credential details for Azure:
MetastoreDataAccessAzureManagedIdentity
- Access
Connector stringId The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
databricks_gcp_service_account
optional configuration block for creating a Databricks-managed GCP Service Account:
- Access
Connector stringId The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
databricks_gcp_service_account
optional configuration block for creating a Databricks-managed GCP Service Account:
- access
Connector StringId The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
databricks_gcp_service_account
optional configuration block for creating a Databricks-managed GCP Service Account:
- access
Connector stringId The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
databricks_gcp_service_account
optional configuration block for creating a Databricks-managed GCP Service Account:
- access_
connector_ strid The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
databricks_gcp_service_account
optional configuration block for creating a Databricks-managed GCP Service Account:
- access
Connector StringId The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
databricks_gcp_service_account
optional configuration block for creating a Databricks-managed GCP Service Account:
MetastoreDataAccessAzureServicePrincipal
- Application
Id string The application ID of the application registration within the referenced AAD tenant
- Client
Secret string The client secret generated for the above app ID in AAD. This field is redacted on output
azure_managed_identity
optional configuration block for using managed identity as credential details for Azure:- Directory
Id string The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- Application
Id string The application ID of the application registration within the referenced AAD tenant
- Client
Secret string The client secret generated for the above app ID in AAD. This field is redacted on output
azure_managed_identity
optional configuration block for using managed identity as credential details for Azure:- Directory
Id string The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application
Id String The application ID of the application registration within the referenced AAD tenant
- client
Secret String The client secret generated for the above app ID in AAD. This field is redacted on output
azure_managed_identity
optional configuration block for using managed identity as credential details for Azure:- directory
Id String The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application
Id string The application ID of the application registration within the referenced AAD tenant
- client
Secret string The client secret generated for the above app ID in AAD. This field is redacted on output
azure_managed_identity
optional configuration block for using managed identity as credential details for Azure:- directory
Id string The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application_
id str The application ID of the application registration within the referenced AAD tenant
- client_
secret str The client secret generated for the above app ID in AAD. This field is redacted on output
azure_managed_identity
optional configuration block for using managed identity as credential details for Azure:- directory_
id str The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application
Id String The application ID of the application registration within the referenced AAD tenant
- client
Secret String The client secret generated for the above app ID in AAD. This field is redacted on output
azure_managed_identity
optional configuration block for using managed identity as credential details for Azure:- directory
Id String The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
MetastoreDataAccessDatabricksGcpServiceAccount
- Email string
The email of the GCP service account created, to be granted access to relevant buckets.
- Email string
The email of the GCP service account created, to be granted access to relevant buckets.
- email String
The email of the GCP service account created, to be granted access to relevant buckets.
- email string
The email of the GCP service account created, to be granted access to relevant buckets.
- email str
The email of the GCP service account created, to be granted access to relevant buckets.
- email String
The email of the GCP service account created, to be granted access to relevant buckets.
MetastoreDataAccessGcpServiceAccountKey
- Email string
The email of the GCP service account created, to be granted access to relevant buckets.
- Private
Key string - Private
Key stringId
- Email string
The email of the GCP service account created, to be granted access to relevant buckets.
- Private
Key string - Private
Key stringId
- email String
The email of the GCP service account created, to be granted access to relevant buckets.
- private
Key String - private
Key StringId
- email string
The email of the GCP service account created, to be granted access to relevant buckets.
- private
Key string - private
Key stringId
- email str
The email of the GCP service account created, to be granted access to relevant buckets.
- private_
key str - private_
key_ strid
- email String
The email of the GCP service account created, to be granted access to relevant buckets.
- private
Key String - private
Key StringId
Import
-> Note Importing this resource is not currently supported.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
databricks
Terraform Provider.