Documentation ¶
Index ¶
- func AddExternalTags(mg resource.Managed, spec []*svcapitypes.Tag) []*svcapitypes.Tag
- func AreTagsUpToDate(client docdbiface.DocDBAPI, spec []*svcapitypes.Tag, resourceName *string) (bool, error)
- func CompareEngineVersions(a, b string) int
- func DiffTags(spec []*svcapitypes.Tag, current []*svcsdk.Tag) (addTags []*svcsdk.Tag, removeTags []*string)
- func GetExternalTags(mg resource.Managed) []*svcapitypes.Tag
- func ListTagsForResource(client docdbiface.DocDBAPI, resourceName *string) ([]*svcsdk.Tag, error)
- func UpdateTagsForResource(client docdbiface.DocDBAPI, spec []*svcapitypes.Tag, resourceName *string) error
- type EngineVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExternalTags ¶
func AddExternalTags(mg resource.Managed, spec []*svcapitypes.Tag) []*svcapitypes.Tag
AddExternalTags to spec if they don't exist
func AreTagsUpToDate ¶
func AreTagsUpToDate(client docdbiface.DocDBAPI, spec []*svcapitypes.Tag, resourceName *string) (bool, error)
AreTagsUpToDate for spec and resourceName
func CompareEngineVersions ¶ added in v0.49.0
CompareEngineVersions is a shortcut to compare two engine versions.
func DiffTags ¶
func DiffTags(spec []*svcapitypes.Tag, current []*svcsdk.Tag) (addTags []*svcsdk.Tag, removeTags []*string)
DiffTags between spec and current
func GetExternalTags ¶
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 ¶
ListTagsForResource for the given resource
func UpdateTagsForResource ¶
func UpdateTagsForResource(client docdbiface.DocDBAPI, spec []*svcapitypes.Tag, resourceName *string) error
UpdateTagsForResource with resourceName
Types ¶
type EngineVersion ¶ added in v0.49.0
type EngineVersion []any
EngineVersion represents an AWS DocDB engine version.
func ParseEngineVersion ¶ added in v0.49.0
func ParseEngineVersion(raw string) EngineVersion
ParseEngineVersion from a raw string.
func (EngineVersion) Compare ¶ added in v0.49.0
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.