Skip to content

Commit

Permalink
adjust typescript to new response
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shchederkin committed Dec 19, 2024
1 parent d8e2bd3 commit 430afb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CustomResource } from "aws-cdk-lib";
import { Construct } from "constructs";

export interface ComplexValue {
// TODO: Add more fields according to the actual schema
// TODO: Add more fields according to the actual schema, refert to https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/iam.html#databricks.sdk.service.iam.ComplexValue
value?: string,
}

Expand All @@ -15,7 +15,7 @@ export interface ServicePrincipalSettings {
groups?: ComplexValue[]
id?: string
roles?: ComplexValue[]
// TODO: Add support for a "schemas" field
// TODO: Add support for a "schemas" field, refer to https://databricks-sdk-py.readthedocs.io/en/latest/dbdataclasses/iam.html#databricks.sdk.service.iam.ServicePrincipalSchema
}

export interface ServicePrincipalProperties {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ export class ServicePrincipalSecrets extends CustomResource {
}
});
}

public secretsManagerArn(): string {
return this.getAttString("secrets_manager_arn");
}

public secretsManagerName(): string {
return this.getAttString("secrets_manager_name");
}
}

0 comments on commit 430afb7

Please sign in to comment.