import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Protection Policies in Oracle Cloud Infrastructure Recovery service. * * Gets a list of protection policies based on the specified parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProtectionPolicies = oci.recoverymod.getProtectionPolicies({ * compartmentId: compartmentId, * displayName: protectionPolicyDisplayName, * owner: protectionPolicyOwner, * protectionPolicyId: testProtectionPolicy.id, * state: protectionPolicyState, * }); * ``` */ export declare function getProtectionPolicies(args: GetProtectionPoliciesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProtectionPolicies. */ export interface GetProtectionPoliciesArgs { /** * The compartment OCID. */ compartmentId: string; /** * A filter to return only resources that match the entire 'displayname' given. */ displayName?: string; filters?: inputs.RecoveryMod.GetProtectionPoliciesFilter[]; /** * A filter to return only the policies that match the owner as 'Customer' or 'Oracle'. */ owner?: string; /** * The protection policy OCID. */ protectionPolicyId?: string; /** * A filter to return only resources their lifecycleState matches the given lifecycleState. */ state?: string; } /** * A collection of values returned by getProtectionPolicies. */ export interface GetProtectionPoliciesResult { /** * The OCID of the compartment that contains the protection policy. */ readonly compartmentId: string; /** * A user provided name for the protection policy. */ readonly displayName?: string; readonly filters?: outputs.RecoveryMod.GetProtectionPoliciesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly owner?: string; /** * The list of protection_policy_collection. */ readonly protectionPolicyCollections: outputs.RecoveryMod.GetProtectionPoliciesProtectionPolicyCollection[]; readonly protectionPolicyId?: string; /** * The current state of the protection policy. */ readonly state?: string; } /** * This data source provides the list of Protection Policies in Oracle Cloud Infrastructure Recovery service. * * Gets a list of protection policies based on the specified parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProtectionPolicies = oci.recoverymod.getProtectionPolicies({ * compartmentId: compartmentId, * displayName: protectionPolicyDisplayName, * owner: protectionPolicyOwner, * protectionPolicyId: testProtectionPolicy.id, * state: protectionPolicyState, * }); * ``` */ export declare function getProtectionPoliciesOutput(args: GetProtectionPoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProtectionPolicies. */ export interface GetProtectionPoliciesOutputArgs { /** * The compartment OCID. */ compartmentId: pulumi.Input; /** * A filter to return only resources that match the entire 'displayname' given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only the policies that match the owner as 'Customer' or 'Oracle'. */ owner?: pulumi.Input; /** * The protection policy OCID. */ protectionPolicyId?: pulumi.Input; /** * A filter to return only resources their lifecycleState matches the given lifecycleState. */ state?: pulumi.Input; } //# sourceMappingURL=getProtectionPolicies.d.ts.map