Skip to content

Commit

Permalink
cdktf: update index.md,resources/static.md,resources/sleep.md,resourc…
Browse files Browse the repository at this point in the history
…es/rotating.md,resources/offset.md (#277)
  • Loading branch information
team-tf-cdk authored Jan 10, 2024
1 parent a79dc49 commit b713f2b
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/cdktf/python/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ class MyConvertedCode(TerraformStack):

To force a these actions to reoccur without updating `triggers`, the [`terraform taint` command](https://www.terraform.io/docs/commands/taint.html) can be used to produce the action on the next run.

<!-- cache-key: cdktf-0.19.0 input-bc12960a9acfa8c6ebb6834f5fc7a95b4cc9baf2b76cbb71ea47c692591f4c4f 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-bc12960a9acfa8c6ebb6834f5fc7a95b4cc9baf2b76cbb71ea47c692591f4c4f -->
2 changes: 1 addition & 1 deletion docs/cdktf/python/resources/offset.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ terraform import time_offset.example 2020-02-12T06:36:13Z,0,0,7,0,0,0
```

The `triggers` argument cannot be imported.
<!-- cache-key: cdktf-0.19.0 input-9c8ec1841600576ce1daecf6956fcc4e4e5ad75d031b09cbbc4a784278fcf793 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-9c8ec1841600576ce1daecf6956fcc4e4e5ad75d031b09cbbc4a784278fcf793 -->
2 changes: 1 addition & 1 deletion docs/cdktf/python/resources/rotating.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ terraform import time_rotating.example 2020-02-12T06:36:13Z,2020-02-13T06:36:13Z

The `triggers` argument cannot be imported.

<!-- cache-key: cdktf-0.19.0 input-eec8d2abb9e41d257337f27d082bf8b4b5627f1c470562afec7afd5ff5053b6b 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-eec8d2abb9e41d257337f27d082bf8b4b5627f1c470562afec7afd5ff5053b6b -->
6 changes: 1 addition & 5 deletions docs/cdktf/python/resources/sleep.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ from imports.time.sleep import Sleep
class MyConvertedCode(TerraformStack):
def __init__(self, scope, name):
super().__init__(scope, name)
# The following providers are missing schema information and might need manual adjustments to synthesize correctly: null.
# For a more precise conversion please use the --provider flag in convert.
null_resource_previous = Resource(self, "previous")
wait30_seconds = Sleep(self, "wait_30_seconds",
create_duration="30s",
Expand All @@ -57,8 +55,6 @@ from imports.time.sleep import Sleep
class MyConvertedCode(TerraformStack):
def __init__(self, scope, name):
super().__init__(scope, name)
# The following providers are missing schema information and might need manual adjustments to synthesize correctly: null.
# For a more precise conversion please use the --provider flag in convert.
null_resource_previous = Resource(self, "previous")
wait30_seconds = Sleep(self, "wait_30_seconds",
depends_on=[null_resource_previous],
Expand Down Expand Up @@ -137,4 +133,4 @@ terraform import time_sleep.example ,30s
```

The `triggers` argument cannot be imported.
<!-- cache-key: cdktf-0.19.0 input-73a2d0d8f07a92177ff8e69d3b8b07c852fc6f16cd4c3f99105c5d12d1cda96c 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-73a2d0d8f07a92177ff8e69d3b8b07c852fc6f16cd4c3f99105c5d12d1cda96c -->
2 changes: 1 addition & 1 deletion docs/cdktf/python/resources/static.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ terraform import time_static.example 2020-02-12T06:36:13Z
```

The `triggers` argument cannot be imported.
<!-- cache-key: cdktf-0.19.0 input-2146f927c8bb8e527bb2f114b61e2f9275e5bb5fe013e14866a96eaf7e90c011 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-2146f927c8bb8e527bb2f114b61e2f9275e5bb5fe013e14866a96eaf7e90c011 -->
8 changes: 4 additions & 4 deletions docs/cdktf/typescript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Use the navigation to the left to read about the available resources.

Certain time resources, only perform actions during specific lifecycle actions:

- `timeOffset`: Saves base timestamp into Terraform state only when created.
- `timeSleep`: Sleeps when created and/or destroyed.
- `timeStatic`: Saves base timestamp into Terraform state only when created.
- `time_offset`: Saves base timestamp into Terraform state only when created.
- `time_sleep`: Sleeps when created and/or destroyed.
- `time_static`: Saves base timestamp into Terraform state only when created.

These resources provide an optional map argument called `triggers` that can be populated with arbitrary key/value pairs. When the keys or values of this argument are updated, Terraform will re-perform the desired action, such as updating the base timestamp or sleeping again.

Expand Down Expand Up @@ -57,4 +57,4 @@ class MyConvertedCode extends TerraformStack {

To force a these actions to reoccur without updating `triggers`, the [`terraform taint` command](https://www.terraform.io/docs/commands/taint.html) can be used to produce the action on the next run.

<!-- cache-key: cdktf-0.19.0 input-bc12960a9acfa8c6ebb6834f5fc7a95b4cc9baf2b76cbb71ea47c692591f4c4f 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-bc12960a9acfa8c6ebb6834f5fc7a95b4cc9baf2b76cbb71ea47c692591f4c4f -->
2 changes: 1 addition & 1 deletion docs/cdktf/typescript/resources/offset.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ terraform import time_offset.example 2020-02-12T06:36:13Z,0,0,7,0,0,0
```

The `triggers` argument cannot be imported.
<!-- cache-key: cdktf-0.19.0 input-9c8ec1841600576ce1daecf6956fcc4e4e5ad75d031b09cbbc4a784278fcf793 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-9c8ec1841600576ce1daecf6956fcc4e4e5ad75d031b09cbbc4a784278fcf793 -->
2 changes: 1 addition & 1 deletion docs/cdktf/typescript/resources/rotating.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ terraform import time_rotating.example 2020-02-12T06:36:13Z,2020-02-13T06:36:13Z

The `triggers` argument cannot be imported.

<!-- cache-key: cdktf-0.19.0 input-eec8d2abb9e41d257337f27d082bf8b4b5627f1c470562afec7afd5ff5053b6b 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-eec8d2abb9e41d257337f27d082bf8b4b5627f1c470562afec7afd5ff5053b6b -->
8 changes: 2 additions & 6 deletions docs/cdktf/typescript/resources/sleep.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: |-
<!-- Please do not edit this file, it is generated. -->
# time_sleep (Resource)

Manages a resource that delays creation and/or destruction, typically for further resources. This prevents cross-platform compatibility and destroy-time issues with using the [`localExec` provisioner](https://www.terraform.io/docs/provisioners/local-exec.html).
Manages a resource that delays creation and/or destruction, typically for further resources. This prevents cross-platform compatibility and destroy-time issues with using the [`local-exec` provisioner](https://www.terraform.io/docs/provisioners/local-exec.html).

-> In many cases, this resource should be considered a workaround for issues that should be reported and handled in downstream Terraform Provider logic. Downstream resources can usually introduce or adjust retries in their code to handle time delay issues for all Terraform configurations or upstream resources can be improved to better wait for a resource to be fully ready and available.

Expand All @@ -30,8 +30,6 @@ import { Sleep } from "./.gen/providers/time/sleep";
class MyConvertedCode extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: null.
For a more precise conversion please use the --provider flag in convert.*/
const nullResourcePrevious = new Resource(this, "previous", {});
const wait30Seconds = new Sleep(this, "wait_30_seconds", {
createDuration: "30s",
Expand Down Expand Up @@ -60,8 +58,6 @@ import { Sleep } from "./.gen/providers/time/sleep";
class MyConvertedCode extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: null.
For a more precise conversion please use the --provider flag in convert.*/
const nullResourcePrevious = new Resource(this, "previous", {});
const wait30Seconds = new Sleep(this, "wait_30_seconds", {
dependsOn: [nullResourcePrevious],
Expand Down Expand Up @@ -147,4 +143,4 @@ terraform import time_sleep.example ,30s
```

The `triggers` argument cannot be imported.
<!-- cache-key: cdktf-0.19.0 input-73a2d0d8f07a92177ff8e69d3b8b07c852fc6f16cd4c3f99105c5d12d1cda96c 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-73a2d0d8f07a92177ff8e69d3b8b07c852fc6f16cd4c3f99105c5d12d1cda96c -->
2 changes: 1 addition & 1 deletion docs/cdktf/typescript/resources/static.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ terraform import time_static.example 2020-02-12T06:36:13Z
```

The `triggers` argument cannot be imported.
<!-- cache-key: cdktf-0.19.0 input-2146f927c8bb8e527bb2f114b61e2f9275e5bb5fe013e14866a96eaf7e90c011 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.20.0 input-2146f927c8bb8e527bb2f114b61e2f9275e5bb5fe013e14866a96eaf7e90c011 -->

0 comments on commit b713f2b

Please sign in to comment.