import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Authentication Policy resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/AuthenticationPolicy * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Updates authentication policy for the specified tenancy * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuthenticationPolicy = new oci.identity.AuthenticationPolicy("test_authentication_policy", { * compartmentId: tenancyOcid, * networkPolicy: { * networkSourceIds: authenticationPolicyNetworkPolicyNetworkSourceIds, * }, * passwordPolicy: { * isLowercaseCharactersRequired: authenticationPolicyPasswordPolicyIsLowercaseCharactersRequired === "true", * isNumericCharactersRequired: authenticationPolicyPasswordPolicyIsNumericCharactersRequired === "true", * isSpecialCharactersRequired: authenticationPolicyPasswordPolicyIsSpecialCharactersRequired === "true", * isUppercaseCharactersRequired: authenticationPolicyPasswordPolicyIsUppercaseCharactersRequired === "true", * isUsernameContainmentAllowed: authenticationPolicyPasswordPolicyIsUsernameContainmentAllowed === "true", * minimumPasswordLength: Number(authenticationPolicyPasswordPolicyMinimumPasswordLength), * }, * }); * ``` * * ## Import * * AuthenticationPolicies can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Identity/authenticationPolicy:AuthenticationPolicy test_authentication_policy "authenticationPolicies/{compartmentId}" * ``` */ export declare class AuthenticationPolicy extends pulumi.CustomResource { /** * Get an existing AuthenticationPolicy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AuthenticationPolicyState, opts?: pulumi.CustomResourceOptions): AuthenticationPolicy; /** * Returns true if the given object is an instance of AuthenticationPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AuthenticationPolicy; /** * The OCID of the compartment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Network policy, Consists of a list of Network Source ids. */ readonly networkPolicy: pulumi.Output; /** * (Updatable) Password policy, currently set for the given compartment. */ readonly passwordPolicy: pulumi.Output; /** * Create a AuthenticationPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AuthenticationPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AuthenticationPolicy resources. */ export interface AuthenticationPolicyState { /** * The OCID of the compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) Network policy, Consists of a list of Network Source ids. */ networkPolicy?: pulumi.Input; /** * (Updatable) Password policy, currently set for the given compartment. */ passwordPolicy?: pulumi.Input; } /** * The set of arguments for constructing a AuthenticationPolicy resource. */ export interface AuthenticationPolicyArgs { /** * The OCID of the compartment. */ compartmentId: pulumi.Input; /** * (Updatable) Network policy, Consists of a list of Network Source ids. */ networkPolicy?: pulumi.Input; /** * (Updatable) Password policy, currently set for the given compartment. */ passwordPolicy?: pulumi.Input; } //# sourceMappingURL=authenticationPolicy.d.ts.map