Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Jan 13, 2025
1 parent 228d318 commit c6c4db5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions docs/data-sources/resource_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@ To learn more about JMESPath, visit [JMESPath](https://jmespath.org/).
```terraform
// it will output "registry1.azurecr.io"
output "login_server" {
value = data.azapi_resource_action.example.output.properties.loginServer
value = data.azapi_resource_action.example.sensitive_output.properties.loginServer
sensitive = true
}

// it will output "disabled"
output "quarantine_policy" {
value = data.azapi_resource_action.example.output.properties.policies.quarantinePolicy.status
value = data.azapi_resource_action.example.sensitive_output.properties.policies.quarantinePolicy.status
sensitive = true
}
```

Expand Down
6 changes: 4 additions & 2 deletions docs/resources/resource_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ To learn more about JMESPath, visit [JMESPath](https://jmespath.org/).
```terraform
// it will output "registry1.azurecr.io"
output "login_server" {
value = azapi_resource_action.example.output.properties.loginServer
value = azapi_resource_action.example.sensitive_output.properties.loginServer
sensitive = true
}

// it will output "disabled"
output "quarantine_policy" {
value = azapi_resource_action.example.output.properties.policies.quarantinePolicy.status
value = azapi_resource_action.example.sensitive_output.properties.policies.quarantinePolicy.status
sensitive = true
}
```

Expand Down
6 changes: 4 additions & 2 deletions internal/docstrings/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ const (
%s%s%sterraform
// it will output "registry1.azurecr.io"
output "login_server" {
value = RESOURCE.example.output.properties.loginServer
value = RESOURCE.example.sensitive_output.properties.loginServer
sensitive = true
}
// it will output "disabled"
output "quarantine_policy" {
value = RESOURCE.example.output.properties.policies.quarantinePolicy.status
value = RESOURCE.example.sensitive_output.properties.policies.quarantinePolicy.status
sensitive = true
}
%s%s%s
`
Expand Down

0 comments on commit c6c4db5

Please sign in to comment.