import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a specific governance rule for the requested scope by ruleId * * Uses Azure REST API version 2022-01-01-preview. */ export declare function getGovernanceRule(args: GetGovernanceRuleArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetGovernanceRuleArgs { /** * The governance rule key - unique key for the standard governance rule (GUID) */ ruleId: string; /** * The fully qualified Azure Resource manager identifier of the resource. */ scope: string; } /** * Governance rule over a given scope */ export interface GetGovernanceRuleResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The governance rule conditionSets - see examples */ readonly conditionSets: any[]; /** * Description of the governance rule */ readonly description?: string; /** * Display name of the governance rule */ readonly displayName: string; /** * Excluded scopes, filter out the descendants of the scope (on management scopes) */ readonly excludedScopes?: string[]; /** * The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners */ readonly governanceEmailNotification?: outputs.security.GovernanceRuleEmailNotificationResponse; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * Defines whether the rule is management scope rule (master connector as a single scope or management scope) */ readonly includeMemberScopes?: boolean; /** * Defines whether the rule is active/inactive */ readonly isDisabled?: boolean; /** * Defines whether there is a grace period on the governance rule */ readonly isGracePeriod?: boolean; /** * The governance rule metadata */ readonly metadata?: outputs.security.GovernanceRuleMetadataResponse; /** * The name of the resource */ readonly name: string; /** * The owner source for the governance rule - e.g. Manually by user@contoso.com - see example */ readonly ownerSource: outputs.security.GovernanceRuleOwnerSourceResponse; /** * Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days */ readonly remediationTimeframe?: string; /** * The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed */ readonly rulePriority: number; /** * The rule type of the governance rule, defines the source of the rule e.g. Integrated */ readonly ruleType: string; /** * The governance rule source, what the rule affects, e.g. Assessments */ readonly sourceResourceType: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.security.SystemDataResponse; /** * The tenantId (GUID) */ readonly tenantId: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Get a specific governance rule for the requested scope by ruleId * * Uses Azure REST API version 2022-01-01-preview. */ export declare function getGovernanceRuleOutput(args: GetGovernanceRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; export interface GetGovernanceRuleOutputArgs { /** * The governance rule key - unique key for the standard governance rule (GUID) */ ruleId: pulumi.Input; /** * The fully qualified Azure Resource manager identifier of the resource. */ scope: pulumi.Input; } //# sourceMappingURL=getGovernanceRule.d.ts.map