paramopts

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package paramopts builds AWS Parameter Store provider write options from CLI flag values, keeping the flag-to-option mapping in one place shared by the param create and update commands. It also validates the --tier value.

Index

Constants

View Source
const (
	TierStandard           = "Standard"
	TierAdvanced           = "Advanced"
	TierIntelligentTiering = "Intelligent-Tiering"
)

SSM parameter tier names accepted by the --tier flag.

Variables

This section is empty.

Functions

func Build

func Build(v Values) []provider.WriteOption

Build converts the set (non-empty) flag values into provider.WriteOptions. Empty values contribute no option, so passing an all-empty Values yields nil and preserves the exact behavior of the command when no flags are set.

func ValidateTier

func ValidateTier(tier string) error

ValidateTier reports an error if tier is a non-empty, unrecognized value. An empty tier is valid (it means "leave the tier unset").

Types

type Values

type Values struct {
	Tier           string
	DataType       string
	AllowedPattern string
	Policies       string
}

Values holds the raw flag values for the provider-specific param options.

Jump to

Keyboard shortcuts

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