sotoon_iam_rule (Data Source)
Retrieves a IAM rule.
Example Usage
data "sotoon_workspace" "mycompany" {
id = "ee6f89b5-e07c-42f1-9462-05cec9cd92d8" # Workspace ID
}
# Get globally predefined workspace-admin role
data "sotoon_iam_rule" "can_edit_cdn" {
name = "can-edit-cdn"
}
# Get user defined custom role
data "sotoon_iam_rule" "reader" {
name = "can-read"
workspace_id = data.sotoon_workspace.mycompany.id
}
Schema
Required
name(String) Name of the rule.
Optional
workspace_id(String) ID of the Workspace which this rule is defined in that. (Default: global rules)
Read-Only
actions(List of String) List of the actions which this rule applied on that.id(String) ID of the rule.is_denial(Boolean) Defines is this rule denial or not.path(String) The path which the rule applied on thatservice(String) Service which this rule defined on that.