# SecretRotationAwsIamUserSecret

> Resource SecretRotationAwsIamUserSecret in pulumi-infisical.

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

Resource SecretRotationAwsIamUserSecret in pulumi-infisical.

Pulumi type: `infisical:index/secretRotationAwsIamUserSecret:SecretRotationAwsIamUserSecret`.

`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.SecretRotationAwsIamUserSecret(
  "secretRotationAwsIamUserSecret",
  {
    connectionId: "<connectionId>",
    environment: "<environment>",
    parameters: {
      region: "<region>",
      userName: "<userName>",
    },
    projectId: "<projectId>",
    secretPath: "<secretPath>",
    secretsMapping: {
      accessKeyId: "<accessKeyId>",
      secretAccessKey: "<secretAccessKey>",
    },
  },
)
```

## 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`          | `SecretRotationAwsIamUserSecretParameters (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`         | `SecretRotationAwsIamUserSecretRotateAtUtc (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`      | `SecretRotationAwsIamUserSecretSecretsMapping (input)`      | yes      | Secret mappings to modify how secrets are rotated.                |
| `temporaryParameters` | `SecretRotationAwsIamUserSecretTemporaryParameters (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`          | `SecretRotationAwsIamUserSecretParameters (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`         | `SecretRotationAwsIamUserSecretRotateAtUtc (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`      | `SecretRotationAwsIamUserSecretSecretsMapping (output)`      | no       | Secret mappings to modify how secrets are rotated.                |
| `temporaryParameters` | `SecretRotationAwsIamUserSecretTemporaryParameters (output)` | no       | Temporary parameters to modify how secrets are rotated.           |

## `SecretRotationAwsIamUserSecretParameters (input)`

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

| Property   | Type     | Required | Description                                       |
| ---------- | -------- | -------- | ------------------------------------------------- |
| `region`   | `string` | yes      | The AWS region the client is present in.          |
| `userName` | `string` | yes      | The name of the client to rotate credentials for. |

## `SecretRotationAwsIamUserSecretRotateAtUtc (input)`

Input object `SecretRotationAwsIamUserSecretRotateAtUtc`. 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). |

## `SecretRotationAwsIamUserSecretSecretsMapping (input)`

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

| Property          | Type     | Required | Description                                                                  |
| ----------------- | -------- | -------- | ---------------------------------------------------------------------------- |
| `accessKeyId`     | `string` | yes      | The name of the secret that the access key ID will be mapped to.             |
| `secretAccessKey` | `string` | yes      | The name of the secret that the rotated secret access key will be mapped to. |

## `SecretRotationAwsIamUserSecretTemporaryParameters (input)`

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

This object has no fields.

## `SecretRotationAwsIamUserSecretParameters (output)`

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

| Property   | Type     | Always present | Description                                       |
| ---------- | -------- | -------------- | ------------------------------------------------- |
| `region`   | `string` | yes            | The AWS region the client is present in.          |
| `userName` | `string` | yes            | The name of the client to rotate credentials for. |

## `SecretRotationAwsIamUserSecretRotateAtUtc (output)`

Output object `SecretRotationAwsIamUserSecretRotateAtUtc`. 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). |

## `SecretRotationAwsIamUserSecretSecretsMapping (output)`

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

| Property          | Type     | Always present | Description                                                                  |
| ----------------- | -------- | -------------- | ---------------------------------------------------------------------------- |
| `accessKeyId`     | `string` | yes            | The name of the secret that the access key ID will be mapped to.             |
| `secretAccessKey` | `string` | yes            | The name of the secret that the rotated secret access key will be mapped to. |

## `SecretRotationAwsIamUserSecretTemporaryParameters (output)`

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

This object has no fields.
