public class InstanceProfilesServiceImpl extends DatabricksService implements InstanceProfilesService
client, mapper| Constructor and Description |
|---|
InstanceProfilesServiceImpl(DatabricksRestClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String instanceProfileArn)
Registers an instance profile in Databricks.
|
void |
add(String instanceProfileArn,
boolean skipValidation)
Registers an instance profile in Databricks.
|
boolean |
exists(String instanceProfileArn)
Checks if the instance profile is registered.
|
InstanceProfileDTO[] |
list()
Lists the instance profiles that the calling user can use to launch a cluster.
|
void |
remove(String instanceProfileArn)
Removes the instance profile with the provided ARN.
|
public InstanceProfilesServiceImpl(DatabricksRestClient client)
public void add(String instanceProfileArn) throws IOException, DatabricksRestException
InstanceProfilesServiceadd in interface InstanceProfilesServiceinstanceProfileArn - the AWS ARN of the instance profile to registerIOException - other connection errorsDatabricksRestException - any errors with the requestpublic void add(String instanceProfileArn, boolean skipValidation) throws IOException, DatabricksRestException
InstanceProfilesServiceadd in interface InstanceProfilesServiceinstanceProfileArn - the AWS ARN of the instance profile to registerskipValidation - skip validation that profile has sufficient permissions to launch instancesIOException - other connection errorsDatabricksRestException - any errors with the requestpublic InstanceProfileDTO[] list() throws IOException, DatabricksRestException
InstanceProfilesServicelist in interface InstanceProfilesServiceIOException - other connection errorsDatabricksRestException - any errors with the requestpublic void remove(String instanceProfileArn) throws IOException, DatabricksRestException
InstanceProfilesServiceremove in interface InstanceProfilesServiceinstanceProfileArn - the arn of the instance profile to removeIOException - other connection errorsDatabricksRestException - any errors with the requestpublic boolean exists(String instanceProfileArn) throws IOException, DatabricksRestException
InstanceProfilesServiceexists in interface InstanceProfilesServiceinstanceProfileArn - arn of the instance profile to checkIOException - other connection errorsDatabricksRestException - any errors with the requestCopyright © 2023. All rights reserved.