awsiamusers

package
v0.0.0-...-82ab749 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityAlreadyExists = "EntityAlreadyExists"
	NoSuchEntity        = "NoSuchEntity"

	SubstrateManaged = "SubstrateManaged"
)

Variables

This section is empty.

Functions

func AttachUserPolicy

func AttachUserPolicy(
	ctx context.Context,
	client *iam.Client,
	username, policyARN string,
) error

func DeleteAccessKey

func DeleteAccessKey(
	ctx context.Context,
	client *iam.Client,
	username, accessKeyId string,
) error

func DeleteAllAccessKeys

func DeleteAllAccessKeys(
	ctx context.Context,
	client *iam.Client,
	username string,
	age time.Duration,
) error

func DeleteUser

func DeleteUser(
	ctx context.Context,
	client *iam.Client,
	username string,
) error

Types

type AccessKey

type AccessKey = types.AccessKey

func CreateAccessKey

func CreateAccessKey(
	ctx context.Context,
	client *iam.Client,
	username string,
) (*AccessKey, error)

type AccessKeyMetadata

type AccessKeyMetadata = types.AccessKeyMetadata

func ListAccessKeys

func ListAccessKeys(
	ctx context.Context,
	client *iam.Client,
	username string,
) ([]AccessKeyMetadata, error)

type Tag

type Tag = types.Tag

type User

type User = types.User

func CreateUser

func CreateUser(
	ctx context.Context,
	client *iam.Client,
	username string,
) (*User, error)

func EnsureUser

func EnsureUser(
	ctx context.Context,
	client *iam.Client,
	username string,
) (*User, error)

func EnsureUserWithPolicy

func EnsureUserWithPolicy(
	ctx context.Context,
	client *iam.Client,
	username string,
	doc *policies.Document,
) (*User, error)

func GetUser

func GetUser(
	ctx context.Context,
	client *iam.Client,
	username string,
) (*User, error)

Jump to

Keyboard shortcuts

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