databricks.AibiDashboardEmbeddingApprovedDomainsSetting
Explore with Pulumi AI
This resource can only be used with a workspace-level provider!
The databricks.AibiDashboardEmbeddingApprovedDomainsSetting
resource allows you to specify the list of domains allowed for embedding of AI/BI Dashboards into other sites.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = new databricks.AibiDashboardEmbeddingAccessPolicySetting("this", {aibiDashboardEmbeddingAccessPolicy: {
accessPolicyType: "ALLOW_APPROVED_DOMAINS",
}});
const thisAibiDashboardEmbeddingApprovedDomainsSetting = new databricks.AibiDashboardEmbeddingApprovedDomainsSetting("this", {aibiDashboardEmbeddingApprovedDomains: {
approvedDomains: ["test.com"],
}}, {
dependsOn: [_this],
});
import pulumi
import pulumi_databricks as databricks
this = databricks.AibiDashboardEmbeddingAccessPolicySetting("this", aibi_dashboard_embedding_access_policy={
"access_policy_type": "ALLOW_APPROVED_DOMAINS",
})
this_aibi_dashboard_embedding_approved_domains_setting = databricks.AibiDashboardEmbeddingApprovedDomainsSetting("this", aibi_dashboard_embedding_approved_domains={
"approved_domains": ["test.com"],
},
opts = pulumi.ResourceOptions(depends_on=[this]))
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := databricks.NewAibiDashboardEmbeddingAccessPolicySetting(ctx, "this", &databricks.AibiDashboardEmbeddingAccessPolicySettingArgs{
AibiDashboardEmbeddingAccessPolicy: &databricks.AibiDashboardEmbeddingAccessPolicySettingAibiDashboardEmbeddingAccessPolicyArgs{
AccessPolicyType: pulumi.String("ALLOW_APPROVED_DOMAINS"),
},
})
if err != nil {
return err
}
_, err = databricks.NewAibiDashboardEmbeddingApprovedDomainsSetting(ctx, "this", &databricks.AibiDashboardEmbeddingApprovedDomainsSettingArgs{
AibiDashboardEmbeddingApprovedDomains: &databricks.AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs{
ApprovedDomains: pulumi.StringArray{
pulumi.String("test.com"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
this,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = new Databricks.AibiDashboardEmbeddingAccessPolicySetting("this", new()
{
AibiDashboardEmbeddingAccessPolicy = new Databricks.Inputs.AibiDashboardEmbeddingAccessPolicySettingAibiDashboardEmbeddingAccessPolicyArgs
{
AccessPolicyType = "ALLOW_APPROVED_DOMAINS",
},
});
var thisAibiDashboardEmbeddingApprovedDomainsSetting = new Databricks.AibiDashboardEmbeddingApprovedDomainsSetting("this", new()
{
AibiDashboardEmbeddingApprovedDomains = new Databricks.Inputs.AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs
{
ApprovedDomains = new[]
{
"test.com",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
@this,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.AibiDashboardEmbeddingAccessPolicySetting;
import com.pulumi.databricks.AibiDashboardEmbeddingAccessPolicySettingArgs;
import com.pulumi.databricks.inputs.AibiDashboardEmbeddingAccessPolicySettingAibiDashboardEmbeddingAccessPolicyArgs;
import com.pulumi.databricks.AibiDashboardEmbeddingApprovedDomainsSetting;
import com.pulumi.databricks.AibiDashboardEmbeddingApprovedDomainsSettingArgs;
import com.pulumi.databricks.inputs.AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new AibiDashboardEmbeddingAccessPolicySetting("this", AibiDashboardEmbeddingAccessPolicySettingArgs.builder()
.aibiDashboardEmbeddingAccessPolicy(AibiDashboardEmbeddingAccessPolicySettingAibiDashboardEmbeddingAccessPolicyArgs.builder()
.accessPolicyType("ALLOW_APPROVED_DOMAINS")
.build())
.build());
var thisAibiDashboardEmbeddingApprovedDomainsSetting = new AibiDashboardEmbeddingApprovedDomainsSetting("thisAibiDashboardEmbeddingApprovedDomainsSetting", AibiDashboardEmbeddingApprovedDomainsSettingArgs.builder()
.aibiDashboardEmbeddingApprovedDomains(AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs.builder()
.approvedDomains("test.com")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(this_)
.build());
}
}
resources:
this:
type: databricks:AibiDashboardEmbeddingAccessPolicySetting
properties:
aibiDashboardEmbeddingAccessPolicy:
accessPolicyType: ALLOW_APPROVED_DOMAINS
thisAibiDashboardEmbeddingApprovedDomainsSetting:
type: databricks:AibiDashboardEmbeddingApprovedDomainsSetting
name: this
properties:
aibiDashboardEmbeddingApprovedDomains:
approvedDomains:
- test.com
options:
dependsOn:
- ${this}
Related Resources
The following resources are often used in the same context:
- databricks.AibiDashboardEmbeddingAccessPolicySetting is used to control embedding policy.
Create AibiDashboardEmbeddingApprovedDomainsSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AibiDashboardEmbeddingApprovedDomainsSetting(name: string, args: AibiDashboardEmbeddingApprovedDomainsSettingArgs, opts?: CustomResourceOptions);
@overload
def AibiDashboardEmbeddingApprovedDomainsSetting(resource_name: str,
args: AibiDashboardEmbeddingApprovedDomainsSettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AibiDashboardEmbeddingApprovedDomainsSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
aibi_dashboard_embedding_approved_domains: Optional[AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs] = None,
etag: Optional[str] = None,
setting_name: Optional[str] = None)
func NewAibiDashboardEmbeddingApprovedDomainsSetting(ctx *Context, name string, args AibiDashboardEmbeddingApprovedDomainsSettingArgs, opts ...ResourceOption) (*AibiDashboardEmbeddingApprovedDomainsSetting, error)
public AibiDashboardEmbeddingApprovedDomainsSetting(string name, AibiDashboardEmbeddingApprovedDomainsSettingArgs args, CustomResourceOptions? opts = null)
public AibiDashboardEmbeddingApprovedDomainsSetting(String name, AibiDashboardEmbeddingApprovedDomainsSettingArgs args)
public AibiDashboardEmbeddingApprovedDomainsSetting(String name, AibiDashboardEmbeddingApprovedDomainsSettingArgs args, CustomResourceOptions options)
type: databricks:AibiDashboardEmbeddingApprovedDomainsSetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AibiDashboardEmbeddingApprovedDomainsSettingArgs
- 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 AibiDashboardEmbeddingApprovedDomainsSettingArgs
- 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 AibiDashboardEmbeddingApprovedDomainsSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AibiDashboardEmbeddingApprovedDomainsSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AibiDashboardEmbeddingApprovedDomainsSettingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var aibiDashboardEmbeddingApprovedDomainsSettingResource = new Databricks.AibiDashboardEmbeddingApprovedDomainsSetting("aibiDashboardEmbeddingApprovedDomainsSettingResource", new()
{
AibiDashboardEmbeddingApprovedDomains = new Databricks.Inputs.AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs
{
ApprovedDomains = new[]
{
"string",
},
},
Etag = "string",
SettingName = "string",
});
example, err := databricks.NewAibiDashboardEmbeddingApprovedDomainsSetting(ctx, "aibiDashboardEmbeddingApprovedDomainsSettingResource", &databricks.AibiDashboardEmbeddingApprovedDomainsSettingArgs{
AibiDashboardEmbeddingApprovedDomains: &databricks.AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs{
ApprovedDomains: pulumi.StringArray{
pulumi.String("string"),
},
},
Etag: pulumi.String("string"),
SettingName: pulumi.String("string"),
})
var aibiDashboardEmbeddingApprovedDomainsSettingResource = new AibiDashboardEmbeddingApprovedDomainsSetting("aibiDashboardEmbeddingApprovedDomainsSettingResource", AibiDashboardEmbeddingApprovedDomainsSettingArgs.builder()
.aibiDashboardEmbeddingApprovedDomains(AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs.builder()
.approvedDomains("string")
.build())
.etag("string")
.settingName("string")
.build());
aibi_dashboard_embedding_approved_domains_setting_resource = databricks.AibiDashboardEmbeddingApprovedDomainsSetting("aibiDashboardEmbeddingApprovedDomainsSettingResource",
aibi_dashboard_embedding_approved_domains={
"approved_domains": ["string"],
},
etag="string",
setting_name="string")
const aibiDashboardEmbeddingApprovedDomainsSettingResource = new databricks.AibiDashboardEmbeddingApprovedDomainsSetting("aibiDashboardEmbeddingApprovedDomainsSettingResource", {
aibiDashboardEmbeddingApprovedDomains: {
approvedDomains: ["string"],
},
etag: "string",
settingName: "string",
});
type: databricks:AibiDashboardEmbeddingApprovedDomainsSetting
properties:
aibiDashboardEmbeddingApprovedDomains:
approvedDomains:
- string
etag: string
settingName: string
AibiDashboardEmbeddingApprovedDomainsSetting Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AibiDashboardEmbeddingApprovedDomainsSetting resource accepts the following input properties:
- Aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains - block with following attributes:
- Etag string
- Setting
Name string
- Aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains Args - block with following attributes:
- Etag string
- Setting
Name string
- aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains - block with following attributes:
- etag String
- setting
Name String
- aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains - block with following attributes:
- etag string
- setting
Name string
- aibi_
dashboard_ Aibiembedding_ approved_ domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains Args - block with following attributes:
- etag str
- setting_
name str
- aibi
Dashboard Property MapEmbedding Approved Domains - block with following attributes:
- etag String
- setting
Name String
Outputs
All input properties are implicitly available as output properties. Additionally, the AibiDashboardEmbeddingApprovedDomainsSetting 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 AibiDashboardEmbeddingApprovedDomainsSetting Resource
Get an existing AibiDashboardEmbeddingApprovedDomainsSetting 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?: AibiDashboardEmbeddingApprovedDomainsSettingState, opts?: CustomResourceOptions): AibiDashboardEmbeddingApprovedDomainsSetting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aibi_dashboard_embedding_approved_domains: Optional[AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs] = None,
etag: Optional[str] = None,
setting_name: Optional[str] = None) -> AibiDashboardEmbeddingApprovedDomainsSetting
func GetAibiDashboardEmbeddingApprovedDomainsSetting(ctx *Context, name string, id IDInput, state *AibiDashboardEmbeddingApprovedDomainsSettingState, opts ...ResourceOption) (*AibiDashboardEmbeddingApprovedDomainsSetting, error)
public static AibiDashboardEmbeddingApprovedDomainsSetting Get(string name, Input<string> id, AibiDashboardEmbeddingApprovedDomainsSettingState? state, CustomResourceOptions? opts = null)
public static AibiDashboardEmbeddingApprovedDomainsSetting get(String name, Output<String> id, AibiDashboardEmbeddingApprovedDomainsSettingState state, CustomResourceOptions options)
resources: _: type: databricks:AibiDashboardEmbeddingApprovedDomainsSetting get: id: ${id}
- 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.
- Aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains - block with following attributes:
- Etag string
- Setting
Name string
- Aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains Args - block with following attributes:
- Etag string
- Setting
Name string
- aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains - block with following attributes:
- etag String
- setting
Name String
- aibi
Dashboard AibiEmbedding Approved Domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains - block with following attributes:
- etag string
- setting
Name string
- aibi_
dashboard_ Aibiembedding_ approved_ domains Dashboard Embedding Approved Domains Setting Aibi Dashboard Embedding Approved Domains Args - block with following attributes:
- etag str
- setting_
name str
- aibi
Dashboard Property MapEmbedding Approved Domains - block with following attributes:
- etag String
- setting
Name String
Supporting Types
AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomains, AibiDashboardEmbeddingApprovedDomainsSettingAibiDashboardEmbeddingApprovedDomainsArgs
- Approved
Domains List<string> - the list of approved domains. To allow all subdomains for a given domain, use a wildcard symbol (
*
) before the domain name, i.e.,*.databricks.com
will allow to embed into any site under thedatabricks.com
.
- Approved
Domains []string - the list of approved domains. To allow all subdomains for a given domain, use a wildcard symbol (
*
) before the domain name, i.e.,*.databricks.com
will allow to embed into any site under thedatabricks.com
.
- approved
Domains List<String> - the list of approved domains. To allow all subdomains for a given domain, use a wildcard symbol (
*
) before the domain name, i.e.,*.databricks.com
will allow to embed into any site under thedatabricks.com
.
- approved
Domains string[] - the list of approved domains. To allow all subdomains for a given domain, use a wildcard symbol (
*
) before the domain name, i.e.,*.databricks.com
will allow to embed into any site under thedatabricks.com
.
- approved_
domains Sequence[str] - the list of approved domains. To allow all subdomains for a given domain, use a wildcard symbol (
*
) before the domain name, i.e.,*.databricks.com
will allow to embed into any site under thedatabricks.com
.
- approved
Domains List<String> - the list of approved domains. To allow all subdomains for a given domain, use a wildcard symbol (
*
) before the domain name, i.e.,*.databricks.com
will allow to embed into any site under thedatabricks.com
.
Import
This resource can be imported by predefined name global
:
bash
$ pulumi import databricks:index/aibiDashboardEmbeddingApprovedDomainsSetting:AibiDashboardEmbeddingApprovedDomainsSetting this global
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.