paramtype

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package paramtype maps between the provider-neutral domain.ValueType and the AWS SSM Parameter Store type names ("String", "SecureString", "StringList") used in CLI output and in the --type flag. It keeps the SSM-specific display and parsing concerns in the param CLI layer so the usecases carry no AWS type.

Index

Constants

View Source
const (
	String       = "String"
	SecureString = "SecureString"
	StringList   = "StringList"
)

SSM parameter type names as displayed by the CLI and accepted by --type.

Variables

This section is empty.

Functions

func Display

func Display(t domain.ValueType) string

Display maps a domain.ValueType to its SSM type name for output. It preserves the historical byte-for-byte rendering:

  • domain.ValueTypePlaintext -> "String"
  • domain.ValueTypeSecret -> "SecureString"
  • domain.ValueTypeList -> "StringList"

func Options

func Options() []string

Options returns the SSM parameter type display names in their canonical order. It is the single source of truth for the set of selectable parameter types (e.g. the GUI type dropdown), so callers never hardcode the list.

func Parse

func Parse(s string) domain.ValueType

Parse maps an SSM --type flag value to a domain.ValueType. Unknown values map to domain.ValueTypePlaintext (matching the historical default of "String").

Types

This section is empty.

Jump to

Keyboard shortcuts

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