rds

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyDBClusterParameterGroup

ModifyDBClusterParameterGroup modifies the DB Cluster Parameter Group. Inputs:

c is the context of the method call, which includes the AWS Region.
api is the interface that defines the method call.
input defines the input arguments to the service call.

Output:

If success, a ModifyDBClusterParameterGroupOutput object containing the result of the service call and nil.
Otherwise, nil and an error from the call to DescribeDBClusterParameterGroup.

func ModifyDBParameterGroup

ModifyDBParameterGroup modifies the DB Parameter Group. Inputs:

c is the context of the method call, which includes the AWS Region.
api is the interface that defines the method call.
input defines the input arguments to the service call.

Output:

If success, a ModifyDBParameterGroupOutput object containing the result of the service call and nil.
Otherwise, nil and an error from the call to DescribeDBParameterGroup.

func RunModifyDBClusterParameterGroup

func RunModifyDBClusterParameterGroup(parameterGroupName string, staticParameters []types.Parameter, dynamicParameters []types.Parameter, optFns ...func(*util.AWSConfigOptions) error) (aws.Config, error)

Modify the parameters of a DB Cluster Parameter Group

func RunModifyDBParameterGroup

func RunModifyDBParameterGroup(parameterGroupName string, staticParameters []types.Parameter, dynamicParameters []types.Parameter, optFns ...func(*util.AWSConfigOptions) error) (aws.Config, error)

Modify the parameters of a DB Parameter Group

Types

type ModifyDBClusterParameterGroupAPI

type ModifyDBClusterParameterGroupAPI interface {
	ModifyDBClusterParameterGroup(
		ctx context.Context,
		params *rds.ModifyDBClusterParameterGroupInput,
		optFns ...func(*rds.Options)) (*rds.ModifyDBClusterParameterGroupOutput, error)
}

ModifyDBClusterParameterGroupAPI defines the interface for the ModifyDBClusterParameterGroup function. We use this interface to test the function using a mocked service.

type ModifyDBParameterGroupAPI

type ModifyDBParameterGroupAPI interface {
	ModifyDBParameterGroup(
		ctx context.Context,
		params *rds.ModifyDBParameterGroupInput,
		optFns ...func(*rds.Options)) (*rds.ModifyDBParameterGroupOutput, error)
}

ModifyDBParameterGroupAPI defines the interface for the ModifyDBParameterGroup function. We use this interface to test the function using a mocked service.

Jump to

Keyboard shortcuts

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