iam

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 4 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

Overview

Package iam reads IAM role policy attachments over the signed IAM Query API (version 2010-05-08).

Index

Constants

View Source
const (

	// Region is the signing region for the global IAM endpoint.
	Region = "us-east-1"
)

Variables

View Source
var Service = awsx.Service{Name: "iam", Prefix: "iam", SigningName: "iam"}

Service is the IAM Query API; IAM is global and signs in us-east-1.

Functions

func RoleName

func RoleName(arn string) string

RoleName extracts the role name from a role ARN, or empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the lazy IAM module; it makes no call until a method runs.

func New

func New(c *awsx.Client) *Client

New wraps a shared client.

func (*Client) ListAttachedRolePolicies

func (c *Client) ListAttachedRolePolicies(ctx context.Context, roleName string) ([]string, error)

ListAttachedRolePolicies returns the ARNs of managed policies attached to a role.

Jump to

Keyboard shortcuts

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