package policyengine //{ // "Version": "xyz", // "Policy": [ // { // "Effect": "Allow", // "Action": [ // "native:*", // "s3:PutObject", // "s3:GetObject" // ], // "Resource": ["*"], // "Principal": ["did:frostfs:039e3ee771a223361fe7862f532e9511b57baaae3c3e2622682e99d0e660f7671"], // "Condition": [ {"StringEquals": {"native::object::attribute", "iamuser-admin"}] // } // ] //} // type Policy struct { // Rules []Rule `json:"Policy"` // } // type AWSRule struct { // Effect string `json:"Effect"` // Action []string `json:"Action"` // Resource []string `json:"Resource"` // Principal []string `json:"Principal"` // Condition []Condition `json:"Condition"` // }