naming

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudFormationPropertyToTerraformAttribute

func CloudFormationPropertyToTerraformAttribute(propertyName string) string

CloudFormationPropertyToTerraformAttribute converts a CloudFormation property name to a Terraform attribute name. For example `GlobalReplicationGroupDescription` -> `global_replication_group_description`.

func CreateTerraformTypeName

func CreateTerraformTypeName(org, svc, res string) string

CreateTerraformTypeName creates a Terraform resource type name from 3 parts - Organization, Service and Resource.

func ParseCloudFormationTypeName

func ParseCloudFormationTypeName(typeName string) (string, string, string, error)

ParseCloudFormationTypeName parses a CloudFormation resource type name into 3 parts - Organization, Service and Resource. See https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-typeName.

func ParseTerraformTypeName

func ParseTerraformTypeName(typeName string) (string, string, string, error)

ParseTerraformTypeName parses a Terraform resource type name into 3 parts - Organization, Service and Resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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