Skip to content

Commit ea8e074

Browse files
committed
change schema description
1 parent 5aad68a commit ea8e074

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/resources/kibana_maintenance_window.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ resource "elasticstack_kibana_maintenance_window" "my_maintenance_window" {
6565

6666
Required:
6767

68-
- `duration` (String) The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.
68+
- `duration` (String) The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for days, hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.
6969
- `recurring` (Attributes) A set schedule over which the maintenance window applies. (see [below for nested schema](#nestedatt--custom_schedule--recurring))
7070
- `start` (String) The start date and time of the schedule, provided in ISO 8601 format and set to the UTC timezone. For example: `2025-03-12T12:00:00.000Z`.
7171

@@ -79,7 +79,7 @@ Optional:
7979
Optional:
8080

8181
- `end` (String) The end date and time of the schedule, provided in ISO 8601 format and set to the UTC timezone. For example: `2025-03-12T12:00:00.000Z`.
82-
- `every` (String) The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.
82+
- `every` (String) The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for days, hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.
8383
- `occurrences` (Number) The total number of recurrences of the schedule.
8484
- `on_month` (List of Number) The specific months for a recurring schedule. Valid values are 1-12.
8585
- `on_month_day` (List of Number) The specific days of the month for a recurring schedule. Valid values are 1-31.

internal/kibana/maintenance_window/schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (r *MaintenanceWindowResource) Schema(_ context.Context, _ resource.SchemaR
6262
},
6363
},
6464
"duration": schema.StringAttribute{
65-
Description: "The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.",
65+
Description: "The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for days, hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.",
6666
Required: true,
6767
Validators: []validator.String{
6868
validators.StringIsAlertingDuration{},
@@ -85,7 +85,7 @@ func (r *MaintenanceWindowResource) Schema(_ context.Context, _ resource.SchemaR
8585
},
8686
},
8787
"every": schema.StringAttribute{
88-
Description: "The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.",
88+
Description: "The duration of the schedule. It allows values in `<integer><unit>` format. `<unit>` is one of `d`, `h`, `m`, or `s` for days, hours, minutes, seconds. For example: `1d`, `5h`, `30m`, `5000s`.",
8989
Optional: true,
9090
Validators: []validator.String{
9191
validators.StringIsMaintenanceWindowIntervalFrequency{},

0 commit comments

Comments
 (0)