Package org.sonar.iac.common.checks
Enum PrivilegeEscalationVector
- All Implemented Interfaces:
Serializable,Comparable<PrivilegeEscalationVector>
-
Nested Class Summary
Nested Classes -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactionEnablesVector(PrivilegeEscalationVector vector, String value) getName()static Optional<PrivilegeEscalationVector>getStatementEscalationVector(Policy.Statement statement, List<Tree> actionTrees) booleanisSubsetOf(Collection<PrivilegeEscalationVector.Permission> actionPermissions) static PrivilegeEscalationVectorReturns the enum constant of this type with the specified name.static PrivilegeEscalationVector[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATE_POLICY_VERSION
-
SET_DEFAULT_POLICY_VERSION
-
CREATE_ACCESS_KEY
-
CREATE_LOGIN_PROFILE
-
UPDATE_LOGIN_PROFILE
-
ATTACH_USER_POLICY
-
ATTACH_GROUP_POLICY
-
ATTACH_ROLE_POLICY
-
PUT_USER_POLICY
-
PUT_GROUP_POLICY
-
PUT_ROLE_POLICY
-
ADD_USER_TO_GROUP
-
UPDATE_ASSUME_ROLE_POLICY
-
EC2
-
LAMBDA_CREATE_AND_INVOKE
-
LAMBDA_CREATE_AND_ADD_PERMISSION
-
LAMBDA_TRIGGERED_WITH_AN_EXTERNAL_EVENT
-
CLOUD_FORMATION
-
DATA_PIPELINE
-
GLUE_DEVELOPMENT_ENDPOINT
-
UPDATE_GLUE_DEV_ENDPOINT
-
UPDATE_LAMBDA_CODE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
isSubsetOf
-
getPermissions
-
actionEnablesVector
-
getStatementEscalationVector
public static Optional<PrivilegeEscalationVector> getStatementEscalationVector(Policy.Statement statement, List<Tree> actionTrees)
-