iam

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package iam provides a client to make API requests to the AWS Identity and Access Management service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAM

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

IAM wraps the AWS SDK's IAM client.

func New

func New(s *session.Session) *IAM

New returns an IAM client configured against the input session.

func (*IAM) CreateECSServiceLinkedRole added in v1.1.0

func (c *IAM) CreateECSServiceLinkedRole() error

CreateECSServiceLinkedRole creates a Service-Linked Role for Amazon ECS. This role is necessary so that Amazon ECS can call AWS APIs. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html

func (*IAM) DeleteRole

func (c *IAM) DeleteRole(roleNameOrARN string) error

DeleteRole deletes an IAM role based on its ARN. If the role does not exist it returns nil.

func (*IAM) ListPolicyNames added in v1.22.1

func (c *IAM) ListPolicyNames() ([]string, error)

ListPolicyNames returns a list of local policy names.

func (*IAM) ListRoleTags added in v1.5.0

func (c *IAM) ListRoleTags(roleName string) (map[string]string, error)

ListRoleTags gathers all the tags associated with an IAM role.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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