databricks.MwsCredentials
Explore with Pulumi AI
Note Initialize provider with
alias = "mws"
,host = "https://accounts.cloud.databricks.com"
and useprovider = databricks.mws
This resource to configure the cross-account role for creation of new workspaces within AWS.
Please follow this complete runnable example Account Id that could be found in the top right corner of Accounts Console
credentials_name
- (Required) name of credentials to registerrole_arn
- (Required) ARN of cross-account role
Related Resources
The following resources are used in the same context:
- Provisioning Databricks on AWS guide.
- databricks.MwsCustomerManagedKeys to configure KMS keys for new workspaces within AWS.
- databricks.MwsLogDelivery to configure delivery of billable usage logs and audit logs.
- databricks.MwsNetworks to configure VPC & subnets for new workspaces within AWS.
- databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
- databricks.MwsWorkspaces to set up AWS and GCP workspaces.
Create MwsCredentials Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MwsCredentials(name: string, args: MwsCredentialsArgs, opts?: CustomResourceOptions);
@overload
def MwsCredentials(resource_name: str,
args: MwsCredentialsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MwsCredentials(resource_name: str,
opts: Optional[ResourceOptions] = None,
credentials_name: Optional[str] = None,
role_arn: Optional[str] = None,
account_id: Optional[str] = None,
creation_time: Optional[int] = None,
credentials_id: Optional[str] = None,
external_id: Optional[str] = None)
func NewMwsCredentials(ctx *Context, name string, args MwsCredentialsArgs, opts ...ResourceOption) (*MwsCredentials, error)
public MwsCredentials(string name, MwsCredentialsArgs args, CustomResourceOptions? opts = null)
public MwsCredentials(String name, MwsCredentialsArgs args)
public MwsCredentials(String name, MwsCredentialsArgs args, CustomResourceOptions options)
type: databricks:MwsCredentials
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 MwsCredentialsArgs
- 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 MwsCredentialsArgs
- 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 MwsCredentialsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MwsCredentialsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MwsCredentialsArgs
- 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 mwsCredentialsResource = new Databricks.MwsCredentials("mwsCredentialsResource", new()
{
CredentialsName = "string",
RoleArn = "string",
CreationTime = 0,
CredentialsId = "string",
ExternalId = "string",
});
example, err := databricks.NewMwsCredentials(ctx, "mwsCredentialsResource", &databricks.MwsCredentialsArgs{
CredentialsName: pulumi.String("string"),
RoleArn: pulumi.String("string"),
CreationTime: pulumi.Int(0),
CredentialsId: pulumi.String("string"),
ExternalId: pulumi.String("string"),
})
var mwsCredentialsResource = new MwsCredentials("mwsCredentialsResource", MwsCredentialsArgs.builder()
.credentialsName("string")
.roleArn("string")
.creationTime(0)
.credentialsId("string")
.externalId("string")
.build());
mws_credentials_resource = databricks.MwsCredentials("mwsCredentialsResource",
credentials_name="string",
role_arn="string",
creation_time=0,
credentials_id="string",
external_id="string")
const mwsCredentialsResource = new databricks.MwsCredentials("mwsCredentialsResource", {
credentialsName: "string",
roleArn: "string",
creationTime: 0,
credentialsId: "string",
externalId: "string",
});
type: databricks:MwsCredentials
properties:
creationTime: 0
credentialsId: string
credentialsName: string
externalId: string
roleArn: string
MwsCredentials 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 MwsCredentials resource accepts the following input properties:
- Credentials
Name string - Role
Arn string - Account
Id string - Creation
Time int - (Integer) time of credentials registration
- Credentials
Id string - (String) identifier of credentials
- External
Id string
- Credentials
Name string - Role
Arn string - Account
Id string - Creation
Time int - (Integer) time of credentials registration
- Credentials
Id string - (String) identifier of credentials
- External
Id string
- credentials
Name String - role
Arn String - account
Id String - creation
Time Integer - (Integer) time of credentials registration
- credentials
Id String - (String) identifier of credentials
- external
Id String
- credentials
Name string - role
Arn string - account
Id string - creation
Time number - (Integer) time of credentials registration
- credentials
Id string - (String) identifier of credentials
- external
Id string
- credentials_
name str - role_
arn str - account_
id str - creation_
time int - (Integer) time of credentials registration
- credentials_
id str - (String) identifier of credentials
- external_
id str
- credentials
Name String - role
Arn String - account
Id String - creation
Time Number - (Integer) time of credentials registration
- credentials
Id String - (String) identifier of credentials
- external
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the MwsCredentials 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 MwsCredentials Resource
Get an existing MwsCredentials 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?: MwsCredentialsState, opts?: CustomResourceOptions): MwsCredentials
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
creation_time: Optional[int] = None,
credentials_id: Optional[str] = None,
credentials_name: Optional[str] = None,
external_id: Optional[str] = None,
role_arn: Optional[str] = None) -> MwsCredentials
func GetMwsCredentials(ctx *Context, name string, id IDInput, state *MwsCredentialsState, opts ...ResourceOption) (*MwsCredentials, error)
public static MwsCredentials Get(string name, Input<string> id, MwsCredentialsState? state, CustomResourceOptions? opts = null)
public static MwsCredentials get(String name, Output<String> id, MwsCredentialsState 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.
- Account
Id string - Creation
Time int - (Integer) time of credentials registration
- Credentials
Id string - (String) identifier of credentials
- Credentials
Name string - External
Id string - Role
Arn string
- Account
Id string - Creation
Time int - (Integer) time of credentials registration
- Credentials
Id string - (String) identifier of credentials
- Credentials
Name string - External
Id string - Role
Arn string
- account
Id String - creation
Time Integer - (Integer) time of credentials registration
- credentials
Id String - (String) identifier of credentials
- credentials
Name String - external
Id String - role
Arn String
- account
Id string - creation
Time number - (Integer) time of credentials registration
- credentials
Id string - (String) identifier of credentials
- credentials
Name string - external
Id string - role
Arn string
- account_
id str - creation_
time int - (Integer) time of credentials registration
- credentials_
id str - (String) identifier of credentials
- credentials_
name str - external_
id str - role_
arn str
- account
Id String - creation
Time Number - (Integer) time of credentials registration
- credentials
Id String - (String) identifier of credentials
- credentials
Name String - external
Id String - role
Arn String
Import
This resource can be imported by the combination of its identifier and the account id:
bash
$ pulumi import databricks:index/mwsCredentials:MwsCredentials this <account_id>/<credentials_id>
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.