Help us shape the future of Go! Take the 2026 Go Developer Survey

cliconfig

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LifecycleSettings

type LifecycleSettings struct {
	Delay time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 183-byte string literal not displayed */
	OpenSearchProcessing time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 137-byte string literal not displayed */
	ElastiCache time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 128-byte string literal not displayed */
	MemoryDB time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 133-byte string literal not displayed */
	LambdaActivation time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 132-byte string literal not displayed */
	LambdaProvisionedConcurrency time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 151-byte string literal not displayed */
	ECSStart time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 132-byte string literal not displayed */
	ECSStop time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 131-byte string literal not displayed */
	MediaStore time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 147-byte string literal not displayed */
	EFS time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 133-byte string literal not displayed */
	Redshift time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 134-byte string literal not displayed */
	SSMCommand time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 135-byte string literal not displayed */
	CloudFront time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 171-byte string literal not displayed */
	SSMAutomation time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 144-byte string literal not displayed */
	DocDB time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 148-byte string literal not displayed */
	Neptune time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 145-byte string literal not displayed */
	Kafka time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 140-byte string literal not displayed */
	AWSConfig time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 155-byte string literal not displayed */
	Inspector2 time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 138-byte string literal not displayed */
	WorkSpaces time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 153-byte string literal not displayed */
	QuickSight time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 176-byte string literal not displayed */
	AppRunner time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 170-byte string literal not displayed */
	KinesisAnalyticsV2 time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 161-byte string literal not displayed */
	QuickSightIngestion time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 195-byte string literal not displayed */
	SageMaker time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 164-byte string literal not displayed */
	Bedrock time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 160-byte string literal not displayed */
	BedrockAgent time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 161-byte string literal not displayed */
	ElasticBeanstalk time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 169-byte string literal not displayed */
	Route53Resolver time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 183-byte string literal not displayed */
	DirectoryService time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 184-byte string literal not displayed */
	MediaLive time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 172-byte string literal not displayed */
	FSx time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 130-byte string literal not displayed */
	NetworkManager time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 158-byte string literal not displayed */
	Comprehend time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 170-byte string literal not displayed */
	Rekognition time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 179-byte string literal not displayed */
	Textract time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 193-byte string literal not displayed */
	Translate time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 152-byte string literal not displayed */
	Polly time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 142-byte string literal not displayed */
	Transcribe time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 174-byte string literal not displayed */
	IoTAnalytics time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 186-byte string literal not displayed */
	IoTWireless time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 175-byte string literal not displayed */
	Organizations time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 170-byte string literal not displayed */
	Account time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 159-byte string literal not displayed */
	RedshiftData time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 166-byte string literal not displayed */
	RedshiftServerless time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 199-byte string literal not displayed */
	DAX time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 171-byte string literal not displayed */
	Pinpoint time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 171-byte string literal not displayed */
	Autoscaling time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 155-byte string literal not displayed */
	VPCLattice time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 191-byte string literal not displayed */
	KafkaConnect time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 188-byte string literal not displayed */
	Grafana time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 174-byte string literal not displayed */
	ACMPCA time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 138-byte string literal not displayed */
	AccessAnalyzer time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 146-byte string literal not displayed */
	AppStream time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 168-byte string literal not displayed */
	FIS time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 149-byte string literal not displayed */
	DSQL time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 175-byte string literal not displayed */
	GlobalAccelerator time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 157-byte string literal not displayed */
	CodeGuruReviewer time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 195-byte string literal not displayed */
	Connect time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 167-byte string literal not displayed */
	CloudHSMV2 time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 174-byte string literal not displayed */
	AMP time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 169-byte string literal not displayed */
	TimestreamInfluxDB time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 162-byte string literal not displayed */
	ServiceQuotas time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 186-byte string literal not displayed */
	BedrockAgentCore time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 167-byte string literal not displayed */
	NetworkFirewall time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 173-byte string literal not displayed */
	Macie2 time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 164-byte string literal not displayed */
	Detective time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 140-byte string literal not displayed */
	WorkMail time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 130-byte string literal not displayed */
	Personalize time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 156-byte string literal not displayed */
	OpsWorks time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 139-byte string literal not displayed */
	Outposts time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 147-byte string literal not displayed */
	Support time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 130-byte string literal not displayed */
	MWAA time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 152-byte string literal not displayed */
	Omics time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 186-byte string literal not displayed */
	ResilienceHub time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 177-byte string literal not displayed */
	DataBrew time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 164-byte string literal not displayed */
	MGN time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 186-byte string literal not displayed */
	Forecast time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 160-byte string literal not displayed */
	NetworkMonitor time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 150-byte string literal not displayed */
	ManagedBlockchain time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 156-byte string literal not displayed */
	CleanRooms time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 154-byte string literal not displayed */
	ResourceGroups time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 137-byte string literal not displayed */
	ServerlessRepo time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 161-byte string literal not displayed */
	CodeConnections time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 168-byte string literal not displayed */
	CodeStarConnections time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 200-byte string literal not displayed */
	CloudControl time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 163-byte string literal not displayed */
	MediaPackage time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 170-byte string literal not displayed */
	Route53Recovery time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 160-byte string literal not displayed */
	ARCZonalShift time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 196-byte string literal not displayed */
	EKS time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 148-byte string literal not displayed */
	Backup time.Duration `` //nolint:lll // config struct tags are intentionally verbose
	/* 177-byte string literal not displayed */
}

