Documentation
¶
Index ¶
- Variables
- func AWSRegionValidator() validator.String
- func AWSRegionsOrAllListValidator() validator.List
- func CloudtrailRegionDefault() planmodifier.Object
- func IsValidAWSRegion(region string) bool
- func NewCloudAWSAccountResource() resource.Resource
- func NewCloudAwsAccountValidationDataSource() datasource.DataSource
- func NewCloudAwsAccountsDataSource() datasource.DataSource
- func NewCloudAzureTenantEventhubSettingsResource() resource.Resource
- func NewCloudAzureTenantResource() resource.Resource
- func RegisterSweepers()
Constants ¶
This section is empty.
Variables ¶
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
AWSRegionValidator returns a validator that checks if strings match AWS region patterns.
func AWSRegionsOrAllListValidator ¶ added in v0.0.52
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
IsValidAWSRegion validates if a region string matches AWS region patterns.
func NewCloudAWSAccountResource ¶
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 NewCloudAzureTenantResource ¶ added in v0.0.29
func RegisterSweepers ¶ added in v0.0.62
func RegisterSweepers()
Types ¶
This section is empty.