Available in Classic and VPC
You can learn about the items related to Condition settings provided by NAVER Cloud Platform.
Condition key/value
Condition key/value: Property information to be applied to the policy. Permission checks are performed by comparing the "key:value" set in the condition key with the "key:value" of the properties where the policy is performed.
| Type | Condition key | Details | Value input | Value information path | Data type |
|---|---|---|---|---|---|
| Principal properties | ncp:principalName | User name of the action performer. | User name | Services > Management & Governance > Sub Account > Sub Accounts > Sub account details. | String |
| ncp:principalId | Login ID of the action performer. | Login ID | Services > Management & Governance > Sub Account > Sub Accounts > Sub account details. | String | |
| ncp:principaluuid | ID no of the action performer. | ID | Services > Management & Governance > Sub Account > Sub Accounts > Sub account details. | String | |
| ncp:principalType | Type of the action performer. | Enter the corresponding value from the following:
|
String | ||
| ncp:sourceIdentityId | Each role's target resource if the principalType is IamRole. |
|
|
String | |
| ncp:sourceIdentityType | Each role's user type if the principalType is IamRole. | Enter the corresponding value from the following:
|
String | ||
| Resource properties | ncp: resourceTag | Used to allow or deny user actions on resources with specific tags when performing actions where resource specification is available. | key:value | String | |
| ncp: requestTag | A tag that controls whether a tag is required and which types of tags can be assigned when performing tag-assignment actions. |
key:value | String | ||
| ncp: principalTag | Tags that control who can run the Action. |
key:value | String | ||
| Request properties | ncp: currentTime | Date and time the action request was received. | ISO 8601 standard (YYYY-MM-DDThh:mm:ss+00:00). | Date | |
| ncp: epochTime | Date and time the action request was received. | Integer representing the number of seconds elapsed since 00:00:00 UTC on January 1, 1970. | Date |
Condition operators
Operator: A string condition used to check the "key:value" set in the condition key during permission checks.
| Type | Description | Note |
|---|---|---|
| StringEquals | String matches exactly (case-sensitive). |
|
| StringNotEquals | String mismatches (case-sensitive). |
|
| StringLike | String matches similarly (case-sensitive). |
|
| StringNotLike | Matches similarly (case-sensitive). |
|
| StringEqualsIgnoreCase | String matches (case-insensitive). |
|
| StringNotEqualsIgnoreCase | String mismatches (case-insensitive). |
|
| DateEquals | Matches a specific time. |
|
| DateNotEquals | Does not match a specific time. |
|
| DateLessThan | Before a specific time. |
|
| DateLessThanEquals | At or before a specific time. |
|
| DateGreaterThan | After a specific time. |
|
| DateGreaterThanEquals | At or after a specific time. |
|
| Null | Checks whether the condition key exists. |
|
| Type | Description | Note |
|---|---|---|
| ~IfExists | Check the condition only if the key exists followed by the operator. |
|