Skip to content

Commit

Permalink
[datadog_integration_aws_account] Add `datadog_integration_aws_accoun…
Browse files Browse the repository at this point in the history
…t` resource (#2682)

* WIP

* Remove support for namespace_filters.include/exclude_all

* Fix validation and refactor

* Add tests and upate example

* Set list attributes to optional/computed

* Fixes and helpers to handle defaults in nested blocks with oneOf constraints (#2700)

* renames

* type changes

* remove bunch of computed

* handle some top level

* few more defaults

* add helper func to remove defaults when in oneOF

* Rename resource to datadog_integration_aws_account and fix test

* Fix secret_access_key and add key-based account test

* Add regex validators, cleanup resource validators

* Update import and example and add deprecation message to old resources

* Add missing resource

* docs

* fix cassettes

* add default for tags

* Update docs/resources/integration_aws_account.md

Co-authored-by: Michael Cretzman <58786311+michaelcretzman@users.noreply.github.com>

* Exclude from generate-docs and manually edit docs to move auth_config under required fields

* Rework docs on migrating from v1 and import command

* Update docs

---------

Co-authored-by: skarimo <40482491+skarimo@users.noreply.github.com>
Co-authored-by: Sherzod Karimov <sherzod.karimov@datadoghq.com>
Co-authored-by: Michael Cretzman <58786311+michaelcretzman@users.noreply.github.com>
  • Loading branch information
4 people authored Dec 13, 2024
1 parent 1ebba65 commit e570413
Show file tree
Hide file tree
Showing 19 changed files with 2,009 additions and 20 deletions.
5 changes: 5 additions & 0 deletions datadog/fwprovider/framework_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var Resources = []func() resource.Resource{
NewApplicationKeyResource,
NewApmRetentionFilterResource,
NewApmRetentionFiltersOrderResource,
NewIntegrationAwsAccountResource,
NewCatalogEntityResource,
NewDashboardListResource,
NewDomainAllowlistResource,
Expand Down Expand Up @@ -398,6 +399,10 @@ func defaultConfigureFunc(p *FrameworkProvider, request *provider.ConfigureReque
ddClientConfig.SetUnstableOperationEnabled("v2.UpdateOpenAPI", true)
ddClientConfig.SetUnstableOperationEnabled("v2.GetOpenAPI", true)
ddClientConfig.SetUnstableOperationEnabled("v2.DeleteOpenAPI", true)
ddClientConfig.SetUnstableOperationEnabled("v2.CreateAWSAccount", true)
ddClientConfig.SetUnstableOperationEnabled("v2.UpdateAWSAccount", true)
ddClientConfig.SetUnstableOperationEnabled("v2.DeleteAWSAccount", true)
ddClientConfig.SetUnstableOperationEnabled("v2.GetAWSAccount", true)

if !config.ApiUrl.IsNull() && config.ApiUrl.ValueString() != "" {
parsedAPIURL, parseErr := url.Parse(config.ApiUrl.ValueString())
Expand Down
Loading

0 comments on commit e570413

Please sign in to comment.