1. Packages
  2. Databricks
  3. API Docs
  4. getAwsBucketPolicy
Databricks v1.34.0 published on Tuesday, Mar 5, 2024 by Pulumi

databricks.getAwsBucketPolicy

Explore with Pulumi AI

databricks logo
Databricks v1.34.0 published on Tuesday, Mar 5, 2024 by Pulumi

    This datasource configures a simple access policy for AWS S3 buckets, so that Databricks can access data in it.

    The following resources are used in the same context:

    • Provisioning AWS Databricks E2 with a Hub & Spoke firewall for data exfiltration protection guide.
    • End to end workspace management guide
    • databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount.
    • databricks.Mount to mount your cloud storage on dbfs:/mnt/name.

    Using getAwsBucketPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAwsBucketPolicy(args: GetAwsBucketPolicyArgs, opts?: InvokeOptions): Promise<GetAwsBucketPolicyResult>
    function getAwsBucketPolicyOutput(args: GetAwsBucketPolicyOutputArgs, opts?: InvokeOptions): Output<GetAwsBucketPolicyResult>
    def get_aws_bucket_policy(bucket: Optional[str] = None,
                              databricks_account_id: Optional[str] = None,
                              databricks_e2_account_id: Optional[str] = None,
                              full_access_role: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAwsBucketPolicyResult
    def get_aws_bucket_policy_output(bucket: Optional[pulumi.Input[str]] = None,
                              databricks_account_id: Optional[pulumi.Input[str]] = None,
                              databricks_e2_account_id: Optional[pulumi.Input[str]] = None,
                              full_access_role: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAwsBucketPolicyResult]
    func GetAwsBucketPolicy(ctx *Context, args *GetAwsBucketPolicyArgs, opts ...InvokeOption) (*GetAwsBucketPolicyResult, error)
    func GetAwsBucketPolicyOutput(ctx *Context, args *GetAwsBucketPolicyOutputArgs, opts ...InvokeOption) GetAwsBucketPolicyResultOutput

    > Note: This function is named GetAwsBucketPolicy in the Go SDK.

    public static class GetAwsBucketPolicy 
    {
        public static Task<GetAwsBucketPolicyResult> InvokeAsync(GetAwsBucketPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetAwsBucketPolicyResult> Invoke(GetAwsBucketPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAwsBucketPolicyResult> getAwsBucketPolicy(GetAwsBucketPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: databricks:index/getAwsBucketPolicy:getAwsBucketPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Bucket string
    AWS S3 Bucket name for which to generate the policy document.
    DatabricksAccountId string
    DatabricksE2AccountId string
    Your Databricks E2 account ID. Used to generate restrictive IAM policies that will increase the security of your root bucket
    FullAccessRole string
    Data access role that can have full access for this bucket
    Bucket string
    AWS S3 Bucket name for which to generate the policy document.
    DatabricksAccountId string
    DatabricksE2AccountId string
    Your Databricks E2 account ID. Used to generate restrictive IAM policies that will increase the security of your root bucket
    FullAccessRole string
    Data access role that can have full access for this bucket
    bucket String
    AWS S3 Bucket name for which to generate the policy document.
    databricksAccountId String
    databricksE2AccountId String
    Your Databricks E2 account ID. Used to generate restrictive IAM policies that will increase the security of your root bucket
    fullAccessRole String
    Data access role that can have full access for this bucket
    bucket string
    AWS S3 Bucket name for which to generate the policy document.
    databricksAccountId string
    databricksE2AccountId string
    Your Databricks E2 account ID. Used to generate restrictive IAM policies that will increase the security of your root bucket
    fullAccessRole string
    Data access role that can have full access for this bucket
    bucket str
    AWS S3 Bucket name for which to generate the policy document.
    databricks_account_id str
    databricks_e2_account_id str
    Your Databricks E2 account ID. Used to generate restrictive IAM policies that will increase the security of your root bucket
    full_access_role str
    Data access role that can have full access for this bucket
    bucket String
    AWS S3 Bucket name for which to generate the policy document.
    databricksAccountId String
    databricksE2AccountId String
    Your Databricks E2 account ID. Used to generate restrictive IAM policies that will increase the security of your root bucket
    fullAccessRole String
    Data access role that can have full access for this bucket

    getAwsBucketPolicy Result

    The following output properties are available:

    Bucket string
    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    (Read-only) AWS IAM Policy JSON document to grant Databricks full access to bucket.
    DatabricksAccountId string
    DatabricksE2AccountId string
    FullAccessRole string
    Bucket string
    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    (Read-only) AWS IAM Policy JSON document to grant Databricks full access to bucket.
    DatabricksAccountId string
    DatabricksE2AccountId string
    FullAccessRole string
    bucket String
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    (Read-only) AWS IAM Policy JSON document to grant Databricks full access to bucket.
    databricksAccountId String
    databricksE2AccountId String
    fullAccessRole String
    bucket string
    id string
    The provider-assigned unique ID for this managed resource.
    json string
    (Read-only) AWS IAM Policy JSON document to grant Databricks full access to bucket.
    databricksAccountId string
    databricksE2AccountId string
    fullAccessRole string
    bucket str
    id str
    The provider-assigned unique ID for this managed resource.
    json str
    (Read-only) AWS IAM Policy JSON document to grant Databricks full access to bucket.
    databricks_account_id str
    databricks_e2_account_id str
    full_access_role str
    bucket String
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    (Read-only) AWS IAM Policy JSON document to grant Databricks full access to bucket.
    databricksAccountId String
    databricksE2AccountId String
    fullAccessRole String

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.34.0 published on Tuesday, Mar 5, 2024 by Pulumi