fcs

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MPL-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Commercial regions: (us|eu|ap|sa|ca|me|af|il|mx)-direction-number.
	CommercialRegionRegex = regexp.MustCompile(`^(us|eu|ap|sa|ca|me|af|il|mx)-\w+-[1-9]\d*$`)

	// GovCloud regions: us-gov-direction-number.
	GovCloudRegionRegex = regexp.MustCompile(`^us-gov-\w+-[1-9]\d*$`)

	// China regions: cn-direction-number.
	ChinaRegionRegex = regexp.MustCompile(`^cn-\w+-[1-9]\d*$`)

	// ISO regions: us-iso/isob/isoe/isof-direction-number.
	ISORegionRegex = regexp.MustCompile(`^us-iso[bf]?-\w+-[1-9]\d*$`)

	// European Sovereign Cloud: eusc-de-direction-number.
	EUSCRegionRegex = regexp.MustCompile(`^eusc-de-\w+-[1-9]\d*$`)
)

AWS region regex patterns based on AWS SDK validation logic.

Functions

func AWSRegionValidator added in v0.0.52

func AWSRegionValidator() validator.String

AWSRegionValidator returns a validator that checks if strings match AWS region patterns.

func AWSRegionsOrAllListValidator added in v0.0.52

func AWSRegionsOrAllListValidator() validator.List

AWSRegionsOrAllListValidator returns a validator that ensures the list contains either: - A single element with value "all" - One or more valid AWS regions.

func CloudtrailRegionDefault added in v0.0.44

func CloudtrailRegionDefault() planmodifier.Object

func IsValidAWSRegion added in v0.0.52

func IsValidAWSRegion(region string) bool

IsValidAWSRegion validates if a region string matches AWS region patterns.

func NewCloudAWSAccountResource

func NewCloudAWSAccountResource() resource.Resource

NewCloudAWSAccountResource a helper function to simplify the provider implementation.

func NewCloudAwsAccountValidationDataSource added in v0.0.55

func NewCloudAwsAccountValidationDataSource() datasource.DataSource

NewCloudAwsAccountValidationDataSource is a helper function to simplify the provider implementation.

func NewCloudAwsAccountsDataSource

func NewCloudAwsAccountsDataSource() datasource.DataSource

NewCloudAwsAccountsDataSource is a helper function to simplify the provider implementation.

func NewCloudAzureTenantEventhubSettingsResource added in v0.0.29

func NewCloudAzureTenantEventhubSettingsResource() resource.Resource

func NewCloudAzureTenantResource added in v0.0.29

func NewCloudAzureTenantResource() resource.Resource

func RegisterSweepers added in v0.0.62

func RegisterSweepers()

Types

This section is empty.

Jump to

Keyboard shortcuts

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