diff --git a/sdk/go/datadog/aws/getIntegrationLogsServices.go b/sdk/go/datadog/aws/getIntegrationLogsServices.go index 79fba1c68..901fe0634 100644 --- a/sdk/go/datadog/aws/getIntegrationLogsServices.go +++ b/sdk/go/datadog/aws/getIntegrationLogsServices.go @@ -31,13 +31,19 @@ type GetIntegrationLogsServicesResult struct { } func GetIntegrationLogsServicesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIntegrationLogsServicesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetIntegrationLogsServicesResult, error) { - r, err := GetIntegrationLogsServices(ctx, opts...) - var s GetIntegrationLogsServicesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetIntegrationLogsServicesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetIntegrationLogsServicesResult + secret, err := ctx.InvokePackageRaw("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", nil, &rv, "", opts...) + if err != nil { + return GetIntegrationLogsServicesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetIntegrationLogsServicesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetIntegrationLogsServicesResultOutput), nil + } + return output, nil }).(GetIntegrationLogsServicesResultOutput) } diff --git a/sdk/go/datadog/aws/getIntegrationNamespaceRules.go b/sdk/go/datadog/aws/getIntegrationNamespaceRules.go index c2f02af41..d8eb66860 100644 --- a/sdk/go/datadog/aws/getIntegrationNamespaceRules.go +++ b/sdk/go/datadog/aws/getIntegrationNamespaceRules.go @@ -55,13 +55,19 @@ type GetIntegrationNamespaceRulesResult struct { } func GetIntegrationNamespaceRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIntegrationNamespaceRulesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetIntegrationNamespaceRulesResult, error) { - r, err := GetIntegrationNamespaceRules(ctx, opts...) - var s GetIntegrationNamespaceRulesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetIntegrationNamespaceRulesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetIntegrationNamespaceRulesResult + secret, err := ctx.InvokePackageRaw("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", nil, &rv, "", opts...) + if err != nil { + return GetIntegrationNamespaceRulesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetIntegrationNamespaceRulesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetIntegrationNamespaceRulesResultOutput), nil + } + return output, nil }).(GetIntegrationNamespaceRulesResultOutput) } diff --git a/sdk/go/datadog/getApiKey.go b/sdk/go/datadog/getApiKey.go index c521c8913..b5bd63f33 100644 --- a/sdk/go/datadog/getApiKey.go +++ b/sdk/go/datadog/getApiKey.go @@ -72,14 +72,20 @@ type LookupApiKeyResult struct { func LookupApiKeyOutput(ctx *pulumi.Context, args LookupApiKeyOutputArgs, opts ...pulumi.InvokeOption) LookupApiKeyResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupApiKeyResult, error) { + ApplyT(func(v interface{}) (LookupApiKeyResultOutput, error) { args := v.(LookupApiKeyArgs) - r, err := LookupApiKey(ctx, &args, opts...) - var s LookupApiKeyResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupApiKeyResult + secret, err := ctx.InvokePackageRaw("datadog:index/getApiKey:getApiKey", args, &rv, "", opts...) + if err != nil { + return LookupApiKeyResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupApiKeyResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupApiKeyResultOutput), nil + } + return output, nil }).(LookupApiKeyResultOutput) } diff --git a/sdk/go/datadog/getApmRetentionFiltersOrder.go b/sdk/go/datadog/getApmRetentionFiltersOrder.go index 18e8a4dcc..1ee1fb373 100644 --- a/sdk/go/datadog/getApmRetentionFiltersOrder.go +++ b/sdk/go/datadog/getApmRetentionFiltersOrder.go @@ -55,13 +55,19 @@ type GetApmRetentionFiltersOrderResult struct { } func GetApmRetentionFiltersOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetApmRetentionFiltersOrderResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetApmRetentionFiltersOrderResult, error) { - r, err := GetApmRetentionFiltersOrder(ctx, opts...) - var s GetApmRetentionFiltersOrderResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetApmRetentionFiltersOrderResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetApmRetentionFiltersOrderResult + secret, err := ctx.InvokePackageRaw("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", nil, &rv, "", opts...) + if err != nil { + return GetApmRetentionFiltersOrderResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetApmRetentionFiltersOrderResultOutput) + if secret { + return pulumi.ToSecret(output).(GetApmRetentionFiltersOrderResultOutput), nil + } + return output, nil }).(GetApmRetentionFiltersOrderResultOutput) } diff --git a/sdk/go/datadog/getApplicationKey.go b/sdk/go/datadog/getApplicationKey.go index 2537417ab..be9ab0449 100644 --- a/sdk/go/datadog/getApplicationKey.go +++ b/sdk/go/datadog/getApplicationKey.go @@ -72,14 +72,20 @@ type LookupApplicationKeyResult struct { func LookupApplicationKeyOutput(ctx *pulumi.Context, args LookupApplicationKeyOutputArgs, opts ...pulumi.InvokeOption) LookupApplicationKeyResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupApplicationKeyResult, error) { + ApplyT(func(v interface{}) (LookupApplicationKeyResultOutput, error) { args := v.(LookupApplicationKeyArgs) - r, err := LookupApplicationKey(ctx, &args, opts...) - var s LookupApplicationKeyResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupApplicationKeyResult + secret, err := ctx.InvokePackageRaw("datadog:index/getApplicationKey:getApplicationKey", args, &rv, "", opts...) + if err != nil { + return LookupApplicationKeyResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupApplicationKeyResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupApplicationKeyResultOutput), nil + } + return output, nil }).(LookupApplicationKeyResultOutput) } diff --git a/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go b/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go index 87499ae10..447fd3fd0 100644 --- a/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go +++ b/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go @@ -53,13 +53,19 @@ type GetCloudWorkloadSecurityAgentRulesResult struct { } func GetCloudWorkloadSecurityAgentRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetCloudWorkloadSecurityAgentRulesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetCloudWorkloadSecurityAgentRulesResult, error) { - r, err := GetCloudWorkloadSecurityAgentRules(ctx, opts...) - var s GetCloudWorkloadSecurityAgentRulesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetCloudWorkloadSecurityAgentRulesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetCloudWorkloadSecurityAgentRulesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", nil, &rv, "", opts...) + if err != nil { + return GetCloudWorkloadSecurityAgentRulesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetCloudWorkloadSecurityAgentRulesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetCloudWorkloadSecurityAgentRulesResultOutput), nil + } + return output, nil }).(GetCloudWorkloadSecurityAgentRulesResultOutput) } diff --git a/sdk/go/datadog/getCsmThreatsAgentRules.go b/sdk/go/datadog/getCsmThreatsAgentRules.go index 46b9b2731..841f2670c 100644 --- a/sdk/go/datadog/getCsmThreatsAgentRules.go +++ b/sdk/go/datadog/getCsmThreatsAgentRules.go @@ -33,13 +33,19 @@ type GetCsmThreatsAgentRulesResult struct { } func GetCsmThreatsAgentRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetCsmThreatsAgentRulesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetCsmThreatsAgentRulesResult, error) { - r, err := GetCsmThreatsAgentRules(ctx, opts...) - var s GetCsmThreatsAgentRulesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetCsmThreatsAgentRulesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetCsmThreatsAgentRulesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", nil, &rv, "", opts...) + if err != nil { + return GetCsmThreatsAgentRulesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetCsmThreatsAgentRulesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetCsmThreatsAgentRulesResultOutput), nil + } + return output, nil }).(GetCsmThreatsAgentRulesResultOutput) } diff --git a/sdk/go/datadog/getDashboard.go b/sdk/go/datadog/getDashboard.go index 84566b419..c90847b42 100644 --- a/sdk/go/datadog/getDashboard.go +++ b/sdk/go/datadog/getDashboard.go @@ -68,14 +68,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("datadog: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/datadog/getDashboardList.go b/sdk/go/datadog/getDashboardList.go index c83ac8002..8f06c05eb 100644 --- a/sdk/go/datadog/getDashboardList.go +++ b/sdk/go/datadog/getDashboardList.go @@ -87,14 +87,20 @@ type LookupDashboardListResult struct { func LookupDashboardListOutput(ctx *pulumi.Context, args LookupDashboardListOutputArgs, opts ...pulumi.InvokeOption) LookupDashboardListResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupDashboardListResult, error) { + ApplyT(func(v interface{}) (LookupDashboardListResultOutput, error) { args := v.(LookupDashboardListArgs) - r, err := LookupDashboardList(ctx, &args, opts...) - var s LookupDashboardListResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupDashboardListResult + secret, err := ctx.InvokePackageRaw("datadog:index/getDashboardList:getDashboardList", args, &rv, "", opts...) + if err != nil { + return LookupDashboardListResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupDashboardListResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupDashboardListResultOutput), nil + } + return output, nil }).(LookupDashboardListResultOutput) } diff --git a/sdk/go/datadog/getHosts.go b/sdk/go/datadog/getHosts.go index 8e0d206cc..a8903419f 100644 --- a/sdk/go/datadog/getHosts.go +++ b/sdk/go/datadog/getHosts.go @@ -60,14 +60,20 @@ type GetHostsResult struct { func GetHostsOutput(ctx *pulumi.Context, args GetHostsOutputArgs, opts ...pulumi.InvokeOption) GetHostsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetHostsResult, error) { + ApplyT(func(v interface{}) (GetHostsResultOutput, error) { args := v.(GetHostsArgs) - r, err := GetHosts(ctx, &args, opts...) - var s GetHostsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHostsResult + secret, err := ctx.InvokePackageRaw("datadog:index/getHosts:getHosts", args, &rv, "", opts...) + if err != nil { + return GetHostsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHostsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHostsResultOutput), nil + } + return output, nil }).(GetHostsResultOutput) } diff --git a/sdk/go/datadog/getIpRanges.go b/sdk/go/datadog/getIpRanges.go index 2859c08d3..b9681088c 100644 --- a/sdk/go/datadog/getIpRanges.go +++ b/sdk/go/datadog/getIpRanges.go @@ -93,13 +93,19 @@ type GetIpRangesResult struct { } func GetIpRangesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIpRangesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetIpRangesResult, error) { - r, err := GetIpRanges(ctx, opts...) - var s GetIpRangesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetIpRangesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetIpRangesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getIpRanges:getIpRanges", nil, &rv, "", opts...) + if err != nil { + return GetIpRangesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetIpRangesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetIpRangesResultOutput), nil + } + return output, nil }).(GetIpRangesResultOutput) } diff --git a/sdk/go/datadog/getLogsArchivesOrder.go b/sdk/go/datadog/getLogsArchivesOrder.go index ec3bfae95..76d2533b7 100644 --- a/sdk/go/datadog/getLogsArchivesOrder.go +++ b/sdk/go/datadog/getLogsArchivesOrder.go @@ -31,13 +31,19 @@ type GetLogsArchivesOrderResult struct { } func GetLogsArchivesOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLogsArchivesOrderResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetLogsArchivesOrderResult, error) { - r, err := GetLogsArchivesOrder(ctx, opts...) - var s GetLogsArchivesOrderResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetLogsArchivesOrderResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetLogsArchivesOrderResult + secret, err := ctx.InvokePackageRaw("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", nil, &rv, "", opts...) + if err != nil { + return GetLogsArchivesOrderResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetLogsArchivesOrderResultOutput) + if secret { + return pulumi.ToSecret(output).(GetLogsArchivesOrderResultOutput), nil + } + return output, nil }).(GetLogsArchivesOrderResultOutput) } diff --git a/sdk/go/datadog/getLogsIndexes.go b/sdk/go/datadog/getLogsIndexes.go index ff7d99fe2..f2c5b82b5 100644 --- a/sdk/go/datadog/getLogsIndexes.go +++ b/sdk/go/datadog/getLogsIndexes.go @@ -55,13 +55,19 @@ type GetLogsIndexesResult struct { } func GetLogsIndexesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLogsIndexesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetLogsIndexesResult, error) { - r, err := GetLogsIndexes(ctx, opts...) - var s GetLogsIndexesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetLogsIndexesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetLogsIndexesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getLogsIndexes:getLogsIndexes", nil, &rv, "", opts...) + if err != nil { + return GetLogsIndexesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetLogsIndexesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetLogsIndexesResultOutput), nil + } + return output, nil }).(GetLogsIndexesResultOutput) } diff --git a/sdk/go/datadog/getLogsIndexesOrder.go b/sdk/go/datadog/getLogsIndexesOrder.go index bb6e0ebe7..1c151998b 100644 --- a/sdk/go/datadog/getLogsIndexesOrder.go +++ b/sdk/go/datadog/getLogsIndexesOrder.go @@ -55,13 +55,19 @@ type GetLogsIndexesOrderResult struct { } func GetLogsIndexesOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLogsIndexesOrderResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetLogsIndexesOrderResult, error) { - r, err := GetLogsIndexesOrder(ctx, opts...) - var s GetLogsIndexesOrderResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetLogsIndexesOrderResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetLogsIndexesOrderResult + secret, err := ctx.InvokePackageRaw("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", nil, &rv, "", opts...) + if err != nil { + return GetLogsIndexesOrderResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetLogsIndexesOrderResultOutput) + if secret { + return pulumi.ToSecret(output).(GetLogsIndexesOrderResultOutput), nil + } + return output, nil }).(GetLogsIndexesOrderResultOutput) } diff --git a/sdk/go/datadog/getLogsPipelines.go b/sdk/go/datadog/getLogsPipelines.go index 7cf2e6040..a6c78e6fb 100644 --- a/sdk/go/datadog/getLogsPipelines.go +++ b/sdk/go/datadog/getLogsPipelines.go @@ -40,14 +40,20 @@ type GetLogsPipelinesResult struct { func GetLogsPipelinesOutput(ctx *pulumi.Context, args GetLogsPipelinesOutputArgs, opts ...pulumi.InvokeOption) GetLogsPipelinesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetLogsPipelinesResult, error) { + ApplyT(func(v interface{}) (GetLogsPipelinesResultOutput, error) { args := v.(GetLogsPipelinesArgs) - r, err := GetLogsPipelines(ctx, &args, opts...) - var s GetLogsPipelinesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetLogsPipelinesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getLogsPipelines:getLogsPipelines", args, &rv, "", opts...) + if err != nil { + return GetLogsPipelinesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetLogsPipelinesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetLogsPipelinesResultOutput), nil + } + return output, nil }).(GetLogsPipelinesResultOutput) } diff --git a/sdk/go/datadog/getMonitor.go b/sdk/go/datadog/getMonitor.go index 821449723..00c939b62 100644 --- a/sdk/go/datadog/getMonitor.go +++ b/sdk/go/datadog/getMonitor.go @@ -134,14 +134,20 @@ type LookupMonitorResult struct { func LookupMonitorOutput(ctx *pulumi.Context, args LookupMonitorOutputArgs, opts ...pulumi.InvokeOption) LookupMonitorResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupMonitorResult, error) { + ApplyT(func(v interface{}) (LookupMonitorResultOutput, error) { args := v.(LookupMonitorArgs) - r, err := LookupMonitor(ctx, &args, opts...) - var s LookupMonitorResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupMonitorResult + secret, err := ctx.InvokePackageRaw("datadog:index/getMonitor:getMonitor", args, &rv, "", opts...) + if err != nil { + return LookupMonitorResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupMonitorResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupMonitorResultOutput), nil + } + return output, nil }).(LookupMonitorResultOutput) } diff --git a/sdk/go/datadog/getMonitorConfigPolicies.go b/sdk/go/datadog/getMonitorConfigPolicies.go index 13b768be1..129ae7acc 100644 --- a/sdk/go/datadog/getMonitorConfigPolicies.go +++ b/sdk/go/datadog/getMonitorConfigPolicies.go @@ -55,13 +55,19 @@ type GetMonitorConfigPoliciesResult struct { } func GetMonitorConfigPoliciesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetMonitorConfigPoliciesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetMonitorConfigPoliciesResult, error) { - r, err := GetMonitorConfigPolicies(ctx, opts...) - var s GetMonitorConfigPoliciesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetMonitorConfigPoliciesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetMonitorConfigPoliciesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", nil, &rv, "", opts...) + if err != nil { + return GetMonitorConfigPoliciesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetMonitorConfigPoliciesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetMonitorConfigPoliciesResultOutput), nil + } + return output, nil }).(GetMonitorConfigPoliciesResultOutput) } diff --git a/sdk/go/datadog/getMonitors.go b/sdk/go/datadog/getMonitors.go index ca47b6e36..6f079eb19 100644 --- a/sdk/go/datadog/getMonitors.go +++ b/sdk/go/datadog/getMonitors.go @@ -48,14 +48,20 @@ type GetMonitorsResult struct { func GetMonitorsOutput(ctx *pulumi.Context, args GetMonitorsOutputArgs, opts ...pulumi.InvokeOption) GetMonitorsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetMonitorsResult, error) { + ApplyT(func(v interface{}) (GetMonitorsResultOutput, error) { args := v.(GetMonitorsArgs) - r, err := GetMonitors(ctx, &args, opts...) - var s GetMonitorsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetMonitorsResult + secret, err := ctx.InvokePackageRaw("datadog:index/getMonitors:getMonitors", args, &rv, "", opts...) + if err != nil { + return GetMonitorsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetMonitorsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetMonitorsResultOutput), nil + } + return output, nil }).(GetMonitorsResultOutput) } diff --git a/sdk/go/datadog/getPermissions.go b/sdk/go/datadog/getPermissions.go index 697756ec9..6d37dceab 100644 --- a/sdk/go/datadog/getPermissions.go +++ b/sdk/go/datadog/getPermissions.go @@ -64,14 +64,20 @@ type GetPermissionsResult struct { func GetPermissionsOutput(ctx *pulumi.Context, args GetPermissionsOutputArgs, opts ...pulumi.InvokeOption) GetPermissionsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetPermissionsResult, error) { + ApplyT(func(v interface{}) (GetPermissionsResultOutput, error) { args := v.(GetPermissionsArgs) - r, err := GetPermissions(ctx, &args, opts...) - var s GetPermissionsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetPermissionsResult + secret, err := ctx.InvokePackageRaw("datadog:index/getPermissions:getPermissions", args, &rv, "", opts...) + if err != nil { + return GetPermissionsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetPermissionsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetPermissionsResultOutput), nil + } + return output, nil }).(GetPermissionsResultOutput) } diff --git a/sdk/go/datadog/getPowerpack.go b/sdk/go/datadog/getPowerpack.go index 841759d3e..eb993b48d 100644 --- a/sdk/go/datadog/getPowerpack.go +++ b/sdk/go/datadog/getPowerpack.go @@ -38,14 +38,20 @@ type LookupPowerpackResult struct { func LookupPowerpackOutput(ctx *pulumi.Context, args LookupPowerpackOutputArgs, opts ...pulumi.InvokeOption) LookupPowerpackResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupPowerpackResult, error) { + ApplyT(func(v interface{}) (LookupPowerpackResultOutput, error) { args := v.(LookupPowerpackArgs) - r, err := LookupPowerpack(ctx, &args, opts...) - var s LookupPowerpackResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupPowerpackResult + secret, err := ctx.InvokePackageRaw("datadog:index/getPowerpack:getPowerpack", args, &rv, "", opts...) + if err != nil { + return LookupPowerpackResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupPowerpackResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupPowerpackResultOutput), nil + } + return output, nil }).(LookupPowerpackResultOutput) } diff --git a/sdk/go/datadog/getRole.go b/sdk/go/datadog/getRole.go index 42e71aaac..c8b2c260d 100644 --- a/sdk/go/datadog/getRole.go +++ b/sdk/go/datadog/getRole.go @@ -68,14 +68,20 @@ type LookupRoleResult struct { func LookupRoleOutput(ctx *pulumi.Context, args LookupRoleOutputArgs, opts ...pulumi.InvokeOption) LookupRoleResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRoleResult, error) { + ApplyT(func(v interface{}) (LookupRoleResultOutput, error) { args := v.(LookupRoleArgs) - r, err := LookupRole(ctx, &args, opts...) - var s LookupRoleResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRoleResult + secret, err := ctx.InvokePackageRaw("datadog:index/getRole:getRole", args, &rv, "", opts...) + if err != nil { + return LookupRoleResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRoleResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRoleResultOutput), nil + } + return output, nil }).(LookupRoleResultOutput) } diff --git a/sdk/go/datadog/getRoleUsers.go b/sdk/go/datadog/getRoleUsers.go index 1fafd6418..8aa8cd306 100644 --- a/sdk/go/datadog/getRoleUsers.go +++ b/sdk/go/datadog/getRoleUsers.go @@ -48,14 +48,20 @@ type GetRoleUsersResult struct { func GetRoleUsersOutput(ctx *pulumi.Context, args GetRoleUsersOutputArgs, opts ...pulumi.InvokeOption) GetRoleUsersResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetRoleUsersResult, error) { + ApplyT(func(v interface{}) (GetRoleUsersResultOutput, error) { args := v.(GetRoleUsersArgs) - r, err := GetRoleUsers(ctx, &args, opts...) - var s GetRoleUsersResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetRoleUsersResult + secret, err := ctx.InvokePackageRaw("datadog:index/getRoleUsers:getRoleUsers", args, &rv, "", opts...) + if err != nil { + return GetRoleUsersResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetRoleUsersResultOutput) + if secret { + return pulumi.ToSecret(output).(GetRoleUsersResultOutput), nil + } + return output, nil }).(GetRoleUsersResultOutput) } diff --git a/sdk/go/datadog/getRoles.go b/sdk/go/datadog/getRoles.go index ef73359c6..cc98b5661 100644 --- a/sdk/go/datadog/getRoles.go +++ b/sdk/go/datadog/getRoles.go @@ -66,14 +66,20 @@ type GetRolesResult struct { func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetRolesResult, error) { + ApplyT(func(v interface{}) (GetRolesResultOutput, error) { args := v.(GetRolesArgs) - r, err := GetRoles(ctx, &args, opts...) - var s GetRolesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetRolesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getRoles:getRoles", args, &rv, "", opts...) + if err != nil { + return GetRolesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetRolesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetRolesResultOutput), nil + } + return output, nil }).(GetRolesResultOutput) } diff --git a/sdk/go/datadog/getRumApplication.go b/sdk/go/datadog/getRumApplication.go index 6dc0c72ec..37d25510c 100644 --- a/sdk/go/datadog/getRumApplication.go +++ b/sdk/go/datadog/getRumApplication.go @@ -50,14 +50,20 @@ type LookupRumApplicationResult struct { func LookupRumApplicationOutput(ctx *pulumi.Context, args LookupRumApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupRumApplicationResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRumApplicationResult, error) { + ApplyT(func(v interface{}) (LookupRumApplicationResultOutput, error) { args := v.(LookupRumApplicationArgs) - r, err := LookupRumApplication(ctx, &args, opts...) - var s LookupRumApplicationResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRumApplicationResult + secret, err := ctx.InvokePackageRaw("datadog:index/getRumApplication:getRumApplication", args, &rv, "", opts...) + if err != nil { + return LookupRumApplicationResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRumApplicationResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRumApplicationResultOutput), nil + } + return output, nil }).(LookupRumApplicationResultOutput) } diff --git a/sdk/go/datadog/getSecurityMonitoringFilters.go b/sdk/go/datadog/getSecurityMonitoringFilters.go index bf37eb6df..c7a4c5a18 100644 --- a/sdk/go/datadog/getSecurityMonitoringFilters.go +++ b/sdk/go/datadog/getSecurityMonitoringFilters.go @@ -57,13 +57,19 @@ type GetSecurityMonitoringFiltersResult struct { } func GetSecurityMonitoringFiltersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSecurityMonitoringFiltersResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetSecurityMonitoringFiltersResult, error) { - r, err := GetSecurityMonitoringFilters(ctx, opts...) - var s GetSecurityMonitoringFiltersResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetSecurityMonitoringFiltersResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSecurityMonitoringFiltersResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", nil, &rv, "", opts...) + if err != nil { + return GetSecurityMonitoringFiltersResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSecurityMonitoringFiltersResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSecurityMonitoringFiltersResultOutput), nil + } + return output, nil }).(GetSecurityMonitoringFiltersResultOutput) } diff --git a/sdk/go/datadog/getSecurityMonitoringRules.go b/sdk/go/datadog/getSecurityMonitoringRules.go index 394fcbede..1af13e6c7 100644 --- a/sdk/go/datadog/getSecurityMonitoringRules.go +++ b/sdk/go/datadog/getSecurityMonitoringRules.go @@ -84,14 +84,20 @@ type GetSecurityMonitoringRulesResult struct { func GetSecurityMonitoringRulesOutput(ctx *pulumi.Context, args GetSecurityMonitoringRulesOutputArgs, opts ...pulumi.InvokeOption) GetSecurityMonitoringRulesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetSecurityMonitoringRulesResult, error) { + ApplyT(func(v interface{}) (GetSecurityMonitoringRulesResultOutput, error) { args := v.(GetSecurityMonitoringRulesArgs) - r, err := GetSecurityMonitoringRules(ctx, &args, opts...) - var s GetSecurityMonitoringRulesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSecurityMonitoringRulesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", args, &rv, "", opts...) + if err != nil { + return GetSecurityMonitoringRulesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSecurityMonitoringRulesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSecurityMonitoringRulesResultOutput), nil + } + return output, nil }).(GetSecurityMonitoringRulesResultOutput) } diff --git a/sdk/go/datadog/getSecurityMonitoringSuppressions.go b/sdk/go/datadog/getSecurityMonitoringSuppressions.go index 8bd1efe72..2bdea5028 100644 --- a/sdk/go/datadog/getSecurityMonitoringSuppressions.go +++ b/sdk/go/datadog/getSecurityMonitoringSuppressions.go @@ -33,13 +33,19 @@ type GetSecurityMonitoringSuppressionsResult struct { } func GetSecurityMonitoringSuppressionsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSecurityMonitoringSuppressionsResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetSecurityMonitoringSuppressionsResult, error) { - r, err := GetSecurityMonitoringSuppressions(ctx, opts...) - var s GetSecurityMonitoringSuppressionsResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetSecurityMonitoringSuppressionsResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSecurityMonitoringSuppressionsResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", nil, &rv, "", opts...) + if err != nil { + return GetSecurityMonitoringSuppressionsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSecurityMonitoringSuppressionsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSecurityMonitoringSuppressionsResultOutput), nil + } + return output, nil }).(GetSecurityMonitoringSuppressionsResultOutput) } diff --git a/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go b/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go index 046ff8158..89208f781 100644 --- a/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go +++ b/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go @@ -61,13 +61,19 @@ type LookupSensitiveDataScannerGroupOrderResult struct { } func LookupSensitiveDataScannerGroupOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) LookupSensitiveDataScannerGroupOrderResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (LookupSensitiveDataScannerGroupOrderResult, error) { - r, err := LookupSensitiveDataScannerGroupOrder(ctx, opts...) - var s LookupSensitiveDataScannerGroupOrderResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (LookupSensitiveDataScannerGroupOrderResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSensitiveDataScannerGroupOrderResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", nil, &rv, "", opts...) + if err != nil { + return LookupSensitiveDataScannerGroupOrderResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSensitiveDataScannerGroupOrderResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSensitiveDataScannerGroupOrderResultOutput), nil + } + return output, nil }).(LookupSensitiveDataScannerGroupOrderResultOutput) } diff --git a/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go b/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go index 4ddda0835..9f71aaeea 100644 --- a/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go +++ b/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go @@ -46,14 +46,20 @@ type GetSensitiveDataScannerStandardPatternResult struct { func GetSensitiveDataScannerStandardPatternOutput(ctx *pulumi.Context, args GetSensitiveDataScannerStandardPatternOutputArgs, opts ...pulumi.InvokeOption) GetSensitiveDataScannerStandardPatternResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetSensitiveDataScannerStandardPatternResult, error) { + ApplyT(func(v interface{}) (GetSensitiveDataScannerStandardPatternResultOutput, error) { args := v.(GetSensitiveDataScannerStandardPatternArgs) - r, err := GetSensitiveDataScannerStandardPattern(ctx, &args, opts...) - var s GetSensitiveDataScannerStandardPatternResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSensitiveDataScannerStandardPatternResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", args, &rv, "", opts...) + if err != nil { + return GetSensitiveDataScannerStandardPatternResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSensitiveDataScannerStandardPatternResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSensitiveDataScannerStandardPatternResultOutput), nil + } + return output, nil }).(GetSensitiveDataScannerStandardPatternResultOutput) } diff --git a/sdk/go/datadog/getServiceAccount.go b/sdk/go/datadog/getServiceAccount.go index e1d85a428..4323cf829 100644 --- a/sdk/go/datadog/getServiceAccount.go +++ b/sdk/go/datadog/getServiceAccount.go @@ -66,14 +66,20 @@ type LookupServiceAccountResult struct { func LookupServiceAccountOutput(ctx *pulumi.Context, args LookupServiceAccountOutputArgs, opts ...pulumi.InvokeOption) LookupServiceAccountResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupServiceAccountResult, error) { + ApplyT(func(v interface{}) (LookupServiceAccountResultOutput, error) { args := v.(LookupServiceAccountArgs) - r, err := LookupServiceAccount(ctx, &args, opts...) - var s LookupServiceAccountResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupServiceAccountResult + secret, err := ctx.InvokePackageRaw("datadog:index/getServiceAccount:getServiceAccount", args, &rv, "", opts...) + if err != nil { + return LookupServiceAccountResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupServiceAccountResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupServiceAccountResultOutput), nil + } + return output, nil }).(LookupServiceAccountResultOutput) } diff --git a/sdk/go/datadog/getServiceLevelObjective.go b/sdk/go/datadog/getServiceLevelObjective.go index 48f134799..8c52f8575 100644 --- a/sdk/go/datadog/getServiceLevelObjective.go +++ b/sdk/go/datadog/getServiceLevelObjective.go @@ -95,14 +95,20 @@ type LookupServiceLevelObjectiveResult struct { func LookupServiceLevelObjectiveOutput(ctx *pulumi.Context, args LookupServiceLevelObjectiveOutputArgs, opts ...pulumi.InvokeOption) LookupServiceLevelObjectiveResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupServiceLevelObjectiveResult, error) { + ApplyT(func(v interface{}) (LookupServiceLevelObjectiveResultOutput, error) { args := v.(LookupServiceLevelObjectiveArgs) - r, err := LookupServiceLevelObjective(ctx, &args, opts...) - var s LookupServiceLevelObjectiveResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupServiceLevelObjectiveResult + secret, err := ctx.InvokePackageRaw("datadog:index/getServiceLevelObjective:getServiceLevelObjective", args, &rv, "", opts...) + if err != nil { + return LookupServiceLevelObjectiveResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupServiceLevelObjectiveResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupServiceLevelObjectiveResultOutput), nil + } + return output, nil }).(LookupServiceLevelObjectiveResultOutput) } diff --git a/sdk/go/datadog/getServiceLevelObjectives.go b/sdk/go/datadog/getServiceLevelObjectives.go index d3fdbdfcc..f7116d592 100644 --- a/sdk/go/datadog/getServiceLevelObjectives.go +++ b/sdk/go/datadog/getServiceLevelObjectives.go @@ -86,14 +86,20 @@ type GetServiceLevelObjectivesResult struct { func GetServiceLevelObjectivesOutput(ctx *pulumi.Context, args GetServiceLevelObjectivesOutputArgs, opts ...pulumi.InvokeOption) GetServiceLevelObjectivesResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetServiceLevelObjectivesResult, error) { + ApplyT(func(v interface{}) (GetServiceLevelObjectivesResultOutput, error) { args := v.(GetServiceLevelObjectivesArgs) - r, err := GetServiceLevelObjectives(ctx, &args, opts...) - var s GetServiceLevelObjectivesResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetServiceLevelObjectivesResult + secret, err := ctx.InvokePackageRaw("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", args, &rv, "", opts...) + if err != nil { + return GetServiceLevelObjectivesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetServiceLevelObjectivesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetServiceLevelObjectivesResultOutput), nil + } + return output, nil }).(GetServiceLevelObjectivesResultOutput) } diff --git a/sdk/go/datadog/getSyntheticsGlobalVariable.go b/sdk/go/datadog/getSyntheticsGlobalVariable.go index 0efec3963..e9698f4e4 100644 --- a/sdk/go/datadog/getSyntheticsGlobalVariable.go +++ b/sdk/go/datadog/getSyntheticsGlobalVariable.go @@ -40,14 +40,20 @@ type LookupSyntheticsGlobalVariableResult struct { func LookupSyntheticsGlobalVariableOutput(ctx *pulumi.Context, args LookupSyntheticsGlobalVariableOutputArgs, opts ...pulumi.InvokeOption) LookupSyntheticsGlobalVariableResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSyntheticsGlobalVariableResult, error) { + ApplyT(func(v interface{}) (LookupSyntheticsGlobalVariableResultOutput, error) { args := v.(LookupSyntheticsGlobalVariableArgs) - r, err := LookupSyntheticsGlobalVariable(ctx, &args, opts...) - var s LookupSyntheticsGlobalVariableResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSyntheticsGlobalVariableResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", args, &rv, "", opts...) + if err != nil { + return LookupSyntheticsGlobalVariableResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSyntheticsGlobalVariableResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSyntheticsGlobalVariableResultOutput), nil + } + return output, nil }).(LookupSyntheticsGlobalVariableResultOutput) } diff --git a/sdk/go/datadog/getSyntheticsLocations.go b/sdk/go/datadog/getSyntheticsLocations.go index 9cb6a0292..6e2aaf502 100644 --- a/sdk/go/datadog/getSyntheticsLocations.go +++ b/sdk/go/datadog/getSyntheticsLocations.go @@ -31,13 +31,19 @@ type GetSyntheticsLocationsResult struct { } func GetSyntheticsLocationsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSyntheticsLocationsResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetSyntheticsLocationsResult, error) { - r, err := GetSyntheticsLocations(ctx, opts...) - var s GetSyntheticsLocationsResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetSyntheticsLocationsResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetSyntheticsLocationsResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSyntheticsLocations:getSyntheticsLocations", nil, &rv, "", opts...) + if err != nil { + return GetSyntheticsLocationsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetSyntheticsLocationsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetSyntheticsLocationsResultOutput), nil + } + return output, nil }).(GetSyntheticsLocationsResultOutput) } diff --git a/sdk/go/datadog/getSyntheticsTest.go b/sdk/go/datadog/getSyntheticsTest.go index c4a933d77..1fbcc0776 100644 --- a/sdk/go/datadog/getSyntheticsTest.go +++ b/sdk/go/datadog/getSyntheticsTest.go @@ -44,14 +44,20 @@ type LookupSyntheticsTestResult struct { func LookupSyntheticsTestOutput(ctx *pulumi.Context, args LookupSyntheticsTestOutputArgs, opts ...pulumi.InvokeOption) LookupSyntheticsTestResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSyntheticsTestResult, error) { + ApplyT(func(v interface{}) (LookupSyntheticsTestResultOutput, error) { args := v.(LookupSyntheticsTestArgs) - r, err := LookupSyntheticsTest(ctx, &args, opts...) - var s LookupSyntheticsTestResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupSyntheticsTestResult + secret, err := ctx.InvokePackageRaw("datadog:index/getSyntheticsTest:getSyntheticsTest", args, &rv, "", opts...) + if err != nil { + return LookupSyntheticsTestResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupSyntheticsTestResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupSyntheticsTestResultOutput), nil + } + return output, nil }).(LookupSyntheticsTestResultOutput) } diff --git a/sdk/go/datadog/getTeam.go b/sdk/go/datadog/getTeam.go index bad6dbcf8..99811d165 100644 --- a/sdk/go/datadog/getTeam.go +++ b/sdk/go/datadog/getTeam.go @@ -80,14 +80,20 @@ type LookupTeamResult struct { func LookupTeamOutput(ctx *pulumi.Context, args LookupTeamOutputArgs, opts ...pulumi.InvokeOption) LookupTeamResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupTeamResult, error) { + ApplyT(func(v interface{}) (LookupTeamResultOutput, error) { args := v.(LookupTeamArgs) - r, err := LookupTeam(ctx, &args, opts...) - var s LookupTeamResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupTeamResult + secret, err := ctx.InvokePackageRaw("datadog:index/getTeam:getTeam", args, &rv, "", opts...) + if err != nil { + return LookupTeamResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupTeamResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupTeamResultOutput), nil + } + return output, nil }).(LookupTeamResultOutput) } diff --git a/sdk/go/datadog/getTeamMemberships.go b/sdk/go/datadog/getTeamMemberships.go index 928be0db6..5a2dedfd2 100644 --- a/sdk/go/datadog/getTeamMemberships.go +++ b/sdk/go/datadog/getTeamMemberships.go @@ -75,14 +75,20 @@ type GetTeamMembershipsResult struct { func GetTeamMembershipsOutput(ctx *pulumi.Context, args GetTeamMembershipsOutputArgs, opts ...pulumi.InvokeOption) GetTeamMembershipsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetTeamMembershipsResult, error) { + ApplyT(func(v interface{}) (GetTeamMembershipsResultOutput, error) { args := v.(GetTeamMembershipsArgs) - r, err := GetTeamMemberships(ctx, &args, opts...) - var s GetTeamMembershipsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetTeamMembershipsResult + secret, err := ctx.InvokePackageRaw("datadog:index/getTeamMemberships:getTeamMemberships", args, &rv, "", opts...) + if err != nil { + return GetTeamMembershipsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetTeamMembershipsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetTeamMembershipsResultOutput), nil + } + return output, nil }).(GetTeamMembershipsResultOutput) } diff --git a/sdk/go/datadog/getUser.go b/sdk/go/datadog/getUser.go index 069b1315d..f35fbff77 100644 --- a/sdk/go/datadog/getUser.go +++ b/sdk/go/datadog/getUser.go @@ -72,14 +72,20 @@ type LookupUserResult struct { func LookupUserOutput(ctx *pulumi.Context, args LookupUserOutputArgs, opts ...pulumi.InvokeOption) LookupUserResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupUserResult, error) { + ApplyT(func(v interface{}) (LookupUserResultOutput, error) { args := v.(LookupUserArgs) - r, err := LookupUser(ctx, &args, opts...) - var s LookupUserResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupUserResult + secret, err := ctx.InvokePackageRaw("datadog:index/getUser:getUser", args, &rv, "", opts...) + if err != nil { + return LookupUserResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupUserResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupUserResultOutput), nil + } + return output, nil }).(LookupUserResultOutput) } diff --git a/sdk/go/datadog/getUsers.go b/sdk/go/datadog/getUsers.go index 58752e017..db2c9ea87 100644 --- a/sdk/go/datadog/getUsers.go +++ b/sdk/go/datadog/getUsers.go @@ -71,14 +71,20 @@ type GetUsersResult struct { func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetUsersResult, error) { + ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - r, err := GetUsers(ctx, &args, opts...) - var s GetUsersResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetUsersResult + secret, err := ctx.InvokePackageRaw("datadog:index/getUsers:getUsers", args, &rv, "", opts...) + if err != nil { + return GetUsersResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetUsersResultOutput) + if secret { + return pulumi.ToSecret(output).(GetUsersResultOutput), nil + } + return output, nil }).(GetUsersResultOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 4225ca0ff..f814e3d5d 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.16.0") + implementation("com.pulumi:pulumi:0.16.1") } task sourcesJar(type: Jar) { diff --git a/sdk/nodejs/aws/getIntegrationLogsServices.ts b/sdk/nodejs/aws/getIntegrationLogsServices.ts index 3b377d319..ca40e8c0d 100644 --- a/sdk/nodejs/aws/getIntegrationLogsServices.ts +++ b/sdk/nodejs/aws/getIntegrationLogsServices.ts @@ -10,7 +10,6 @@ import * as utilities from "../utilities"; * Use this data source to retrieve all AWS log ready services. */ export function getIntegrationLogsServices(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", { }, opts); @@ -33,5 +32,7 @@ export interface GetIntegrationLogsServicesResult { * Use this data source to retrieve all AWS log ready services. */ export function getIntegrationLogsServicesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getIntegrationLogsServices(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", { + }, opts); } diff --git a/sdk/nodejs/aws/getIntegrationNamespaceRules.ts b/sdk/nodejs/aws/getIntegrationNamespaceRules.ts index 67c24d538..58444f923 100644 --- a/sdk/nodejs/aws/getIntegrationNamespaceRules.ts +++ b/sdk/nodejs/aws/getIntegrationNamespaceRules.ts @@ -17,7 +17,6 @@ import * as utilities from "../utilities"; * ``` */ export function getIntegrationNamespaceRules(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", { }, opts); @@ -49,5 +48,7 @@ export interface GetIntegrationNamespaceRulesResult { * ``` */ export function getIntegrationNamespaceRulesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getIntegrationNamespaceRules(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", { + }, opts); } diff --git a/sdk/nodejs/getApiKey.ts b/sdk/nodejs/getApiKey.ts index 75ec2d2e9..981e5a8da 100644 --- a/sdk/nodejs/getApiKey.ts +++ b/sdk/nodejs/getApiKey.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; */ export function getApiKey(args?: GetApiKeyArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getApiKey:getApiKey", { "exactMatch": args.exactMatch, @@ -83,7 +82,13 @@ export interface GetApiKeyResult { * ``` */ export function getApiKeyOutput(args?: GetApiKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getApiKey(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getApiKey:getApiKey", { + "exactMatch": args.exactMatch, + "id": args.id, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getApmRetentionFiltersOrder.ts b/sdk/nodejs/getApmRetentionFiltersOrder.ts index 783bbddd0..cba354895 100644 --- a/sdk/nodejs/getApmRetentionFiltersOrder.ts +++ b/sdk/nodejs/getApmRetentionFiltersOrder.ts @@ -17,7 +17,6 @@ import * as utilities from "./utilities"; * ``` */ export function getApmRetentionFiltersOrder(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", { }, opts); @@ -49,5 +48,7 @@ export interface GetApmRetentionFiltersOrderResult { * ``` */ export function getApmRetentionFiltersOrderOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getApmRetentionFiltersOrder(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", { + }, opts); } diff --git a/sdk/nodejs/getApplicationKey.ts b/sdk/nodejs/getApplicationKey.ts index c6826e854..8c0fd27e7 100644 --- a/sdk/nodejs/getApplicationKey.ts +++ b/sdk/nodejs/getApplicationKey.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; */ export function getApplicationKey(args?: GetApplicationKeyArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getApplicationKey:getApplicationKey", { "exactMatch": args.exactMatch, @@ -83,7 +82,13 @@ export interface GetApplicationKeyResult { * ``` */ export function getApplicationKeyOutput(args?: GetApplicationKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getApplicationKey(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getApplicationKey:getApplicationKey", { + "exactMatch": args.exactMatch, + "id": args.id, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getCloudWorkloadSecurityAgentRules.ts b/sdk/nodejs/getCloudWorkloadSecurityAgentRules.ts index 0947fa605..9df21d85d 100644 --- a/sdk/nodejs/getCloudWorkloadSecurityAgentRules.ts +++ b/sdk/nodejs/getCloudWorkloadSecurityAgentRules.ts @@ -17,7 +17,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCloudWorkloadSecurityAgentRules(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", { }, opts); @@ -47,5 +46,7 @@ export interface GetCloudWorkloadSecurityAgentRulesResult { * ``` */ export function getCloudWorkloadSecurityAgentRulesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getCloudWorkloadSecurityAgentRules(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", { + }, opts); } diff --git a/sdk/nodejs/getCsmThreatsAgentRules.ts b/sdk/nodejs/getCsmThreatsAgentRules.ts index b9eb791d9..a0ab81060 100644 --- a/sdk/nodejs/getCsmThreatsAgentRules.ts +++ b/sdk/nodejs/getCsmThreatsAgentRules.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about existing Agent rules. */ export function getCsmThreatsAgentRules(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", { }, opts); @@ -37,5 +36,7 @@ export interface GetCsmThreatsAgentRulesResult { * Use this data source to retrieve information about existing Agent rules. */ export function getCsmThreatsAgentRulesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getCsmThreatsAgentRules(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", { + }, opts); } diff --git a/sdk/nodejs/getDashboard.ts b/sdk/nodejs/getDashboard.ts index 5a5855f2e..18bc83126 100644 --- a/sdk/nodejs/getDashboard.ts +++ b/sdk/nodejs/getDashboard.ts @@ -19,7 +19,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("datadog:index/getDashboard:getDashboard", { "name": args.name, @@ -72,7 +71,10 @@ 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("datadog:index/getDashboard:getDashboard", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getDashboardList.ts b/sdk/nodejs/getDashboardList.ts index b62e37e82..7f28221bf 100644 --- a/sdk/nodejs/getDashboardList.ts +++ b/sdk/nodejs/getDashboardList.ts @@ -35,7 +35,6 @@ import * as utilities from "./utilities"; * ``` */ export function getDashboardList(args: GetDashboardListArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getDashboardList:getDashboardList", { "name": args.name, @@ -96,7 +95,10 @@ export interface GetDashboardListResult { * ``` */ export function getDashboardListOutput(args: GetDashboardListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDashboardList(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getDashboardList:getDashboardList", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getHosts.ts b/sdk/nodejs/getHosts.ts index cb0106415..82afac46d 100644 --- a/sdk/nodejs/getHosts.ts +++ b/sdk/nodejs/getHosts.ts @@ -11,7 +11,6 @@ import * as utilities from "./utilities"; */ export function getHosts(args?: GetHostsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getHosts:getHosts", { "filter": args.filter, @@ -93,7 +92,15 @@ export interface GetHostsResult { * Use this data source to retrieve information about your live hosts in Datadog. */ export function getHostsOutput(args?: GetHostsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHosts(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getHosts:getHosts", { + "filter": args.filter, + "from": args.from, + "includeMutedHostsData": args.includeMutedHostsData, + "sortDir": args.sortDir, + "sortField": args.sortField, + }, opts); } /** diff --git a/sdk/nodejs/getIpRanges.ts b/sdk/nodejs/getIpRanges.ts index c01d209f2..17ccac550 100644 --- a/sdk/nodejs/getIpRanges.ts +++ b/sdk/nodejs/getIpRanges.ts @@ -17,7 +17,6 @@ import * as utilities from "./utilities"; * ``` */ export function getIpRanges(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getIpRanges:getIpRanges", { }, opts); @@ -125,5 +124,7 @@ export interface GetIpRangesResult { * ``` */ export function getIpRangesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getIpRanges(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getIpRanges:getIpRanges", { + }, opts); } diff --git a/sdk/nodejs/getLogsArchivesOrder.ts b/sdk/nodejs/getLogsArchivesOrder.ts index f4d099597..ed4d55cea 100644 --- a/sdk/nodejs/getLogsArchivesOrder.ts +++ b/sdk/nodejs/getLogsArchivesOrder.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Get the current order of your logs archives. */ export function getLogsArchivesOrder(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", { }, opts); @@ -31,5 +30,7 @@ export interface GetLogsArchivesOrderResult { * Get the current order of your logs archives. */ export function getLogsArchivesOrderOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getLogsArchivesOrder(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", { + }, opts); } diff --git a/sdk/nodejs/getLogsIndexes.ts b/sdk/nodejs/getLogsIndexes.ts index 15d630993..b450442e3 100644 --- a/sdk/nodejs/getLogsIndexes.ts +++ b/sdk/nodejs/getLogsIndexes.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getLogsIndexes(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getLogsIndexes:getLogsIndexes", { }, opts); @@ -51,5 +50,7 @@ export interface GetLogsIndexesResult { * ``` */ export function getLogsIndexesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getLogsIndexes(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getLogsIndexes:getLogsIndexes", { + }, opts); } diff --git a/sdk/nodejs/getLogsIndexesOrder.ts b/sdk/nodejs/getLogsIndexesOrder.ts index cc43c59c7..ec700a68a 100644 --- a/sdk/nodejs/getLogsIndexesOrder.ts +++ b/sdk/nodejs/getLogsIndexesOrder.ts @@ -17,7 +17,6 @@ import * as utilities from "./utilities"; * ``` */ export function getLogsIndexesOrder(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", { }, opts); @@ -49,5 +48,7 @@ export interface GetLogsIndexesOrderResult { * ``` */ export function getLogsIndexesOrderOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getLogsIndexesOrder(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", { + }, opts); } diff --git a/sdk/nodejs/getLogsPipelines.ts b/sdk/nodejs/getLogsPipelines.ts index 90acecd8a..91f51f7ac 100644 --- a/sdk/nodejs/getLogsPipelines.ts +++ b/sdk/nodejs/getLogsPipelines.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; */ export function getLogsPipelines(args?: GetLogsPipelinesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getLogsPipelines:getLogsPipelines", { "isReadOnly": args.isReadOnly, @@ -79,7 +78,11 @@ export interface GetLogsPipelinesResult { * ``` */ export function getLogsPipelinesOutput(args?: GetLogsPipelinesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getLogsPipelines(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getLogsPipelines:getLogsPipelines", { + "isReadOnly": args.isReadOnly, + }, opts); } /** diff --git a/sdk/nodejs/getMonitor.ts b/sdk/nodejs/getMonitor.ts index 4d070834c..e77350ad8 100644 --- a/sdk/nodejs/getMonitor.ts +++ b/sdk/nodejs/getMonitor.ts @@ -23,7 +23,6 @@ import * as utilities from "./utilities"; */ export function getMonitor(args?: GetMonitorArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getMonitor:getMonitor", { "monitorTagsFilters": args.monitorTagsFilters, @@ -204,7 +203,13 @@ export interface GetMonitorResult { * ``` */ export function getMonitorOutput(args?: GetMonitorOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getMonitor(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getMonitor:getMonitor", { + "monitorTagsFilters": args.monitorTagsFilters, + "nameFilter": args.nameFilter, + "tagsFilters": args.tagsFilters, + }, opts); } /** diff --git a/sdk/nodejs/getMonitorConfigPolicies.ts b/sdk/nodejs/getMonitorConfigPolicies.ts index e85955053..8658dfeab 100644 --- a/sdk/nodejs/getMonitorConfigPolicies.ts +++ b/sdk/nodejs/getMonitorConfigPolicies.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getMonitorConfigPolicies(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", { }, opts); @@ -51,5 +50,7 @@ export interface GetMonitorConfigPoliciesResult { * ``` */ export function getMonitorConfigPoliciesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getMonitorConfigPolicies(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", { + }, opts); } diff --git a/sdk/nodejs/getMonitors.ts b/sdk/nodejs/getMonitors.ts index 5a6af70ce..bd707cb68 100644 --- a/sdk/nodejs/getMonitors.ts +++ b/sdk/nodejs/getMonitors.ts @@ -11,7 +11,6 @@ import * as utilities from "./utilities"; */ export function getMonitors(args?: GetMonitorsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getMonitors:getMonitors", { "monitorTagsFilters": args.monitorTagsFilters, @@ -67,7 +66,13 @@ export interface GetMonitorsResult { * Use this data source to list several existing monitors for use in other resources. */ export function getMonitorsOutput(args?: GetMonitorsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getMonitors(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getMonitors:getMonitors", { + "monitorTagsFilters": args.monitorTagsFilters, + "nameFilter": args.nameFilter, + "tagsFilters": args.tagsFilters, + }, opts); } /** diff --git a/sdk/nodejs/getPermissions.ts b/sdk/nodejs/getPermissions.ts index bf4fb8889..bbf83cf50 100644 --- a/sdk/nodejs/getPermissions.ts +++ b/sdk/nodejs/getPermissions.ts @@ -18,7 +18,6 @@ import * as utilities from "./utilities"; */ export function getPermissions(args?: GetPermissionsArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getPermissions:getPermissions", { "includeRestricted": args.includeRestricted, @@ -65,7 +64,11 @@ export interface GetPermissionsResult { * ``` */ export function getPermissionsOutput(args?: GetPermissionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getPermissions(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getPermissions:getPermissions", { + "includeRestricted": args.includeRestricted, + }, opts); } /** diff --git a/sdk/nodejs/getPowerpack.ts b/sdk/nodejs/getPowerpack.ts index 6c6784f51..f6da71bd3 100644 --- a/sdk/nodejs/getPowerpack.ts +++ b/sdk/nodejs/getPowerpack.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about an existing Datadog Powerpack. */ export function getPowerpack(args: GetPowerpackArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getPowerpack:getPowerpack", { "name": args.name, @@ -42,7 +41,10 @@ export interface GetPowerpackResult { * Use this data source to retrieve information about an existing Datadog Powerpack. */ export function getPowerpackOutput(args: GetPowerpackOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getPowerpack(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getPowerpack:getPowerpack", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getRole.ts b/sdk/nodejs/getRole.ts index ff43b6269..8d200b857 100644 --- a/sdk/nodejs/getRole.ts +++ b/sdk/nodejs/getRole.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRole(args: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getRole:getRole", { "filter": args.filter, @@ -72,7 +71,10 @@ export interface GetRoleResult { * ``` */ export function getRoleOutput(args: GetRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRole(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getRole:getRole", { + "filter": args.filter, + }, opts); } /** diff --git a/sdk/nodejs/getRoleUsers.ts b/sdk/nodejs/getRoleUsers.ts index d5a2c3ac9..f02d224b7 100644 --- a/sdk/nodejs/getRoleUsers.ts +++ b/sdk/nodejs/getRoleUsers.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. */ export function getRoleUsers(args: GetRoleUsersArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getRoleUsers:getRoleUsers", { "exactMatch": args.exactMatch, @@ -66,7 +65,12 @@ export interface GetRoleUsersResult { * Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. */ export function getRoleUsersOutput(args: GetRoleUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRoleUsers(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getRoleUsers:getRoleUsers", { + "exactMatch": args.exactMatch, + "filter": args.filter, + "roleId": args.roleId, + }, opts); } /** diff --git a/sdk/nodejs/getRoles.ts b/sdk/nodejs/getRoles.ts index c6eacfe9f..43b03f521 100644 --- a/sdk/nodejs/getRoles.ts +++ b/sdk/nodejs/getRoles.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; */ export function getRoles(args?: GetRolesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getRoles:getRoles", { "filter": args.filter, @@ -71,7 +70,11 @@ export interface GetRolesResult { * ``` */ export function getRolesOutput(args?: GetRolesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRoles(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getRoles:getRoles", { + "filter": args.filter, + }, opts); } /** diff --git a/sdk/nodejs/getRumApplication.ts b/sdk/nodejs/getRumApplication.ts index a0a596d20..bb6f3c86e 100644 --- a/sdk/nodejs/getRumApplication.ts +++ b/sdk/nodejs/getRumApplication.ts @@ -9,7 +9,6 @@ import * as utilities from "./utilities"; */ export function getRumApplication(args?: GetRumApplicationArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getRumApplication:getRumApplication", { "id": args.id, @@ -69,7 +68,13 @@ export interface GetRumApplicationResult { * Use this data source to retrieve a Datadog RUM Application. */ export function getRumApplicationOutput(args?: GetRumApplicationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRumApplication(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getRumApplication:getRumApplication", { + "id": args.id, + "nameFilter": args.nameFilter, + "typeFilter": args.typeFilter, + }, opts); } /** diff --git a/sdk/nodejs/getSecurityMonitoringFilters.ts b/sdk/nodejs/getSecurityMonitoringFilters.ts index 3a2cfa95c..2d78dd3f7 100644 --- a/sdk/nodejs/getSecurityMonitoringFilters.ts +++ b/sdk/nodejs/getSecurityMonitoringFilters.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getSecurityMonitoringFilters(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", { }, opts); @@ -55,5 +54,7 @@ export interface GetSecurityMonitoringFiltersResult { * ``` */ export function getSecurityMonitoringFiltersOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getSecurityMonitoringFilters(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", { + }, opts); } diff --git a/sdk/nodejs/getSecurityMonitoringRules.ts b/sdk/nodejs/getSecurityMonitoringRules.ts index e34cda36d..06f9dc3fb 100644 --- a/sdk/nodejs/getSecurityMonitoringRules.ts +++ b/sdk/nodejs/getSecurityMonitoringRules.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; */ export function getSecurityMonitoringRules(args?: GetSecurityMonitoringRulesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", { "defaultOnlyFilter": args.defaultOnlyFilter, @@ -106,7 +105,14 @@ export interface GetSecurityMonitoringRulesResult { * ``` */ export function getSecurityMonitoringRulesOutput(args?: GetSecurityMonitoringRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSecurityMonitoringRules(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", { + "defaultOnlyFilter": args.defaultOnlyFilter, + "nameFilter": args.nameFilter, + "tagsFilters": args.tagsFilters, + "userOnlyFilter": args.userOnlyFilter, + }, opts); } /** diff --git a/sdk/nodejs/getSecurityMonitoringSuppressions.ts b/sdk/nodejs/getSecurityMonitoringSuppressions.ts index 038ac6f60..09b1302c3 100644 --- a/sdk/nodejs/getSecurityMonitoringSuppressions.ts +++ b/sdk/nodejs/getSecurityMonitoringSuppressions.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about existing suppression rules, and use them in other resources. */ export function getSecurityMonitoringSuppressions(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", { }, opts); @@ -37,5 +36,7 @@ export interface GetSecurityMonitoringSuppressionsResult { * Use this data source to retrieve information about existing suppression rules, and use them in other resources. */ export function getSecurityMonitoringSuppressionsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getSecurityMonitoringSuppressions(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", { + }, opts); } diff --git a/sdk/nodejs/getSensitiveDataScannerGroupOrder.ts b/sdk/nodejs/getSensitiveDataScannerGroupOrder.ts index bcdb5c8c0..a92a2cbd6 100644 --- a/sdk/nodejs/getSensitiveDataScannerGroupOrder.ts +++ b/sdk/nodejs/getSensitiveDataScannerGroupOrder.ts @@ -18,7 +18,6 @@ import * as utilities from "./utilities"; * ``` */ export function getSensitiveDataScannerGroupOrder(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", { }, opts); @@ -51,5 +50,7 @@ export interface GetSensitiveDataScannerGroupOrderResult { * ``` */ export function getSensitiveDataScannerGroupOrderOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getSensitiveDataScannerGroupOrder(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", { + }, opts); } diff --git a/sdk/nodejs/getSensitiveDataScannerStandardPattern.ts b/sdk/nodejs/getSensitiveDataScannerStandardPattern.ts index 9403592f0..928f4fb83 100644 --- a/sdk/nodejs/getSensitiveDataScannerStandardPattern.ts +++ b/sdk/nodejs/getSensitiveDataScannerStandardPattern.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve information about an existing sensitive data scanner standard pattern. */ export function getSensitiveDataScannerStandardPattern(args: GetSensitiveDataScannerStandardPatternArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", { "filter": args.filter, @@ -58,7 +57,10 @@ export interface GetSensitiveDataScannerStandardPatternResult { * Use this data source to retrieve information about an existing sensitive data scanner standard pattern. */ export function getSensitiveDataScannerStandardPatternOutput(args: GetSensitiveDataScannerStandardPatternOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSensitiveDataScannerStandardPattern(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", { + "filter": args.filter, + }, opts); } /** diff --git a/sdk/nodejs/getServiceAccount.ts b/sdk/nodejs/getServiceAccount.ts index c14662545..4f15584a7 100644 --- a/sdk/nodejs/getServiceAccount.ts +++ b/sdk/nodejs/getServiceAccount.ts @@ -9,7 +9,6 @@ import * as utilities from "./utilities"; */ export function getServiceAccount(args?: GetServiceAccountArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getServiceAccount:getServiceAccount", { "exactMatch": args.exactMatch, @@ -102,7 +101,14 @@ export interface GetServiceAccountResult { * Use this data source to retrieve information about an existing Datadog service account. */ export function getServiceAccountOutput(args?: GetServiceAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getServiceAccount(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getServiceAccount:getServiceAccount", { + "exactMatch": args.exactMatch, + "filter": args.filter, + "filterStatus": args.filterStatus, + "id": args.id, + }, opts); } /** diff --git a/sdk/nodejs/getServiceLevelObjective.ts b/sdk/nodejs/getServiceLevelObjective.ts index 48fa69ac8..06b42143d 100644 --- a/sdk/nodejs/getServiceLevelObjective.ts +++ b/sdk/nodejs/getServiceLevelObjective.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; */ export function getServiceLevelObjective(args?: GetServiceLevelObjectiveArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getServiceLevelObjective:getServiceLevelObjective", { "id": args.id, @@ -126,7 +125,14 @@ export interface GetServiceLevelObjectiveResult { * ``` */ export function getServiceLevelObjectiveOutput(args?: GetServiceLevelObjectiveOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getServiceLevelObjective(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getServiceLevelObjective:getServiceLevelObjective", { + "id": args.id, + "metricsQuery": args.metricsQuery, + "nameQuery": args.nameQuery, + "tagsQuery": args.tagsQuery, + }, opts); } /** diff --git a/sdk/nodejs/getServiceLevelObjectives.ts b/sdk/nodejs/getServiceLevelObjectives.ts index 7cbae9118..5c3f7173d 100644 --- a/sdk/nodejs/getServiceLevelObjectives.ts +++ b/sdk/nodejs/getServiceLevelObjectives.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; */ export function getServiceLevelObjectives(args?: GetServiceLevelObjectivesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", { "errorOnEmptyResult": args.errorOnEmptyResult, @@ -116,7 +115,16 @@ export interface GetServiceLevelObjectivesResult { * ``` */ export function getServiceLevelObjectivesOutput(args?: GetServiceLevelObjectivesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getServiceLevelObjectives(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", { + "errorOnEmptyResult": args.errorOnEmptyResult, + "ids": args.ids, + "metricsQuery": args.metricsQuery, + "nameQuery": args.nameQuery, + "query": args.query, + "tagsQuery": args.tagsQuery, + }, opts); } /** diff --git a/sdk/nodejs/getSyntheticsGlobalVariable.ts b/sdk/nodejs/getSyntheticsGlobalVariable.ts index 1c3fe4b79..470f1dbfb 100644 --- a/sdk/nodejs/getSyntheticsGlobalVariable.ts +++ b/sdk/nodejs/getSyntheticsGlobalVariable.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve a Datadog Synthetics global variable (to be used in Synthetics tests). */ export function getSyntheticsGlobalVariable(args: GetSyntheticsGlobalVariableArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", { "name": args.name, @@ -46,7 +45,10 @@ export interface GetSyntheticsGlobalVariableResult { * Use this data source to retrieve a Datadog Synthetics global variable (to be used in Synthetics tests). */ export function getSyntheticsGlobalVariableOutput(args: GetSyntheticsGlobalVariableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSyntheticsGlobalVariable(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getSyntheticsLocations.ts b/sdk/nodejs/getSyntheticsLocations.ts index 4d81c2887..6877ca4c7 100644 --- a/sdk/nodejs/getSyntheticsLocations.ts +++ b/sdk/nodejs/getSyntheticsLocations.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve Datadog's Synthetics Locations (to be used in Synthetics tests). */ export function getSyntheticsLocations(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSyntheticsLocations:getSyntheticsLocations", { }, opts); @@ -31,5 +30,7 @@ export interface GetSyntheticsLocationsResult { * Use this data source to retrieve Datadog's Synthetics Locations (to be used in Synthetics tests). */ export function getSyntheticsLocationsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getSyntheticsLocations(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSyntheticsLocations:getSyntheticsLocations", { + }, opts); } diff --git a/sdk/nodejs/getSyntheticsTest.ts b/sdk/nodejs/getSyntheticsTest.ts index bcd50370f..5345c1626 100644 --- a/sdk/nodejs/getSyntheticsTest.ts +++ b/sdk/nodejs/getSyntheticsTest.ts @@ -8,7 +8,6 @@ import * as utilities from "./utilities"; * Use this data source to retrieve a Datadog Synthetic Test. */ export function getSyntheticsTest(args: GetSyntheticsTestArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getSyntheticsTest:getSyntheticsTest", { "testId": args.testId, @@ -54,7 +53,10 @@ export interface GetSyntheticsTestResult { * Use this data source to retrieve a Datadog Synthetic Test. */ export function getSyntheticsTestOutput(args: GetSyntheticsTestOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSyntheticsTest(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getSyntheticsTest:getSyntheticsTest", { + "testId": args.testId, + }, opts); } /** diff --git a/sdk/nodejs/getTeam.ts b/sdk/nodejs/getTeam.ts index aeca6b0aa..b6ee7471b 100644 --- a/sdk/nodejs/getTeam.ts +++ b/sdk/nodejs/getTeam.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; */ export function getTeam(args?: GetTeamArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getTeam:getTeam", { "filterKeyword": args.filterKeyword, @@ -98,7 +97,12 @@ export interface GetTeamResult { * ``` */ export function getTeamOutput(args?: GetTeamOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getTeam(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getTeam:getTeam", { + "filterKeyword": args.filterKeyword, + "teamId": args.teamId, + }, opts); } /** diff --git a/sdk/nodejs/getTeamMemberships.ts b/sdk/nodejs/getTeamMemberships.ts index 53ac13241..65df76c31 100644 --- a/sdk/nodejs/getTeamMemberships.ts +++ b/sdk/nodejs/getTeamMemberships.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getTeamMemberships(args: GetTeamMembershipsArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getTeamMemberships:getTeamMemberships", { "exactMatch": args.exactMatch, @@ -90,7 +89,12 @@ export interface GetTeamMembershipsResult { * ``` */ export function getTeamMembershipsOutput(args: GetTeamMembershipsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getTeamMemberships(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getTeamMemberships:getTeamMemberships", { + "exactMatch": args.exactMatch, + "filterKeyword": args.filterKeyword, + "teamId": args.teamId, + }, opts); } /** diff --git a/sdk/nodejs/getUser.ts b/sdk/nodejs/getUser.ts index 8ce91ee52..6c647d37b 100644 --- a/sdk/nodejs/getUser.ts +++ b/sdk/nodejs/getUser.ts @@ -19,7 +19,6 @@ import * as utilities from "./utilities"; * ``` */ export function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getUser:getUser", { "exactMatch": args.exactMatch, @@ -81,7 +80,11 @@ export interface GetUserResult { * ``` */ export function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getUser(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getUser:getUser", { + "exactMatch": args.exactMatch, + "filter": args.filter, + }, opts); } /** diff --git a/sdk/nodejs/getUsers.ts b/sdk/nodejs/getUsers.ts index 91562094c..2d3925927 100644 --- a/sdk/nodejs/getUsers.ts +++ b/sdk/nodejs/getUsers.ts @@ -23,7 +23,6 @@ import * as utilities from "./utilities"; */ export function getUsers(args?: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("datadog:index/getUsers:getUsers", { "filter": args.filter, @@ -82,7 +81,12 @@ export interface GetUsersResult { * ``` */ export function getUsersOutput(args?: GetUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getUsers(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("datadog:index/getUsers:getUsers", { + "filter": args.filter, + "filterStatus": args.filterStatus, + }, opts); } /**