names

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

README

names

Package names provides AWS service-name information that is critical to the Terraform AWS Provider working correctly. If you are unsure about a change you are making, please do not hesitate to ask!

NOTE: The information in names_data.csv affects the provider, generators, documentation, website navigation, etc. working correctly. Please do not make any changes until you understand the table below.

The core of the names package is names_data.csv, which contains raw, comma-separated data about naming in the AWS Provider, AWS Go SDKs v1 and v2, and AWS CLI. The file is dynamically embedded at build time in the AWS Provider and referenced by generators when generating code. The information it contains must be correct. Please double-check any changes.

Consumers of names include:

  • Package provider (internal/provider)
  • Package conns (internal/conns)
  • AWS Provider generators
  • skaff tool

After any edits to names_data.csv, run make gen. Doing so regenerates code and performs checks on names_data.csv.

The columns of names_data.csv are as follows:

Index Name Use Description
0 AWSCLIV2Command Reference Service command in AWS CLI v2
1 AWSCLIV2CommandNoDashes Reference Same as AWSCLIV2Command without dashes
2 GoV1Package Code AWS SDK for Go v1 package name
3 GoV2Package Code AWS SDK for Go v2 package name
4 ProviderPackageActual Code Actual TF AWS provide package name if ProviderPackageCorrect is not used; takes precedence over ProviderPackageCorrect if both are defined
5 ProviderPackageCorrect Code Shorter of AWSCLIV2CommandNoDashes and GoV2Package; should not be blank if either exists; same as Service Identifier; what the TF AWS Provider package name should be; ProviderPackageActual takes precedence
6 SplitPackageRealPackage Code If multiple "services" live in one service, this is the package where the service's Go files live (e.g., VPC is part of EC2)
7 Aliases Code Semicolon-separated list of name variations (e.g., for "AMP", prometheus;prometheusservice). Do not include ProviderPackageActual (or ProviderPackageCorrect, if blank) since that will create duplicates in the Custom Endpoints guide.
8 ProviderNameUpper Code Correctly capitalized ProviderPackageActual, if it exists, otherwise ProviderPackageCorrect
9 GoV1ClientTypeName Code Exact name (i.e., spelling and capitalization) of the AWS SDK for Go v1 client type (e.g., see the New() return type for SES)
10 SkipClientGenerate Code Some service clients need special configuration rather than the default generated configuration; use a non-empty value to skip generation but you must then manually configure the client in internal/conns/config.go
11 SDKVersion Code Whether, in the TF AWS Provider, the service currently uses AWS SDK for Go v1 or v2; use 1 or 2
12 ResourcePrefixActual Code Regular expression to match anomalous TF resource name prefixes (e.g., for the resource name aws_config_config_rule, aws_config_ will match all resources); only use if ResourcePrefixCorrect is not suitable (e.g., aws_codepipeline_ won't work as there is only one resource named aws_codepipeline); takes precedence over ResourcePrefixCorrect
13 ResourcePrefixCorrect Code Regular expression to match what resource name prefixes should be (i.e., aws_ + ProviderPackageCorrect + _); used if ResourcePrefixActual is blank
14 FilePrefix Code If multiple "services" live in one service, this is the prefix that files must have to be associated with this sub-service (e.g., VPC files in the EC2 service are prefixed with vpc_); see also SplitPackageRealPackage
15 DocPrefix Code Semicolon-separated list of prefixes for service documentation files in website/docs/r and website/docs/d; usually only one prefix, i.e., <**ProviderPackageCorrect**>_
16 HumanFriendly Code [REQUIRED] Human-friendly name of service as used by AWS; documentation subcategory must exactly match this value; used in website navigation and error messages
17 Brand Code Either Amazon, AWS, or blank (rare) as used by AWS; used in error messages
18 Exclude Code Whether or not the service should be included; if included (blank), ProviderPackageActual or ProviderPackageCorrect must have a value
19 AllowedSubcategory Code If Exclude is non-blank, whether to include HumanFriendly in website/allowed-subcategories.txt anyway. In other words, if non-blank, overrides Exclude in some situations. Some excluded pseudo-services (e.g., VPC is part of EC2) are still subcategories. Only applies if Exclude is non-blank.
20 DeprecatedEnvVar Code Deprecated environment variable name
21 EnvVar Code Current environment variable associated with service
22 Note Reference Very brief note usually to explain why excluded

For more information about service naming, see the Naming Guide.

Documentation

Overview

Code generated by internal/generate/namesconsts/main.go; DO NOT EDIT.

Index

Constants

View Source
const (
	ColAWSCLIV2Command         = 0
	ColAWSCLIV2CommandNoDashes = 1
	ColGoV1Package             = 2
	ColGoV2Package             = 3
	ColProviderPackageActual   = 4
	ColProviderPackageCorrect  = 5
	ColSplitPackageRealPackage = 6
	ColAliases                 = 7
	ColProviderNameUpper       = 8
	ColGoV1ClientTypeName      = 9
	ColSkipClientGenerate      = 10
	ColSDKVersion              = 11
	ColResourcePrefixActual    = 12
	ColResourcePrefixCorrect   = 13
	ColFilePrefix              = 14
	ColDocPrefix               = 15
	ColHumanFriendly           = 16
	ColBrand                   = 17
	ColExclude                 = 18
	ColAllowedSubcategory      = 19
	ColDeprecatedEnvVar        = 20
	ColEnvVar                  = 21
	ColNote                    = 22
)
View Source
const (
	ACM                          = "acm"
	ACMPCA                       = "acmpca"
	AMP                          = "amp"
	APIGateway                   = "apigateway"
	APIGatewayManagementAPI      = "apigatewaymanagementapi"
	APIGatewayV2                 = "apigatewayv2"
	AccessAnalyzer               = "accessanalyzer"
	Account                      = "account"
	AlexaForBusiness             = "alexaforbusiness"
	Amplify                      = "amplify"
	AmplifyBackend               = "amplifybackend"
	AmplifyUIBuilder             = "amplifyuibuilder"
	AppAutoScaling               = "appautoscaling"
	AppConfig                    = "appconfig"
	AppConfigData                = "appconfigdata"
	AppFlow                      = "appflow"
	AppIntegrations              = "appintegrations"
	AppMesh                      = "appmesh"
	AppRunner                    = "apprunner"
	AppStream                    = "appstream"
	AppSync                      = "appsync"
	ApplicationCostProfiler      = "applicationcostprofiler"
	ApplicationInsights          = "applicationinsights"
	Athena                       = "athena"
	AuditManager                 = "auditmanager"
	AutoScaling                  = "autoscaling"
	AutoScalingPlans             = "autoscalingplans"
	Backup                       = "backup"
	BackupGateway                = "backupgateway"
	Batch                        = "batch"
	BillingConductor             = "billingconductor"
	Braket                       = "braket"
	Budgets                      = "budgets"
	CE                           = "ce"
	CUR                          = "cur"
	Chime                        = "chime"
	ChimeSDKIdentity             = "chimesdkidentity"
	ChimeSDKMeetings             = "chimesdkmeetings"
	ChimeSDKMessaging            = "chimesdkmessaging"
	Cloud9                       = "cloud9"
	CloudControl                 = "cloudcontrol"
	CloudDirectory               = "clouddirectory"
	CloudFormation               = "cloudformation"
	CloudFront                   = "cloudfront"
	CloudHSMV2                   = "cloudhsmv2"
	CloudSearch                  = "cloudsearch"
	CloudSearchDomain            = "cloudsearchdomain"
	CloudTrail                   = "cloudtrail"
	CloudWatch                   = "cloudwatch"
	CodeArtifact                 = "codeartifact"
	CodeBuild                    = "codebuild"
	CodeCommit                   = "codecommit"
	CodeGuruProfiler             = "codeguruprofiler"
	CodeGuruReviewer             = "codegurureviewer"
	CodePipeline                 = "codepipeline"
	CodeStar                     = "codestar"
	CodeStarConnections          = "codestarconnections"
	CodeStarNotifications        = "codestarnotifications"
	CognitoIDP                   = "cognitoidp"
	CognitoIdentity              = "cognitoidentity"
	CognitoSync                  = "cognitosync"
	Comprehend                   = "comprehend"
	ComprehendMedical            = "comprehendmedical"
	ComputeOptimizer             = "computeoptimizer"
	ConfigService                = "configservice"
	Connect                      = "connect"
	ConnectContactLens           = "connectcontactlens"
	ConnectParticipant           = "connectparticipant"
	CustomerProfiles             = "customerprofiles"
	DAX                          = "dax"
	DLM                          = "dlm"
	DMS                          = "dms"
	DRS                          = "drs"
	DS                           = "ds"
	DataBrew                     = "databrew"
	DataExchange                 = "dataexchange"
	DataPipeline                 = "datapipeline"
	DataSync                     = "datasync"
	Deploy                       = "deploy"
	Detective                    = "detective"
	DevOpsGuru                   = "devopsguru"
	DeviceFarm                   = "devicefarm"
	DirectConnect                = "directconnect"
	Discovery                    = "discovery"
	DocDB                        = "docdb"
	DynamoDB                     = "dynamodb"
	DynamoDBStreams              = "dynamodbstreams"
	EBS                          = "ebs"
	EC2                          = "ec2"
	EC2InstanceConnect           = "ec2instanceconnect"
	ECR                          = "ecr"
	ECRPublic                    = "ecrpublic"
	ECS                          = "ecs"
	EFS                          = "efs"
	EKS                          = "eks"
	ELB                          = "elb"
	ELBV2                        = "elbv2"
	EMR                          = "emr"
	EMRContainers                = "emrcontainers"
	EMRServerless                = "emrserverless"
	ElastiCache                  = "elasticache"
	ElasticBeanstalk             = "elasticbeanstalk"
	ElasticInference             = "elasticinference"
	ElasticTranscoder            = "elastictranscoder"
	Elasticsearch                = "elasticsearch"
	Events                       = "events"
	Evidently                    = "evidently"
	FIS                          = "fis"
	FMS                          = "fms"
	FSx                          = "fsx"
	FinSpace                     = "finspace"
	FinSpaceData                 = "finspacedata"
	Firehose                     = "firehose"
	Forecast                     = "forecast"
	ForecastQuery                = "forecastquery"
	FraudDetector                = "frauddetector"
	GameLift                     = "gamelift"
	Glacier                      = "glacier"
	GlobalAccelerator            = "globalaccelerator"
	Glue                         = "glue"
	Grafana                      = "grafana"
	Greengrass                   = "greengrass"
	GreengrassV2                 = "greengrassv2"
	GroundStation                = "groundstation"
	GuardDuty                    = "guardduty"
	Health                       = "health"
	HealthLake                   = "healthlake"
	Honeycode                    = "honeycode"
	IAM                          = "iam"
	IVS                          = "ivs"
	IdentityStore                = "identitystore"
	ImageBuilder                 = "imagebuilder"
	Inspector                    = "inspector"
	Inspector2                   = "inspector2"
	IoT                          = "iot"
	IoT1ClickDevices             = "iot1clickdevices"
	IoT1ClickProjects            = "iot1clickprojects"
	IoTAnalytics                 = "iotanalytics"
	IoTData                      = "iotdata"
	IoTDeviceAdvisor             = "iotdeviceadvisor"
	IoTEvents                    = "iotevents"
	IoTEventsData                = "ioteventsdata"
	IoTFleetHub                  = "iotfleethub"
	IoTJobsData                  = "iotjobsdata"
	IoTSecureTunneling           = "iotsecuretunneling"
	IoTSiteWise                  = "iotsitewise"
	IoTThingsGraph               = "iotthingsgraph"
	IoTTwinMaker                 = "iottwinmaker"
	IoTWireless                  = "iotwireless"
	KMS                          = "kms"
	Kafka                        = "kafka"
	KafkaConnect                 = "kafkaconnect"
	Kendra                       = "kendra"
	Keyspaces                    = "keyspaces"
	Kinesis                      = "kinesis"
	KinesisAnalytics             = "kinesisanalytics"
	KinesisAnalyticsV2           = "kinesisanalyticsv2"
	KinesisVideo                 = "kinesisvideo"
	KinesisVideoArchivedMedia    = "kinesisvideoarchivedmedia"
	KinesisVideoMedia            = "kinesisvideomedia"
	KinesisVideoSignaling        = "kinesisvideosignaling"
	LakeFormation                = "lakeformation"
	Lambda                       = "lambda"
	LexModels                    = "lexmodels"
	LexModelsV2                  = "lexmodelsv2"
	LexRuntime                   = "lexruntime"
	LexRuntimeV2                 = "lexruntimev2"
	LicenseManager               = "licensemanager"
	Lightsail                    = "lightsail"
	Location                     = "location"
	Logs                         = "logs"
	LookoutEquipment             = "lookoutequipment"
	LookoutMetrics               = "lookoutmetrics"
	LookoutVision                = "lookoutvision"
	MQ                           = "mq"
	MTurk                        = "mturk"
	MWAA                         = "mwaa"
	MachineLearning              = "machinelearning"
	Macie                        = "macie"
	Macie2                       = "macie2"
	ManagedBlockchain            = "managedblockchain"
	MarketplaceCatalog           = "marketplacecatalog"
	MarketplaceCommerceAnalytics = "marketplacecommerceanalytics"
	MarketplaceEntitlement       = "marketplaceentitlement"
	MarketplaceMetering          = "marketplacemetering"
	MediaConnect                 = "mediaconnect"
	MediaConvert                 = "mediaconvert"
	MediaLive                    = "medialive"
	MediaPackage                 = "mediapackage"
	MediaPackageVOD              = "mediapackagevod"
	MediaStore                   = "mediastore"
	MediaStoreData               = "mediastoredata"
	MediaTailor                  = "mediatailor"
	MemoryDB                     = "memorydb"
	MgH                          = "mgh"
	Mgn                          = "mgn"
	MigrationHubConfig           = "migrationhubconfig"
	MigrationHubRefactorSpaces   = "migrationhubrefactorspaces"
	MigrationHubStrategy         = "migrationhubstrategy"
	Mobile                       = "mobile"
	Neptune                      = "neptune"
	NetworkFirewall              = "networkfirewall"
	NetworkManager               = "networkmanager"
	Nimble                       = "nimble"
	OpenSearch                   = "opensearch"
	OpsWorks                     = "opsworks"
	OpsWorksCM                   = "opsworkscm"
	Organizations                = "organizations"
	Outposts                     = "outposts"
	PI                           = "pi"
	Panorama                     = "panorama"
	Personalize                  = "personalize"
	PersonalizeEvents            = "personalizeevents"
	PersonalizeRuntime           = "personalizeruntime"
	Pinpoint                     = "pinpoint"
	PinpointEmail                = "pinpointemail"
	PinpointSMSVoice             = "pinpointsmsvoice"
	Polly                        = "polly"
	Pricing                      = "pricing"
	Proton                       = "proton"
	QLDB                         = "qldb"
	QLDBSession                  = "qldbsession"
	QuickSight                   = "quicksight"
	RAM                          = "ram"
	RBin                         = "rbin"
	RDS                          = "rds"
	RDSData                      = "rdsdata"
	RUM                          = "rum"
	Redshift                     = "redshift"
	RedshiftData                 = "redshiftdata"
	RedshiftServerless           = "redshiftserverless"
	Rekognition                  = "rekognition"
	ResilienceHub                = "resiliencehub"
	ResourceGroups               = "resourcegroups"
	ResourceGroupsTaggingAPI     = "resourcegroupstaggingapi"
	RoboMaker                    = "robomaker"
	RolesAnywhere                = "rolesanywhere"
	Route53                      = "route53"
	Route53Domains               = "route53domains"
	Route53RecoveryCluster       = "route53recoverycluster"
	Route53RecoveryControlConfig = "route53recoverycontrolconfig"
	Route53RecoveryReadiness     = "route53recoveryreadiness"
	Route53Resolver              = "route53resolver"
	S3                           = "s3"
	S3Control                    = "s3control"
	S3Outposts                   = "s3outposts"
	SES                          = "ses"
	SESV2                        = "sesv2"
	SFN                          = "sfn"
	SMS                          = "sms"
	SNS                          = "sns"
	SQS                          = "sqs"
	SSM                          = "ssm"
	SSMContacts                  = "ssmcontacts"
	SSMIncidents                 = "ssmincidents"
	SSO                          = "sso"
	SSOAdmin                     = "ssoadmin"
	SSOOIDC                      = "ssooidc"
	STS                          = "sts"
	SWF                          = "swf"
	SageMaker                    = "sagemaker"
	SageMakerA2IRuntime          = "sagemakera2iruntime"
	SageMakerEdge                = "sagemakeredge"
	SageMakerFeatureStoreRuntime = "sagemakerfeaturestoreruntime"
	SageMakerRuntime             = "sagemakerruntime"
	SavingsPlans                 = "savingsplans"
	Schemas                      = "schemas"
	SecretsManager               = "secretsmanager"
	SecurityHub                  = "securityhub"
	ServerlessRepo               = "serverlessrepo"
	ServiceCatalog               = "servicecatalog"
	ServiceCatalogAppRegistry    = "servicecatalogappregistry"
	ServiceDiscovery             = "servicediscovery"
	ServiceQuotas                = "servicequotas"
	Shield                       = "shield"
	Signer                       = "signer"
	SimpleDB                     = "simpledb"
	SnowDeviceManagement         = "snowdevicemanagement"
	Snowball                     = "snowball"
	StorageGateway               = "storagegateway"
	Support                      = "support"
	Synthetics                   = "synthetics"
	Textract                     = "textract"
	TimestreamQuery              = "timestreamquery"
	TimestreamWrite              = "timestreamwrite"
	Transcribe                   = "transcribe"
	TranscribeStreaming          = "transcribestreaming"
	Transfer                     = "transfer"
	Translate                    = "translate"
	VoiceID                      = "voiceid"
	WAF                          = "waf"
	WAFRegional                  = "wafregional"
	WAFV2                        = "wafv2"
	WellArchitected              = "wellarchitected"
	Wisdom                       = "wisdom"
	WorkDocs                     = "workdocs"
	WorkLink                     = "worklink"
	WorkMail                     = "workmail"
	WorkMailMessageFlow          = "workmailmessageflow"
	WorkSpaces                   = "workspaces"
	WorkSpacesWeb                = "workspacesweb"
	XRay                         = "xray"
)
View Source
const (
	KendraEndpointID         = "kendra"
	RolesAnywhereEndpointID  = "rolesanywhere"
	Route53DomainsEndpointID = "route53domains"
	TranscribeEndpointID     = "transcribe"
)

This "should" be defined by the AWS Go SDK v2, but currently isn't.

Variables

This section is empty.

Functions

func AWSGoClientTypeName

func AWSGoClientTypeName(providerPackage string, version int) (string, error)

func AWSGoPackage

func AWSGoPackage(providerPackage string, version int) (string, error)

func AWSGoV1ClientTypeName

func AWSGoV1ClientTypeName(providerPackage string) (string, error)

func AWSGoV1Package

func AWSGoV1Package(providerPackage string) (string, error)

func AWSGoV2Package

func AWSGoV2Package(providerPackage string) (string, error)

func Aliases

func Aliases() []string

func DeprecatedEnvVar

func DeprecatedEnvVar(service string) string

func EnvVar

func EnvVar(service string) string

func FullHumanFriendly

func FullHumanFriendly(service string) (string, error)

func ProviderNameUpper

func ProviderNameUpper(service string) (string, error)

func ProviderPackageForAlias

func ProviderPackageForAlias(serviceAlias string) (string, error)

func ProviderPackages

func ProviderPackages() []string

Types

type ServiceDatum

type ServiceDatum struct {
	Aliases            []string
	Brand              string
	DeprecatedEnvVar   string
	EnvVar             string
	GoV1ClientTypeName string
	GoV1Package        string
	GoV2Package        string
	HumanFriendly      string
	ProviderNameUpper  string
}

Type ServiceDatum corresponds closely to columns in `names_data.csv` and are described in detail in README.md.

Jump to

Keyboard shortcuts

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