Documentation ¶
Index ¶
- func CheckElastiCacheSupportsIAMAuth(database types.Database) (bool, error)
- func CheckMemoryDBSupportsIAMAuth(database types.Database) (bool, error)
- func GetReadableAWSPolicyDocument(db types.Database) (string, error)
- func GetReadableAWSPolicyDocumentForAssumedRole(db types.Database) (string, error)
- type Placeholders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckElastiCacheSupportsIAMAuth ¶
CheckElastiCacheSupportsIAMAuth returns whether the given ElastiCache database supports IAM auth. AWS ElastiCache Redis supports IAM auth for redis version 7+.
func CheckMemoryDBSupportsIAMAuth ¶
CheckMemoryDBSupportsIAMAuth returns whether the given MemoryDB database supports IAM auth. AWS MemoryDB supports IAM auth for redis version 7+.
func GetReadableAWSPolicyDocument ¶
GetReadableAWSPolicyDocument 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.