iam

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanAssumeRole added in v1.9.0

func CanAssumeRole(roleArn string, serviceName string) (bool, error)

CanAssumeRole checks if a service can assume a role

func CheckPolicyDocument

func CheckPolicyDocument(doc *yaml.Node) (bool, error)

CheckPolicyDocument checks a PolicyDocument to make sure it will not result in failures

func GetCallerArn added in v1.4.4

func GetCallerArn(config awsgo.Config) (string, error)

GetCallerArn gets the role arn of the caller based on the aws config

func GetRoleNameFromArn added in v1.9.0

func GetRoleNameFromArn(roleArn string) (string, error)

func PrincipalExists

func PrincipalExists(principal string) (bool, error)

PrincipalExists checks to see if the principal exists in the account

func RoleExists

func RoleExists(roleArn string) bool

RoleExists checks to see if a role 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

func TransformCallerArn(stsResArn string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL