Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetRolePolicy (0.09 sec)

  1. cmd/iam.go

    	return err
    }
    
    // HasRolePolicy - returns if a role policy is configured for IAM.
    func (sys *IAMSys) HasRolePolicy() bool {
    	return len(sys.rolesMap) > 0
    }
    
    // GetRolePolicy - returns policies associated with a role ARN.
    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN parse err: %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top