iam_policy

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT-0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type Getter

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

func NewGetter

func NewGetter(iamClient *aws.IAMClient) *Getter

func (*Getter) Get

func (g *Getter) Get(arn string, output printer.Output, options resource.Options) error

func (*Getter) GetAllPolicies

func (g *Getter) GetAllPolicies() (policies []types.Policy, err error)

func (*Getter) GetPoliciesByNameSearch

func (g *Getter) GetPoliciesByNameSearch(nameSearch string) ([]types.Policy, error)

func (*Getter) GetPoliciesByRoleName

func (g *Getter) GetPoliciesByRoleName(roleName string) (*RolePolicies, error)

func (*Getter) GetPolicyByArn

func (g *Getter) GetPolicyByArn(arn string) (*types.Policy, error)

func (*Getter) Init

func (g *Getter) Init()

type IamPolicyOptions

type IamPolicyOptions struct {
	resource.CommonOptions

	NameSearch string
	Role       string
}

func NewOptions

func NewOptions() (options *IamPolicyOptions, getFlags cmd.Flags)

type IamPolicyPrinter

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

func NewPrinter

func NewPrinter(roles []types.Policy) *IamPolicyPrinter

func (*IamPolicyPrinter) PrintJSON

func (p *IamPolicyPrinter) PrintJSON(writer io.Writer) error

func (*IamPolicyPrinter) PrintTable

func (p *IamPolicyPrinter) PrintTable(writer io.Writer) error

func (*IamPolicyPrinter) PrintYAML

func (p *IamPolicyPrinter) PrintYAML(writer io.Writer) error

type InlinePolicy

type InlinePolicy struct {
	Name           string
	PolicyDocument string
}

type ManagedPolicy

type ManagedPolicy struct {
	Policy        *types.Policy
	PolicyVersion *types.PolicyVersion
}

type RolePolicies

type RolePolicies struct {
	InlinePolicies  []InlinePolicy
	ManagedPolicies []ManagedPolicy
}

type RolePolicyPrinter

type RolePolicyPrinter struct {
	*RolePolicies
}

func NewRolePolicyPrinter

func NewRolePolicyPrinter(policies *RolePolicies) *RolePolicyPrinter

func (*RolePolicyPrinter) PrintJSON

func (p *RolePolicyPrinter) PrintJSON(writer io.Writer) error

func (*RolePolicyPrinter) PrintTable

func (p *RolePolicyPrinter) PrintTable(writer io.Writer) error

func (*RolePolicyPrinter) PrintYAML

func (p *RolePolicyPrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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