From f49278c34c8fb93f5505e78df2adf7f632be9ddc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:50:11 +0000 Subject: [PATCH 1/2] provider(deps): bump github.com/pulumi/pulumi-terraform-bridge/v3 Bumps the modules group with 1 update in the /provider directory: [github.com/pulumi/pulumi-terraform-bridge/v3](https://github.com/pulumi/pulumi-terraform-bridge). Updates `github.com/pulumi/pulumi-terraform-bridge/v3` from 3.90.0 to 3.91.0 - [Release notes](https://github.com/pulumi/pulumi-terraform-bridge/releases) - [Changelog](https://github.com/pulumi/pulumi-terraform-bridge/blob/master/CHANGELOG_OLD.md) - [Commits](https://github.com/pulumi/pulumi-terraform-bridge/compare/v3.90.0...v3.91.0) --- updated-dependencies: - dependency-name: github.com/pulumi/pulumi-terraform-bridge/v3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: modules ... Signed-off-by: dependabot[bot] --- provider/go.mod | 13 ++++++------- provider/go.sum | 26 ++++++++++++-------------- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 7ab543d8..189b79dd 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -6,8 +6,8 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf require ( github.com/dynatrace-oss/terraform-provider-dynatrace v1.67.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 - github.com/pulumi/pulumi/sdk/v3 v3.130.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0 + github.com/pulumi/pulumi/sdk/v3 v3.133.0 ) require ( @@ -164,12 +164,12 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect + github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.14.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.9.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.130.0 // indirect + github.com/pulumi/pulumi-yaml v1.10.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.133.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect @@ -190,7 +190,6 @@ require ( github.com/stretchr/testify v1.9.0 // indirect github.com/teekennedy/goldmark-markdown v0.3.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/ulikunitz/xz v0.5.10 // indirect diff --git a/provider/go.sum b/provider/go.sum index cba9de12..80700e1b 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1937,24 +1937,24 @@ github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3d github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= -github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= +github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= +github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.14.0 h1:CKL7lLF81Fq6VRhA5TNFsSMnHraTNCUzIhqCzYX8Wzk= -github.com/pulumi/pulumi-java/pkg v0.14.0/go.mod h1:VybuJMWJtJc9ZNbt1kcYH4TbpocMx9mEi7YWL2Co99c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 h1:e7xfYAiXCE8LCwfKvbGeNAjdPmKwPM3kavEXECt3wvs= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0/go.mod h1:dIVp4qG+GsUwmpz40L7Z+PZnzHf3cQq1CAFwhz++ris= +github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns= +github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0 h1:E4YTsAI8oAF8cDj5XR1cbHUfINCc1IJxElriOZBdsxE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0/go.mod h1:DvueDDtOIbf7W1Or4oH0o7F990ozp/ROmlm/vgLoe+g= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.9.2 h1:BCUuRPA1USmFXrExiHRU8yJ+OiphLYnroPxKRgGCJrs= -github.com/pulumi/pulumi-yaml v1.9.2/go.mod h1:sIh/Oa/NLRGTojevh8D2/cPDPvo2j9iXegVDQIKKfw4= -github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= -github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= -github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi-yaml v1.10.0 h1:djbgMJCxJBmYMr4kOpAXH5iauxGohYjEuTLfxD3NUUI= +github.com/pulumi/pulumi-yaml v1.10.0/go.mod h1://lTvwHpgJ+WBKeMGiLrd/jinc4dl3eWV5LZ3G8iCfE= +github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= +github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2047,8 +2047,6 @@ github.com/teekennedy/goldmark-markdown v0.3.0 h1:ik9/biVGCwGWFg8dQ3KVm2pQ/wiiG0 github.com/teekennedy/goldmark-markdown v0.3.0/go.mod h1:kMhDz8La77A9UHvJGsxejd0QUflN9sS+QXCqnhmxmNo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= From cc4dd4a1eeca96b2a579182ce0cc95a08b2042d7 Mon Sep 17 00:00:00 2001 From: Piers Karsenbarg Date: Tue, 24 Sep 2024 17:24:09 +0100 Subject: [PATCH 2/2] Updated terrafor bridge module --- sdk/go/dynatrace/getAlertingProfile.go | 18 ++++++++++++------ sdk/go/dynatrace/getAlertingProfiles.go | 18 ++++++++++++------ sdk/go/dynatrace/getApiToken.go | 18 ++++++++++++------ sdk/go/dynatrace/getApiTokens.go | 18 ++++++++++++------ sdk/go/dynatrace/getApplication.go | 18 ++++++++++++------ sdk/go/dynatrace/getAttackAlerting.go | 18 ++++++++++++------ sdk/go/dynatrace/getAutotag.go | 18 ++++++++++++------ sdk/go/dynatrace/getAwsCredentials.go | 18 ++++++++++++------ sdk/go/dynatrace/getAwsIamExternal.go | 18 ++++++++++++------ sdk/go/dynatrace/getAwsSupportedServices.go | 18 ++++++++++++------ sdk/go/dynatrace/getAzureCredentials.go | 18 ++++++++++++------ sdk/go/dynatrace/getAzureSupportedServices.go | 18 ++++++++++++------ sdk/go/dynatrace/getCalculatedServiceMetric.go | 18 ++++++++++++------ sdk/go/dynatrace/getCredentials.go | 18 ++++++++++++------ sdk/go/dynatrace/getDashboard.go | 18 ++++++++++++------ sdk/go/dynatrace/getDocuments.go | 18 ++++++++++++------ sdk/go/dynatrace/getEntities.go | 18 ++++++++++++------ sdk/go/dynatrace/getEntity.go | 18 ++++++++++++------ .../dynatrace/getFailureDetectionParameters.go | 18 ++++++++++++------ sdk/go/dynatrace/getGenericSetting.go | 18 ++++++++++++------ sdk/go/dynatrace/getGenericSettings.go | 18 ++++++++++++------ sdk/go/dynatrace/getHost.go | 18 ++++++++++++------ sdk/go/dynatrace/getHubItems.go | 18 ++++++++++++------ sdk/go/dynatrace/getIamGroup.go | 18 ++++++++++++------ sdk/go/dynatrace/getIamGroups.go | 18 ++++++++++++------ sdk/go/dynatrace/getIamPolicies.go | 18 ++++++++++++------ sdk/go/dynatrace/getIamPolicy.go | 18 ++++++++++++------ sdk/go/dynatrace/getIamUser.go | 18 ++++++++++++------ sdk/go/dynatrace/getLambdaAgentVersion.go | 18 ++++++++++++------ sdk/go/dynatrace/getManagementZone.go | 18 ++++++++++++------ sdk/go/dynatrace/getManagementZoneV2.go | 18 ++++++++++++------ sdk/go/dynatrace/getManagementZones.go | 18 ++++++++++++------ sdk/go/dynatrace/getMobileApplication.go | 18 ++++++++++++------ sdk/go/dynatrace/getProcess.go | 18 ++++++++++++------ sdk/go/dynatrace/getProcessGroup.go | 18 ++++++++++++------ sdk/go/dynatrace/getRemoteEnvironments.go | 18 ++++++++++++------ sdk/go/dynatrace/getRequestAttribute.go | 18 ++++++++++++------ sdk/go/dynatrace/getRequestNaming.go | 18 ++++++++++++------ sdk/go/dynatrace/getService.go | 18 ++++++++++++------ sdk/go/dynatrace/getSlo.go | 18 ++++++++++++------ sdk/go/dynatrace/getSyntheticLocation.go | 18 ++++++++++++------ sdk/go/dynatrace/getSyntheticLocations.go | 18 ++++++++++++------ sdk/go/dynatrace/getSyntheticNodes.go | 18 ++++++++++++------ sdk/go/dynatrace/getTenant.go | 18 ++++++++++++------ sdk/go/dynatrace/getUpdateWindows.go | 18 ++++++++++++------ sdk/go/dynatrace/getVulnerabilityAlerting.go | 18 ++++++++++++------ sdk/nodejs/getAlertingProfile.ts | 6 ++++-- sdk/nodejs/getAlertingProfiles.ts | 7 +++++-- sdk/nodejs/getApiToken.ts | 6 ++++-- sdk/nodejs/getApiTokens.ts | 5 +++-- sdk/nodejs/getApplication.ts | 6 ++++-- sdk/nodejs/getAttackAlerting.ts | 6 ++++-- sdk/nodejs/getAutotag.ts | 6 ++++-- sdk/nodejs/getAwsCredentials.ts | 6 ++++-- sdk/nodejs/getAwsIamExternal.ts | 5 +++-- sdk/nodejs/getAwsSupportedServices.ts | 7 +++++-- sdk/nodejs/getAzureCredentials.ts | 6 ++++-- sdk/nodejs/getAzureSupportedServices.ts | 7 +++++-- sdk/nodejs/getCalculatedServiceMetric.ts | 6 ++++-- sdk/nodejs/getCredentials.ts | 9 +++++++-- sdk/nodejs/getDashboard.ts | 7 +++++-- sdk/nodejs/getDocuments.ts | 7 +++++-- sdk/nodejs/getEntities.ts | 10 ++++++++-- sdk/nodejs/getEntity.ts | 11 +++++++++-- sdk/nodejs/getFailureDetectionParameters.ts | 6 ++++-- sdk/nodejs/getGenericSetting.ts | 9 +++++++-- sdk/nodejs/getGenericSettings.ts | 9 +++++++-- sdk/nodejs/getHost.ts | 7 +++++-- sdk/nodejs/getHubItems.ts | 7 +++++-- sdk/nodejs/getIamGroup.ts | 6 ++++-- sdk/nodejs/getIamGroups.ts | 5 +++-- sdk/nodejs/getIamPolicies.ts | 9 +++++++-- sdk/nodejs/getIamPolicy.ts | 9 +++++++-- sdk/nodejs/getIamUser.ts | 6 ++++-- sdk/nodejs/getLambdaAgentVersion.ts | 13 +++++++++++-- sdk/nodejs/getManagementZone.ts | 6 ++++-- sdk/nodejs/getManagementZoneV2.ts | 6 ++++-- sdk/nodejs/getManagementZones.ts | 5 +++-- sdk/nodejs/getMobileApplication.ts | 6 ++++-- sdk/nodejs/getProcess.ts | 7 +++++-- sdk/nodejs/getProcessGroup.ts | 7 +++++-- sdk/nodejs/getRemoteEnvironments.ts | 5 +++-- sdk/nodejs/getRequestAttribute.ts | 6 ++++-- sdk/nodejs/getRequestNaming.ts | 6 ++++-- sdk/nodejs/getService.ts | 8 ++++++-- sdk/nodejs/getSlo.ts | 6 ++++-- sdk/nodejs/getSyntheticLocation.ts | 13 +++++++++++-- sdk/nodejs/getSyntheticLocations.ts | 9 +++++++-- sdk/nodejs/getSyntheticNodes.ts | 5 +++-- sdk/nodejs/getTenant.ts | 5 +++-- sdk/nodejs/getUpdateWindows.ts | 6 ++++-- sdk/nodejs/getVulnerabilityAlerting.ts | 6 ++++-- 92 files changed, 781 insertions(+), 368 deletions(-) diff --git a/sdk/go/dynatrace/getAlertingProfile.go b/sdk/go/dynatrace/getAlertingProfile.go index 051bfc5a..f74c40a1 100644 --- a/sdk/go/dynatrace/getAlertingProfile.go +++ b/sdk/go/dynatrace/getAlertingProfile.go @@ -76,14 +76,20 @@ type LookupAlertingProfileResult struct { func LookupAlertingProfileOutput(ctx *pulumi.Context, args LookupAlertingProfileOutputArgs, opts ...pulumi.InvokeOption) LookupAlertingProfileResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupAlertingProfileResult, error) { + ApplyT(func(v interface{}) (LookupAlertingProfileResultOutput, error) { args := v.(LookupAlertingProfileArgs) - r, err := LookupAlertingProfile(ctx, &args, opts...) - var s LookupAlertingProfileResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupAlertingProfileResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAlertingProfile:getAlertingProfile", args, &rv, "", opts...) + if err != nil { + return LookupAlertingProfileResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupAlertingProfileResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupAlertingProfileResultOutput), nil + } + return output, nil }).(LookupAlertingProfileResultOutput) } diff --git a/sdk/go/dynatrace/getAlertingProfiles.go b/sdk/go/dynatrace/getAlertingProfiles.go index 918dc51d..3ee31bf2 100644 --- a/sdk/go/dynatrace/getAlertingProfiles.go +++ b/sdk/go/dynatrace/getAlertingProfiles.go @@ -37,14 +37,20 @@ type GetAlertingProfilesResult struct { func GetAlertingProfilesOutput(ctx *pulumi.Context, args GetAlertingProfilesOutputArgs, opts ...pulumi.InvokeOption) GetAlertingProfilesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetAlertingProfilesResult, error) { + ApplyT(func(v interface{}) (GetAlertingProfilesResultOutput, error) { args := v.(GetAlertingProfilesArgs) - r, err := GetAlertingProfiles(ctx, &args, opts...) - var s GetAlertingProfilesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetAlertingProfilesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAlertingProfiles:getAlertingProfiles", args, &rv, "", opts...) + if err != nil { + return GetAlertingProfilesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetAlertingProfilesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetAlertingProfilesResultOutput), nil + } + return output, nil }).(GetAlertingProfilesResultOutput) } diff --git a/sdk/go/dynatrace/getApiToken.go b/sdk/go/dynatrace/getApiToken.go index 934ad412..af094b1f 100644 --- a/sdk/go/dynatrace/getApiToken.go +++ b/sdk/go/dynatrace/getApiToken.go @@ -77,14 +77,20 @@ type LookupApiTokenResult struct { func LookupApiTokenOutput(ctx *pulumi.Context, args LookupApiTokenOutputArgs, opts ...pulumi.InvokeOption) LookupApiTokenResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupApiTokenResult, error) { + ApplyT(func(v interface{}) (LookupApiTokenResultOutput, error) { args := v.(LookupApiTokenArgs) - r, err := LookupApiToken(ctx, &args, opts...) - var s LookupApiTokenResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupApiTokenResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getApiToken:getApiToken", args, &rv, "", opts...) + if err != nil { + return LookupApiTokenResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupApiTokenResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupApiTokenResultOutput), nil + } + return output, nil }).(LookupApiTokenResultOutput) } diff --git a/sdk/go/dynatrace/getApiTokens.go b/sdk/go/dynatrace/getApiTokens.go index d2c78db2..b0e56734 100644 --- a/sdk/go/dynatrace/getApiTokens.go +++ b/sdk/go/dynatrace/getApiTokens.go @@ -55,13 +55,19 @@ type GetApiTokensResult struct { } func GetApiTokensOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetApiTokensResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetApiTokensResult, error) { - r, err := GetApiTokens(ctx, opts...) - var s GetApiTokensResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetApiTokensResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetApiTokensResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getApiTokens:getApiTokens", nil, &rv, "", opts...) + if err != nil { + return GetApiTokensResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetApiTokensResultOutput) + if secret { + return pulumi.ToSecret(output).(GetApiTokensResultOutput), nil + } + return output, nil }).(GetApiTokensResultOutput) } diff --git a/sdk/go/dynatrace/getApplication.go b/sdk/go/dynatrace/getApplication.go index c53f0bc8..b391c94d 100644 --- a/sdk/go/dynatrace/getApplication.go +++ b/sdk/go/dynatrace/getApplication.go @@ -75,14 +75,20 @@ type GetApplicationResult struct { func GetApplicationOutput(ctx *pulumi.Context, args GetApplicationOutputArgs, opts ...pulumi.InvokeOption) GetApplicationResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetApplicationResult, error) { + ApplyT(func(v interface{}) (GetApplicationResultOutput, error) { args := v.(GetApplicationArgs) - r, err := GetApplication(ctx, &args, opts...) - var s GetApplicationResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetApplicationResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getApplication:getApplication", args, &rv, "", opts...) + if err != nil { + return GetApplicationResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetApplicationResultOutput) + if secret { + return pulumi.ToSecret(output).(GetApplicationResultOutput), nil + } + return output, nil }).(GetApplicationResultOutput) } diff --git a/sdk/go/dynatrace/getAttackAlerting.go b/sdk/go/dynatrace/getAttackAlerting.go index 6fc2dfbb..ffa8455a 100644 --- a/sdk/go/dynatrace/getAttackAlerting.go +++ b/sdk/go/dynatrace/getAttackAlerting.go @@ -67,14 +67,20 @@ type LookupAttackAlertingResult struct { func LookupAttackAlertingOutput(ctx *pulumi.Context, args LookupAttackAlertingOutputArgs, opts ...pulumi.InvokeOption) LookupAttackAlertingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupAttackAlertingResult, error) { + ApplyT(func(v interface{}) (LookupAttackAlertingResultOutput, error) { args := v.(LookupAttackAlertingArgs) - r, err := LookupAttackAlerting(ctx, &args, opts...) - var s LookupAttackAlertingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupAttackAlertingResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAttackAlerting:getAttackAlerting", args, &rv, "", opts...) + if err != nil { + return LookupAttackAlertingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupAttackAlertingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupAttackAlertingResultOutput), nil + } + return output, nil }).(LookupAttackAlertingResultOutput) } diff --git a/sdk/go/dynatrace/getAutotag.go b/sdk/go/dynatrace/getAutotag.go index 9e342bef..cfcc63ad 100644 --- a/sdk/go/dynatrace/getAutotag.go +++ b/sdk/go/dynatrace/getAutotag.go @@ -116,14 +116,20 @@ type LookupAutotagResult struct { func LookupAutotagOutput(ctx *pulumi.Context, args LookupAutotagOutputArgs, opts ...pulumi.InvokeOption) LookupAutotagResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupAutotagResult, error) { + ApplyT(func(v interface{}) (LookupAutotagResultOutput, error) { args := v.(LookupAutotagArgs) - r, err := LookupAutotag(ctx, &args, opts...) - var s LookupAutotagResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupAutotagResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAutotag:getAutotag", args, &rv, "", opts...) + if err != nil { + return LookupAutotagResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupAutotagResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupAutotagResultOutput), nil + } + return output, nil }).(LookupAutotagResultOutput) } diff --git a/sdk/go/dynatrace/getAwsCredentials.go b/sdk/go/dynatrace/getAwsCredentials.go index 09a27bd8..46e35774 100644 --- a/sdk/go/dynatrace/getAwsCredentials.go +++ b/sdk/go/dynatrace/getAwsCredentials.go @@ -38,14 +38,20 @@ type LookupAwsCredentialsResult struct { func LookupAwsCredentialsOutput(ctx *pulumi.Context, args LookupAwsCredentialsOutputArgs, opts ...pulumi.InvokeOption) LookupAwsCredentialsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupAwsCredentialsResult, error) { + ApplyT(func(v interface{}) (LookupAwsCredentialsResultOutput, error) { args := v.(LookupAwsCredentialsArgs) - r, err := LookupAwsCredentials(ctx, &args, opts...) - var s LookupAwsCredentialsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupAwsCredentialsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAwsCredentials:getAwsCredentials", args, &rv, "", opts...) + if err != nil { + return LookupAwsCredentialsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupAwsCredentialsResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupAwsCredentialsResultOutput), nil + } + return output, nil }).(LookupAwsCredentialsResultOutput) } diff --git a/sdk/go/dynatrace/getAwsIamExternal.go b/sdk/go/dynatrace/getAwsIamExternal.go index 3fe04689..ab6dbe61 100644 --- a/sdk/go/dynatrace/getAwsIamExternal.go +++ b/sdk/go/dynatrace/getAwsIamExternal.go @@ -29,13 +29,19 @@ type GetAwsIamExternalResult struct { } func GetAwsIamExternalOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetAwsIamExternalResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetAwsIamExternalResult, error) { - r, err := GetAwsIamExternal(ctx, opts...) - var s GetAwsIamExternalResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetAwsIamExternalResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetAwsIamExternalResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAwsIamExternal:getAwsIamExternal", nil, &rv, "", opts...) + if err != nil { + return GetAwsIamExternalResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetAwsIamExternalResultOutput) + if secret { + return pulumi.ToSecret(output).(GetAwsIamExternalResultOutput), nil + } + return output, nil }).(GetAwsIamExternalResultOutput) } diff --git a/sdk/go/dynatrace/getAwsSupportedServices.go b/sdk/go/dynatrace/getAwsSupportedServices.go index f87c941e..5e6a4855 100644 --- a/sdk/go/dynatrace/getAwsSupportedServices.go +++ b/sdk/go/dynatrace/getAwsSupportedServices.go @@ -44,14 +44,20 @@ type GetAwsSupportedServicesResult struct { func GetAwsSupportedServicesOutput(ctx *pulumi.Context, args GetAwsSupportedServicesOutputArgs, opts ...pulumi.InvokeOption) GetAwsSupportedServicesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetAwsSupportedServicesResult, error) { + ApplyT(func(v interface{}) (GetAwsSupportedServicesResultOutput, error) { args := v.(GetAwsSupportedServicesArgs) - r, err := GetAwsSupportedServices(ctx, &args, opts...) - var s GetAwsSupportedServicesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetAwsSupportedServicesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAwsSupportedServices:getAwsSupportedServices", args, &rv, "", opts...) + if err != nil { + return GetAwsSupportedServicesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetAwsSupportedServicesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetAwsSupportedServicesResultOutput), nil + } + return output, nil }).(GetAwsSupportedServicesResultOutput) } diff --git a/sdk/go/dynatrace/getAzureCredentials.go b/sdk/go/dynatrace/getAzureCredentials.go index d26d3d5f..5c63298d 100644 --- a/sdk/go/dynatrace/getAzureCredentials.go +++ b/sdk/go/dynatrace/getAzureCredentials.go @@ -38,14 +38,20 @@ type LookupAzureCredentialsResult struct { func LookupAzureCredentialsOutput(ctx *pulumi.Context, args LookupAzureCredentialsOutputArgs, opts ...pulumi.InvokeOption) LookupAzureCredentialsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupAzureCredentialsResult, error) { + ApplyT(func(v interface{}) (LookupAzureCredentialsResultOutput, error) { args := v.(LookupAzureCredentialsArgs) - r, err := LookupAzureCredentials(ctx, &args, opts...) - var s LookupAzureCredentialsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupAzureCredentialsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAzureCredentials:getAzureCredentials", args, &rv, "", opts...) + if err != nil { + return LookupAzureCredentialsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupAzureCredentialsResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupAzureCredentialsResultOutput), nil + } + return output, nil }).(LookupAzureCredentialsResultOutput) } diff --git a/sdk/go/dynatrace/getAzureSupportedServices.go b/sdk/go/dynatrace/getAzureSupportedServices.go index 9b642fce..87612cc1 100644 --- a/sdk/go/dynatrace/getAzureSupportedServices.go +++ b/sdk/go/dynatrace/getAzureSupportedServices.go @@ -44,14 +44,20 @@ type GetAzureSupportedServicesResult struct { func GetAzureSupportedServicesOutput(ctx *pulumi.Context, args GetAzureSupportedServicesOutputArgs, opts ...pulumi.InvokeOption) GetAzureSupportedServicesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetAzureSupportedServicesResult, error) { + ApplyT(func(v interface{}) (GetAzureSupportedServicesResultOutput, error) { args := v.(GetAzureSupportedServicesArgs) - r, err := GetAzureSupportedServices(ctx, &args, opts...) - var s GetAzureSupportedServicesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetAzureSupportedServicesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getAzureSupportedServices:getAzureSupportedServices", args, &rv, "", opts...) + if err != nil { + return GetAzureSupportedServicesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetAzureSupportedServicesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetAzureSupportedServicesResultOutput), nil + } + return output, nil }).(GetAzureSupportedServicesResultOutput) } diff --git a/sdk/go/dynatrace/getCalculatedServiceMetric.go b/sdk/go/dynatrace/getCalculatedServiceMetric.go index 8e0e0e0e..9b2e3645 100644 --- a/sdk/go/dynatrace/getCalculatedServiceMetric.go +++ b/sdk/go/dynatrace/getCalculatedServiceMetric.go @@ -65,14 +65,20 @@ type LookupCalculatedServiceMetricResult struct { func LookupCalculatedServiceMetricOutput(ctx *pulumi.Context, args LookupCalculatedServiceMetricOutputArgs, opts ...pulumi.InvokeOption) LookupCalculatedServiceMetricResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCalculatedServiceMetricResult, error) { + ApplyT(func(v interface{}) (LookupCalculatedServiceMetricResultOutput, error) { args := v.(LookupCalculatedServiceMetricArgs) - r, err := LookupCalculatedServiceMetric(ctx, &args, opts...) - var s LookupCalculatedServiceMetricResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCalculatedServiceMetricResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getCalculatedServiceMetric:getCalculatedServiceMetric", args, &rv, "", opts...) + if err != nil { + return LookupCalculatedServiceMetricResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCalculatedServiceMetricResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCalculatedServiceMetricResultOutput), nil + } + return output, nil }).(LookupCalculatedServiceMetricResultOutput) } diff --git a/sdk/go/dynatrace/getCredentials.go b/sdk/go/dynatrace/getCredentials.go index 9b730810..357c5ab6 100644 --- a/sdk/go/dynatrace/getCredentials.go +++ b/sdk/go/dynatrace/getCredentials.go @@ -124,14 +124,20 @@ type LookupCredentialsResult struct { func LookupCredentialsOutput(ctx *pulumi.Context, args LookupCredentialsOutputArgs, opts ...pulumi.InvokeOption) LookupCredentialsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCredentialsResult, error) { + ApplyT(func(v interface{}) (LookupCredentialsResultOutput, error) { args := v.(LookupCredentialsArgs) - r, err := LookupCredentials(ctx, &args, opts...) - var s LookupCredentialsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCredentialsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getCredentials:getCredentials", args, &rv, "", opts...) + if err != nil { + return LookupCredentialsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCredentialsResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCredentialsResultOutput), nil + } + return output, nil }).(LookupCredentialsResultOutput) } diff --git a/sdk/go/dynatrace/getDashboard.go b/sdk/go/dynatrace/getDashboard.go index 68311ea9..9089b030 100644 --- a/sdk/go/dynatrace/getDashboard.go +++ b/sdk/go/dynatrace/getDashboard.go @@ -71,14 +71,20 @@ type LookupDashboardResult struct { func LookupDashboardOutput(ctx *pulumi.Context, args LookupDashboardOutputArgs, opts ...pulumi.InvokeOption) LookupDashboardResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupDashboardResult, error) { + ApplyT(func(v interface{}) (LookupDashboardResultOutput, error) { args := v.(LookupDashboardArgs) - r, err := LookupDashboard(ctx, &args, opts...) - var s LookupDashboardResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupDashboardResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getDashboard:getDashboard", args, &rv, "", opts...) + if err != nil { + return LookupDashboardResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupDashboardResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupDashboardResultOutput), nil + } + return output, nil }).(LookupDashboardResultOutput) } diff --git a/sdk/go/dynatrace/getDocuments.go b/sdk/go/dynatrace/getDocuments.go index 618cdeec..69a6465b 100644 --- a/sdk/go/dynatrace/getDocuments.go +++ b/sdk/go/dynatrace/getDocuments.go @@ -100,14 +100,20 @@ type GetDocumentsResult struct { func GetDocumentsOutput(ctx *pulumi.Context, args GetDocumentsOutputArgs, opts ...pulumi.InvokeOption) GetDocumentsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetDocumentsResult, error) { + ApplyT(func(v interface{}) (GetDocumentsResultOutput, error) { args := v.(GetDocumentsArgs) - r, err := GetDocuments(ctx, &args, opts...) - var s GetDocumentsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetDocumentsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getDocuments:getDocuments", args, &rv, "", opts...) + if err != nil { + return GetDocumentsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetDocumentsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetDocumentsResultOutput), nil + } + return output, nil }).(GetDocumentsResultOutput) } diff --git a/sdk/go/dynatrace/getEntities.go b/sdk/go/dynatrace/getEntities.go index d172546b..48e662be 100644 --- a/sdk/go/dynatrace/getEntities.go +++ b/sdk/go/dynatrace/getEntities.go @@ -72,14 +72,20 @@ type GetEntitiesResult struct { func GetEntitiesOutput(ctx *pulumi.Context, args GetEntitiesOutputArgs, opts ...pulumi.InvokeOption) GetEntitiesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetEntitiesResult, error) { + ApplyT(func(v interface{}) (GetEntitiesResultOutput, error) { args := v.(GetEntitiesArgs) - r, err := GetEntities(ctx, &args, opts...) - var s GetEntitiesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetEntitiesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getEntities:getEntities", args, &rv, "", opts...) + if err != nil { + return GetEntitiesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetEntitiesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetEntitiesResultOutput), nil + } + return output, nil }).(GetEntitiesResultOutput) } diff --git a/sdk/go/dynatrace/getEntity.go b/sdk/go/dynatrace/getEntity.go index bb266cec..9fea2c71 100644 --- a/sdk/go/dynatrace/getEntity.go +++ b/sdk/go/dynatrace/getEntity.go @@ -78,14 +78,20 @@ type GetEntityResult struct { func GetEntityOutput(ctx *pulumi.Context, args GetEntityOutputArgs, opts ...pulumi.InvokeOption) GetEntityResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetEntityResult, error) { + ApplyT(func(v interface{}) (GetEntityResultOutput, error) { args := v.(GetEntityArgs) - r, err := GetEntity(ctx, &args, opts...) - var s GetEntityResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetEntityResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getEntity:getEntity", args, &rv, "", opts...) + if err != nil { + return GetEntityResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetEntityResultOutput) + if secret { + return pulumi.ToSecret(output).(GetEntityResultOutput), nil + } + return output, nil }).(GetEntityResultOutput) } diff --git a/sdk/go/dynatrace/getFailureDetectionParameters.go b/sdk/go/dynatrace/getFailureDetectionParameters.go index 87c98eee..987e5c2e 100644 --- a/sdk/go/dynatrace/getFailureDetectionParameters.go +++ b/sdk/go/dynatrace/getFailureDetectionParameters.go @@ -67,14 +67,20 @@ type LookupFailureDetectionParametersResult struct { func LookupFailureDetectionParametersOutput(ctx *pulumi.Context, args LookupFailureDetectionParametersOutputArgs, opts ...pulumi.InvokeOption) LookupFailureDetectionParametersResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupFailureDetectionParametersResult, error) { + ApplyT(func(v interface{}) (LookupFailureDetectionParametersResultOutput, error) { args := v.(LookupFailureDetectionParametersArgs) - r, err := LookupFailureDetectionParameters(ctx, &args, opts...) - var s LookupFailureDetectionParametersResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupFailureDetectionParametersResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getFailureDetectionParameters:getFailureDetectionParameters", args, &rv, "", opts...) + if err != nil { + return LookupFailureDetectionParametersResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupFailureDetectionParametersResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupFailureDetectionParametersResultOutput), nil + } + return output, nil }).(LookupFailureDetectionParametersResultOutput) } diff --git a/sdk/go/dynatrace/getGenericSetting.go b/sdk/go/dynatrace/getGenericSetting.go index 7c1eeca0..9c58abf5 100644 --- a/sdk/go/dynatrace/getGenericSetting.go +++ b/sdk/go/dynatrace/getGenericSetting.go @@ -77,14 +77,20 @@ type LookupGenericSettingResult struct { func LookupGenericSettingOutput(ctx *pulumi.Context, args LookupGenericSettingOutputArgs, opts ...pulumi.InvokeOption) LookupGenericSettingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupGenericSettingResult, error) { + ApplyT(func(v interface{}) (LookupGenericSettingResultOutput, error) { args := v.(LookupGenericSettingArgs) - r, err := LookupGenericSetting(ctx, &args, opts...) - var s LookupGenericSettingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGenericSettingResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getGenericSetting:getGenericSetting", args, &rv, "", opts...) + if err != nil { + return LookupGenericSettingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupGenericSettingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupGenericSettingResultOutput), nil + } + return output, nil }).(LookupGenericSettingResultOutput) } diff --git a/sdk/go/dynatrace/getGenericSettings.go b/sdk/go/dynatrace/getGenericSettings.go index b872f136..e976a115 100644 --- a/sdk/go/dynatrace/getGenericSettings.go +++ b/sdk/go/dynatrace/getGenericSettings.go @@ -74,14 +74,20 @@ type GetGenericSettingsResult struct { func GetGenericSettingsOutput(ctx *pulumi.Context, args GetGenericSettingsOutputArgs, opts ...pulumi.InvokeOption) GetGenericSettingsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetGenericSettingsResult, error) { + ApplyT(func(v interface{}) (GetGenericSettingsResultOutput, error) { args := v.(GetGenericSettingsArgs) - r, err := GetGenericSettings(ctx, &args, opts...) - var s GetGenericSettingsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetGenericSettingsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getGenericSettings:getGenericSettings", args, &rv, "", opts...) + if err != nil { + return GetGenericSettingsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetGenericSettingsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetGenericSettingsResultOutput), nil + } + return output, nil }).(GetGenericSettingsResultOutput) } diff --git a/sdk/go/dynatrace/getHost.go b/sdk/go/dynatrace/getHost.go index eb7bf703..98180eb4 100644 --- a/sdk/go/dynatrace/getHost.go +++ b/sdk/go/dynatrace/getHost.go @@ -90,14 +90,20 @@ type GetHostResult struct { func GetHostOutput(ctx *pulumi.Context, args GetHostOutputArgs, opts ...pulumi.InvokeOption) GetHostResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetHostResult, error) { + ApplyT(func(v interface{}) (GetHostResultOutput, error) { args := v.(GetHostArgs) - r, err := GetHost(ctx, &args, opts...) - var s GetHostResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHostResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getHost:getHost", args, &rv, "", opts...) + if err != nil { + return GetHostResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHostResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHostResultOutput), nil + } + return output, nil }).(GetHostResultOutput) } diff --git a/sdk/go/dynatrace/getHubItems.go b/sdk/go/dynatrace/getHubItems.go index 1cf036dd..c1787adc 100644 --- a/sdk/go/dynatrace/getHubItems.go +++ b/sdk/go/dynatrace/getHubItems.go @@ -72,14 +72,20 @@ type GetHubItemsResult struct { func GetHubItemsOutput(ctx *pulumi.Context, args GetHubItemsOutputArgs, opts ...pulumi.InvokeOption) GetHubItemsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetHubItemsResult, error) { + ApplyT(func(v interface{}) (GetHubItemsResultOutput, error) { args := v.(GetHubItemsArgs) - r, err := GetHubItems(ctx, &args, opts...) - var s GetHubItemsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHubItemsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getHubItems:getHubItems", args, &rv, "", opts...) + if err != nil { + return GetHubItemsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHubItemsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHubItemsResultOutput), nil + } + return output, nil }).(GetHubItemsResultOutput) } diff --git a/sdk/go/dynatrace/getIamGroup.go b/sdk/go/dynatrace/getIamGroup.go index 3c105660..117abde1 100644 --- a/sdk/go/dynatrace/getIamGroup.go +++ b/sdk/go/dynatrace/getIamGroup.go @@ -65,14 +65,20 @@ type LookupIamGroupResult struct { func LookupIamGroupOutput(ctx *pulumi.Context, args LookupIamGroupOutputArgs, opts ...pulumi.InvokeOption) LookupIamGroupResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupIamGroupResult, error) { + ApplyT(func(v interface{}) (LookupIamGroupResultOutput, error) { args := v.(LookupIamGroupArgs) - r, err := LookupIamGroup(ctx, &args, opts...) - var s LookupIamGroupResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupIamGroupResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getIamGroup:getIamGroup", args, &rv, "", opts...) + if err != nil { + return LookupIamGroupResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupIamGroupResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupIamGroupResultOutput), nil + } + return output, nil }).(LookupIamGroupResultOutput) } diff --git a/sdk/go/dynatrace/getIamGroups.go b/sdk/go/dynatrace/getIamGroups.go index 3a570577..196e6abf 100644 --- a/sdk/go/dynatrace/getIamGroups.go +++ b/sdk/go/dynatrace/getIamGroups.go @@ -55,13 +55,19 @@ type GetIamGroupsResult struct { } func GetIamGroupsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIamGroupsResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetIamGroupsResult, error) { - r, err := GetIamGroups(ctx, opts...) - var s GetIamGroupsResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetIamGroupsResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetIamGroupsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getIamGroups:getIamGroups", nil, &rv, "", opts...) + if err != nil { + return GetIamGroupsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetIamGroupsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetIamGroupsResultOutput), nil + } + return output, nil }).(GetIamGroupsResultOutput) } diff --git a/sdk/go/dynatrace/getIamPolicies.go b/sdk/go/dynatrace/getIamPolicies.go index 0890a945..4d2b6f56 100644 --- a/sdk/go/dynatrace/getIamPolicies.go +++ b/sdk/go/dynatrace/getIamPolicies.go @@ -145,14 +145,20 @@ type GetIamPoliciesResult struct { func GetIamPoliciesOutput(ctx *pulumi.Context, args GetIamPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetIamPoliciesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetIamPoliciesResult, error) { + ApplyT(func(v interface{}) (GetIamPoliciesResultOutput, error) { args := v.(GetIamPoliciesArgs) - r, err := GetIamPolicies(ctx, &args, opts...) - var s GetIamPoliciesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetIamPoliciesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getIamPolicies:getIamPolicies", args, &rv, "", opts...) + if err != nil { + return GetIamPoliciesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetIamPoliciesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetIamPoliciesResultOutput), nil + } + return output, nil }).(GetIamPoliciesResultOutput) } diff --git a/sdk/go/dynatrace/getIamPolicy.go b/sdk/go/dynatrace/getIamPolicy.go index 4e9bdc6b..fadf2c5a 100644 --- a/sdk/go/dynatrace/getIamPolicy.go +++ b/sdk/go/dynatrace/getIamPolicy.go @@ -79,14 +79,20 @@ type LookupIamPolicyResult struct { func LookupIamPolicyOutput(ctx *pulumi.Context, args LookupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupIamPolicyResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupIamPolicyResult, error) { + ApplyT(func(v interface{}) (LookupIamPolicyResultOutput, error) { args := v.(LookupIamPolicyArgs) - r, err := LookupIamPolicy(ctx, &args, opts...) - var s LookupIamPolicyResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupIamPolicyResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getIamPolicy:getIamPolicy", args, &rv, "", opts...) + if err != nil { + return LookupIamPolicyResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupIamPolicyResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupIamPolicyResultOutput), nil + } + return output, nil }).(LookupIamPolicyResultOutput) } diff --git a/sdk/go/dynatrace/getIamUser.go b/sdk/go/dynatrace/getIamUser.go index e1e9d99e..45b2b1d4 100644 --- a/sdk/go/dynatrace/getIamUser.go +++ b/sdk/go/dynatrace/getIamUser.go @@ -65,14 +65,20 @@ type LookupIamUserResult struct { func LookupIamUserOutput(ctx *pulumi.Context, args LookupIamUserOutputArgs, opts ...pulumi.InvokeOption) LookupIamUserResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupIamUserResult, error) { + ApplyT(func(v interface{}) (LookupIamUserResultOutput, error) { args := v.(LookupIamUserArgs) - r, err := LookupIamUser(ctx, &args, opts...) - var s LookupIamUserResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupIamUserResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getIamUser:getIamUser", args, &rv, "", opts...) + if err != nil { + return LookupIamUserResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupIamUserResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupIamUserResultOutput), nil + } + return output, nil }).(LookupIamUserResultOutput) } diff --git a/sdk/go/dynatrace/getLambdaAgentVersion.go b/sdk/go/dynatrace/getLambdaAgentVersion.go index f9eeb04b..02cf4b0c 100644 --- a/sdk/go/dynatrace/getLambdaAgentVersion.go +++ b/sdk/go/dynatrace/getLambdaAgentVersion.go @@ -87,14 +87,20 @@ type GetLambdaAgentVersionResult struct { func GetLambdaAgentVersionOutput(ctx *pulumi.Context, args GetLambdaAgentVersionOutputArgs, opts ...pulumi.InvokeOption) GetLambdaAgentVersionResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetLambdaAgentVersionResult, error) { + ApplyT(func(v interface{}) (GetLambdaAgentVersionResultOutput, error) { args := v.(GetLambdaAgentVersionArgs) - r, err := GetLambdaAgentVersion(ctx, &args, opts...) - var s GetLambdaAgentVersionResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetLambdaAgentVersionResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getLambdaAgentVersion:getLambdaAgentVersion", args, &rv, "", opts...) + if err != nil { + return GetLambdaAgentVersionResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetLambdaAgentVersionResultOutput) + if secret { + return pulumi.ToSecret(output).(GetLambdaAgentVersionResultOutput), nil + } + return output, nil }).(GetLambdaAgentVersionResultOutput) } diff --git a/sdk/go/dynatrace/getManagementZone.go b/sdk/go/dynatrace/getManagementZone.go index 3122c7cd..eb2313f5 100644 --- a/sdk/go/dynatrace/getManagementZone.go +++ b/sdk/go/dynatrace/getManagementZone.go @@ -104,14 +104,20 @@ type LookupManagementZoneResult struct { func LookupManagementZoneOutput(ctx *pulumi.Context, args LookupManagementZoneOutputArgs, opts ...pulumi.InvokeOption) LookupManagementZoneResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupManagementZoneResult, error) { + ApplyT(func(v interface{}) (LookupManagementZoneResultOutput, error) { args := v.(LookupManagementZoneArgs) - r, err := LookupManagementZone(ctx, &args, opts...) - var s LookupManagementZoneResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupManagementZoneResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getManagementZone:getManagementZone", args, &rv, "", opts...) + if err != nil { + return LookupManagementZoneResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupManagementZoneResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupManagementZoneResultOutput), nil + } + return output, nil }).(LookupManagementZoneResultOutput) } diff --git a/sdk/go/dynatrace/getManagementZoneV2.go b/sdk/go/dynatrace/getManagementZoneV2.go index b0c689fd..6efd6c2a 100644 --- a/sdk/go/dynatrace/getManagementZoneV2.go +++ b/sdk/go/dynatrace/getManagementZoneV2.go @@ -102,14 +102,20 @@ type LookupManagementZoneV2Result struct { func LookupManagementZoneV2Output(ctx *pulumi.Context, args LookupManagementZoneV2OutputArgs, opts ...pulumi.InvokeOption) LookupManagementZoneV2ResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupManagementZoneV2Result, error) { + ApplyT(func(v interface{}) (LookupManagementZoneV2ResultOutput, error) { args := v.(LookupManagementZoneV2Args) - r, err := LookupManagementZoneV2(ctx, &args, opts...) - var s LookupManagementZoneV2Result - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupManagementZoneV2Result + secret, err := ctx.InvokePackageRaw("dynatrace:index/getManagementZoneV2:getManagementZoneV2", args, &rv, "", opts...) + if err != nil { + return LookupManagementZoneV2ResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupManagementZoneV2ResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupManagementZoneV2ResultOutput), nil + } + return output, nil }).(LookupManagementZoneV2ResultOutput) } diff --git a/sdk/go/dynatrace/getManagementZones.go b/sdk/go/dynatrace/getManagementZones.go index e9f3435b..693dbfb7 100644 --- a/sdk/go/dynatrace/getManagementZones.go +++ b/sdk/go/dynatrace/getManagementZones.go @@ -88,13 +88,19 @@ type GetManagementZonesResult struct { } func GetManagementZonesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetManagementZonesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetManagementZonesResult, error) { - r, err := GetManagementZones(ctx, opts...) - var s GetManagementZonesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetManagementZonesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetManagementZonesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getManagementZones:getManagementZones", nil, &rv, "", opts...) + if err != nil { + return GetManagementZonesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetManagementZonesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetManagementZonesResultOutput), nil + } + return output, nil }).(GetManagementZonesResultOutput) } diff --git a/sdk/go/dynatrace/getMobileApplication.go b/sdk/go/dynatrace/getMobileApplication.go index e166286d..e762d3d1 100644 --- a/sdk/go/dynatrace/getMobileApplication.go +++ b/sdk/go/dynatrace/getMobileApplication.go @@ -65,14 +65,20 @@ type LookupMobileApplicationResult struct { func LookupMobileApplicationOutput(ctx *pulumi.Context, args LookupMobileApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupMobileApplicationResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupMobileApplicationResult, error) { + ApplyT(func(v interface{}) (LookupMobileApplicationResultOutput, error) { args := v.(LookupMobileApplicationArgs) - r, err := LookupMobileApplication(ctx, &args, opts...) - var s LookupMobileApplicationResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupMobileApplicationResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getMobileApplication:getMobileApplication", args, &rv, "", opts...) + if err != nil { + return LookupMobileApplicationResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupMobileApplicationResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupMobileApplicationResultOutput), nil + } + return output, nil }).(LookupMobileApplicationResultOutput) } diff --git a/sdk/go/dynatrace/getProcess.go b/sdk/go/dynatrace/getProcess.go index 0d1c977a..7d40c9ab 100644 --- a/sdk/go/dynatrace/getProcess.go +++ b/sdk/go/dynatrace/getProcess.go @@ -90,14 +90,20 @@ type GetProcessResult struct { func GetProcessOutput(ctx *pulumi.Context, args GetProcessOutputArgs, opts ...pulumi.InvokeOption) GetProcessResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetProcessResult, error) { + ApplyT(func(v interface{}) (GetProcessResultOutput, error) { args := v.(GetProcessArgs) - r, err := GetProcess(ctx, &args, opts...) - var s GetProcessResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetProcessResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getProcess:getProcess", args, &rv, "", opts...) + if err != nil { + return GetProcessResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetProcessResultOutput) + if secret { + return pulumi.ToSecret(output).(GetProcessResultOutput), nil + } + return output, nil }).(GetProcessResultOutput) } diff --git a/sdk/go/dynatrace/getProcessGroup.go b/sdk/go/dynatrace/getProcessGroup.go index 560ce992..13364d17 100644 --- a/sdk/go/dynatrace/getProcessGroup.go +++ b/sdk/go/dynatrace/getProcessGroup.go @@ -90,14 +90,20 @@ type GetProcessGroupResult struct { func GetProcessGroupOutput(ctx *pulumi.Context, args GetProcessGroupOutputArgs, opts ...pulumi.InvokeOption) GetProcessGroupResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetProcessGroupResult, error) { + ApplyT(func(v interface{}) (GetProcessGroupResultOutput, error) { args := v.(GetProcessGroupArgs) - r, err := GetProcessGroup(ctx, &args, opts...) - var s GetProcessGroupResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetProcessGroupResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getProcessGroup:getProcessGroup", args, &rv, "", opts...) + if err != nil { + return GetProcessGroupResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetProcessGroupResultOutput) + if secret { + return pulumi.ToSecret(output).(GetProcessGroupResultOutput), nil + } + return output, nil }).(GetProcessGroupResultOutput) } diff --git a/sdk/go/dynatrace/getRemoteEnvironments.go b/sdk/go/dynatrace/getRemoteEnvironments.go index 122b42ae..62467c04 100644 --- a/sdk/go/dynatrace/getRemoteEnvironments.go +++ b/sdk/go/dynatrace/getRemoteEnvironments.go @@ -55,13 +55,19 @@ type LookupRemoteEnvironmentsResult struct { } func LookupRemoteEnvironmentsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) LookupRemoteEnvironmentsResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (LookupRemoteEnvironmentsResult, error) { - r, err := LookupRemoteEnvironments(ctx, opts...) - var s LookupRemoteEnvironmentsResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (LookupRemoteEnvironmentsResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRemoteEnvironmentsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getRemoteEnvironments:getRemoteEnvironments", nil, &rv, "", opts...) + if err != nil { + return LookupRemoteEnvironmentsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRemoteEnvironmentsResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRemoteEnvironmentsResultOutput), nil + } + return output, nil }).(LookupRemoteEnvironmentsResultOutput) } diff --git a/sdk/go/dynatrace/getRequestAttribute.go b/sdk/go/dynatrace/getRequestAttribute.go index 44b4ea97..538a10de 100644 --- a/sdk/go/dynatrace/getRequestAttribute.go +++ b/sdk/go/dynatrace/getRequestAttribute.go @@ -65,14 +65,20 @@ type LookupRequestAttributeResult struct { func LookupRequestAttributeOutput(ctx *pulumi.Context, args LookupRequestAttributeOutputArgs, opts ...pulumi.InvokeOption) LookupRequestAttributeResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRequestAttributeResult, error) { + ApplyT(func(v interface{}) (LookupRequestAttributeResultOutput, error) { args := v.(LookupRequestAttributeArgs) - r, err := LookupRequestAttribute(ctx, &args, opts...) - var s LookupRequestAttributeResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRequestAttributeResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getRequestAttribute:getRequestAttribute", args, &rv, "", opts...) + if err != nil { + return LookupRequestAttributeResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRequestAttributeResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRequestAttributeResultOutput), nil + } + return output, nil }).(LookupRequestAttributeResultOutput) } diff --git a/sdk/go/dynatrace/getRequestNaming.go b/sdk/go/dynatrace/getRequestNaming.go index aaccb380..70605831 100644 --- a/sdk/go/dynatrace/getRequestNaming.go +++ b/sdk/go/dynatrace/getRequestNaming.go @@ -67,14 +67,20 @@ type LookupRequestNamingResult struct { func LookupRequestNamingOutput(ctx *pulumi.Context, args LookupRequestNamingOutputArgs, opts ...pulumi.InvokeOption) LookupRequestNamingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRequestNamingResult, error) { + ApplyT(func(v interface{}) (LookupRequestNamingResultOutput, error) { args := v.(LookupRequestNamingArgs) - r, err := LookupRequestNaming(ctx, &args, opts...) - var s LookupRequestNamingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRequestNamingResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getRequestNaming:getRequestNaming", args, &rv, "", opts...) + if err != nil { + return LookupRequestNamingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRequestNamingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRequestNamingResultOutput), nil + } + return output, nil }).(LookupRequestNamingResultOutput) } diff --git a/sdk/go/dynatrace/getService.go b/sdk/go/dynatrace/getService.go index 30cfbb52..53052f50 100644 --- a/sdk/go/dynatrace/getService.go +++ b/sdk/go/dynatrace/getService.go @@ -85,14 +85,20 @@ type GetServiceResult struct { func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetServiceResult, error) { + ApplyT(func(v interface{}) (GetServiceResultOutput, error) { args := v.(GetServiceArgs) - r, err := GetService(ctx, &args, opts...) - var s GetServiceResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetServiceResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getService:getService", args, &rv, "", opts...) + if err != nil { + return GetServiceResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetServiceResultOutput) + if secret { + return pulumi.ToSecret(output).(GetServiceResultOutput), nil + } + return output, nil }).(GetServiceResultOutput) } diff --git a/sdk/go/dynatrace/getSlo.go b/sdk/go/dynatrace/getSlo.go index 736e2079..3d15c184 100644 --- a/sdk/go/dynatrace/getSlo.go +++ b/sdk/go/dynatrace/getSlo.go @@ -91,14 +91,20 @@ type LookupSloResult struct { func LookupSloOutput(ctx *pulumi.Context, args LookupSloOutputArgs, opts ...pulumi.InvokeOption) LookupSloResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSloResult, error) { + ApplyT(func(v interface{}) (LookupSloResultOutput, error) { args := v.(LookupSloArgs) - r, err := LookupSlo(ctx, &args, opts...) - var s LookupSloResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSloResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getSlo:getSlo", args, &rv, "", opts...) + if err != nil { + return LookupSloResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSloResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSloResultOutput), nil + } + return output, nil }).(LookupSloResultOutput) } diff --git a/sdk/go/dynatrace/getSyntheticLocation.go b/sdk/go/dynatrace/getSyntheticLocation.go index 080ae153..61a88e21 100644 --- a/sdk/go/dynatrace/getSyntheticLocation.go +++ b/sdk/go/dynatrace/getSyntheticLocation.go @@ -50,14 +50,20 @@ type LookupSyntheticLocationResult struct { func LookupSyntheticLocationOutput(ctx *pulumi.Context, args LookupSyntheticLocationOutputArgs, opts ...pulumi.InvokeOption) LookupSyntheticLocationResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSyntheticLocationResult, error) { + ApplyT(func(v interface{}) (LookupSyntheticLocationResultOutput, error) { args := v.(LookupSyntheticLocationArgs) - r, err := LookupSyntheticLocation(ctx, &args, opts...) - var s LookupSyntheticLocationResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSyntheticLocationResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getSyntheticLocation:getSyntheticLocation", args, &rv, "", opts...) + if err != nil { + return LookupSyntheticLocationResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSyntheticLocationResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSyntheticLocationResultOutput), nil + } + return output, nil }).(LookupSyntheticLocationResultOutput) } diff --git a/sdk/go/dynatrace/getSyntheticLocations.go b/sdk/go/dynatrace/getSyntheticLocations.go index 875f6356..6e36b466 100644 --- a/sdk/go/dynatrace/getSyntheticLocations.go +++ b/sdk/go/dynatrace/getSyntheticLocations.go @@ -114,14 +114,20 @@ type GetSyntheticLocationsResult struct { func GetSyntheticLocationsOutput(ctx *pulumi.Context, args GetSyntheticLocationsOutputArgs, opts ...pulumi.InvokeOption) GetSyntheticLocationsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetSyntheticLocationsResult, error) { + ApplyT(func(v interface{}) (GetSyntheticLocationsResultOutput, error) { args := v.(GetSyntheticLocationsArgs) - r, err := GetSyntheticLocations(ctx, &args, opts...) - var s GetSyntheticLocationsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSyntheticLocationsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getSyntheticLocations:getSyntheticLocations", args, &rv, "", opts...) + if err != nil { + return GetSyntheticLocationsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSyntheticLocationsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSyntheticLocationsResultOutput), nil + } + return output, nil }).(GetSyntheticLocationsResultOutput) } diff --git a/sdk/go/dynatrace/getSyntheticNodes.go b/sdk/go/dynatrace/getSyntheticNodes.go index 99b5f04a..61f3ce2e 100644 --- a/sdk/go/dynatrace/getSyntheticNodes.go +++ b/sdk/go/dynatrace/getSyntheticNodes.go @@ -30,13 +30,19 @@ type GetSyntheticNodesResult struct { } func GetSyntheticNodesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSyntheticNodesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetSyntheticNodesResult, error) { - r, err := GetSyntheticNodes(ctx, opts...) - var s GetSyntheticNodesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetSyntheticNodesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSyntheticNodesResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getSyntheticNodes:getSyntheticNodes", nil, &rv, "", opts...) + if err != nil { + return GetSyntheticNodesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSyntheticNodesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSyntheticNodesResultOutput), nil + } + return output, nil }).(GetSyntheticNodesResultOutput) } diff --git a/sdk/go/dynatrace/getTenant.go b/sdk/go/dynatrace/getTenant.go index 5284b453..2e3e20d0 100644 --- a/sdk/go/dynatrace/getTenant.go +++ b/sdk/go/dynatrace/getTenant.go @@ -31,13 +31,19 @@ type GetTenantResult struct { } func GetTenantOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetTenantResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetTenantResult, error) { - r, err := GetTenant(ctx, opts...) - var s GetTenantResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetTenantResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetTenantResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getTenant:getTenant", nil, &rv, "", opts...) + if err != nil { + return GetTenantResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetTenantResultOutput) + if secret { + return pulumi.ToSecret(output).(GetTenantResultOutput), nil + } + return output, nil }).(GetTenantResultOutput) } diff --git a/sdk/go/dynatrace/getUpdateWindows.go b/sdk/go/dynatrace/getUpdateWindows.go index 3cfa1fc9..4dc5049e 100644 --- a/sdk/go/dynatrace/getUpdateWindows.go +++ b/sdk/go/dynatrace/getUpdateWindows.go @@ -65,14 +65,20 @@ type LookupUpdateWindowsResult struct { func LookupUpdateWindowsOutput(ctx *pulumi.Context, args LookupUpdateWindowsOutputArgs, opts ...pulumi.InvokeOption) LookupUpdateWindowsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupUpdateWindowsResult, error) { + ApplyT(func(v interface{}) (LookupUpdateWindowsResultOutput, error) { args := v.(LookupUpdateWindowsArgs) - r, err := LookupUpdateWindows(ctx, &args, opts...) - var s LookupUpdateWindowsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupUpdateWindowsResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getUpdateWindows:getUpdateWindows", args, &rv, "", opts...) + if err != nil { + return LookupUpdateWindowsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupUpdateWindowsResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupUpdateWindowsResultOutput), nil + } + return output, nil }).(LookupUpdateWindowsResultOutput) } diff --git a/sdk/go/dynatrace/getVulnerabilityAlerting.go b/sdk/go/dynatrace/getVulnerabilityAlerting.go index 8d45d85e..d7af6187 100644 --- a/sdk/go/dynatrace/getVulnerabilityAlerting.go +++ b/sdk/go/dynatrace/getVulnerabilityAlerting.go @@ -67,14 +67,20 @@ type LookupVulnerabilityAlertingResult struct { func LookupVulnerabilityAlertingOutput(ctx *pulumi.Context, args LookupVulnerabilityAlertingOutputArgs, opts ...pulumi.InvokeOption) LookupVulnerabilityAlertingResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupVulnerabilityAlertingResult, error) { + ApplyT(func(v interface{}) (LookupVulnerabilityAlertingResultOutput, error) { args := v.(LookupVulnerabilityAlertingArgs) - r, err := LookupVulnerabilityAlerting(ctx, &args, opts...) - var s LookupVulnerabilityAlertingResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupVulnerabilityAlertingResult + secret, err := ctx.InvokePackageRaw("dynatrace:index/getVulnerabilityAlerting:getVulnerabilityAlerting", args, &rv, "", opts...) + if err != nil { + return LookupVulnerabilityAlertingResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupVulnerabilityAlertingResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupVulnerabilityAlertingResultOutput), nil + } + return output, nil }).(LookupVulnerabilityAlertingResultOutput) } diff --git a/sdk/nodejs/getAlertingProfile.ts b/sdk/nodejs/getAlertingProfile.ts index fde3b7f6..c8e55a1b 100644 --- a/sdk/nodejs/getAlertingProfile.ts +++ b/sdk/nodejs/getAlertingProfile.ts @@ -30,7 +30,6 @@ import * as utilities from "./utilities"; * ``` */ export function getAlertingProfile(args: GetAlertingProfileArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAlertingProfile:getAlertingProfile", { "name": args.name, @@ -81,7 +80,10 @@ export interface GetAlertingProfileResult { * ``` */ export function getAlertingProfileOutput(args: GetAlertingProfileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAlertingProfile(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAlertingProfile:getAlertingProfile", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getAlertingProfiles.ts b/sdk/nodejs/getAlertingProfiles.ts index b24705e3..0491c44e 100644 --- a/sdk/nodejs/getAlertingProfiles.ts +++ b/sdk/nodejs/getAlertingProfiles.ts @@ -11,7 +11,6 @@ import * as utilities from "./utilities"; */ export function getAlertingProfiles(args?: GetAlertingProfilesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAlertingProfiles:getAlertingProfiles", { "profiles": args.profiles, @@ -40,7 +39,11 @@ export interface GetAlertingProfilesResult { * The alerting profiles data source allows retrieval of all alerting profiles. */ export function getAlertingProfilesOutput(args?: GetAlertingProfilesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAlertingProfiles(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAlertingProfiles:getAlertingProfiles", { + "profiles": args.profiles, + }, opts); } /** diff --git a/sdk/nodejs/getApiToken.ts b/sdk/nodejs/getApiToken.ts index 1c84a0b4..79d090e2 100644 --- a/sdk/nodejs/getApiToken.ts +++ b/sdk/nodejs/getApiToken.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getApiToken(args: GetApiTokenArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getApiToken:getApiToken", { "name": args.name, @@ -88,7 +87,10 @@ export interface GetApiTokenResult { * ``` */ export function getApiTokenOutput(args: GetApiTokenOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getApiToken(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getApiToken:getApiToken", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getApiTokens.ts b/sdk/nodejs/getApiTokens.ts index 01666836..49dfd4c6 100644 --- a/sdk/nodejs/getApiTokens.ts +++ b/sdk/nodejs/getApiTokens.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getApiTokens(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getApiTokens:getApiTokens", { }, opts); @@ -50,5 +49,7 @@ export interface GetApiTokensResult { * ``` */ export function getApiTokensOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getApiTokens(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getApiTokens:getApiTokens", { + }, opts); } diff --git a/sdk/nodejs/getApplication.ts b/sdk/nodejs/getApplication.ts index a1b23551..3a7e363c 100644 --- a/sdk/nodejs/getApplication.ts +++ b/sdk/nodejs/getApplication.ts @@ -30,7 +30,6 @@ import * as utilities from "./utilities"; * ``` */ export function getApplication(args: GetApplicationArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getApplication:getApplication", { "name": args.name, @@ -80,7 +79,10 @@ export interface GetApplicationResult { * ``` */ export function getApplicationOutput(args: GetApplicationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getApplication(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getApplication:getApplication", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getAttackAlerting.ts b/sdk/nodejs/getAttackAlerting.ts index 72e63e3f..a32f70ea 100644 --- a/sdk/nodejs/getAttackAlerting.ts +++ b/sdk/nodejs/getAttackAlerting.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; * ``` */ export function getAttackAlerting(args: GetAttackAlertingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAttackAlerting:getAttackAlerting", { "name": args.name, @@ -68,7 +67,10 @@ export interface GetAttackAlertingResult { * ``` */ export function getAttackAlertingOutput(args: GetAttackAlertingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAttackAlerting(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAttackAlerting:getAttackAlerting", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getAutotag.ts b/sdk/nodejs/getAutotag.ts index 55a47387..3ecf3601 100644 --- a/sdk/nodejs/getAutotag.ts +++ b/sdk/nodejs/getAutotag.ts @@ -67,7 +67,6 @@ import * as utilities from "./utilities"; * ``` */ export function getAutotag(args: GetAutotagArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAutotag:getAutotag", { "name": args.name, @@ -154,7 +153,10 @@ export interface GetAutotagResult { * ``` */ export function getAutotagOutput(args: GetAutotagOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAutotag(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAutotag:getAutotag", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getAwsCredentials.ts b/sdk/nodejs/getAwsCredentials.ts index 77f2639a..9b603803 100644 --- a/sdk/nodejs/getAwsCredentials.ts +++ b/sdk/nodejs/getAwsCredentials.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * - `label` (String) - The label/name of the AWS credential */ export function getAwsCredentials(args: GetAwsCredentialsArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAwsCredentials:getAwsCredentials", { "label": args.label, @@ -40,7 +39,10 @@ export interface GetAwsCredentialsResult { * - `label` (String) - The label/name of the AWS credential */ export function getAwsCredentialsOutput(args: GetAwsCredentialsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAwsCredentials(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAwsCredentials:getAwsCredentials", { + "label": args.label, + }, opts); } /** diff --git a/sdk/nodejs/getAwsIamExternal.ts b/sdk/nodejs/getAwsIamExternal.ts index 0a90b9fc..6aea4f84 100644 --- a/sdk/nodejs/getAwsIamExternal.ts +++ b/sdk/nodejs/getAwsIamExternal.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * The AWS IAM external data source allows the AWS IAM external ID to be retrieved. */ export function getAwsIamExternal(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAwsIamExternal:getAwsIamExternal", { }, opts); @@ -27,5 +26,7 @@ export interface GetAwsIamExternalResult { * The AWS IAM external data source allows the AWS IAM external ID to be retrieved. */ export function getAwsIamExternalOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getAwsIamExternal(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAwsIamExternal:getAwsIamExternal", { + }, opts); } diff --git a/sdk/nodejs/getAwsSupportedServices.ts b/sdk/nodejs/getAwsSupportedServices.ts index 9f7b3824..c3b48ded 100644 --- a/sdk/nodejs/getAwsSupportedServices.ts +++ b/sdk/nodejs/getAwsSupportedServices.ts @@ -13,7 +13,6 @@ import * as utilities from "./utilities"; */ export function getAwsSupportedServices(args?: GetAwsSupportedServicesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAwsSupportedServices:getAwsSupportedServices", { "excepts": args.excepts, @@ -55,7 +54,11 @@ export interface GetAwsSupportedServicesResult { * For an example of this data source, please refer to the Resource Example Usage of the dynatrace.AwsService resource. */ export function getAwsSupportedServicesOutput(args?: GetAwsSupportedServicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAwsSupportedServices(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAwsSupportedServices:getAwsSupportedServices", { + "excepts": args.excepts, + }, opts); } /** diff --git a/sdk/nodejs/getAzureCredentials.ts b/sdk/nodejs/getAzureCredentials.ts index ac3cf7c2..04d03344 100644 --- a/sdk/nodejs/getAzureCredentials.ts +++ b/sdk/nodejs/getAzureCredentials.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * - `label` (String) - The label/name of the Azure credential */ export function getAzureCredentials(args: GetAzureCredentialsArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAzureCredentials:getAzureCredentials", { "label": args.label, @@ -40,7 +39,10 @@ export interface GetAzureCredentialsResult { * - `label` (String) - The label/name of the Azure credential */ export function getAzureCredentialsOutput(args: GetAzureCredentialsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAzureCredentials(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAzureCredentials:getAzureCredentials", { + "label": args.label, + }, opts); } /** diff --git a/sdk/nodejs/getAzureSupportedServices.ts b/sdk/nodejs/getAzureSupportedServices.ts index 7f5f9074..cf144153 100644 --- a/sdk/nodejs/getAzureSupportedServices.ts +++ b/sdk/nodejs/getAzureSupportedServices.ts @@ -13,7 +13,6 @@ import * as utilities from "./utilities"; */ export function getAzureSupportedServices(args?: GetAzureSupportedServicesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getAzureSupportedServices:getAzureSupportedServices", { "excepts": args.excepts, @@ -55,7 +54,11 @@ export interface GetAzureSupportedServicesResult { * For an example of this data source, please refer to the Resource Example Usage of the dynatrace.AzureService resource. */ export function getAzureSupportedServicesOutput(args?: GetAzureSupportedServicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getAzureSupportedServices(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getAzureSupportedServices:getAzureSupportedServices", { + "excepts": args.excepts, + }, opts); } /** diff --git a/sdk/nodejs/getCalculatedServiceMetric.ts b/sdk/nodejs/getCalculatedServiceMetric.ts index 22dc0f62..250aa95a 100644 --- a/sdk/nodejs/getCalculatedServiceMetric.ts +++ b/sdk/nodejs/getCalculatedServiceMetric.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCalculatedServiceMetric(args: GetCalculatedServiceMetricArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getCalculatedServiceMetric:getCalculatedServiceMetric", { "name": args.name, @@ -64,7 +63,10 @@ export interface GetCalculatedServiceMetricResult { * ``` */ export function getCalculatedServiceMetricOutput(args: GetCalculatedServiceMetricOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCalculatedServiceMetric(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getCalculatedServiceMetric:getCalculatedServiceMetric", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getCredentials.ts b/sdk/nodejs/getCredentials.ts index 0ed760f9..b9f055dc 100644 --- a/sdk/nodejs/getCredentials.ts +++ b/sdk/nodejs/getCredentials.ts @@ -58,7 +58,6 @@ import * as utilities from "./utilities"; */ export function getCredentials(args?: GetCredentialsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getCredentials:getCredentials", { "name": args.name, @@ -159,7 +158,13 @@ export interface GetCredentialsResult { * ``` */ export function getCredentialsOutput(args?: GetCredentialsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCredentials(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getCredentials:getCredentials", { + "name": args.name, + "scope": args.scope, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getDashboard.ts b/sdk/nodejs/getDashboard.ts index 2ca45b76..97509f34 100644 --- a/sdk/nodejs/getDashboard.ts +++ b/sdk/nodejs/getDashboard.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; * ``` */ export function getDashboard(args: GetDashboardArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getDashboard:getDashboard", { "name": args.name, @@ -75,7 +74,11 @@ export interface GetDashboardResult { * ``` */ export function getDashboardOutput(args: GetDashboardOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDashboard(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getDashboard:getDashboard", { + "name": args.name, + "owner": args.owner, + }, opts); } /** diff --git a/sdk/nodejs/getDocuments.ts b/sdk/nodejs/getDocuments.ts index b0c5cde9..81625dde 100644 --- a/sdk/nodejs/getDocuments.ts +++ b/sdk/nodejs/getDocuments.ts @@ -38,7 +38,6 @@ import * as utilities from "./utilities"; */ export function getDocuments(args?: GetDocumentsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getDocuments:getDocuments", { "type": args.type, @@ -100,7 +99,11 @@ export interface GetDocumentsResult { * ``` */ export function getDocumentsOutput(args?: GetDocumentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDocuments(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getDocuments:getDocuments", { + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getEntities.ts b/sdk/nodejs/getEntities.ts index eea16aa3..bba85141 100644 --- a/sdk/nodejs/getEntities.ts +++ b/sdk/nodejs/getEntities.ts @@ -25,7 +25,6 @@ import * as utilities from "./utilities"; */ export function getEntities(args?: GetEntitiesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getEntities:getEntities", { "entitySelector": args.entitySelector, @@ -77,7 +76,14 @@ export interface GetEntitiesResult { * ``` */ export function getEntitiesOutput(args?: GetEntitiesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getEntities(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getEntities:getEntities", { + "entitySelector": args.entitySelector, + "from": args.from, + "to": args.to, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getEntity.ts b/sdk/nodejs/getEntity.ts index 0a6878de..bc4989b8 100644 --- a/sdk/nodejs/getEntity.ts +++ b/sdk/nodejs/getEntity.ts @@ -27,7 +27,6 @@ import * as utilities from "./utilities"; */ export function getEntity(args?: GetEntityArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getEntity:getEntity", { "entitySelector": args.entitySelector, @@ -86,7 +85,15 @@ export interface GetEntityResult { * ``` */ export function getEntityOutput(args?: GetEntityOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getEntity(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getEntity:getEntity", { + "entitySelector": args.entitySelector, + "from": args.from, + "name": args.name, + "to": args.to, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getFailureDetectionParameters.ts b/sdk/nodejs/getFailureDetectionParameters.ts index 54d857bb..0fc56147 100644 --- a/sdk/nodejs/getFailureDetectionParameters.ts +++ b/sdk/nodejs/getFailureDetectionParameters.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; * ``` */ export function getFailureDetectionParameters(args: GetFailureDetectionParametersArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getFailureDetectionParameters:getFailureDetectionParameters", { "name": args.name, @@ -68,7 +67,10 @@ export interface GetFailureDetectionParametersResult { * ``` */ export function getFailureDetectionParametersOutput(args: GetFailureDetectionParametersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getFailureDetectionParameters(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getFailureDetectionParameters:getFailureDetectionParameters", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getGenericSetting.ts b/sdk/nodejs/getGenericSetting.ts index 7097e42c..fccb8dc1 100644 --- a/sdk/nodejs/getGenericSetting.ts +++ b/sdk/nodejs/getGenericSetting.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; */ export function getGenericSetting(args?: GetGenericSettingArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getGenericSetting:getGenericSetting", { "filter": args.filter, @@ -92,7 +91,13 @@ export interface GetGenericSettingResult { * ``` */ export function getGenericSettingOutput(args?: GetGenericSettingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getGenericSetting(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getGenericSetting:getGenericSetting", { + "filter": args.filter, + "schema": args.schema, + "scope": args.scope, + }, opts); } /** diff --git a/sdk/nodejs/getGenericSettings.ts b/sdk/nodejs/getGenericSettings.ts index 58e5c28b..1b4b7c72 100644 --- a/sdk/nodejs/getGenericSettings.ts +++ b/sdk/nodejs/getGenericSettings.ts @@ -23,7 +23,6 @@ import * as utilities from "./utilities"; */ export function getGenericSettings(args?: GetGenericSettingsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getGenericSettings:getGenericSettings", { "filter": args.filter, @@ -88,7 +87,13 @@ export interface GetGenericSettingsResult { * ``` */ export function getGenericSettingsOutput(args?: GetGenericSettingsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getGenericSettings(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getGenericSettings:getGenericSettings", { + "filter": args.filter, + "schema": args.schema, + "scope": args.scope, + }, opts); } /** diff --git a/sdk/nodejs/getHost.ts b/sdk/nodejs/getHost.ts index 04f7f0b3..9e7ca5ce 100644 --- a/sdk/nodejs/getHost.ts +++ b/sdk/nodejs/getHost.ts @@ -35,7 +35,6 @@ import * as utilities from "./utilities"; * ``` */ export function getHost(args: GetHostArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getHost:getHost", { "name": args.name, @@ -99,7 +98,11 @@ export interface GetHostResult { * ``` */ export function getHostOutput(args: GetHostOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHost(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getHost:getHost", { + "name": args.name, + "tags": args.tags, + }, opts); } /** diff --git a/sdk/nodejs/getHubItems.ts b/sdk/nodejs/getHubItems.ts index df53ae9f..bf94459e 100644 --- a/sdk/nodejs/getHubItems.ts +++ b/sdk/nodejs/getHubItems.ts @@ -30,7 +30,6 @@ import * as utilities from "./utilities"; */ export function getHubItems(args?: GetHubItemsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getHubItems:getHubItems", { "type": args.type, @@ -91,7 +90,11 @@ export interface GetHubItemsResult { * ``` */ export function getHubItemsOutput(args?: GetHubItemsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHubItems(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getHubItems:getHubItems", { + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getIamGroup.ts b/sdk/nodejs/getIamGroup.ts index 7641de62..1a590a1f 100644 --- a/sdk/nodejs/getIamGroup.ts +++ b/sdk/nodejs/getIamGroup.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getIamGroup(args: GetIamGroupArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getIamGroup:getIamGroup", { "name": args.name, @@ -64,7 +63,10 @@ export interface GetIamGroupResult { * ``` */ export function getIamGroupOutput(args: GetIamGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIamGroup(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getIamGroup:getIamGroup", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getIamGroups.ts b/sdk/nodejs/getIamGroups.ts index 6fb7369c..acc581fa 100644 --- a/sdk/nodejs/getIamGroups.ts +++ b/sdk/nodejs/getIamGroups.ts @@ -18,7 +18,6 @@ import * as utilities from "./utilities"; * ### Example output */ export function getIamGroups(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getIamGroups:getIamGroups", { }, opts); @@ -48,5 +47,7 @@ export interface GetIamGroupsResult { * ### Example output */ export function getIamGroupsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getIamGroups(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getIamGroups:getIamGroups", { + }, opts); } diff --git a/sdk/nodejs/getIamPolicies.ts b/sdk/nodejs/getIamPolicies.ts index 609f02fd..06fb2e00 100644 --- a/sdk/nodejs/getIamPolicies.ts +++ b/sdk/nodejs/getIamPolicies.ts @@ -54,7 +54,6 @@ import * as utilities from "./utilities"; */ export function getIamPolicies(args?: GetIamPoliciesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getIamPolicies:getIamPolicies", { "accounts": args.accounts, @@ -150,7 +149,13 @@ export interface GetIamPoliciesResult { * ``` */ export function getIamPoliciesOutput(args?: GetIamPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIamPolicies(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getIamPolicies:getIamPolicies", { + "accounts": args.accounts, + "environments": args.environments, + "global": args.global, + }, opts); } /** diff --git a/sdk/nodejs/getIamPolicy.ts b/sdk/nodejs/getIamPolicy.ts index a816b0ae..ccfc4088 100644 --- a/sdk/nodejs/getIamPolicy.ts +++ b/sdk/nodejs/getIamPolicy.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ## Example Output */ export function getIamPolicy(args: GetIamPolicyArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getIamPolicy:getIamPolicy", { "account": args.account, @@ -97,7 +96,13 @@ export interface GetIamPolicyResult { * ## Example Output */ export function getIamPolicyOutput(args: GetIamPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIamPolicy(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getIamPolicy:getIamPolicy", { + "account": args.account, + "environment": args.environment, + "name": args.name, + "uuid": args.uuid, + }, opts); } /** diff --git a/sdk/nodejs/getIamUser.ts b/sdk/nodejs/getIamUser.ts index f8ef0743..a47735c1 100644 --- a/sdk/nodejs/getIamUser.ts +++ b/sdk/nodejs/getIamUser.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getIamUser(args: GetIamUserArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getIamUser:getIamUser", { "email": args.email, @@ -62,7 +61,10 @@ export interface GetIamUserResult { * ``` */ export function getIamUserOutput(args: GetIamUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIamUser(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getIamUser:getIamUser", { + "email": args.email, + }, opts); } /** diff --git a/sdk/nodejs/getLambdaAgentVersion.ts b/sdk/nodejs/getLambdaAgentVersion.ts index d1d69e86..d46a90a3 100644 --- a/sdk/nodejs/getLambdaAgentVersion.ts +++ b/sdk/nodejs/getLambdaAgentVersion.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; */ export function getLambdaAgentVersion(args?: GetLambdaAgentVersionArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getLambdaAgentVersion:getLambdaAgentVersion", { "collector": args.collector, @@ -117,7 +116,17 @@ export interface GetLambdaAgentVersionResult { * ``` */ export function getLambdaAgentVersionOutput(args?: GetLambdaAgentVersionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getLambdaAgentVersion(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getLambdaAgentVersion:getLambdaAgentVersion", { + "collector": args.collector, + "java": args.java, + "javaWithCollector": args.javaWithCollector, + "nodejs": args.nodejs, + "nodejsWithCollector": args.nodejsWithCollector, + "python": args.python, + "pythonWithCollector": args.pythonWithCollector, + }, opts); } /** diff --git a/sdk/nodejs/getManagementZone.ts b/sdk/nodejs/getManagementZone.ts index 22f09e10..ba044b19 100644 --- a/sdk/nodejs/getManagementZone.ts +++ b/sdk/nodejs/getManagementZone.ts @@ -51,7 +51,6 @@ import * as utilities from "./utilities"; * ``` */ export function getManagementZone(args: GetManagementZoneArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getManagementZone:getManagementZone", { "name": args.name, @@ -124,7 +123,10 @@ export interface GetManagementZoneResult { * ``` */ export function getManagementZoneOutput(args: GetManagementZoneOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getManagementZone(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getManagementZone:getManagementZone", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getManagementZoneV2.ts b/sdk/nodejs/getManagementZoneV2.ts index 8177ee20..32d6f6d1 100644 --- a/sdk/nodejs/getManagementZoneV2.ts +++ b/sdk/nodejs/getManagementZoneV2.ts @@ -49,7 +49,6 @@ import * as utilities from "./utilities"; * ``` */ export function getManagementZoneV2(args: GetManagementZoneV2Args, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getManagementZoneV2:getManagementZoneV2", { "name": args.name, @@ -120,7 +119,10 @@ export interface GetManagementZoneV2Result { * ``` */ export function getManagementZoneV2Output(args: GetManagementZoneV2OutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getManagementZoneV2(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getManagementZoneV2:getManagementZoneV2", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getManagementZones.ts b/sdk/nodejs/getManagementZones.ts index 3d59ecaa..9faabb28 100644 --- a/sdk/nodejs/getManagementZones.ts +++ b/sdk/nodejs/getManagementZones.ts @@ -45,7 +45,6 @@ import * as utilities from "./utilities"; * ``` */ export function getManagementZones(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getManagementZones:getManagementZones", { }, opts); @@ -100,5 +99,7 @@ export interface GetManagementZonesResult { * ``` */ export function getManagementZonesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getManagementZones(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getManagementZones:getManagementZones", { + }, opts); } diff --git a/sdk/nodejs/getMobileApplication.ts b/sdk/nodejs/getMobileApplication.ts index ded1e621..d5ed2dde 100644 --- a/sdk/nodejs/getMobileApplication.ts +++ b/sdk/nodejs/getMobileApplication.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getMobileApplication(args: GetMobileApplicationArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getMobileApplication:getMobileApplication", { "name": args.name, @@ -64,7 +63,10 @@ export interface GetMobileApplicationResult { * ``` */ export function getMobileApplicationOutput(args: GetMobileApplicationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getMobileApplication(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getMobileApplication:getMobileApplication", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getProcess.ts b/sdk/nodejs/getProcess.ts index 5c64bea4..ba9cab96 100644 --- a/sdk/nodejs/getProcess.ts +++ b/sdk/nodejs/getProcess.ts @@ -35,7 +35,6 @@ import * as utilities from "./utilities"; * ``` */ export function getProcess(args: GetProcessArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getProcess:getProcess", { "name": args.name, @@ -99,7 +98,11 @@ export interface GetProcessResult { * ``` */ export function getProcessOutput(args: GetProcessOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getProcess(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getProcess:getProcess", { + "name": args.name, + "tags": args.tags, + }, opts); } /** diff --git a/sdk/nodejs/getProcessGroup.ts b/sdk/nodejs/getProcessGroup.ts index 13f1008c..07ed3956 100644 --- a/sdk/nodejs/getProcessGroup.ts +++ b/sdk/nodejs/getProcessGroup.ts @@ -35,7 +35,6 @@ import * as utilities from "./utilities"; * ``` */ export function getProcessGroup(args: GetProcessGroupArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getProcessGroup:getProcessGroup", { "name": args.name, @@ -99,7 +98,11 @@ export interface GetProcessGroupResult { * ``` */ export function getProcessGroupOutput(args: GetProcessGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getProcessGroup(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getProcessGroup:getProcessGroup", { + "name": args.name, + "tags": args.tags, + }, opts); } /** diff --git a/sdk/nodejs/getRemoteEnvironments.ts b/sdk/nodejs/getRemoteEnvironments.ts index f7a52d88..fed345fc 100644 --- a/sdk/nodejs/getRemoteEnvironments.ts +++ b/sdk/nodejs/getRemoteEnvironments.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRemoteEnvironments(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getRemoteEnvironments:getRemoteEnvironments", { }, opts); @@ -50,5 +49,7 @@ export interface GetRemoteEnvironmentsResult { * ``` */ export function getRemoteEnvironmentsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getRemoteEnvironments(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getRemoteEnvironments:getRemoteEnvironments", { + }, opts); } diff --git a/sdk/nodejs/getRequestAttribute.ts b/sdk/nodejs/getRequestAttribute.ts index a6b8e611..acbffc3b 100644 --- a/sdk/nodejs/getRequestAttribute.ts +++ b/sdk/nodejs/getRequestAttribute.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRequestAttribute(args: GetRequestAttributeArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getRequestAttribute:getRequestAttribute", { "name": args.name, @@ -64,7 +63,10 @@ export interface GetRequestAttributeResult { * ``` */ export function getRequestAttributeOutput(args: GetRequestAttributeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRequestAttribute(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getRequestAttribute:getRequestAttribute", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getRequestNaming.ts b/sdk/nodejs/getRequestNaming.ts index 57b2dc95..ea71c4ab 100644 --- a/sdk/nodejs/getRequestNaming.ts +++ b/sdk/nodejs/getRequestNaming.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRequestNaming(args: GetRequestNamingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getRequestNaming:getRequestNaming", { "name": args.name, @@ -68,7 +67,10 @@ export interface GetRequestNamingResult { * ``` */ export function getRequestNamingOutput(args: GetRequestNamingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRequestNaming(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getRequestNaming:getRequestNaming", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getService.ts b/sdk/nodejs/getService.ts index e38b62c9..d2360e7a 100644 --- a/sdk/nodejs/getService.ts +++ b/sdk/nodejs/getService.ts @@ -32,7 +32,6 @@ import * as utilities from "./utilities"; * ``` */ export function getService(args: GetServiceArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getService:getService", { "name": args.name, @@ -96,7 +95,12 @@ export interface GetServiceResult { * ``` */ export function getServiceOutput(args: GetServiceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getService(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getService:getService", { + "name": args.name, + "operator": args.operator, + "tags": args.tags, + }, opts); } /** diff --git a/sdk/nodejs/getSlo.ts b/sdk/nodejs/getSlo.ts index f102b2f0..cb9ba5f0 100644 --- a/sdk/nodejs/getSlo.ts +++ b/sdk/nodejs/getSlo.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; * ``` */ export function getSlo(args: GetSloArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getSlo:getSlo", { "name": args.name, @@ -116,7 +115,10 @@ export interface GetSloResult { * ``` */ export function getSloOutput(args: GetSloOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSlo(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getSlo:getSlo", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getSyntheticLocation.ts b/sdk/nodejs/getSyntheticLocation.ts index e7ad95a2..8826de61 100644 --- a/sdk/nodejs/getSyntheticLocation.ts +++ b/sdk/nodejs/getSyntheticLocation.ts @@ -9,7 +9,6 @@ import * as utilities from "./utilities"; */ export function getSyntheticLocation(args?: GetSyntheticLocationArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getSyntheticLocation:getSyntheticLocation", { "cloudPlatform": args.cloudPlatform, @@ -61,7 +60,17 @@ export interface GetSyntheticLocationResult { * The synthetic location data source allows the location ID to be retrieved based off of provided parameters. */ export function getSyntheticLocationOutput(args?: GetSyntheticLocationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSyntheticLocation(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getSyntheticLocation:getSyntheticLocation", { + "cloudPlatform": args.cloudPlatform, + "entityId": args.entityId, + "ips": args.ips, + "name": args.name, + "stage": args.stage, + "status": args.status, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getSyntheticLocations.ts b/sdk/nodejs/getSyntheticLocations.ts index 883239b9..d812bafe 100644 --- a/sdk/nodejs/getSyntheticLocations.ts +++ b/sdk/nodejs/getSyntheticLocations.ts @@ -56,7 +56,6 @@ import * as utilities from "./utilities"; */ export function getSyntheticLocations(args?: GetSyntheticLocationsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getSyntheticLocations:getSyntheticLocations", { "id": args.id, @@ -137,7 +136,13 @@ export interface GetSyntheticLocationsResult { * ``` */ export function getSyntheticLocationsOutput(args?: GetSyntheticLocationsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSyntheticLocations(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getSyntheticLocations:getSyntheticLocations", { + "id": args.id, + "locations": args.locations, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getSyntheticNodes.ts b/sdk/nodejs/getSyntheticNodes.ts index 4837d2f1..9e07e71b 100644 --- a/sdk/nodejs/getSyntheticNodes.ts +++ b/sdk/nodejs/getSyntheticNodes.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * The synthetic locations data source queries for all available Synthetic Nodes. The data source doesn't need to get configured. It always provides the full list of synthetic nodes. */ export function getSyntheticNodes(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getSyntheticNodes:getSyntheticNodes", { }, opts); @@ -30,5 +29,7 @@ export interface GetSyntheticNodesResult { * The synthetic locations data source queries for all available Synthetic Nodes. The data source doesn't need to get configured. It always provides the full list of synthetic nodes. */ export function getSyntheticNodesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getSyntheticNodes(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getSyntheticNodes:getSyntheticNodes", { + }, opts); } diff --git a/sdk/nodejs/getTenant.ts b/sdk/nodejs/getTenant.ts index e225dbd8..ca6b10a2 100644 --- a/sdk/nodejs/getTenant.ts +++ b/sdk/nodejs/getTenant.ts @@ -9,7 +9,6 @@ import * as utilities from "./utilities"; * Main purpose is for migrating settings from one environment to another, but it can be used to in general to avoid hard coding the environment ID like in the example below. */ export function getTenant(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getTenant:getTenant", { }, opts); @@ -30,5 +29,7 @@ export interface GetTenantResult { * Main purpose is for migrating settings from one environment to another, but it can be used to in general to avoid hard coding the environment ID like in the example below. */ export function getTenantOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getTenant(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getTenant:getTenant", { + }, opts); } diff --git a/sdk/nodejs/getUpdateWindows.ts b/sdk/nodejs/getUpdateWindows.ts index 5d07f3c0..38e2b5c4 100644 --- a/sdk/nodejs/getUpdateWindows.ts +++ b/sdk/nodejs/getUpdateWindows.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getUpdateWindows(args: GetUpdateWindowsArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getUpdateWindows:getUpdateWindows", { "name": args.name, @@ -64,7 +63,10 @@ export interface GetUpdateWindowsResult { * ``` */ export function getUpdateWindowsOutput(args: GetUpdateWindowsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getUpdateWindows(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getUpdateWindows:getUpdateWindows", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getVulnerabilityAlerting.ts b/sdk/nodejs/getVulnerabilityAlerting.ts index 28f719cb..d0c65149 100644 --- a/sdk/nodejs/getVulnerabilityAlerting.ts +++ b/sdk/nodejs/getVulnerabilityAlerting.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; * ``` */ export function getVulnerabilityAlerting(args: GetVulnerabilityAlertingArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getVulnerabilityAlerting:getVulnerabilityAlerting", { "name": args.name, @@ -68,7 +67,10 @@ export interface GetVulnerabilityAlertingResult { * ``` */ export function getVulnerabilityAlertingOutput(args: GetVulnerabilityAlertingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getVulnerabilityAlerting(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("dynatrace:index/getVulnerabilityAlerting:getVulnerabilityAlerting", { + "name": args.name, + }, opts); } /**