Documentation
¶
Index ¶
- func AddExternalTags(mg resource.Managed, spec []*svcapitypes.Tag) []*svcapitypes.Tag
- func AreSameElements(a1, a2 []*string) bool
- func AreTagsUpToDate(ctx context.Context, client rdsiface.RDSAPI, spec []*svcapitypes.Tag, ...) (bool, []*svcsdk.Tag, []*string, error)
- func CompareEngineVersions(a, b string) int
- func DiffTags(spec []*svcapitypes.Tag, current []*svcsdk.Tag) (addTags []*svcsdk.Tag, removeTags []*string)
- func GenerateCloudWatchExportConfiguration(spec, current []*string) *svcsdk.CloudwatchLogsExportConfiguration
- func GetExternalTags(mg resource.Managed) []*svcapitypes.Tag
- func ListTagsForResource(ctx context.Context, client rdsiface.RDSAPI, resourceName *string) ([]*svcsdk.Tag, error)
- func SetPmvDBCluster(obs *svcsdk.DescribeDBClustersOutput)
- func SetPmvDBInstance(obs *svcsdk.DescribeDBInstancesOutput)
- func ShouldIgnore(key string, rules []string) bool
- func UpdateTagsForResource(ctx context.Context, client rdsiface.RDSAPI, spec []*svcapitypes.Tag, ...) error
- type EngineVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExternalTags ¶ added in v0.43.0
func AddExternalTags(mg resource.Managed, spec []*svcapitypes.Tag) []*svcapitypes.Tag
AddExternalTags to spec if they don't exist
func AreSameElements ¶
AreSameElements reports whether the two slices contain the same set of elements, ignoring order and duplicates.
func AreTagsUpToDate ¶ added in v0.43.0
func AreTagsUpToDate(ctx context.Context, client rdsiface.RDSAPI, spec []*svcapitypes.Tag, resourceName *string) (bool, []*svcsdk.Tag, []*string, error)
AreTagsUpToDate for spec and resourceName
func CompareEngineVersions ¶
CompareEngineVersions is a shortcut to compare two engine versions.
func DiffTags ¶ added in v0.43.0
func DiffTags(spec []*svcapitypes.Tag, current []*svcsdk.Tag) (addTags []*svcsdk.Tag, removeTags []*string)
DiffTags between spec and current
func GenerateCloudWatchExportConfiguration ¶
func GenerateCloudWatchExportConfiguration(spec, current []*string) *svcsdk.CloudwatchLogsExportConfiguration
GenerateCloudWatchExportConfiguration computes the CloudwatchLogsExportConfiguration (log types to enable/disable) needed to reconcile the currently enabled CloudWatch log exports on AWS towards the desired spec. It returns nil when no change is required, so callers can leave the field unset on the modify request in that case.
func GetExternalTags ¶ added in v0.43.0
func GetExternalTags(mg resource.Managed) []*svcapitypes.Tag
GetExternalTags is a wrapper around resource.GetExternalTags to return a sorted array instead of a map
func ListTagsForResource ¶ added in v0.43.0
func ListTagsForResource(ctx context.Context, client rdsiface.RDSAPI, resourceName *string) ([]*svcsdk.Tag, error)
ListTagsForResource for the given resource
func SetPmvDBCluster ¶
func SetPmvDBCluster(obs *svcsdk.DescribeDBClustersOutput)
SetPmvDBCluster folds any PendingModifiedValues in the DescribeDBClustersOutput into the observed fields, so that they are taken into account during isUpToDate checks. The engine version is an exception and is handled separately.
func SetPmvDBInstance ¶
func SetPmvDBInstance(obs *svcsdk.DescribeDBInstancesOutput)
SetPmvDBInstance folds any PendingModifiedValues in the DescribeDBInstancesOutput into the observed fields, so that they are taken into account during isUpToDate checks. The engine version is an exception and is handled separately.
func ShouldIgnore ¶ added in v0.59.0
ShouldIgnore returns true if key matches any supplied rule. A rule may be:
- exact key match (e.g. "c7n:policy")
- prefix* glob where * is only allowed as the last character (e.g. "c7n:*" or "prefix*")
No other wildcard forms are supported.
func UpdateTagsForResource ¶ added in v0.43.0
func UpdateTagsForResource(ctx context.Context, client rdsiface.RDSAPI, spec []*svcapitypes.Tag, resourceName *string) error
UpdateTagsForResource with resourceName
Types ¶
type EngineVersion ¶
type EngineVersion []any
EngineVersion represents an AWS RDS engine version.
func ParseEngineVersion ¶
func ParseEngineVersion(raw string) EngineVersion
ParseEngineVersion from a raw string.
func (EngineVersion) Compare ¶
func (v EngineVersion) Compare(other EngineVersion) int
Compare returns a positive value if v is represents a higher version number than other. A negative value is returned if other is higher than v. It returns 0 if both are considered equal.