Skip to content

Commit

Permalink
names: Rework attr constants
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed May 10, 2024
1 parent 8dc0185 commit 5f005a4
Show file tree
Hide file tree
Showing 9 changed files with 317 additions and 121 deletions.
2 changes: 1 addition & 1 deletion names/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The columns of `data/names_data.csv` are as follows:
| 21 | **EndpointOnly** | Code | If **NotImplemented** is non-blank, whether the service endpoint should be included in the provider `endpoints` configuration |
| 22 | **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. |
| 23 | **DeprecatedEnvVar** | Code | Deprecated `AWS_<service>_ENDPOINT` envvar defined for some services |
| 24 | **TfAwsEnvVar** | Code | `TF_AWS_<service>_ENDPOINT` envvar defined for some services |
| 24 | **TFAWSEnvVar** | Code | `TF_AWS_<service>_ENDPOINT` envvar defined for some services |
| 25 | **Note** | Reference | Very brief note usually to explain why excluded |

For more information about service naming, see [the Naming Guide](https://hashicorp.github.io/terraform-provider-aws/naming/#service-identifier).
88 changes: 88 additions & 0 deletions names/attr_constants.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
arn,ARN
arns,ARNs
access_key,AccessKey
account_id,AccountID
action,Action
address,Address
auto_minor_version_upgrade,AutoMinorVersionUpgrade
availability_zone,AvailabilityZone
availability_zones,AvailabilityZones
bucket,Bucket
bucket_name,BucketName
bucket_prefix,BucketPrefix
catalog_id,CatalogID
cluster_identifier,ClusterIdentifier
configuration,Configuration
created_at,CreatedAt
created_date,CreatedDate
database_name,DatabaseName
delete_on_termination,DeleteOnTermination
description,Description
destination,Destination
device_name,DeviceName
domain_name,DomainName
enabled,Enabled
encrypted,Encrypted
endpoint,Endpoint
endpoints,Endpoints
engine_version,EngineVersion
file_system_id,FileSystemID
filter,Filter
force_destroy,ForceDestroy
format,Format
hosted_zone_id,HostedZoneID
id,ID
instance_id,InstanceID
instance_type,InstanceType
kms_key_arn,KMSKeyARN
kms_key_id,KMSKeyID
key,Key
last_updated_date,LastUpdatedDate
max,Max
min,Min
mode,Mode
name,Name
name_prefix,NamePrefix
network_interface_id,NetworkInterfaceID
owner_id,OwnerID
parameter,Parameter
parameters,Parameters
password,Password
path,Path
policy,Policy
port,Port
preferred_maintenance_window,PreferredMaintenanceWindow
prefix,Prefix
priority,Priority
profile,Profile
protocol,Protocol
region,Region
resource_arn,ResourceARN
role_arn,RoleARN
secret_key,SecretKey
security_group_ids,SecurityGroupIDs
security_groups,SecurityGroups
session,Session
shared_config_files,SharedConfigFiles
skip_credentials_validation,SkipCredentialsValidation
skip_requesting_account_id,SkipRequestingAccountID
source,Source
state,State
status,Status
subnet_id,SubnetID
subnet_ids,SubnetIDs
tags,Tags
tags_all,TagsAll
target,Target
timeouts,Timeouts
transit_gateway_attachment_id,TransitGatewayAttachmentID
transit_gateway_id,TransitGatewayID
type,Type
url,URL
unit,Unit
username,Username
vpc_id,VPCID
vpc_security_group_ids,VPCSecurityGroupIDs
value,Value
values,Values
version,Version
95 changes: 0 additions & 95 deletions names/attr_consts.go

This file was deleted.

201 changes: 201 additions & 0 deletions names/attr_consts_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5f005a4

Please sign in to comment.