Documentation ¶
Index ¶
- func CheckPolicyDocument(doc *yaml.Node) (bool, error)
- func GetCallerArn(config awsgo.Config) (string, error)
- func PrincipalExists(principal string) (bool, error)
- func RoleExists(roleArn string) bool
- func Simulate(actions []string, resource string, roleArn string, ...) (bool, []string)
- func TransformCallerArn(stsResArn string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPolicyDocument ¶
Check a PolicyDocument to make sure it will not result in failures
func GetCallerArn ¶ added in v1.4.4
Get the role arn of the caller based on the aws config
func PrincipalExists ¶
Check to see if the principal exists in the account
func Simulate ¶
func Simulate( actions []string, resource string, roleArn string, spinnerCallback func(string)) (bool, []string)
Simulate actions on a resource. The role arg is optional, if not provided, the current aws config will be used.
func TransformCallerArn ¶ added in v1.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.