LifecycleSettings holds the opt-in dwell times for transitional resource states (Creating, Processing, Pending, InProgress). Every default is 0, so resources settle instantly unless a client-visible window is requested. A per-service value of 0 falls back to Delay.

func (LifecycleSettings) Effective

func (l LifecycleSettings) Effective(specific time.Duration) time.Duration

Effective returns specific, or Delay when specific is 0.

type PersistableConfig

type PersistableConfig struct {
	InitDirs            []string                  `json:"init_dirs"`
	ElastiCacheEngine   string                    `json:"elasticache_engine"`
	ElasticsearchEngine string                    `json:"elasticsearch_engine"`
	Region              string                    `json:"region"`
	LogLevel            string                    `json:"log_level"`
	Port                string                    `json:"port"`
	OpenSearchEngine    string                    `json:"opensearch_engine"`
	AccountID           string                    `json:"account_id"`
	DataDir             string                    `json:"data_dir"`
	DNSResolveIP        string                    `json:"dns_resolve_ip"`
	DNSListenAddr       string                    `json:"dns_listen_addr"`
	CodeBuild           codebuildbackend.Settings `json:"codebuild"`
	S3                  s3backend.Settings        `json:"s3"`
	Lambda              lambdabackend.Settings    `json:"lambda"`
	DynamoDB            ddbbackend.Settings       `json:"dynamodb"`
	SES                 sesbackend.Settings       `json:"ses"`
	Batch               batchbackend.Settings     `json:"batch"`
	EC2                 ec2backend.Settings       `json:"ec2"`
	StepFunctions       sfnbackend.Settings       `json:"stepfunctions"`
	FIS                 fisbackend.Settings       `json:"fis"`
	EMR                 emrbackend.Settings       `json:"emr"`
	SSM                 ssmbackend.Settings       `json:"ssm"`
	XRay                xraybackend.Settings      `json:"xray"`
	Backup              backupbackend.Settings    `json:"backup"`
	Athena              athenabackend.Settings    `json:"athena"`
	CloudWatchLogs      cwlogsbackend.Settings    `json:"cloudwatchlogs"`
	JanitorTimeout      time.Duration             `json:"janitor_timeout"`
	PortRangeStart      int                       `json:"port_range_start"`
	LatencyMs           int                       `json:"latency_ms"`
	InitScriptTimeout   time.Duration             `json:"init_script_timeout"`
	STS                 stsbackend.Settings       `json:"sts"`
	PortRangeEnd        int                       `json:"port_range_end"`
	AutoPurgeTTL        time.Duration             `json:"auto_purge_ttl"`
	Kinesis             kinesisbackend.Settings   `json:"kinesis"`
	KMS                 kmsbackend.Settings       `json:"kms"`
	EnforceIAM          bool                      `json:"enforce_iam"`
	Demo                bool                      `json:"demo"`
	Persist             bool                      `json:"persist"`
}

PersistableConfig holds settings that can be saved to disk.

Jump to

Keyboard shortcuts

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