iam

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckElastiCacheSupportsIAMAuth

func CheckElastiCacheSupportsIAMAuth(database types.Database) (bool, error)

CheckElastiCacheSupportsIAMAuth returns whether the given ElastiCache database supports IAM auth. AWS ElastiCache Redis supports IAM auth for redis version 7+.

func CheckMemoryDBSupportsIAMAuth

func CheckMemoryDBSupportsIAMAuth(database types.Database) (bool, error)

CheckMemoryDBSupportsIAMAuth returns whether the given MemoryDB database supports IAM auth. AWS MemoryDB supports IAM auth for redis version 7+.

func GetReadableAWSPolicyDocument

func GetReadableAWSPolicyDocument(db types.Database) (string, error)

GetReadableAWSPolicyDocument returns the indented JSON string of the AWS IAM policy document for provided database.

func GetReadableAWSPolicyDocumentForAssumedRole

func GetReadableAWSPolicyDocumentForAssumedRole(db types.Database) (string, error)

GetReadableAWSPolicyDocumentForAssumedRole returns the indented JSON string of the AWS IAM policy document for provided database.

Types

type Placeholders

type Placeholders []string

Placeholders defines a slice of strings used as placeholders.

func GetAWSPolicyDocument

func GetAWSPolicyDocument(db types.Database) (*awslib.PolicyDocument, Placeholders, error)

GetAWSPolicyDocument returns the AWS IAM policy document for provided database for setting up the default IAM identity of the database agent.

func GetAWSPolicyDocumentForAssumedRole

func GetAWSPolicyDocumentForAssumedRole(db types.Database) (*awslib.PolicyDocument, Placeholders, error)

GetAWSPolicyDocumentForAssumedRole returns the AWS IAM policy document for provided database for setting up the IAM role assumed by the database agent.

Jump to

Keyboard shortcuts

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