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 (hashicorp#267)
  • Loading branch information
team-tf-cdk authored Dec 4, 2023
1 parent 00d68c5 commit ee82048
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
25 changes: 24 additions & 1 deletion docs/cdktf/python/resources/offset.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,29 @@ class MyConvertedCode(TerraformStack):
)
```

### Multiple Offsets Usage

```python
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
from constructs import Construct
from cdktf import TerraformOutput, TerraformStack
#
# Provider bindings are generated by running `cdktf get`.
# See https://cdk.tf/provider-generation for more details.
#
from imports.time.offset import Offset
class MyConvertedCode(TerraformStack):
def __init__(self, scope, name):
super().__init__(scope, name)
example = Offset(self, "example",
offset_months=1,
offset_years=1
)
TerraformOutput(self, "one_year_and_month_from_now",
value=example.rfc3339
)
```

### Triggers Usage

```python
Expand Down Expand Up @@ -101,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-e4f51351e41d12e8bd28f5caaf9fdb208c836529abc6dd752468db509a3211e2 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.19.0 input-9c8ec1841600576ce1daecf6956fcc4e4e5ad75d031b09cbbc4a784278fcf793 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
28 changes: 27 additions & 1 deletion docs/cdktf/typescript/resources/offset.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,32 @@ class MyConvertedCode extends TerraformStack {

```

### Multiple Offsets Usage

```typescript
// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
import { Construct } from "constructs";
import { TerraformOutput, TerraformStack } from "cdktf";
/*
* Provider bindings are generated by running `cdktf get`.
* See https://cdk.tf/provider-generation for more details.
*/
import { Offset } from "./.gen/providers/time/offset";
class MyConvertedCode extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
const example = new Offset(this, "example", {
offsetMonths: 1,
offsetYears: 1,
});
new TerraformOutput(this, "one_year_and_month_from_now", {
value: example.rfc3339,
});
}
}

```

### Triggers Usage

```typescript
Expand Down Expand Up @@ -107,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-e4f51351e41d12e8bd28f5caaf9fdb208c836529abc6dd752468db509a3211e2 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->
<!-- cache-key: cdktf-0.19.0 input-9c8ec1841600576ce1daecf6956fcc4e4e5ad75d031b09cbbc4a784278fcf793 556251879b8ed0dc4c87a76b568667e0ab5e2c46efdd14a05c556daf05678783-->

0 comments on commit ee82048

Please sign in to comment.