@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
76 lines (75 loc) • 2.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* This data source can be used to list all tag policies in the account. Manage tag policy permissions using the `databricks.AccessControlRuleSet` resource.
*
* > **Note** This resource can only be used with a workspace-level provider!
*
* ## Example Usage
*
* Getting a list of all tag policies:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getTagPolicies({});
* export const allTagPolicies = all.then(all => all.tagPolicies);
* ```
*/
export declare function getTagPolicies(args?: GetTagPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetTagPoliciesResult>;
/**
* A collection of arguments for invoking getTagPolicies.
*/
export interface GetTagPoliciesArgs {
/**
* The maximum number of results to return in this request. Fewer results may be returned than requested. If
* unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down
* to 1000
*/
pageSize?: number;
}
/**
* A collection of values returned by getTagPolicies.
*/
export interface GetTagPoliciesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly pageSize?: number;
readonly tagPolicies: outputs.GetTagPoliciesTagPolicy[];
}
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* This data source can be used to list all tag policies in the account. Manage tag policy permissions using the `databricks.AccessControlRuleSet` resource.
*
* > **Note** This resource can only be used with a workspace-level provider!
*
* ## Example Usage
*
* Getting a list of all tag policies:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getTagPolicies({});
* export const allTagPolicies = all.then(all => all.tagPolicies);
* ```
*/
export declare function getTagPoliciesOutput(args?: GetTagPoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagPoliciesResult>;
/**
* A collection of arguments for invoking getTagPolicies.
*/
export interface GetTagPoliciesOutputArgs {
/**
* The maximum number of results to return in this request. Fewer results may be returned than requested. If
* unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down
* to 1000
*/
pageSize?: pulumi.Input<number>;
}