Documentation
¶
Overview ¶
Package tagging provides unified tag management for SSM Parameter Store and Secrets Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyParam ¶
ApplyParam applies tag changes to an SSM Parameter Store parameter. The resourceID should be the parameter name (e.g., "/my/param").
func ApplySecret ¶
ApplySecret applies tag changes to a Secrets Manager secret. The secretID should be the secret name or ARN.
Types ¶
type Change ¶
type Change struct {
Add map[string]string // Tags to add or update
Remove []string // Tag keys to remove
}
Change represents tag modifications to apply.
type ParamClient ¶
type ParamClient interface {
AddTagsToResource(ctx context.Context, params *paramapi.AddTagsToResourceInput, optFns ...func(*paramapi.Options)) (*paramapi.AddTagsToResourceOutput, error)
RemoveTagsFromResource(ctx context.Context, params *paramapi.RemoveTagsFromResourceInput, optFns ...func(*paramapi.Options)) (*paramapi.RemoveTagsFromResourceOutput, error)
}
ParamClient is the interface for SSM Parameter Store tag operations.
type ParseResult ¶
ParseResult contains parsed tag changes and any warnings.
func ParseFlags ¶
func ParseFlags(tags []string, untags []string) (*ParseResult, error)
ParseFlags parses --tag and --untag flag values. Returns warnings if the same key appears in both (later wins).
Tag format: "key=value" Untag format: "key"
type SecretClient ¶
type SecretClient interface {
TagResource(ctx context.Context, params *secretapi.TagResourceInput, optFns ...func(*secretapi.Options)) (*secretapi.TagResourceOutput, error)
UntagResource(ctx context.Context, params *secretapi.UntagResourceInput, optFns ...func(*secretapi.Options)) (*secretapi.UntagResourceOutput, error)
}
SecretClient is the interface for Secrets Manager tag operations.