Skip to content

Commit

Permalink
fix(docs): re-order comment to ensure note is included in API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Nov 14, 2022
1 parent 274e4ab commit 98033b8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cdktf/lib/tokens/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,12 @@ export class Token {

/**
* Return a Token containing a `null` value
* @returns a Token resolving to `null` as understood by Terraform
*
* Note: This is different than `undefined`, `nil`, `None` or similar
* as it will end up in the Terraform config and can be used to explicitly
* not set an attribute (which is sometimes required by Terraform providers)
*
* @returns a Token resolving to `null` as understood by Terraform
*/
public static nullValue(): IResolvable {
// passing null works in Typescript, this is why we can do this here
Expand Down
4 changes: 4 additions & 0 deletions website/docs/cdktf/api-reference/csharp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28440,6 +28440,10 @@ Token.NullValue();

Return a Token containing a `null` value.

Note: This is different than `undefined`, `nil`, `None` or similar
as it will end up in the Terraform config and can be used to explicitly
not set an attribute (which is sometimes required by Terraform providers)

#### Constants <a name="Constants" id="Constants"></a>

| **Name** | **Type** | **Description** |
Expand Down
4 changes: 4 additions & 0 deletions website/docs/cdktf/api-reference/go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28440,6 +28440,10 @@ cdktf.Token_NullValue() IResolvable

Return a Token containing a `null` value.

Note: This is different than `undefined`, `nil`, `None` or similar
as it will end up in the Terraform config and can be used to explicitly
not set an attribute (which is sometimes required by Terraform providers)

#### Constants <a name="Constants" id="Constants"></a>

| **Name** | **Type** | **Description** |
Expand Down
4 changes: 4 additions & 0 deletions website/docs/cdktf/api-reference/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32639,6 +32639,10 @@ Token.nullValue()

Return a Token containing a `null` value.

Note: This is different than `undefined`, `nil`, `None` or similar
as it will end up in the Terraform config and can be used to explicitly
not set an attribute (which is sometimes required by Terraform providers)

#### Constants <a name="Constants" id="Constants"></a>

| **Name** | **Type** | **Description** |
Expand Down
4 changes: 4 additions & 0 deletions website/docs/cdktf/api-reference/python.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34143,6 +34143,10 @@ cdktf.Token.null_value()

Return a Token containing a `null` value.

Note: This is different than `undefined`, `nil`, `None` or similar
as it will end up in the Terraform config and can be used to explicitly
not set an attribute (which is sometimes required by Terraform providers)

#### Constants <a name="Constants" id="Constants"></a>

| **Name** | **Type** | **Description** |
Expand Down
4 changes: 4 additions & 0 deletions website/docs/cdktf/api-reference/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27855,6 +27855,10 @@ Token.nullValue();

Return a Token containing a `null` value.

Note: This is different than `undefined`, `nil`, `None` or similar
as it will end up in the Terraform config and can be used to explicitly
not set an attribute (which is sometimes required by Terraform providers)

#### Constants <a name="Constants" id="Constants"></a>

| **Name** | **Type** | **Description** |
Expand Down

0 comments on commit 98033b8

Please sign in to comment.