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

r/aws_kendra_data_source #25686

Merged
merged 62 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
00e011f
feat(kendra): datasource basic schema
GlennChia Jun 29, 2022
01b03d5
feat(kendra): datasource basic read
GlennChia Jun 29, 2022
b6cf527
feat(kendra): datasource basic create
GlennChia Jun 29, 2022
eaf335e
feat(kendra): datasource basic update
GlennChia Jun 29, 2022
33ef9ba
feat(kendra): datasource basic delete
GlennChia Jun 29, 2022
e99b0ea
feat(kendra): aws_kendra_data_source provider
GlennChia Jun 29, 2022
69dfc2c
test(kendra): datasource basic test
GlennChia Jun 29, 2022
4dc39ce
test(kendra): datasource disappears test
GlennChia Jun 29, 2022
ca61a1b
test(kendra): datasource update description
GlennChia Jun 30, 2022
de9e98d
test(kendra): datasource update language_code
GlennChia Jun 30, 2022
6b27104
test(kendra): datasource update tags
GlennChia Jun 30, 2022
6e75013
feat(kendra): role_arn conflicts with type CUSTOM
GlennChia Jun 30, 2022
539e92a
feat(kendra): add s3_configuration arg
GlennChia Jun 30, 2022
0a32357
test(kendra): custom diff with configuration
GlennChia Jun 30, 2022
2ae4ee8
test(kendra): datasource s3 config update bucket
GlennChia Jun 30, 2022
e2355f9
test(kendra): datasource s3 config update acl
GlennChia Jun 30, 2022
bf103fe
test(kendra): datasource update role_arn
GlennChia Jun 30, 2022
ad85f69
feat(kendra): schedule conflicts with type CUSTOM
GlennChia Jun 30, 2022
2ec69f0
test(kendra): datasource update schedule
GlennChia Jun 30, 2022
9bfc06d
test(kendra): datasource update doc metadata conf
GlennChia Jun 30, 2022
70e1ea1
test(kendra): datasource update exc inc pat pref
GlennChia Jun 30, 2022
768c324
feat(kendra): datasource custom_doc_enrich_config
GlennChia Jul 2, 2022
a50a108
test(kendra): custom doc enrich inline config
GlennChia Jul 2, 2022
e7762d8
style(kendra): datasource fix lint errors
GlennChia Jul 8, 2022
1649a57
fix(kendra): const ISO8601UTC value to -07:00
GlennChia Jul 8, 2022
d5b910d
fix(kendra): datasource date_value DiffSuppress
GlennChia Jul 8, 2022
677c338
refactor(kendra): rm date_value DiffSuppressFunc
GlennChia Jul 25, 2022
95af770
test(kendra): datasource test long_value
GlennChia Jul 25, 2022
b2523e4
test(kendra): datasource refactor s3 rsrc to base
GlennChia Jul 26, 2022
c82ea5e
test(kendra): datasource hook update invoc cond
GlennChia Jul 27, 2022
ab4c459
test(kendra): datasource hook update role_arn
GlennChia Jul 27, 2022
4938306
test(kendra): datasource hook update s3_bucket
GlennChia Jul 27, 2022
3a6c2c0
test(kendra): datasource hook update lambda_arn
GlennChia Jul 27, 2022
1dd32bf
refactor(kendra): datasource patterns min to 0
GlennChia Jul 27, 2022
d211207
feat(kendra): datasource web_crawler_config
GlennChia Jul 28, 2022
ff534eb
test(kendra): datasource web_crawler seed urls
GlennChia Jul 28, 2022
9fb6010
test(kendra): datasource web_crawler crawl depth
GlennChia Jul 28, 2022
7744fd4
test(kendra): datasource web_crawler max links pg
GlennChia Jul 28, 2022
6ae0e8d
test(kendra): datasource web_crawler max url per m
GlennChia Jul 28, 2022
9807dfc
test(kendra): datasource web_crawler inc exc patt
GlennChia Jul 28, 2022
e505fc4
test(kendra): datasource web_crawler url site maps
GlennChia Jul 28, 2022
9d79465
test(kendra): datasource web_crawler mode
GlennChia Jul 28, 2022
26bf7c6
test(kendra): datasource web_crawler auth config
GlennChia Jul 28, 2022
37d4f03
test(kendra): datasource web_crawler auth creds
GlennChia Jul 28, 2022
41f7f53
test(kendra): datasource web_crawler proxy config
GlennChia Jul 28, 2022
d148d09
refactor(kendra): cast variables
GlennChia Jul 28, 2022
e32cec2
test(kendra): datasource web_crawler proxy creds
GlennChia Jul 29, 2022
2b2b23e
test(kendra): depends_on for second secret_version
GlennChia Jul 29, 2022
4da1f2d
Merge branch 'main' into f-aws_kendra_data_source
GlennChia Jul 29, 2022
09c41b4
refactor(kendra): rename flex FlattenStringValSet
GlennChia Jul 29, 2022
88c930f
style(kendra): fix terrafmt errs
GlennChia Jul 29, 2022
f3db19d
refactor(kendra): use ProtoV5ProviderFactories
GlennChia Jul 29, 2022
f4f7e30
style(kendra): fix semgrep errs for URL
GlennChia Jul 29, 2022
76638e7
style(kendra): fix typo
GlennChia Jul 29, 2022
b807945
refactor(kendra): generic enum handling
GlennChia Jul 29, 2022
0a54bec
refactor(kendra): datasource rm unnecessary conv
GlennChia Jul 29, 2022
f9dd1de
feat(kendra): datasource update name
GlennChia Jul 29, 2022
2c1872f
docs(kendra): add aws_kendra_data_source
GlennChia Jul 29, 2022
431e65c
ci(kendra): changelog aws_kendra_data_source
GlennChia Jul 29, 2022
e75930a
docs(kendra): datasource fix broken links
GlennChia Jul 29, 2022
0ed37f7
refactor(kendra): unserialize acc tests
GlennChia Aug 1, 2022
9fd362e
fix(kendra): datasource retry if iam perm not prop
GlennChia Aug 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/25686.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_kendra_data_source
```
15 changes: 15 additions & 0 deletions internal/flex/flex.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ func FlattenStringList(list []*string) []interface{} {
return vs
}

// Takes list of pointers to strings. Expand to an array
// of raw strings and returns a []interface{}
// to keep compatibility w/ schema.NewSetschema.NewSet
func FlattenStringValueList(list []string) []interface{} {
vs := make([]interface{}, 0, len(list))
for _, v := range list {
vs = append(vs, v)
}
return vs
}

// Expands a map of string to interface to a map of string to *string
func ExpandStringMap(m map[string]interface{}) map[string]*string {
stringMap := make(map[string]*string, len(m))
Expand Down Expand Up @@ -82,6 +93,10 @@ func FlattenStringSet(list []*string) *schema.Set {
return schema.NewSet(schema.HashString, FlattenStringList(list)) // nosemgrep:ci.helper-schema-Set-extraneous-NewSet-with-FlattenStringList
}

func FlattenStringValueSet(list []string) *schema.Set {
return schema.NewSet(schema.HashString, FlattenStringValueList(list)) // nosemgrep: helper-schema-Set-extraneous-NewSet-with-FlattenStringList
}

// Takes the result of schema.Set of strings and returns a []*int64
func ExpandInt64Set(configured *schema.Set) []*int64 {
return ExpandInt64List(configured.List())
Expand Down
1 change: 1 addition & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,7 @@ func Provider() *schema.Provider {
"aws_mskconnect_custom_plugin": kafkaconnect.ResourceCustomPlugin(),
"aws_mskconnect_worker_configuration": kafkaconnect.ResourceWorkerConfiguration(),

"aws_kendra_data_source": kendra.ResourceDataSource(),
"aws_kendra_experience": kendra.ResourceExperience(),
"aws_kendra_faq": kendra.ResourceFaq(),
"aws_kendra_index": kendra.ResourceIndex(),
Expand Down
Loading