# SecretRotationLdapPassword

> Resource SecretRotationLdapPassword in pulumi-infisical.

<!-- Generated from the pulumi-infisical SDK. -->

Resource SecretRotationLdapPassword in pulumi-infisical.

Pulumi type: `infisical:index/secretRotationLdapPassword:SecretRotationLdapPassword`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as infisical from "pulumi-infisical"

const resource = new infisical.SecretRotationLdapPassword(
  "secretRotationLdapPassword",
  {
    connectionId: "<connectionId>",
    environment: "<environment>",
    parameters: {
      dn: "<dn>",
      passwordRequirements: {
        length: 0,
        required: {
          digits: 0,
          lowercase: 0,
          symbols: 0,
          uppercase: 0,
        },
      },
    },
    projectId: "<projectId>",
    secretPath: "<secretPath>",
    secretsMapping: {
      dn: "<dn>",
      password: "<password>",
    },
  },
)
```

## Arguments

| Property              | Type                                                    | Required | Description                                                       |
| --------------------- | ------------------------------------------------------- | -------- | ----------------------------------------------------------------- |
| `autoRotationEnabled` | `boolean`                                               | no       | Whether secrets should be automatically rotated.                  |
| `connectionId`        | `string`                                                | yes      | The ID of the connection to use for the secret rotation.          |
| `description`         | `string`                                                | no       | The description of the secret rotation.                           |
| `environment`         | `string`                                                | yes      | The slug of the project environment to rotate secrets from.       |
| `name`                | `string`                                                | no       | The name of the secret rotation.                                  |
| `parameters`          | `SecretRotationLdapPasswordParameters (input)`          | yes      | Parameters to modify how secrets are rotated.                     |
| `projectId`           | `string`                                                | yes      | The ID of the Infisical project to create the secret rotation in. |
| `rotateAtUtc`         | `SecretRotationLdapPasswordRotateAtUtc (input)`         | no       | At which UTC time the rotation should occur.                      |
| `rotationInterval`    | `number`                                                | no       | How many days to wait between each rotation.                      |
| `secretPath`          | `string`                                                | yes      | The folder path to rotate secrets from.                           |
| `secretsMapping`      | `SecretRotationLdapPasswordSecretsMapping (input)`      | yes      | Secret mappings to modify how secrets are rotated.                |
| `temporaryParameters` | `SecretRotationLdapPasswordTemporaryParameters (input)` | no       | Temporary parameters to modify how secrets are rotated.           |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property              | Type                                                     | Computed | Description                                                       |
| --------------------- | -------------------------------------------------------- | -------- | ----------------------------------------------------------------- |
| `autoRotationEnabled` | `boolean`                                                | no       | Whether secrets should be automatically rotated.                  |
| `connectionId`        | `string`                                                 | no       | The ID of the connection to use for the secret rotation.          |
| `description`         | `string`                                                 | no       | The description of the secret rotation.                           |
| `environment`         | `string`                                                 | no       | The slug of the project environment to rotate secrets from.       |
| `name`                | `string`                                                 | no       | The name of the secret rotation.                                  |
| `parameters`          | `SecretRotationLdapPasswordParameters (output)`          | no       | Parameters to modify how secrets are rotated.                     |
| `projectId`           | `string`                                                 | no       | The ID of the Infisical project to create the secret rotation in. |
| `rotateAtUtc`         | `SecretRotationLdapPasswordRotateAtUtc (output)`         | no       | At which UTC time the rotation should occur.                      |
| `rotationInterval`    | `number`                                                 | no       | How many days to wait between each rotation.                      |
| `secretPath`          | `string`                                                 | no       | The folder path to rotate secrets from.                           |
| `secretsMapping`      | `SecretRotationLdapPasswordSecretsMapping (output)`      | no       | Secret mappings to modify how secrets are rotated.                |
| `temporaryParameters` | `SecretRotationLdapPasswordTemporaryParameters (output)` | no       | Temporary parameters to modify how secrets are rotated.           |

## `SecretRotationLdapPasswordParameters (input)`

Input object `SecretRotationLdapPasswordParameters`. Fields below belong to this object, not to the parent.

| Property               | Type                                                               | Required | Description                                                                                                                               |
| ---------------------- | ------------------------------------------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `dn`                   | `string`                                                           | yes      | The Distinguished Name (DN) of the LDAP entry to rotate the password for.                                                                 |
| `passwordRequirements` | `SecretRotationLdapPasswordParametersPasswordRequirements (input)` | yes      | Password generation requirements.                                                                                                         |
| `rotationMethod`       | `string`                                                           | no       | The method to use for rotating the password. Supported options: connection-principal and target-principal (default: connection-principal) |

## `SecretRotationLdapPasswordParametersPasswordRequirements (input)`

Input object `SecretRotationLdapPasswordParametersPasswordRequirements`. Fields below belong to this object, not to the parent.

| Property         | Type                                                                       | Required | Description                                         |
| ---------------- | -------------------------------------------------------------------------- | -------- | --------------------------------------------------- |
| `allowedSymbols` | `string`                                                                   | no       | String of allowed symbols for password generation.  |
| `length`         | `number`                                                                   | yes      | The length of the generated password.               |
| `required`       | `SecretRotationLdapPasswordParametersPasswordRequirementsRequired (input)` | yes      | Required character types in the generated password. |

## `SecretRotationLdapPasswordParametersPasswordRequirementsRequired (input)`

Input object `SecretRotationLdapPasswordParametersPasswordRequirementsRequired`. Fields below belong to this object, not to the parent.

| Property    | Type     | Required | Description                                                   |
| ----------- | -------- | -------- | ------------------------------------------------------------- |
| `digits`    | `number` | yes      | Minimum number of digits required in the password.            |
| `lowercase` | `number` | yes      | Minimum number of lowercase letters required in the password. |
| `symbols`   | `number` | yes      | Minimum number of symbols required in the password.           |
| `uppercase` | `number` | yes      | Minimum number of uppercase letters required in the password. |

## `SecretRotationLdapPasswordRotateAtUtc (input)`

Input object `SecretRotationLdapPasswordRotateAtUtc`. Fields below belong to this object, not to the parent.

| Property  | Type     | Required | Description                                          |
| --------- | -------- | -------- | ---------------------------------------------------- |
| `hours`   | `number` | no       | The hour at which the rotation should occur (UTC).   |
| `minutes` | `number` | no       | The minute at which the rotation should occur (UTC). |

## `SecretRotationLdapPasswordSecretsMapping (input)`

Input object `SecretRotationLdapPasswordSecretsMapping`. Fields below belong to this object, not to the parent.

| Property   | Type     | Required | Description                                                           |
| ---------- | -------- | -------- | --------------------------------------------------------------------- |
| `dn`       | `string` | yes      | The name of the secret that the Distinguished Name will be mapped to. |
| `password` | `string` | yes      | The name of the secret that the generated password will be mapped to. |

## `SecretRotationLdapPasswordTemporaryParameters (input)`

Input object `SecretRotationLdapPasswordTemporaryParameters`. Fields below belong to this object, not to the parent.

| Property   | Type     | Required | Description                                                                                          |
| ---------- | -------- | -------- | ---------------------------------------------------------------------------------------------------- |
| `password` | `string` | no       | The password of the provided principal if 'parameters.rotation_method' is set to 'target-principal'. |

## `SecretRotationLdapPasswordParameters (output)`

Output object `SecretRotationLdapPasswordParameters`. Fields below belong to this object.

| Property               | Type                                                                | Always present | Description                                                                                                                               |
| ---------------------- | ------------------------------------------------------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `dn`                   | `string`                                                            | yes            | The Distinguished Name (DN) of the LDAP entry to rotate the password for.                                                                 |
| `passwordRequirements` | `SecretRotationLdapPasswordParametersPasswordRequirements (output)` | yes            | Password generation requirements.                                                                                                         |
| `rotationMethod`       | `string`                                                            | no             | The method to use for rotating the password. Supported options: connection-principal and target-principal (default: connection-principal) |

## `SecretRotationLdapPasswordParametersPasswordRequirements (output)`

Output object `SecretRotationLdapPasswordParametersPasswordRequirements`. Fields below belong to this object.

| Property         | Type                                                                        | Always present | Description                                         |
| ---------------- | --------------------------------------------------------------------------- | -------------- | --------------------------------------------------- |
| `allowedSymbols` | `string`                                                                    | no             | String of allowed symbols for password generation.  |
| `length`         | `number`                                                                    | yes            | The length of the generated password.               |
| `required`       | `SecretRotationLdapPasswordParametersPasswordRequirementsRequired (output)` | yes            | Required character types in the generated password. |

## `SecretRotationLdapPasswordParametersPasswordRequirementsRequired (output)`

Output object `SecretRotationLdapPasswordParametersPasswordRequirementsRequired`. Fields below belong to this object.

| Property    | Type     | Always present | Description                                                   |
| ----------- | -------- | -------------- | ------------------------------------------------------------- |
| `digits`    | `number` | yes            | Minimum number of digits required in the password.            |
| `lowercase` | `number` | yes            | Minimum number of lowercase letters required in the password. |
| `symbols`   | `number` | yes            | Minimum number of symbols required in the password.           |
| `uppercase` | `number` | yes            | Minimum number of uppercase letters required in the password. |

## `SecretRotationLdapPasswordRotateAtUtc (output)`

Output object `SecretRotationLdapPasswordRotateAtUtc`. Fields below belong to this object.

| Property  | Type     | Always present | Description                                          |
| --------- | -------- | -------------- | ---------------------------------------------------- |
| `hours`   | `number` | yes            | The hour at which the rotation should occur (UTC).   |
| `minutes` | `number` | yes            | The minute at which the rotation should occur (UTC). |

## `SecretRotationLdapPasswordSecretsMapping (output)`

Output object `SecretRotationLdapPasswordSecretsMapping`. Fields below belong to this object.

| Property   | Type     | Always present | Description                                                           |
| ---------- | -------- | -------------- | --------------------------------------------------------------------- |
| `dn`       | `string` | yes            | The name of the secret that the Distinguished Name will be mapped to. |
| `password` | `string` | yes            | The name of the secret that the generated password will be mapped to. |

## `SecretRotationLdapPasswordTemporaryParameters (output)`

Output object `SecretRotationLdapPasswordTemporaryParameters`. Fields below belong to this object.

| Property   | Type     | Always present | Description                                                                                          |
| ---------- | -------- | -------------- | ---------------------------------------------------------------------------------------------------- |
| `password` | `string` | no             | The password of the provided principal if 'parameters.rotation_method' is set to 'target-principal'. |
