Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support property pattern validation #394

Merged
merged 19 commits into from
Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
74704ed
Run 'go get github.com/hashicorp/aws-cloudformation-resource-schema-s…
ewbankkit Feb 18, 2022
1e0691a
'cfschema.Sanitize' return an error.
ewbankkit Feb 18, 2022
171b797
Run 'go get github.com/hashicorp/aws-cloudformation-resource-schema-s…
ewbankkit Feb 18, 2022
3636350
Run 'go mod edit -replace github.com/xeipuuv/gojsonschema=github.com/…
ewbankkit Feb 18, 2022
a4e1c4c
Revert "Run 'go mod edit -replace github.com/xeipuuv/gojsonschema=git…
ewbankkit Feb 18, 2022
06f5229
Run 'go get github.com/hashicorp/aws-cloudformation-resource-schema-s…
ewbankkit Feb 18, 2022
76e9f76
Emit call to 'validate.StringMatch' for property pattern.
ewbankkit Feb 18, 2022
b3ef3c2
Add 'validate.StringMatch'.
ewbankkit Feb 18, 2022
865b522
Import regexp in generated code if necessary.
ewbankkit Feb 18, 2022
3de9d77
Support valid property patterns in downloaded CloudFormation resource…
ewbankkit Feb 18, 2022
a143270
Don't emit 'include regexp' if there are no validators.
ewbankkit Feb 20, 2022
aff0daf
Revert "Don't emit 'include regexp' if there are no validators."
ewbankkit Feb 20, 2022
99a45b7
Don't emit 'include regexp' if there are no validators.
ewbankkit Feb 20, 2022
76f3102
Emit regexp as '%q' due to embedded backtocks.
ewbankkit Feb 20, 2022
7dddd0e
Regenerate Terraform resource schemas with string attribute pattern v…
ewbankkit Feb 20, 2022
33179a6
r/awscc_logs_query_definition: Add hand-written acceptance test. Does…
ewbankkit Feb 20, 2022
b5bf369
Ensure that the CFN type is logged correctly.
ewbankkit Feb 20, 2022
6985a4d
Add CHANGELOG entry.
ewbankkit Feb 20, 2022
4e8ca4e
Run 'go get github.com/hashicorp/aws-cloudformation-resource-schema-s…
ewbankkit Feb 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## 0.13.0 (Unreleased)

FEATURES:

Support property `pattern` validation ([#88](https://github.com/hashicorp/terraform-provider-awscc/issues/88))

## [0.12.0](https://github.com/hashicorp/terraform-provider-awscc/releases/tag/v0.12.0) (February 17, 2022)

BREAKING CHANGES:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/aws/smithy-go v1.10.0
github.com/evanphx/json-patch v0.5.2 // indirect
github.com/google/go-cmp v0.5.7
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.0
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.16.0
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.3
github.com/hashicorp/go-hclog v1.0.0
github.com/hashicorp/go-multierror v1.1.1
Expand Down
8 changes: 8 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.0 h1:n/ICe8cTnmPQfvn2bupsrubnwIEXcHLrE18RUAdVcgY=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.0/go.mod h1:C6GVuO9RWOrt6QCGTmLCOYuSHpkfQSBDuRqTteOlo0g=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.1-0.20220218184328-15be89965483 h1:d1aOm82tPbx4gJezcutU6otdtR1/gL1E0kDQb7Zn80M=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.1-0.20220218184328-15be89965483/go.mod h1:C6GVuO9RWOrt6QCGTmLCOYuSHpkfQSBDuRqTteOlo0g=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.1-0.20220218201529-42afe5eba878 h1:87EM8r5q4/zJI6jajr+afNIp/xhwqclFbST4RxlbPlQ=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.1-0.20220218201529-42afe5eba878/go.mod h1:Vh1zhjMM0j3Dr+dFkR5BC+ZTvvruJrSY1PMRkMkMNYg=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.1-0.20220218205657-286a497ed650 h1:hdNk4xkrnQjpU4zR8p1zdsfycays6yvYruUs+2+WezI=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.15.1-0.20220218205657-286a497ed650/go.mod h1:C6GVuO9RWOrt6QCGTmLCOYuSHpkfQSBDuRqTteOlo0g=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.16.0 h1:r2RUzeK2gAitl0HY9SLH1axAEu+6aPBY20g1jOoBepM=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.16.0/go.mod h1:C6GVuO9RWOrt6QCGTmLCOYuSHpkfQSBDuRqTteOlo0g=
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.3 h1:fw9FTvekjXAQrHwkYwEBnesZS/lb/XZsV/5hqA1lxqA=
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.3/go.mod h1:mt5V7NshmBoY+q96yicADdPd/Eu2AyNXVdzlO4LqFM8=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
Expand Down
57 changes: 38 additions & 19 deletions internal/aws/amplify/app_resource_gen.go

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

Loading