import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * LdapServerProfile resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // ldpap server profile w/ required fields * const scmLdapServerProfileOne = new scm.LdapServerProfile("scm_ldap_server_profile_one", { * folder: "All", * name: "simple-ldap-profile", * servers: [ * { * name: "primary-ldap", * address: "$tst_68081_1", * port: 389, * }, * { * name: "secondary-ldap", * address: "$tst_68081_2", * port: 1, * }, * { * name: "extra-ldap", * address: "$test_ip", * port: 65535, * }, * ], * }); * // ldpap server profile w/ some fields * const scmLdapServerProfileTwo = new scm.LdapServerProfile("scm_ldap_server_profile_two", { * folder: "All", * name: "intermediate-ldap-profile-one", * ldapType: "active-directory", * base: "dc=example,dc=com", * ssl: true, * servers: [{ * name: "extra-ldap", * address: "$test_ip", * port: 25, * }], * }); * const scmLdapServerProfileThree = new scm.LdapServerProfile("scm_ldap_server_profile_three", { * folder: "All", * name: "intermediate-ldap-profile-two", * ldapType: "sun", * base: "DC=internal,DC=company,DC=com", * bindDn: "CN=LDAP Bind,OU=Service Accounts,DC=internal,DC=company,DC=com", * bindPassword: "SecurePwd123!", * timelimit: 30, * servers: [ * { * name: "primary-ldap", * address: "$tst_68081_1", * port: 5000, * }, * { * name: "secondary-ldap", * address: "150.25.25.60", * port: 25000, * }, * ], * }); * // ldpap server profile w/ all fields * const scmLdapServerProfileFour = new scm.LdapServerProfile("scm_ldap_server_profile_four", { * folder: "All", * name: "complex-ldap-profile-one", * ldapType: "e-directory", * base: "ou=users,dc=corp,dc=local", * bindDn: "cn=admin,dc=corp,dc=local", * bindPassword: "MyPwd123!", * bindTimelimit: "20", * retryInterval: 1000, * timelimit: 10, * ssl: true, * verifyServerCertificate: false, * servers: [{ * name: "global-directory-main", * address: "$scm_variable_ipaddr", * port: 636, * }], * }); * const scmLdapServerProfileFive = new scm.LdapServerProfile("scm_ldap_server_profile_five", { * folder: "All", * name: "complex-ldap-profile-two", * ldapType: "other", * base: "OU=Employees,DC=global,DC=enterprise,DC=net", * bindDn: "CN=SVC_LDAP_Search,OU=Service Accounts,DC=global,DC=enterprise,DC=net", * bindPassword: "ExtremelyComplexP@ssw0rd!", * bindTimelimit: "15", * retryInterval: 300, * timelimit: 30, * ssl: true, * verifyServerCertificate: true, * servers: [ * { * name: "dc-us-east", * address: "$scm_variable_ipaddr", * port: 720, * }, * { * name: "dc-us-west", * address: "192.10.10.10", * port: 1400, * }, * { * name: "dc-eu-central", * address: "3.3.3.3", * port: 20000, * }, * ], * }); * ``` * * ## Import * * The following command can be used to import a resource not managed by Terraform: * * ```sh * $ pulumi import scm:index/ldapServerProfile:LdapServerProfile example folder:::id * ``` * * or * * ```sh * $ pulumi import scm:index/ldapServerProfile:LdapServerProfile example :snippet::id * ``` * * or * * ```sh * $ pulumi import scm:index/ldapServerProfile:LdapServerProfile example ::device:id * ``` * * **Note:** Please provide just one of folder, snippet, or device for the import command. */ export declare class LdapServerProfile extends pulumi.CustomResource { /** * Get an existing LdapServerProfile 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?: LdapServerProfileState, opts?: pulumi.CustomResourceOptions): LdapServerProfile; /** * Returns true if the given object is an instance of LdapServerProfile. 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 LdapServerProfile; /** * The base DN */ readonly base: pulumi.Output; /** * The bind DN */ readonly bindDn: pulumi.Output; /** * The bind password */ readonly bindPassword: pulumi.Output; /** * The bind timeout (seconds) */ readonly bindTimelimit: pulumi.Output; /** * The device in which the resource is defined */ readonly device: pulumi.Output; /** * Map of sensitive values returned from the API. */ readonly encryptedValues: pulumi.Output<{ [key: string]: string; }>; /** * The folder in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: pulumi.Output; /** * The LDAP server time */ readonly ldapType: pulumi.Output; /** * The name of the LDAP server profile */ readonly name: pulumi.Output; /** * The search retry interval (seconds) */ readonly retryInterval: pulumi.Output; /** * The LDAP server configuration */ readonly servers: pulumi.Output; /** * The snippet in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: pulumi.Output; /** * Require SSL/TLS secured connection? */ readonly ssl: pulumi.Output; /** * The Terraform ID. */ readonly tfid: pulumi.Output; /** * The search timeout (seconds) */ readonly timelimit: pulumi.Output; /** * Verify server certificate for SSL sessions? */ readonly verifyServerCertificate: pulumi.Output; /** * Create a LdapServerProfile 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: LdapServerProfileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LdapServerProfile resources. */ export interface LdapServerProfileState { /** * The base DN */ base?: pulumi.Input; /** * The bind DN */ bindDn?: pulumi.Input; /** * The bind password */ bindPassword?: pulumi.Input; /** * The bind timeout (seconds) */ bindTimelimit?: pulumi.Input; /** * The device in which the resource is defined */ device?: pulumi.Input; /** * Map of sensitive values returned from the API. */ encryptedValues?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The folder in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input; /** * The LDAP server time */ ldapType?: pulumi.Input; /** * The name of the LDAP server profile */ name?: pulumi.Input; /** * The search retry interval (seconds) */ retryInterval?: pulumi.Input; /** * The LDAP server configuration */ servers?: pulumi.Input[] | undefined>; /** * The snippet in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input; /** * Require SSL/TLS secured connection? */ ssl?: pulumi.Input; /** * The Terraform ID. */ tfid?: pulumi.Input; /** * The search timeout (seconds) */ timelimit?: pulumi.Input; /** * Verify server certificate for SSL sessions? */ verifyServerCertificate?: pulumi.Input; } /** * The set of arguments for constructing a LdapServerProfile resource. */ export interface LdapServerProfileArgs { /** * The base DN */ base?: pulumi.Input; /** * The bind DN */ bindDn?: pulumi.Input; /** * The bind password */ bindPassword?: pulumi.Input; /** * The bind timeout (seconds) */ bindTimelimit?: pulumi.Input; /** * The device in which the resource is defined */ device?: pulumi.Input; /** * The folder in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input; /** * The LDAP server time */ ldapType?: pulumi.Input; /** * The name of the LDAP server profile */ name?: pulumi.Input; /** * The search retry interval (seconds) */ retryInterval?: pulumi.Input; /** * The LDAP server configuration */ servers: pulumi.Input[]>; /** * The snippet in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input; /** * Require SSL/TLS secured connection? */ ssl?: pulumi.Input; /** * The search timeout (seconds) */ timelimit?: pulumi.Input; /** * Verify server certificate for SSL sessions? */ verifyServerCertificate?: pulumi.Input; } //# sourceMappingURL=ldapServerProfile.d.ts.map