diff --git a/sdk/dotnet/Aws/GetIntegrationLogsServices.cs b/sdk/dotnet/Aws/GetIntegrationLogsServices.cs index e20ac490b..da35316c5 100644 --- a/sdk/dotnet/Aws/GetIntegrationLogsServices.cs +++ b/sdk/dotnet/Aws/GetIntegrationLogsServices.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOptions? /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to retrieve all AWS log ready services. + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Aws/GetIntegrationNamespaceRules.cs b/sdk/dotnet/Aws/GetIntegrationNamespaceRules.cs index 03cb3801d..162ab17ac 100644 --- a/sdk/dotnet/Aws/GetIntegrationNamespaceRules.cs +++ b/sdk/dotnet/Aws/GetIntegrationNamespaceRules.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Provides a Datadog AWS Integration Namespace Rules data source. This can be used to retrieve all available namespace rules for a Datadog-AWS integration. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var rules = Datadog.Aws.GetIntegrationNamespaceRules.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetApiKey.cs b/sdk/dotnet/GetApiKey.cs index 756b1ad2d..358806a53 100644 --- a/sdk/dotnet/GetApiKey.cs +++ b/sdk/dotnet/GetApiKey.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetApiKeyArgs? args = null, Invo /// public static Output Invoke(GetApiKeyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getApiKey:getApiKey", args ?? new GetApiKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing api key. Deprecated. This will be removed in a future release with prior notice. Securely store your API keys using a secret management system or use the datadog.ApiKey resource to manage API keys in your Datadog account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetApiKey.Invoke(new() + /// { + /// Name = "foo-application", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetApiKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getApiKey:getApiKey", args ?? new GetApiKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetApmRetentionFiltersOrder.cs b/sdk/dotnet/GetApmRetentionFiltersOrder.cs index 980b6cb11..99bd440f8 100644 --- a/sdk/dotnet/GetApmRetentionFiltersOrder.cs +++ b/sdk/dotnet/GetApmRetentionFiltersOrder.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions? /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Provides a Datadog [APM Retention Filters API](https://docs.datadoghq.com/api/v2/apm-retention-filters/) order datasource. This can be used to retrieve APM retention filters order. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetApmRetentionFiltersOrder.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetApplicationKey.cs b/sdk/dotnet/GetApplicationKey.cs index 3b28c220e..3dae3e621 100644 --- a/sdk/dotnet/GetApplicationKey.cs +++ b/sdk/dotnet/GetApplicationKey.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetApplicationKeyArgs? a /// public static Output Invoke(GetApplicationKeyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getApplicationKey:getApplicationKey", args ?? new GetApplicationKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing application key. Deprecated. This will be removed in a future release with prior notice. Securely store your application keys using a secret management system or use the datadog.ApplicationKey resource to manage application keys in your Datadog account. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetApplicationKey.Invoke(new() + /// { + /// Name = "foo-application", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getApplicationKey:getApplicationKey", args ?? new GetApplicationKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetCloudWorkloadSecurityAgentRules.cs b/sdk/dotnet/GetCloudWorkloadSecurityAgentRules.cs index 499b22665..f470ed501 100644 --- a/sdk/dotnet/GetCloudWorkloadSecurityAgentRules.cs +++ b/sdk/dotnet/GetCloudWorkloadSecurityAgentRules.cs @@ -48,6 +48,25 @@ public static Task InvokeAsync(InvokeO /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetCloudWorkloadSecurityAgentRules.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetCsmThreatsAgentRules.cs b/sdk/dotnet/GetCsmThreatsAgentRules.cs index 6e6cb2ea4..5ddfebaf0 100644 --- a/sdk/dotnet/GetCsmThreatsAgentRules.cs +++ b/sdk/dotnet/GetCsmThreatsAgentRules.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOptions? opt /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing Agent rules. + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetDashboard.cs b/sdk/dotnet/GetDashboard.cs index 39c622659..23036593c 100644 --- a/sdk/dotnet/GetDashboard.cs +++ b/sdk/dotnet/GetDashboard.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDashboardArgs args, Invoke /// public static Output Invoke(GetDashboardInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getDashboard:getDashboard", args ?? new GetDashboardInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing dashboard, for use in other resources. In particular, it can be used in a monitor message to link to a specific dashboard. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetDashboard.Invoke(new() + /// { + /// Name = "My super dashboard", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDashboardInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getDashboard:getDashboard", args ?? new GetDashboardInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDashboardList.cs b/sdk/dotnet/GetDashboardList.cs index 4a7acf248..9792d74e8 100644 --- a/sdk/dotnet/GetDashboardList.cs +++ b/sdk/dotnet/GetDashboardList.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetDashboardListArgs args /// public static Output Invoke(GetDashboardListInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getDashboardList:getDashboardList", args ?? new GetDashboardListInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing dashboard list, for use in other resources. In particular, it can be used in a dashboard to register it in the list. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetDashboardList.Invoke(new() + /// { + /// Name = "My super list", + /// }); + /// + /// // Create a dashboard and register it in the list above. + /// var time = new Datadog.Dashboard("time", new() + /// { + /// Title = "TF Test Layout Dashboard", + /// Description = "Created using the Datadog provider in Pulumi", + /// DashboardLists = new[] + /// { + /// test.Apply(getDashboardListResult => getDashboardListResult.Id), + /// }, + /// LayoutType = "ordered", + /// IsReadOnly = true, + /// Widgets = new[] + /// { + /// new Datadog.Inputs.DashboardWidgetArgs + /// { + /// AlertGraphDefinition = new Datadog.Inputs.DashboardWidgetAlertGraphDefinitionArgs + /// { + /// AlertId = "1234", + /// VizType = "timeseries", + /// Title = "Widget Title", + /// LiveSpan = "1h", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDashboardListInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getDashboardList:getDashboardList", args ?? new GetDashboardListInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetHosts.cs b/sdk/dotnet/GetHosts.cs index 113508418..409bfd276 100644 --- a/sdk/dotnet/GetHosts.cs +++ b/sdk/dotnet/GetHosts.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetHostsArgs? args = null, Invoke /// public static Output Invoke(GetHostsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getHosts:getHosts", args ?? new GetHostsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about your live hosts in Datadog. + /// + public static Output Invoke(GetHostsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getHosts:getHosts", args ?? new GetHostsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetIpRanges.cs b/sdk/dotnet/GetIpRanges.cs index b316818f0..8429afd6a 100644 --- a/sdk/dotnet/GetIpRanges.cs +++ b/sdk/dotnet/GetIpRanges.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getIpRanges:getIpRanges", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to retrieve information about Datadog's IP addresses. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetIpRanges.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getIpRanges:getIpRanges", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetLogsArchivesOrder.cs b/sdk/dotnet/GetLogsArchivesOrder.cs index 279615e49..1e7a6123f 100644 --- a/sdk/dotnet/GetLogsArchivesOrder.cs +++ b/sdk/dotnet/GetLogsArchivesOrder.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOptions? option /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Get the current order of your logs archives. + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetLogsIndexes.cs b/sdk/dotnet/GetLogsIndexes.cs index 50b5c1709..2b9db354f 100644 --- a/sdk/dotnet/GetLogsIndexes.cs +++ b/sdk/dotnet/GetLogsIndexes.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions? options = nu /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsIndexes:getLogsIndexes", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to list several existing logs indexes for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetLogsIndexes.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsIndexes:getLogsIndexes", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetLogsIndexesOrder.cs b/sdk/dotnet/GetLogsIndexesOrder.cs index cb1acb39d..1daad142b 100644 --- a/sdk/dotnet/GetLogsIndexesOrder.cs +++ b/sdk/dotnet/GetLogsIndexesOrder.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions? options /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Get the current order of your log indexes. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetLogsIndexesOrder.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetLogsPipelines.cs b/sdk/dotnet/GetLogsPipelines.cs index 4b5abbb60..d447ac341 100644 --- a/sdk/dotnet/GetLogsPipelines.cs +++ b/sdk/dotnet/GetLogsPipelines.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetLogsPipelinesArgs? arg /// public static Output Invoke(GetLogsPipelinesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsPipelines:getLogsPipelines", args ?? new GetLogsPipelinesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to list all existing logs pipelines for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Gets all pipelines + /// var pipelines = Datadog.GetLogsPipelines.Invoke(); + /// + /// // Using data source to set pipeline order + /// var lpo = new Datadog.LogsPipelineOrder("lpo", new() + /// { + /// Name = "lpo", + /// Pipelines = .Select(pipeline => + /// { + /// return pipeline.Id; + /// }).ToList(), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLogsPipelinesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getLogsPipelines:getLogsPipelines", args ?? new GetLogsPipelinesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetMonitor.cs b/sdk/dotnet/GetMonitor.cs index 346991c3b..f3ba7344d 100644 --- a/sdk/dotnet/GetMonitor.cs +++ b/sdk/dotnet/GetMonitor.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetMonitorArgs? args = null, In /// public static Output Invoke(GetMonitorInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getMonitor:getMonitor", args ?? new GetMonitorInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing monitor for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetMonitor.Invoke(new() + /// { + /// NameFilter = "My awesome monitor", + /// MonitorTagsFilters = new[] + /// { + /// "foo:bar", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMonitorInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getMonitor:getMonitor", args ?? new GetMonitorInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetMonitorConfigPolicies.cs b/sdk/dotnet/GetMonitorConfigPolicies.cs index 304144656..ad00615d4 100644 --- a/sdk/dotnet/GetMonitorConfigPolicies.cs +++ b/sdk/dotnet/GetMonitorConfigPolicies.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions? op /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to list existing monitor config policies for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetMonitorConfigPolicies.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetMonitors.cs b/sdk/dotnet/GetMonitors.cs index 53ac0cbc4..a9fb81531 100644 --- a/sdk/dotnet/GetMonitors.cs +++ b/sdk/dotnet/GetMonitors.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetMonitorsArgs? args = null, /// public static Output Invoke(GetMonitorsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getMonitors:getMonitors", args ?? new GetMonitorsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to list several existing monitors for use in other resources. + /// + public static Output Invoke(GetMonitorsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getMonitors:getMonitors", args ?? new GetMonitorsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetPermissions.cs b/sdk/dotnet/GetPermissions.cs index 983b8580c..71ce8a1f5 100644 --- a/sdk/dotnet/GetPermissions.cs +++ b/sdk/dotnet/GetPermissions.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(GetPermissionsArgs? args = /// public static Output Invoke(GetPermissionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getPermissions:getPermissions", args ?? new GetPermissionsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve the list of Datadog permissions by name and their corresponding ID, for use in the role resource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var permissions = Datadog.GetPermissions.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPermissionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getPermissions:getPermissions", args ?? new GetPermissionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetPowerpack.cs b/sdk/dotnet/GetPowerpack.cs index 3c29acd71..c582bc895 100644 --- a/sdk/dotnet/GetPowerpack.cs +++ b/sdk/dotnet/GetPowerpack.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetPowerpackArgs args, Invoke /// public static Output Invoke(GetPowerpackInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getPowerpack:getPowerpack", args ?? new GetPowerpackInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing Datadog Powerpack. + /// + public static Output Invoke(GetPowerpackInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getPowerpack:getPowerpack", args ?? new GetPowerpackInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRole.cs b/sdk/dotnet/GetRole.cs index 3d5bfbc02..8a62c0c56 100644 --- a/sdk/dotnet/GetRole.cs +++ b/sdk/dotnet/GetRole.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetRoleArgs args, InvokeOptions? o /// public static Output Invoke(GetRoleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing role for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetRole.Invoke(new() + /// { + /// Filter = "Datadog Standard Role", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRoleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRoleUsers.cs b/sdk/dotnet/GetRoleUsers.cs index 100cde802..e7a99ae32 100644 --- a/sdk/dotnet/GetRoleUsers.cs +++ b/sdk/dotnet/GetRoleUsers.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetRoleUsersArgs args, Invoke /// public static Output Invoke(GetRoleUsersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRoleUsers:getRoleUsers", args ?? new GetRoleUsersInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. + /// + public static Output Invoke(GetRoleUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRoleUsers:getRoleUsers", args ?? new GetRoleUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRoles.cs b/sdk/dotnet/GetRoles.cs index e0dee07af..d79d4ae49 100644 --- a/sdk/dotnet/GetRoles.cs +++ b/sdk/dotnet/GetRoles.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetRolesArgs? args = null, Invoke /// public static Output Invoke(GetRolesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about multiple roles for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetRoles.Invoke(new() + /// { + /// Filter = "Datadog", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRolesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRoles:getRoles", args ?? new GetRolesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRumApplication.cs b/sdk/dotnet/GetRumApplication.cs index 0ea99b0b1..b4d30a0d7 100644 --- a/sdk/dotnet/GetRumApplication.cs +++ b/sdk/dotnet/GetRumApplication.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetRumApplicationArgs? a /// public static Output Invoke(GetRumApplicationInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRumApplication:getRumApplication", args ?? new GetRumApplicationInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve a Datadog RUM Application. + /// + public static Output Invoke(GetRumApplicationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getRumApplication:getRumApplication", args ?? new GetRumApplicationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSecurityMonitoringFilters.cs b/sdk/dotnet/GetSecurityMonitoringFilters.cs index 906636a58..1423b6c55 100644 --- a/sdk/dotnet/GetSecurityMonitoringFilters.cs +++ b/sdk/dotnet/GetSecurityMonitoringFilters.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(InvokeOptions /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing security monitoring filters for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetSecurityMonitoringFilters.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetSecurityMonitoringRules.cs b/sdk/dotnet/GetSecurityMonitoringRules.cs index 4b557faa6..04d7d1f2f 100644 --- a/sdk/dotnet/GetSecurityMonitoringRules.cs +++ b/sdk/dotnet/GetSecurityMonitoringRules.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetSecurityMoni /// public static Output Invoke(GetSecurityMonitoringRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", args ?? new GetSecurityMonitoringRulesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing security monitoring rules for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetSecurityMonitoringRules.Invoke(new() + /// { + /// NameFilter = "attack", + /// TagsFilters = new[] + /// { + /// "foo:bar", + /// }, + /// DefaultOnlyFilter = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityMonitoringRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", args ?? new GetSecurityMonitoringRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSecurityMonitoringSuppressions.cs b/sdk/dotnet/GetSecurityMonitoringSuppressions.cs index 4d18358ec..adfa3fb3b 100644 --- a/sdk/dotnet/GetSecurityMonitoringSuppressions.cs +++ b/sdk/dotnet/GetSecurityMonitoringSuppressions.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOp /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing suppression rules, and use them in other resources. + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetSensitiveDataScannerGroupOrder.cs b/sdk/dotnet/GetSensitiveDataScannerGroupOrder.cs index 20122e155..30900ed55 100644 --- a/sdk/dotnet/GetSensitiveDataScannerGroupOrder.cs +++ b/sdk/dotnet/GetSensitiveDataScannerGroupOrder.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOp /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Provides a Datadog Sensitive Data Scanner Group Order API data source. This can be used to retrieve the order of Datadog Sensitive Data Scanner Groups. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetSensitiveDataScannerGroupOrder.Invoke(); + /// + /// var foobar = new Datadog.SensitiveDataScannerGroupOrder("foobar", new() + /// { + /// GroupIds = foo.Apply(getSensitiveDataScannerGroupOrderResult => getSensitiveDataScannerGroupOrderResult.GroupIds), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetSensitiveDataScannerStandardPattern.cs b/sdk/dotnet/GetSensitiveDataScannerStandardPattern.cs index 315d85251..27adeb4da 100644 --- a/sdk/dotnet/GetSensitiveDataScannerStandardPattern.cs +++ b/sdk/dotnet/GetSensitiveDataScannerStandardPattern.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(Get /// public static Output Invoke(GetSensitiveDataScannerStandardPatternInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", args ?? new GetSensitiveDataScannerStandardPatternInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing sensitive data scanner standard pattern. + /// + public static Output Invoke(GetSensitiveDataScannerStandardPatternInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", args ?? new GetSensitiveDataScannerStandardPatternInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetServiceAccount.cs b/sdk/dotnet/GetServiceAccount.cs index 5097c8a2a..f1d3da751 100644 --- a/sdk/dotnet/GetServiceAccount.cs +++ b/sdk/dotnet/GetServiceAccount.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetServiceAccountArgs? a /// public static Output Invoke(GetServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getServiceAccount:getServiceAccount", args ?? new GetServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing Datadog service account. + /// + public static Output Invoke(GetServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getServiceAccount:getServiceAccount", args ?? new GetServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetServiceLevelObjective.cs b/sdk/dotnet/GetServiceLevelObjective.cs index b7b9c86f6..8643cb6a3 100644 --- a/sdk/dotnet/GetServiceLevelObjective.cs +++ b/sdk/dotnet/GetServiceLevelObjective.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetServiceLevelOb /// public static Output Invoke(GetServiceLevelObjectiveInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getServiceLevelObjective:getServiceLevelObjective", args ?? new GetServiceLevelObjectiveInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing SLO for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetServiceLevelObjective.Invoke(new() + /// { + /// NameQuery = "My test SLO", + /// TagsQuery = "foo:bar", + /// }); + /// + /// var apiSlo = Datadog.GetServiceLevelObjective.Invoke(new() + /// { + /// Id = api.Outputs.Slo, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceLevelObjectiveInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getServiceLevelObjective:getServiceLevelObjective", args ?? new GetServiceLevelObjectiveInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetServiceLevelObjectives.cs b/sdk/dotnet/GetServiceLevelObjectives.cs index 76bb01fe2..d7cd7997e 100644 --- a/sdk/dotnet/GetServiceLevelObjectives.cs +++ b/sdk/dotnet/GetServiceLevelObjectives.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetServiceLevelO /// public static Output Invoke(GetServiceLevelObjectivesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", args ?? new GetServiceLevelObjectivesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about multiple SLOs for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ftFooSlos = Datadog.GetServiceLevelObjectives.Invoke(new() + /// { + /// TagsQuery = "owner:ft-foo", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceLevelObjectivesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", args ?? new GetServiceLevelObjectivesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSyntheticsGlobalVariable.cs b/sdk/dotnet/GetSyntheticsGlobalVariable.cs index 3a652d5a8..2de7b4b91 100644 --- a/sdk/dotnet/GetSyntheticsGlobalVariable.cs +++ b/sdk/dotnet/GetSyntheticsGlobalVariable.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetSyntheticsG /// public static Output Invoke(GetSyntheticsGlobalVariableInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", args ?? new GetSyntheticsGlobalVariableInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve a Datadog Synthetics global variable (to be used in Synthetics tests). + /// + public static Output Invoke(GetSyntheticsGlobalVariableInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", args ?? new GetSyntheticsGlobalVariableInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSyntheticsLocations.cs b/sdk/dotnet/GetSyntheticsLocations.cs index 086cb52ca..b5f2e58f3 100644 --- a/sdk/dotnet/GetSyntheticsLocations.cs +++ b/sdk/dotnet/GetSyntheticsLocations.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(InvokeOptions? opti /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSyntheticsLocations:getSyntheticsLocations", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to retrieve Datadog's Synthetics Locations (to be used in Synthetics tests). + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSyntheticsLocations:getSyntheticsLocations", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetSyntheticsTest.cs b/sdk/dotnet/GetSyntheticsTest.cs index bbabb3d05..fe15c4cbb 100644 --- a/sdk/dotnet/GetSyntheticsTest.cs +++ b/sdk/dotnet/GetSyntheticsTest.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetSyntheticsTestArgs ar /// public static Output Invoke(GetSyntheticsTestInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSyntheticsTest:getSyntheticsTest", args ?? new GetSyntheticsTestInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve a Datadog Synthetic Test. + /// + public static Output Invoke(GetSyntheticsTestInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getSyntheticsTest:getSyntheticsTest", args ?? new GetSyntheticsTestInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTeam.cs b/sdk/dotnet/GetTeam.cs index fe5236c21..dcbe496bf 100644 --- a/sdk/dotnet/GetTeam.cs +++ b/sdk/dotnet/GetTeam.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetTeamArgs? args = null, InvokeOp /// public static Output Invoke(GetTeamInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getTeam:getTeam", args ?? new GetTeamInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing Datadog team. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetTeam.Invoke(new() + /// { + /// TeamId = "e6723c40-edb1-11ed-b816-da7ad0900002", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTeamInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getTeam:getTeam", args ?? new GetTeamInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTeamMemberships.cs b/sdk/dotnet/GetTeamMemberships.cs index 206105085..c9dcaf190 100644 --- a/sdk/dotnet/GetTeamMemberships.cs +++ b/sdk/dotnet/GetTeamMemberships.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTeamMembershipsArgs /// public static Output Invoke(GetTeamMembershipsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getTeamMemberships:getTeamMemberships", args ?? new GetTeamMembershipsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing Datadog team memberships. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Datadog.GetTeamMemberships.Invoke(new() + /// { + /// TeamId = "e6723c40-edb1-11ed-b816-da7ad0900002", + /// FilterKeyword = "foo@example.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTeamMembershipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getTeamMemberships:getTeamMemberships", args ?? new GetTeamMembershipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUser.cs b/sdk/dotnet/GetUser.cs index 353285268..4bf35d892 100644 --- a/sdk/dotnet/GetUser.cs +++ b/sdk/dotnet/GetUser.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetUserArgs args, InvokeOptions? o /// public static Output Invoke(GetUserInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about an existing user to use it in an other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetUser.Invoke(new() + /// { + /// Filter = "user.name@company.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetUserInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getUser:getUser", args ?? new GetUserInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetUsers.cs b/sdk/dotnet/GetUsers.cs index 5861f0679..19ca26d74 100644 --- a/sdk/dotnet/GetUsers.cs +++ b/sdk/dotnet/GetUsers.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetUsersArgs? args = null, Invoke /// public static Output Invoke(GetUsersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve information about existing users for use in other resources. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Datadog = Pulumi.Datadog; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Datadog.GetUsers.Invoke(new() + /// { + /// Filter = "user.name@company.com", + /// FilterStatus = "Active,Pending", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetUsersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("datadog:index/getUsers:getUsers", args ?? new GetUsersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index ea97cdd04..bc5bd2283 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -56,6 +56,13 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/go/datadog/aws/getIntegrationLogsServices.go b/sdk/go/datadog/aws/getIntegrationLogsServices.go index 901fe0634..602eaf6a9 100644 --- a/sdk/go/datadog/aws/getIntegrationLogsServices.go +++ b/sdk/go/datadog/aws/getIntegrationLogsServices.go @@ -32,18 +32,8 @@ type GetIntegrationLogsServicesResult struct { func GetIntegrationLogsServicesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIntegrationLogsServicesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetIntegrationLogsServicesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIntegrationLogsServicesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", nil, GetIntegrationLogsServicesResultOutput{}, options).(GetIntegrationLogsServicesResultOutput), nil }).(GetIntegrationLogsServicesResultOutput) } diff --git a/sdk/go/datadog/aws/getIntegrationNamespaceRules.go b/sdk/go/datadog/aws/getIntegrationNamespaceRules.go index 796483520..315d0c23c 100644 --- a/sdk/go/datadog/aws/getIntegrationNamespaceRules.go +++ b/sdk/go/datadog/aws/getIntegrationNamespaceRules.go @@ -56,18 +56,8 @@ type GetIntegrationNamespaceRulesResult struct { func GetIntegrationNamespaceRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIntegrationNamespaceRulesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetIntegrationNamespaceRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIntegrationNamespaceRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", nil, GetIntegrationNamespaceRulesResultOutput{}, options).(GetIntegrationNamespaceRulesResultOutput), nil }).(GetIntegrationNamespaceRulesResultOutput) } diff --git a/sdk/go/datadog/getApiKey.go b/sdk/go/datadog/getApiKey.go index b5bd63f33..68b86ba1c 100644 --- a/sdk/go/datadog/getApiKey.go +++ b/sdk/go/datadog/getApiKey.go @@ -71,21 +71,11 @@ type LookupApiKeyResult struct { } func LookupApiKeyOutput(ctx *pulumi.Context, args LookupApiKeyOutputArgs, opts ...pulumi.InvokeOption) LookupApiKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApiKeyResultOutput, error) { args := v.(LookupApiKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApiKeyResult - secret, err := ctx.InvokePackageRaw("datadog:index/getApiKey:getApiKey", args, &rv, "", opts...) - if err != nil { - return LookupApiKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApiKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApiKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getApiKey:getApiKey", args, LookupApiKeyResultOutput{}, options).(LookupApiKeyResultOutput), nil }).(LookupApiKeyResultOutput) } diff --git a/sdk/go/datadog/getApmRetentionFiltersOrder.go b/sdk/go/datadog/getApmRetentionFiltersOrder.go index 27405c45b..bb8529aa4 100644 --- a/sdk/go/datadog/getApmRetentionFiltersOrder.go +++ b/sdk/go/datadog/getApmRetentionFiltersOrder.go @@ -56,18 +56,8 @@ type GetApmRetentionFiltersOrderResult struct { func GetApmRetentionFiltersOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetApmRetentionFiltersOrderResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetApmRetentionFiltersOrderResultOutput) - if secret { - return pulumi.ToSecret(output).(GetApmRetentionFiltersOrderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", nil, GetApmRetentionFiltersOrderResultOutput{}, options).(GetApmRetentionFiltersOrderResultOutput), nil }).(GetApmRetentionFiltersOrderResultOutput) } diff --git a/sdk/go/datadog/getApplicationKey.go b/sdk/go/datadog/getApplicationKey.go index be9ab0449..1364107ae 100644 --- a/sdk/go/datadog/getApplicationKey.go +++ b/sdk/go/datadog/getApplicationKey.go @@ -71,21 +71,11 @@ type LookupApplicationKeyResult struct { } func LookupApplicationKeyOutput(ctx *pulumi.Context, args LookupApplicationKeyOutputArgs, opts ...pulumi.InvokeOption) LookupApplicationKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApplicationKeyResultOutput, error) { args := v.(LookupApplicationKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApplicationKeyResult - secret, err := ctx.InvokePackageRaw("datadog:index/getApplicationKey:getApplicationKey", args, &rv, "", opts...) - if err != nil { - return LookupApplicationKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApplicationKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApplicationKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getApplicationKey:getApplicationKey", args, LookupApplicationKeyResultOutput{}, options).(LookupApplicationKeyResultOutput), nil }).(LookupApplicationKeyResultOutput) } diff --git a/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go b/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go index b29a2bb82..f1a37a203 100644 --- a/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go +++ b/sdk/go/datadog/getCloudWorkloadSecurityAgentRules.go @@ -54,18 +54,8 @@ type GetCloudWorkloadSecurityAgentRulesResult struct { func GetCloudWorkloadSecurityAgentRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetCloudWorkloadSecurityAgentRulesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetCloudWorkloadSecurityAgentRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCloudWorkloadSecurityAgentRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", nil, GetCloudWorkloadSecurityAgentRulesResultOutput{}, options).(GetCloudWorkloadSecurityAgentRulesResultOutput), nil }).(GetCloudWorkloadSecurityAgentRulesResultOutput) } diff --git a/sdk/go/datadog/getCsmThreatsAgentRules.go b/sdk/go/datadog/getCsmThreatsAgentRules.go index 841f2670c..9bd50b94c 100644 --- a/sdk/go/datadog/getCsmThreatsAgentRules.go +++ b/sdk/go/datadog/getCsmThreatsAgentRules.go @@ -34,18 +34,8 @@ type GetCsmThreatsAgentRulesResult struct { func GetCsmThreatsAgentRulesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetCsmThreatsAgentRulesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetCsmThreatsAgentRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCsmThreatsAgentRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", nil, GetCsmThreatsAgentRulesResultOutput{}, options).(GetCsmThreatsAgentRulesResultOutput), nil }).(GetCsmThreatsAgentRulesResultOutput) } diff --git a/sdk/go/datadog/getDashboard.go b/sdk/go/datadog/getDashboard.go index c90847b42..a1e541555 100644 --- a/sdk/go/datadog/getDashboard.go +++ b/sdk/go/datadog/getDashboard.go @@ -67,21 +67,11 @@ type LookupDashboardResult struct { } func LookupDashboardOutput(ctx *pulumi.Context, args LookupDashboardOutputArgs, opts ...pulumi.InvokeOption) LookupDashboardResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDashboardResultOutput, error) { args := v.(LookupDashboardArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDashboardResult - secret, err := ctx.InvokePackageRaw("datadog:index/getDashboard:getDashboard", args, &rv, "", opts...) - if err != nil { - return LookupDashboardResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDashboardResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDashboardResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getDashboard:getDashboard", args, LookupDashboardResultOutput{}, options).(LookupDashboardResultOutput), nil }).(LookupDashboardResultOutput) } diff --git a/sdk/go/datadog/getDashboardList.go b/sdk/go/datadog/getDashboardList.go index 8f06c05eb..3c36e5586 100644 --- a/sdk/go/datadog/getDashboardList.go +++ b/sdk/go/datadog/getDashboardList.go @@ -86,21 +86,11 @@ type LookupDashboardListResult struct { } func LookupDashboardListOutput(ctx *pulumi.Context, args LookupDashboardListOutputArgs, opts ...pulumi.InvokeOption) LookupDashboardListResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDashboardListResultOutput, error) { args := v.(LookupDashboardListArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDashboardListResult - secret, err := ctx.InvokePackageRaw("datadog:index/getDashboardList:getDashboardList", args, &rv, "", opts...) - if err != nil { - return LookupDashboardListResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDashboardListResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDashboardListResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getDashboardList:getDashboardList", args, LookupDashboardListResultOutput{}, options).(LookupDashboardListResultOutput), nil }).(LookupDashboardListResultOutput) } diff --git a/sdk/go/datadog/getHosts.go b/sdk/go/datadog/getHosts.go index a8903419f..49f09458d 100644 --- a/sdk/go/datadog/getHosts.go +++ b/sdk/go/datadog/getHosts.go @@ -59,21 +59,11 @@ type GetHostsResult struct { } func GetHostsOutput(ctx *pulumi.Context, args GetHostsOutputArgs, opts ...pulumi.InvokeOption) GetHostsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHostsResultOutput, error) { args := v.(GetHostsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHostsResult - secret, err := ctx.InvokePackageRaw("datadog:index/getHosts:getHosts", args, &rv, "", opts...) - if err != nil { - return GetHostsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHostsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHostsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getHosts:getHosts", args, GetHostsResultOutput{}, options).(GetHostsResultOutput), nil }).(GetHostsResultOutput) } diff --git a/sdk/go/datadog/getIpRanges.go b/sdk/go/datadog/getIpRanges.go index a46c7344d..57f46f1b4 100644 --- a/sdk/go/datadog/getIpRanges.go +++ b/sdk/go/datadog/getIpRanges.go @@ -94,18 +94,8 @@ type GetIpRangesResult struct { func GetIpRangesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetIpRangesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetIpRangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIpRangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getIpRanges:getIpRanges", nil, GetIpRangesResultOutput{}, options).(GetIpRangesResultOutput), nil }).(GetIpRangesResultOutput) } diff --git a/sdk/go/datadog/getLogsArchivesOrder.go b/sdk/go/datadog/getLogsArchivesOrder.go index 76d2533b7..1208e19c1 100644 --- a/sdk/go/datadog/getLogsArchivesOrder.go +++ b/sdk/go/datadog/getLogsArchivesOrder.go @@ -32,18 +32,8 @@ type GetLogsArchivesOrderResult struct { func GetLogsArchivesOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLogsArchivesOrderResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetLogsArchivesOrderResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogsArchivesOrderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", nil, GetLogsArchivesOrderResultOutput{}, options).(GetLogsArchivesOrderResultOutput), nil }).(GetLogsArchivesOrderResultOutput) } diff --git a/sdk/go/datadog/getLogsIndexes.go b/sdk/go/datadog/getLogsIndexes.go index 7d958cd00..8de478e77 100644 --- a/sdk/go/datadog/getLogsIndexes.go +++ b/sdk/go/datadog/getLogsIndexes.go @@ -56,18 +56,8 @@ type GetLogsIndexesResult struct { func GetLogsIndexesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLogsIndexesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetLogsIndexesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogsIndexesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getLogsIndexes:getLogsIndexes", nil, GetLogsIndexesResultOutput{}, options).(GetLogsIndexesResultOutput), nil }).(GetLogsIndexesResultOutput) } diff --git a/sdk/go/datadog/getLogsIndexesOrder.go b/sdk/go/datadog/getLogsIndexesOrder.go index 6ea4bd5e2..58ce582f6 100644 --- a/sdk/go/datadog/getLogsIndexesOrder.go +++ b/sdk/go/datadog/getLogsIndexesOrder.go @@ -56,18 +56,8 @@ type GetLogsIndexesOrderResult struct { func GetLogsIndexesOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLogsIndexesOrderResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetLogsIndexesOrderResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogsIndexesOrderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", nil, GetLogsIndexesOrderResultOutput{}, options).(GetLogsIndexesOrderResultOutput), nil }).(GetLogsIndexesOrderResultOutput) } diff --git a/sdk/go/datadog/getLogsPipelines.go b/sdk/go/datadog/getLogsPipelines.go index a6c78e6fb..48807f3f3 100644 --- a/sdk/go/datadog/getLogsPipelines.go +++ b/sdk/go/datadog/getLogsPipelines.go @@ -39,21 +39,11 @@ type GetLogsPipelinesResult struct { } func GetLogsPipelinesOutput(ctx *pulumi.Context, args GetLogsPipelinesOutputArgs, opts ...pulumi.InvokeOption) GetLogsPipelinesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLogsPipelinesResultOutput, error) { args := v.(GetLogsPipelinesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLogsPipelinesResult - secret, err := ctx.InvokePackageRaw("datadog:index/getLogsPipelines:getLogsPipelines", args, &rv, "", opts...) - if err != nil { - return GetLogsPipelinesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLogsPipelinesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLogsPipelinesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getLogsPipelines:getLogsPipelines", args, GetLogsPipelinesResultOutput{}, options).(GetLogsPipelinesResultOutput), nil }).(GetLogsPipelinesResultOutput) } diff --git a/sdk/go/datadog/getMonitor.go b/sdk/go/datadog/getMonitor.go index 00c939b62..2b4fca168 100644 --- a/sdk/go/datadog/getMonitor.go +++ b/sdk/go/datadog/getMonitor.go @@ -133,21 +133,11 @@ type LookupMonitorResult struct { } func LookupMonitorOutput(ctx *pulumi.Context, args LookupMonitorOutputArgs, opts ...pulumi.InvokeOption) LookupMonitorResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMonitorResultOutput, error) { args := v.(LookupMonitorArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMonitorResult - secret, err := ctx.InvokePackageRaw("datadog:index/getMonitor:getMonitor", args, &rv, "", opts...) - if err != nil { - return LookupMonitorResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMonitorResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMonitorResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getMonitor:getMonitor", args, LookupMonitorResultOutput{}, options).(LookupMonitorResultOutput), nil }).(LookupMonitorResultOutput) } diff --git a/sdk/go/datadog/getMonitorConfigPolicies.go b/sdk/go/datadog/getMonitorConfigPolicies.go index 18c3f2316..a009637d5 100644 --- a/sdk/go/datadog/getMonitorConfigPolicies.go +++ b/sdk/go/datadog/getMonitorConfigPolicies.go @@ -56,18 +56,8 @@ type GetMonitorConfigPoliciesResult struct { func GetMonitorConfigPoliciesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetMonitorConfigPoliciesResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetMonitorConfigPoliciesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMonitorConfigPoliciesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", nil, GetMonitorConfigPoliciesResultOutput{}, options).(GetMonitorConfigPoliciesResultOutput), nil }).(GetMonitorConfigPoliciesResultOutput) } diff --git a/sdk/go/datadog/getMonitors.go b/sdk/go/datadog/getMonitors.go index 6f079eb19..1733f4f61 100644 --- a/sdk/go/datadog/getMonitors.go +++ b/sdk/go/datadog/getMonitors.go @@ -47,21 +47,11 @@ type GetMonitorsResult struct { } func GetMonitorsOutput(ctx *pulumi.Context, args GetMonitorsOutputArgs, opts ...pulumi.InvokeOption) GetMonitorsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMonitorsResultOutput, error) { args := v.(GetMonitorsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMonitorsResult - secret, err := ctx.InvokePackageRaw("datadog:index/getMonitors:getMonitors", args, &rv, "", opts...) - if err != nil { - return GetMonitorsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMonitorsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMonitorsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getMonitors:getMonitors", args, GetMonitorsResultOutput{}, options).(GetMonitorsResultOutput), nil }).(GetMonitorsResultOutput) } diff --git a/sdk/go/datadog/getPermissions.go b/sdk/go/datadog/getPermissions.go index 7e63121c2..17c25c81d 100644 --- a/sdk/go/datadog/getPermissions.go +++ b/sdk/go/datadog/getPermissions.go @@ -63,21 +63,11 @@ type GetPermissionsResult struct { } func GetPermissionsOutput(ctx *pulumi.Context, args GetPermissionsOutputArgs, opts ...pulumi.InvokeOption) GetPermissionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetPermissionsResultOutput, error) { args := v.(GetPermissionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetPermissionsResult - secret, err := ctx.InvokePackageRaw("datadog:index/getPermissions:getPermissions", args, &rv, "", opts...) - if err != nil { - return GetPermissionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetPermissionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetPermissionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getPermissions:getPermissions", args, GetPermissionsResultOutput{}, options).(GetPermissionsResultOutput), nil }).(GetPermissionsResultOutput) } diff --git a/sdk/go/datadog/getPowerpack.go b/sdk/go/datadog/getPowerpack.go index eb993b48d..a6eb04a26 100644 --- a/sdk/go/datadog/getPowerpack.go +++ b/sdk/go/datadog/getPowerpack.go @@ -37,21 +37,11 @@ type LookupPowerpackResult struct { } func LookupPowerpackOutput(ctx *pulumi.Context, args LookupPowerpackOutputArgs, opts ...pulumi.InvokeOption) LookupPowerpackResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPowerpackResultOutput, error) { args := v.(LookupPowerpackArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPowerpackResult - secret, err := ctx.InvokePackageRaw("datadog:index/getPowerpack:getPowerpack", args, &rv, "", opts...) - if err != nil { - return LookupPowerpackResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPowerpackResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPowerpackResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getPowerpack:getPowerpack", args, LookupPowerpackResultOutput{}, options).(LookupPowerpackResultOutput), nil }).(LookupPowerpackResultOutput) } diff --git a/sdk/go/datadog/getRole.go b/sdk/go/datadog/getRole.go index c8b2c260d..6fed07297 100644 --- a/sdk/go/datadog/getRole.go +++ b/sdk/go/datadog/getRole.go @@ -67,21 +67,11 @@ type LookupRoleResult struct { } func LookupRoleOutput(ctx *pulumi.Context, args LookupRoleOutputArgs, opts ...pulumi.InvokeOption) LookupRoleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRoleResultOutput, error) { args := v.(LookupRoleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRoleResult - secret, err := ctx.InvokePackageRaw("datadog:index/getRole:getRole", args, &rv, "", opts...) - if err != nil { - return LookupRoleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRoleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRoleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getRole:getRole", args, LookupRoleResultOutput{}, options).(LookupRoleResultOutput), nil }).(LookupRoleResultOutput) } diff --git a/sdk/go/datadog/getRoleUsers.go b/sdk/go/datadog/getRoleUsers.go index 8aa8cd306..b2168982a 100644 --- a/sdk/go/datadog/getRoleUsers.go +++ b/sdk/go/datadog/getRoleUsers.go @@ -47,21 +47,11 @@ type GetRoleUsersResult struct { } func GetRoleUsersOutput(ctx *pulumi.Context, args GetRoleUsersOutputArgs, opts ...pulumi.InvokeOption) GetRoleUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRoleUsersResultOutput, error) { args := v.(GetRoleUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRoleUsersResult - secret, err := ctx.InvokePackageRaw("datadog:index/getRoleUsers:getRoleUsers", args, &rv, "", opts...) - if err != nil { - return GetRoleUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRoleUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRoleUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getRoleUsers:getRoleUsers", args, GetRoleUsersResultOutput{}, options).(GetRoleUsersResultOutput), nil }).(GetRoleUsersResultOutput) } diff --git a/sdk/go/datadog/getRoles.go b/sdk/go/datadog/getRoles.go index cc98b5661..359d34af2 100644 --- a/sdk/go/datadog/getRoles.go +++ b/sdk/go/datadog/getRoles.go @@ -65,21 +65,11 @@ type GetRolesResult struct { } func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRolesResultOutput, error) { args := v.(GetRolesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRolesResult - secret, err := ctx.InvokePackageRaw("datadog:index/getRoles:getRoles", args, &rv, "", opts...) - if err != nil { - return GetRolesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRolesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRolesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getRoles:getRoles", args, GetRolesResultOutput{}, options).(GetRolesResultOutput), nil }).(GetRolesResultOutput) } diff --git a/sdk/go/datadog/getRumApplication.go b/sdk/go/datadog/getRumApplication.go index 37d25510c..69d56f310 100644 --- a/sdk/go/datadog/getRumApplication.go +++ b/sdk/go/datadog/getRumApplication.go @@ -49,21 +49,11 @@ type LookupRumApplicationResult struct { } func LookupRumApplicationOutput(ctx *pulumi.Context, args LookupRumApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupRumApplicationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRumApplicationResultOutput, error) { args := v.(LookupRumApplicationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRumApplicationResult - secret, err := ctx.InvokePackageRaw("datadog:index/getRumApplication:getRumApplication", args, &rv, "", opts...) - if err != nil { - return LookupRumApplicationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRumApplicationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRumApplicationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getRumApplication:getRumApplication", args, LookupRumApplicationResultOutput{}, options).(LookupRumApplicationResultOutput), nil }).(LookupRumApplicationResultOutput) } diff --git a/sdk/go/datadog/getSecurityMonitoringFilters.go b/sdk/go/datadog/getSecurityMonitoringFilters.go index a71cbd934..0ad0a89c7 100644 --- a/sdk/go/datadog/getSecurityMonitoringFilters.go +++ b/sdk/go/datadog/getSecurityMonitoringFilters.go @@ -58,18 +58,8 @@ type GetSecurityMonitoringFiltersResult struct { func GetSecurityMonitoringFiltersOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSecurityMonitoringFiltersResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetSecurityMonitoringFiltersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityMonitoringFiltersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", nil, GetSecurityMonitoringFiltersResultOutput{}, options).(GetSecurityMonitoringFiltersResultOutput), nil }).(GetSecurityMonitoringFiltersResultOutput) } diff --git a/sdk/go/datadog/getSecurityMonitoringRules.go b/sdk/go/datadog/getSecurityMonitoringRules.go index 1af13e6c7..546e050e1 100644 --- a/sdk/go/datadog/getSecurityMonitoringRules.go +++ b/sdk/go/datadog/getSecurityMonitoringRules.go @@ -83,21 +83,11 @@ type GetSecurityMonitoringRulesResult struct { } func GetSecurityMonitoringRulesOutput(ctx *pulumi.Context, args GetSecurityMonitoringRulesOutputArgs, opts ...pulumi.InvokeOption) GetSecurityMonitoringRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecurityMonitoringRulesResultOutput, error) { args := v.(GetSecurityMonitoringRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecurityMonitoringRulesResult - secret, err := ctx.InvokePackageRaw("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", args, &rv, "", opts...) - if err != nil { - return GetSecurityMonitoringRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecurityMonitoringRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityMonitoringRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", args, GetSecurityMonitoringRulesResultOutput{}, options).(GetSecurityMonitoringRulesResultOutput), nil }).(GetSecurityMonitoringRulesResultOutput) } diff --git a/sdk/go/datadog/getSecurityMonitoringSuppressions.go b/sdk/go/datadog/getSecurityMonitoringSuppressions.go index 2bdea5028..2b9a0c61d 100644 --- a/sdk/go/datadog/getSecurityMonitoringSuppressions.go +++ b/sdk/go/datadog/getSecurityMonitoringSuppressions.go @@ -34,18 +34,8 @@ type GetSecurityMonitoringSuppressionsResult struct { func GetSecurityMonitoringSuppressionsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSecurityMonitoringSuppressionsResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetSecurityMonitoringSuppressionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecurityMonitoringSuppressionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", nil, GetSecurityMonitoringSuppressionsResultOutput{}, options).(GetSecurityMonitoringSuppressionsResultOutput), nil }).(GetSecurityMonitoringSuppressionsResultOutput) } diff --git a/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go b/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go index b516278b5..f7c030920 100644 --- a/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go +++ b/sdk/go/datadog/getSensitiveDataScannerGroupOrder.go @@ -62,18 +62,8 @@ type LookupSensitiveDataScannerGroupOrderResult struct { func LookupSensitiveDataScannerGroupOrderOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) LookupSensitiveDataScannerGroupOrderResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(LookupSensitiveDataScannerGroupOrderResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSensitiveDataScannerGroupOrderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", nil, LookupSensitiveDataScannerGroupOrderResultOutput{}, options).(LookupSensitiveDataScannerGroupOrderResultOutput), nil }).(LookupSensitiveDataScannerGroupOrderResultOutput) } diff --git a/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go b/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go index 9f71aaeea..7e8029f1c 100644 --- a/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go +++ b/sdk/go/datadog/getSensitiveDataScannerStandardPattern.go @@ -45,21 +45,11 @@ type GetSensitiveDataScannerStandardPatternResult struct { } func GetSensitiveDataScannerStandardPatternOutput(ctx *pulumi.Context, args GetSensitiveDataScannerStandardPatternOutputArgs, opts ...pulumi.InvokeOption) GetSensitiveDataScannerStandardPatternResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSensitiveDataScannerStandardPatternResultOutput, error) { args := v.(GetSensitiveDataScannerStandardPatternArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSensitiveDataScannerStandardPatternResult - secret, err := ctx.InvokePackageRaw("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", args, &rv, "", opts...) - if err != nil { - return GetSensitiveDataScannerStandardPatternResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSensitiveDataScannerStandardPatternResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSensitiveDataScannerStandardPatternResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", args, GetSensitiveDataScannerStandardPatternResultOutput{}, options).(GetSensitiveDataScannerStandardPatternResultOutput), nil }).(GetSensitiveDataScannerStandardPatternResultOutput) } diff --git a/sdk/go/datadog/getServiceAccount.go b/sdk/go/datadog/getServiceAccount.go index 4323cf829..b0b267200 100644 --- a/sdk/go/datadog/getServiceAccount.go +++ b/sdk/go/datadog/getServiceAccount.go @@ -65,21 +65,11 @@ type LookupServiceAccountResult struct { } func LookupServiceAccountOutput(ctx *pulumi.Context, args LookupServiceAccountOutputArgs, opts ...pulumi.InvokeOption) LookupServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceAccountResultOutput, error) { args := v.(LookupServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceAccountResult - secret, err := ctx.InvokePackageRaw("datadog:index/getServiceAccount:getServiceAccount", args, &rv, "", opts...) - if err != nil { - return LookupServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getServiceAccount:getServiceAccount", args, LookupServiceAccountResultOutput{}, options).(LookupServiceAccountResultOutput), nil }).(LookupServiceAccountResultOutput) } diff --git a/sdk/go/datadog/getServiceLevelObjective.go b/sdk/go/datadog/getServiceLevelObjective.go index 8c52f8575..c2bcc545f 100644 --- a/sdk/go/datadog/getServiceLevelObjective.go +++ b/sdk/go/datadog/getServiceLevelObjective.go @@ -94,21 +94,11 @@ type LookupServiceLevelObjectiveResult struct { } func LookupServiceLevelObjectiveOutput(ctx *pulumi.Context, args LookupServiceLevelObjectiveOutputArgs, opts ...pulumi.InvokeOption) LookupServiceLevelObjectiveResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceLevelObjectiveResultOutput, error) { args := v.(LookupServiceLevelObjectiveArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceLevelObjectiveResult - secret, err := ctx.InvokePackageRaw("datadog:index/getServiceLevelObjective:getServiceLevelObjective", args, &rv, "", opts...) - if err != nil { - return LookupServiceLevelObjectiveResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceLevelObjectiveResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceLevelObjectiveResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getServiceLevelObjective:getServiceLevelObjective", args, LookupServiceLevelObjectiveResultOutput{}, options).(LookupServiceLevelObjectiveResultOutput), nil }).(LookupServiceLevelObjectiveResultOutput) } diff --git a/sdk/go/datadog/getServiceLevelObjectives.go b/sdk/go/datadog/getServiceLevelObjectives.go index f7116d592..8a905902f 100644 --- a/sdk/go/datadog/getServiceLevelObjectives.go +++ b/sdk/go/datadog/getServiceLevelObjectives.go @@ -85,21 +85,11 @@ type GetServiceLevelObjectivesResult struct { } func GetServiceLevelObjectivesOutput(ctx *pulumi.Context, args GetServiceLevelObjectivesOutputArgs, opts ...pulumi.InvokeOption) GetServiceLevelObjectivesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceLevelObjectivesResultOutput, error) { args := v.(GetServiceLevelObjectivesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceLevelObjectivesResult - secret, err := ctx.InvokePackageRaw("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", args, &rv, "", opts...) - if err != nil { - return GetServiceLevelObjectivesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceLevelObjectivesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceLevelObjectivesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", args, GetServiceLevelObjectivesResultOutput{}, options).(GetServiceLevelObjectivesResultOutput), nil }).(GetServiceLevelObjectivesResultOutput) } diff --git a/sdk/go/datadog/getSyntheticsGlobalVariable.go b/sdk/go/datadog/getSyntheticsGlobalVariable.go index e9698f4e4..658b28c5a 100644 --- a/sdk/go/datadog/getSyntheticsGlobalVariable.go +++ b/sdk/go/datadog/getSyntheticsGlobalVariable.go @@ -39,21 +39,11 @@ type LookupSyntheticsGlobalVariableResult struct { } func LookupSyntheticsGlobalVariableOutput(ctx *pulumi.Context, args LookupSyntheticsGlobalVariableOutputArgs, opts ...pulumi.InvokeOption) LookupSyntheticsGlobalVariableResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSyntheticsGlobalVariableResultOutput, error) { args := v.(LookupSyntheticsGlobalVariableArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSyntheticsGlobalVariableResult - secret, err := ctx.InvokePackageRaw("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", args, &rv, "", opts...) - if err != nil { - return LookupSyntheticsGlobalVariableResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSyntheticsGlobalVariableResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSyntheticsGlobalVariableResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", args, LookupSyntheticsGlobalVariableResultOutput{}, options).(LookupSyntheticsGlobalVariableResultOutput), nil }).(LookupSyntheticsGlobalVariableResultOutput) } diff --git a/sdk/go/datadog/getSyntheticsLocations.go b/sdk/go/datadog/getSyntheticsLocations.go index 6e2aaf502..3db1f8e8b 100644 --- a/sdk/go/datadog/getSyntheticsLocations.go +++ b/sdk/go/datadog/getSyntheticsLocations.go @@ -32,18 +32,8 @@ type GetSyntheticsLocationsResult struct { func GetSyntheticsLocationsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetSyntheticsLocationsResultOutput { 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 - } - - output := pulumi.ToOutput(rv).(GetSyntheticsLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSyntheticsLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSyntheticsLocations:getSyntheticsLocations", nil, GetSyntheticsLocationsResultOutput{}, options).(GetSyntheticsLocationsResultOutput), nil }).(GetSyntheticsLocationsResultOutput) } diff --git a/sdk/go/datadog/getSyntheticsTest.go b/sdk/go/datadog/getSyntheticsTest.go index 1fbcc0776..d32624cc6 100644 --- a/sdk/go/datadog/getSyntheticsTest.go +++ b/sdk/go/datadog/getSyntheticsTest.go @@ -43,21 +43,11 @@ type LookupSyntheticsTestResult struct { } func LookupSyntheticsTestOutput(ctx *pulumi.Context, args LookupSyntheticsTestOutputArgs, opts ...pulumi.InvokeOption) LookupSyntheticsTestResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSyntheticsTestResultOutput, error) { args := v.(LookupSyntheticsTestArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSyntheticsTestResult - secret, err := ctx.InvokePackageRaw("datadog:index/getSyntheticsTest:getSyntheticsTest", args, &rv, "", opts...) - if err != nil { - return LookupSyntheticsTestResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSyntheticsTestResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSyntheticsTestResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getSyntheticsTest:getSyntheticsTest", args, LookupSyntheticsTestResultOutput{}, options).(LookupSyntheticsTestResultOutput), nil }).(LookupSyntheticsTestResultOutput) } diff --git a/sdk/go/datadog/getTeam.go b/sdk/go/datadog/getTeam.go index 99811d165..9d0ffe35e 100644 --- a/sdk/go/datadog/getTeam.go +++ b/sdk/go/datadog/getTeam.go @@ -79,21 +79,11 @@ type LookupTeamResult struct { } func LookupTeamOutput(ctx *pulumi.Context, args LookupTeamOutputArgs, opts ...pulumi.InvokeOption) LookupTeamResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTeamResultOutput, error) { args := v.(LookupTeamArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTeamResult - secret, err := ctx.InvokePackageRaw("datadog:index/getTeam:getTeam", args, &rv, "", opts...) - if err != nil { - return LookupTeamResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTeamResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTeamResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getTeam:getTeam", args, LookupTeamResultOutput{}, options).(LookupTeamResultOutput), nil }).(LookupTeamResultOutput) } diff --git a/sdk/go/datadog/getTeamMemberships.go b/sdk/go/datadog/getTeamMemberships.go index 5a2dedfd2..f1d9f57fc 100644 --- a/sdk/go/datadog/getTeamMemberships.go +++ b/sdk/go/datadog/getTeamMemberships.go @@ -74,21 +74,11 @@ type GetTeamMembershipsResult struct { } func GetTeamMembershipsOutput(ctx *pulumi.Context, args GetTeamMembershipsOutputArgs, opts ...pulumi.InvokeOption) GetTeamMembershipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTeamMembershipsResultOutput, error) { args := v.(GetTeamMembershipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTeamMembershipsResult - secret, err := ctx.InvokePackageRaw("datadog:index/getTeamMemberships:getTeamMemberships", args, &rv, "", opts...) - if err != nil { - return GetTeamMembershipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTeamMembershipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTeamMembershipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getTeamMemberships:getTeamMemberships", args, GetTeamMembershipsResultOutput{}, options).(GetTeamMembershipsResultOutput), nil }).(GetTeamMembershipsResultOutput) } diff --git a/sdk/go/datadog/getUser.go b/sdk/go/datadog/getUser.go index f35fbff77..f201a8556 100644 --- a/sdk/go/datadog/getUser.go +++ b/sdk/go/datadog/getUser.go @@ -71,21 +71,11 @@ type LookupUserResult struct { } func LookupUserOutput(ctx *pulumi.Context, args LookupUserOutputArgs, opts ...pulumi.InvokeOption) LookupUserResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserResultOutput, error) { args := v.(LookupUserArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserResult - secret, err := ctx.InvokePackageRaw("datadog:index/getUser:getUser", args, &rv, "", opts...) - if err != nil { - return LookupUserResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getUser:getUser", args, LookupUserResultOutput{}, options).(LookupUserResultOutput), nil }).(LookupUserResultOutput) } diff --git a/sdk/go/datadog/getUsers.go b/sdk/go/datadog/getUsers.go index db2c9ea87..a13d99de0 100644 --- a/sdk/go/datadog/getUsers.go +++ b/sdk/go/datadog/getUsers.go @@ -70,21 +70,11 @@ type GetUsersResult struct { } func GetUsersOutput(ctx *pulumi.Context, args GetUsersOutputArgs, opts ...pulumi.InvokeOption) GetUsersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetUsersResultOutput, error) { args := v.(GetUsersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUsersResult - secret, err := ctx.InvokePackageRaw("datadog:index/getUsers:getUsers", args, &rv, "", opts...) - if err != nil { - return GetUsersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUsersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUsersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("datadog:index/getUsers:getUsers", args, GetUsersResultOutput{}, options).(GetUsersResultOutput), nil }).(GetUsersResultOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 0deaf35ee..f3cc694fc 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.18.0") + implementation("com.pulumi:pulumi:0.20.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/datadog/DatadogFunctions.java b/sdk/java/src/main/java/com/pulumi/datadog/DatadogFunctions.java index 90609f205..dd8dfccdb 100644 --- a/sdk/java/src/main/java/com/pulumi/datadog/DatadogFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/datadog/DatadogFunctions.java @@ -95,6 +95,7 @@ import com.pulumi.datadog.outputs.GetUsersResult; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.resources.InvokeArgs; import java.util.concurrent.CompletableFuture; @@ -309,6 +310,48 @@ public static CompletableFuture getApiKeyPlain(GetApiKeyPlainAr public static Output getApiKey(GetApiKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getApiKey:getApiKey", TypeShape.of(GetApiKeyResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing api key. Deprecated. This will be removed in a future release with prior notice. Securely store your API keys using a secret management system or use the datadog.ApiKey resource to manage API keys in your Datadog account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetApiKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getApiKey(GetApiKeyArgs.builder()
+     *             .name("foo-application")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApiKey(GetApiKeyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getApiKey:getApiKey", TypeShape.of(GetApiKeyResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing api key. Deprecated. This will be removed in a future release with prior notice. Securely store your API keys using a secret management system or use the datadog.ApiKey resource to manage API keys in your Datadog account. * @@ -546,6 +589,45 @@ public static CompletableFuture getApmRetenti public static Output getApmRetentionFiltersOrder(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", TypeShape.of(GetApmRetentionFiltersOrderResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a Datadog [APM Retention Filters API](https://docs.datadoghq.com/api/v2/apm-retention-filters/) order datasource. This can be used to retrieve APM retention filters order. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getApmRetentionFiltersOrder();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApmRetentionFiltersOrder(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getApmRetentionFiltersOrder:getApmRetentionFiltersOrder", TypeShape.of(GetApmRetentionFiltersOrderResult.class), args, Utilities.withVersion(options)); + } /** * Provides a Datadog [APM Retention Filters API](https://docs.datadoghq.com/api/v2/apm-retention-filters/) order datasource. This can be used to retrieve APM retention filters order. * @@ -795,6 +877,48 @@ public static CompletableFuture getApplicationKeyPlain( public static Output getApplicationKey(GetApplicationKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getApplicationKey:getApplicationKey", TypeShape.of(GetApplicationKeyResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing application key. Deprecated. This will be removed in a future release with prior notice. Securely store your application keys using a secret management system or use the datadog.ApplicationKey resource to manage application keys in your Datadog account. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetApplicationKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getApplicationKey(GetApplicationKeyArgs.builder()
+     *             .name("foo-application")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplicationKey(GetApplicationKeyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getApplicationKey:getApplicationKey", TypeShape.of(GetApplicationKeyResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing application key. Deprecated. This will be removed in a future release with prior notice. Securely store your application keys using a secret management system or use the datadog.ApplicationKey resource to manage application keys in your Datadog account. * @@ -1022,6 +1146,43 @@ public static CompletableFuture getClo public static Output getCloudWorkloadSecurityAgentRules(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", TypeShape.of(GetCloudWorkloadSecurityAgentRulesResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getCloudWorkloadSecurityAgentRules();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCloudWorkloadSecurityAgentRules(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules", TypeShape.of(GetCloudWorkloadSecurityAgentRulesResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -1094,6 +1255,13 @@ public static CompletableFuture getCsmThreatsAgen public static Output getCsmThreatsAgentRules(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", TypeShape.of(GetCsmThreatsAgentRulesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing Agent rules. + * + */ + public static Output getCsmThreatsAgentRules(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules", TypeShape.of(GetCsmThreatsAgentRulesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing Agent rules. * @@ -1227,6 +1395,48 @@ public static CompletableFuture getDashboardPlain(GetDashboa public static Output getDashboard(GetDashboardArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getDashboard:getDashboard", TypeShape.of(GetDashboardResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing dashboard, for use in other resources. In particular, it can be used in a monitor message to link to a specific dashboard. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetDashboardArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getDashboard(GetDashboardArgs.builder()
+     *             .name("My super dashboard")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDashboard(GetDashboardArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getDashboard:getDashboard", TypeShape.of(GetDashboardResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing dashboard, for use in other resources. In particular, it can be used in a monitor message to link to a specific dashboard. * @@ -1518,11 +1728,11 @@ public static Output getDashboardList(GetDashboardListAr * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDashboardListPlain(GetDashboardListPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("datadog:index/getDashboardList:getDashboardList", TypeShape.of(GetDashboardListResult.class), args, Utilities.withVersion(options)); + public static Output getDashboardList(GetDashboardListArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getDashboardList:getDashboardList", TypeShape.of(GetDashboardListResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to retrieve information about your live hosts in Datadog. + * Use this data source to retrieve information about an existing dashboard list, for use in other resources. In particular, it can be used in a dashboard to register it in the list. * * ## Example Usage * @@ -1535,7 +1745,11 @@ public static CompletableFuture getDashboardListPlain(Ge * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.datadog.DatadogFunctions; - * import com.pulumi.datadog.inputs.GetHostsArgs; + * import com.pulumi.datadog.inputs.GetDashboardListArgs; + * import com.pulumi.datadog.Dashboard; + * import com.pulumi.datadog.DashboardArgs; + * import com.pulumi.datadog.inputs.DashboardWidgetArgs; + * import com.pulumi.datadog.inputs.DashboardWidgetAlertGraphDefinitionArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1549,9 +1763,25 @@ public static CompletableFuture getDashboardListPlain(Ge * } * * public static void stack(Context ctx) { - * final var foo = DatadogFunctions.getHosts(GetHostsArgs.builder() - * .includeMutedHostsData(true) - * .includeHostsMetadata(true) + * final var test = DatadogFunctions.getDashboardList(GetDashboardListArgs.builder() + * .name("My super list") + * .build()); + * + * // Create a dashboard and register it in the list above. + * var time = new Dashboard("time", DashboardArgs.builder() + * .title("TF Test Layout Dashboard") + * .description("Created using the Datadog provider in Pulumi") + * .dashboardLists(test.applyValue(getDashboardListResult -> getDashboardListResult.id())) + * .layoutType("ordered") + * .isReadOnly(true) + * .widgets(DashboardWidgetArgs.builder() + * .alertGraphDefinition(DashboardWidgetAlertGraphDefinitionArgs.builder() + * .alertId("1234") + * .vizType("timeseries") + * .title("Widget Title") + * .liveSpan("1h") + * .build()) + * .build()) * .build()); * * } @@ -1561,8 +1791,8 @@ public static CompletableFuture getDashboardListPlain(Ge * <!--End PulumiCodeChooser --> * */ - public static Output getHosts() { - return getHosts(GetHostsArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getDashboardListPlain(GetDashboardListPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("datadog:index/getDashboardList:getDashboardList", TypeShape.of(GetDashboardListResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve information about your live hosts in Datadog. @@ -1604,8 +1834,8 @@ public static Output getHosts() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHostsPlain() { - return getHostsPlain(GetHostsPlainArgs.Empty, InvokeOptions.Empty); + public static Output getHosts() { + return getHosts(GetHostsArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve information about your live hosts in Datadog. @@ -1647,8 +1877,8 @@ public static CompletableFuture getHostsPlain() { * <!--End PulumiCodeChooser --> * */ - public static Output getHosts(GetHostsArgs args) { - return getHosts(args, InvokeOptions.Empty); + public static CompletableFuture getHostsPlain() { + return getHostsPlain(GetHostsPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve information about your live hosts in Datadog. @@ -1690,8 +1920,8 @@ public static Output getHosts(GetHostsArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getHostsPlain(GetHostsPlainArgs args) { - return getHostsPlain(args, InvokeOptions.Empty); + public static Output getHosts(GetHostsArgs args) { + return getHosts(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about your live hosts in Datadog. @@ -1733,8 +1963,94 @@ public static CompletableFuture getHostsPlain(GetHostsPlainArgs * <!--End PulumiCodeChooser --> * */ - public static Output getHosts(GetHostsArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("datadog:index/getHosts:getHosts", TypeShape.of(GetHostsResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getHostsPlain(GetHostsPlainArgs args) { + return getHostsPlain(args, InvokeOptions.Empty); + } + /** + * Use this data source to retrieve information about your live hosts in Datadog. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetHostsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getHosts(GetHostsArgs.builder()
+     *             .includeMutedHostsData(true)
+     *             .includeHostsMetadata(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHosts(GetHostsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("datadog:index/getHosts:getHosts", TypeShape.of(GetHostsResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve information about your live hosts in Datadog. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetHostsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getHosts(GetHostsArgs.builder()
+     *             .includeMutedHostsData(true)
+     *             .includeHostsMetadata(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHosts(GetHostsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getHosts:getHosts", TypeShape.of(GetHostsResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve information about your live hosts in Datadog. @@ -1974,6 +2290,45 @@ public static CompletableFuture getIpRangesPlain(InvokeArgs a public static Output getIpRanges(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getIpRanges:getIpRanges", TypeShape.of(GetIpRangesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about Datadog's IP addresses. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getIpRanges();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIpRanges(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getIpRanges:getIpRanges", TypeShape.of(GetIpRangesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about Datadog's IP addresses. * @@ -2048,6 +2403,13 @@ public static CompletableFuture getLogsArchivesOrder public static Output getLogsArchivesOrder(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", TypeShape.of(GetLogsArchivesOrderResult.class), args, Utilities.withVersion(options)); } + /** + * Get the current order of your logs archives. + * + */ + public static Output getLogsArchivesOrder(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getLogsArchivesOrder:getLogsArchivesOrder", TypeShape.of(GetLogsArchivesOrderResult.class), args, Utilities.withVersion(options)); + } /** * Get the current order of your logs archives. * @@ -2250,6 +2612,45 @@ public static CompletableFuture getLogsIndexesPlain(Invoke public static Output getLogsIndexes(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getLogsIndexes:getLogsIndexes", TypeShape.of(GetLogsIndexesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to list several existing logs indexes for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getLogsIndexes();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogsIndexes(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getLogsIndexes:getLogsIndexes", TypeShape.of(GetLogsIndexesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to list several existing logs indexes for use in other resources. * @@ -2484,6 +2885,45 @@ public static CompletableFuture getLogsIndexesOrderPl public static Output getLogsIndexesOrder(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", TypeShape.of(GetLogsIndexesOrderResult.class), args, Utilities.withVersion(options)); } + /** + * Get the current order of your log indexes. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getLogsIndexesOrder();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogsIndexesOrder(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getLogsIndexesOrder:getLogsIndexesOrder", TypeShape.of(GetLogsIndexesOrderResult.class), args, Utilities.withVersion(options)); + } /** * Get the current order of your log indexes. * @@ -2583,6 +3023,18 @@ public static CompletableFuture getLogsPipelinesPlain(Ge public static Output getLogsPipelines(GetLogsPipelinesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getLogsPipelines:getLogsPipelines", TypeShape.of(GetLogsPipelinesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to list all existing logs pipelines for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogsPipelines(GetLogsPipelinesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getLogsPipelines:getLogsPipelines", TypeShape.of(GetLogsPipelinesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to list all existing logs pipelines for use in other resources. * @@ -2810,6 +3262,49 @@ public static CompletableFuture getMonitorPlain(GetMonitorPlai public static Output getMonitor(GetMonitorArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getMonitor:getMonitor", TypeShape.of(GetMonitorResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing monitor for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetMonitorArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getMonitor(GetMonitorArgs.builder()
+     *             .nameFilter("My awesome monitor")
+     *             .monitorTagsFilters("foo:bar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMonitor(GetMonitorArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getMonitor:getMonitor", TypeShape.of(GetMonitorResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing monitor for use in other resources. * @@ -3048,6 +3543,45 @@ public static CompletableFuture getMonitorConfig public static Output getMonitorConfigPolicies(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", TypeShape.of(GetMonitorConfigPoliciesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to list existing monitor config policies for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getMonitorConfigPolicies();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMonitorConfigPolicies(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies", TypeShape.of(GetMonitorConfigPoliciesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to list existing monitor config policies for use in other resources. * @@ -3122,6 +3656,13 @@ public static CompletableFuture getMonitorsPlain(GetMonitorsP public static Output getMonitors(GetMonitorsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getMonitors:getMonitors", TypeShape.of(GetMonitorsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to list several existing monitors for use in other resources. + * + */ + public static Output getMonitors(GetMonitorsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getMonitors:getMonitors", TypeShape.of(GetMonitorsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to list several existing monitors for use in other resources. * @@ -3329,6 +3870,46 @@ public static CompletableFuture getPermissionsPlain(GetPer public static Output getPermissions(GetPermissionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getPermissions:getPermissions", TypeShape.of(GetPermissionsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve the list of Datadog permissions by name and their corresponding ID, for use in the role resource. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetPermissionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var permissions = DatadogFunctions.getPermissions();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPermissions(GetPermissionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getPermissions:getPermissions", TypeShape.of(GetPermissionsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve the list of Datadog permissions by name and their corresponding ID, for use in the role resource. * @@ -3394,8 +3975,57 @@ public static Output getPowerpack(GetPowerpackArgs args, Inv * Use this data source to retrieve information about an existing Datadog Powerpack. * */ - public static CompletableFuture getPowerpackPlain(GetPowerpackPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("datadog:index/getPowerpack:getPowerpack", TypeShape.of(GetPowerpackResult.class), args, Utilities.withVersion(options)); + public static Output getPowerpack(GetPowerpackArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getPowerpack:getPowerpack", TypeShape.of(GetPowerpackResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve information about an existing Datadog Powerpack. + * + */ + public static CompletableFuture getPowerpackPlain(GetPowerpackPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("datadog:index/getPowerpack:getPowerpack", TypeShape.of(GetPowerpackResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve information about an existing role for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetRoleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getRole(GetRoleArgs.builder()
+     *             .filter("Datadog Standard Role")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRole(GetRoleArgs args) { + return getRole(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about an existing role for use in other resources. @@ -3436,8 +4066,8 @@ public static CompletableFuture getPowerpackPlain(GetPowerpa * <!--End PulumiCodeChooser --> * */ - public static Output getRole(GetRoleArgs args) { - return getRole(args, InvokeOptions.Empty); + public static CompletableFuture getRolePlain(GetRolePlainArgs args) { + return getRolePlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about an existing role for use in other resources. @@ -3478,8 +4108,8 @@ public static Output getRole(GetRoleArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRolePlain(GetRolePlainArgs args) { - return getRolePlain(args, InvokeOptions.Empty); + public static Output getRole(GetRoleArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("datadog:index/getRole:getRole", TypeShape.of(GetRoleResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve information about an existing role for use in other resources. @@ -3520,7 +4150,7 @@ public static CompletableFuture getRolePlain(GetRolePlainArgs arg * <!--End PulumiCodeChooser --> * */ - public static Output getRole(GetRoleArgs args, InvokeOptions options) { + public static Output getRole(GetRoleArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("datadog:index/getRole:getRole", TypeShape.of(GetRoleResult.class), args, Utilities.withVersion(options)); } /** @@ -3586,6 +4216,13 @@ public static CompletableFuture getRoleUsersPlain(GetRoleUse public static Output getRoleUsers(GetRoleUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getRoleUsers:getRoleUsers", TypeShape.of(GetRoleUsersResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. + * + */ + public static Output getRoleUsers(GetRoleUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getRoleUsers:getRoleUsers", TypeShape.of(GetRoleUsersResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing Datadog role users assignments. This data source is in beta and is subject to change. * @@ -3803,6 +4440,48 @@ public static CompletableFuture getRolesPlain(GetRolesPlainArgs public static Output getRoles(GetRolesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getRoles:getRoles", TypeShape.of(GetRolesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about multiple roles for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetRolesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getRoles(GetRolesArgs.builder()
+     *             .filter("Datadog")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRoles(GetRolesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getRoles:getRoles", TypeShape.of(GetRolesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about multiple roles for use in other resources. * @@ -3880,6 +4559,13 @@ public static CompletableFuture getRumApplicationPlain( public static Output getRumApplication(GetRumApplicationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getRumApplication:getRumApplication", TypeShape.of(GetRumApplicationResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve a Datadog RUM Application. + * + */ + public static Output getRumApplication(GetRumApplicationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getRumApplication:getRumApplication", TypeShape.of(GetRumApplicationResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve a Datadog RUM Application. * @@ -4082,6 +4768,45 @@ public static CompletableFuture getSecurityM public static Output getSecurityMonitoringFilters(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", TypeShape.of(GetSecurityMonitoringFiltersResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing security monitoring filters for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getSecurityMonitoringFilters();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityMonitoringFilters(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSecurityMonitoringFilters:getSecurityMonitoringFilters", TypeShape.of(GetSecurityMonitoringFiltersResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing security monitoring filters for use in other resources. * @@ -4341,6 +5066,50 @@ public static CompletableFuture getSecurityMon public static Output getSecurityMonitoringRules(GetSecurityMonitoringRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", TypeShape.of(GetSecurityMonitoringRulesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing security monitoring rules for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetSecurityMonitoringRulesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getSecurityMonitoringRules(GetSecurityMonitoringRulesArgs.builder()
+     *             .nameFilter("attack")
+     *             .tagsFilters("foo:bar")
+     *             .defaultOnlyFilter(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityMonitoringRules(GetSecurityMonitoringRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSecurityMonitoringRules:getSecurityMonitoringRules", TypeShape.of(GetSecurityMonitoringRulesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing security monitoring rules for use in other resources. * @@ -4420,6 +5189,13 @@ public static CompletableFuture getSecu public static Output getSecurityMonitoringSuppressions(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", TypeShape.of(GetSecurityMonitoringSuppressionsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing suppression rules, and use them in other resources. + * + */ + public static Output getSecurityMonitoringSuppressions(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSecurityMonitoringSuppressions:getSecurityMonitoringSuppressions", TypeShape.of(GetSecurityMonitoringSuppressionsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing suppression rules, and use them in other resources. * @@ -4652,6 +5428,51 @@ public static CompletableFuture getSens public static Output getSensitiveDataScannerGroupOrder(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", TypeShape.of(GetSensitiveDataScannerGroupOrderResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a Datadog Sensitive Data Scanner Group Order API data source. This can be used to retrieve the order of Datadog Sensitive Data Scanner Groups. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.SensitiveDataScannerGroupOrder;
+     * import com.pulumi.datadog.SensitiveDataScannerGroupOrderArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getSensitiveDataScannerGroupOrder();
+     * 
+     *         var foobar = new SensitiveDataScannerGroupOrder("foobar", SensitiveDataScannerGroupOrderArgs.builder()
+     *             .groupIds(foo.applyValue(getSensitiveDataScannerGroupOrderResult -> getSensitiveDataScannerGroupOrderResult.groupIds()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSensitiveDataScannerGroupOrder(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder", TypeShape.of(GetSensitiveDataScannerGroupOrderResult.class), args, Utilities.withVersion(options)); + } /** * Provides a Datadog Sensitive Data Scanner Group Order API data source. This can be used to retrieve the order of Datadog Sensitive Data Scanner Groups. * @@ -4718,6 +5539,13 @@ public static CompletableFuture ge public static Output getSensitiveDataScannerStandardPattern(GetSensitiveDataScannerStandardPatternArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", TypeShape.of(GetSensitiveDataScannerStandardPatternResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing sensitive data scanner standard pattern. + * + */ + public static Output getSensitiveDataScannerStandardPattern(GetSensitiveDataScannerStandardPatternArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSensitiveDataScannerStandardPattern:getSensitiveDataScannerStandardPattern", TypeShape.of(GetSensitiveDataScannerStandardPatternResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing sensitive data scanner standard pattern. * @@ -4764,8 +5592,62 @@ public static Output getServiceAccount(GetServiceAccoun * Use this data source to retrieve information about an existing Datadog service account. * */ - public static CompletableFuture getServiceAccountPlain(GetServiceAccountPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("datadog:index/getServiceAccount:getServiceAccount", TypeShape.of(GetServiceAccountResult.class), args, Utilities.withVersion(options)); + public static Output getServiceAccount(GetServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getServiceAccount:getServiceAccount", TypeShape.of(GetServiceAccountResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve information about an existing Datadog service account. + * + */ + public static CompletableFuture getServiceAccountPlain(GetServiceAccountPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("datadog:index/getServiceAccount:getServiceAccount", TypeShape.of(GetServiceAccountResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve information about an existing SLO for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetServiceLevelObjectiveArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = DatadogFunctions.getServiceLevelObjective(GetServiceLevelObjectiveArgs.builder()
+     *             .nameQuery("My test SLO")
+     *             .tagsQuery("foo:bar")
+     *             .build());
+     * 
+     *         final var apiSlo = DatadogFunctions.getServiceLevelObjective(GetServiceLevelObjectiveArgs.builder()
+     *             .id(api.outputs().slo())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceLevelObjective() { + return getServiceLevelObjective(GetServiceLevelObjectiveArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve information about an existing SLO for use in other resources. @@ -4811,8 +5693,8 @@ public static CompletableFuture getServiceAccountPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getServiceLevelObjective() { - return getServiceLevelObjective(GetServiceLevelObjectiveArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getServiceLevelObjectivePlain() { + return getServiceLevelObjectivePlain(GetServiceLevelObjectivePlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve information about an existing SLO for use in other resources. @@ -4858,8 +5740,8 @@ public static Output getServiceLevelObjective() * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getServiceLevelObjectivePlain() { - return getServiceLevelObjectivePlain(GetServiceLevelObjectivePlainArgs.Empty, InvokeOptions.Empty); + public static Output getServiceLevelObjective(GetServiceLevelObjectiveArgs args) { + return getServiceLevelObjective(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about an existing SLO for use in other resources. @@ -4905,8 +5787,8 @@ public static CompletableFuture getServiceLevelO * <!--End PulumiCodeChooser --> * */ - public static Output getServiceLevelObjective(GetServiceLevelObjectiveArgs args) { - return getServiceLevelObjective(args, InvokeOptions.Empty); + public static CompletableFuture getServiceLevelObjectivePlain(GetServiceLevelObjectivePlainArgs args) { + return getServiceLevelObjectivePlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about an existing SLO for use in other resources. @@ -4952,8 +5834,8 @@ public static Output getServiceLevelObjective(Ge * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getServiceLevelObjectivePlain(GetServiceLevelObjectivePlainArgs args) { - return getServiceLevelObjectivePlain(args, InvokeOptions.Empty); + public static Output getServiceLevelObjective(GetServiceLevelObjectiveArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("datadog:index/getServiceLevelObjective:getServiceLevelObjective", TypeShape.of(GetServiceLevelObjectiveResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve information about an existing SLO for use in other resources. @@ -4999,7 +5881,7 @@ public static CompletableFuture getServiceLevelO * <!--End PulumiCodeChooser --> * */ - public static Output getServiceLevelObjective(GetServiceLevelObjectiveArgs args, InvokeOptions options) { + public static Output getServiceLevelObjective(GetServiceLevelObjectiveArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("datadog:index/getServiceLevelObjective:getServiceLevelObjective", TypeShape.of(GetServiceLevelObjectiveResult.class), args, Utilities.withVersion(options)); } /** @@ -5259,6 +6141,48 @@ public static CompletableFuture getServiceLevel public static Output getServiceLevelObjectives(GetServiceLevelObjectivesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", TypeShape.of(GetServiceLevelObjectivesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about multiple SLOs for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetServiceLevelObjectivesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ftFooSlos = DatadogFunctions.getServiceLevelObjectives(GetServiceLevelObjectivesArgs.builder()
+     *             .tagsQuery("owner:ft-foo")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceLevelObjectives(GetServiceLevelObjectivesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getServiceLevelObjectives:getServiceLevelObjectives", TypeShape.of(GetServiceLevelObjectivesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about multiple SLOs for use in other resources. * @@ -5322,6 +6246,13 @@ public static CompletableFuture getSynthetics public static Output getSyntheticsGlobalVariable(GetSyntheticsGlobalVariableArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", TypeShape.of(GetSyntheticsGlobalVariableResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve a Datadog Synthetics global variable (to be used in Synthetics tests). + * + */ + public static Output getSyntheticsGlobalVariable(GetSyntheticsGlobalVariableArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSyntheticsGlobalVariable:getSyntheticsGlobalVariable", TypeShape.of(GetSyntheticsGlobalVariableResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve a Datadog Synthetics global variable (to be used in Synthetics tests). * @@ -5364,6 +6295,13 @@ public static CompletableFuture getSyntheticsLocat public static Output getSyntheticsLocations(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSyntheticsLocations:getSyntheticsLocations", TypeShape.of(GetSyntheticsLocationsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve Datadog's Synthetics Locations (to be used in Synthetics tests). + * + */ + public static Output getSyntheticsLocations(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSyntheticsLocations:getSyntheticsLocations", TypeShape.of(GetSyntheticsLocationsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve Datadog's Synthetics Locations (to be used in Synthetics tests). * @@ -5392,6 +6330,13 @@ public static CompletableFuture getSyntheticsTestPlain( public static Output getSyntheticsTest(GetSyntheticsTestArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getSyntheticsTest:getSyntheticsTest", TypeShape.of(GetSyntheticsTestResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve a Datadog Synthetic Test. + * + */ + public static Output getSyntheticsTest(GetSyntheticsTestArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getSyntheticsTest:getSyntheticsTest", TypeShape.of(GetSyntheticsTestResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve a Datadog Synthetic Test. * @@ -5609,6 +6554,48 @@ public static CompletableFuture getTeamPlain(GetTeamPlainArgs arg public static Output getTeam(GetTeamArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getTeam:getTeam", TypeShape.of(GetTeamResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing Datadog team. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetTeamArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DatadogFunctions.getTeam(GetTeamArgs.builder()
+     *             .teamId("e6723c40-edb1-11ed-b816-da7ad0900002")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTeam(GetTeamArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getTeam:getTeam", TypeShape.of(GetTeamResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing Datadog team. * @@ -5780,6 +6767,49 @@ public static CompletableFuture getTeamMembershipsPlai public static Output getTeamMemberships(GetTeamMembershipsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getTeamMemberships:getTeamMemberships", TypeShape.of(GetTeamMembershipsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing Datadog team memberships. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetTeamMembershipsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var foo = DatadogFunctions.getTeamMemberships(GetTeamMembershipsArgs.builder()
+     *             .teamId("e6723c40-edb1-11ed-b816-da7ad0900002")
+     *             .filterKeyword("foo}{@literal @}{@code example.com")
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTeamMemberships(GetTeamMembershipsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getTeamMemberships:getTeamMemberships", TypeShape.of(GetTeamMembershipsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing Datadog team memberships. * @@ -5949,6 +6979,48 @@ public static CompletableFuture getUserPlain(GetUserPlainArgs arg public static Output getUser(GetUserArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getUser:getUser", TypeShape.of(GetUserResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about an existing user to use it in an other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetUserArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var test = DatadogFunctions.getUser(GetUserArgs.builder()
+     *             .filter("user.name}{@literal @}{@code company.com")
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUser(GetUserArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getUser:getUser", TypeShape.of(GetUserResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about an existing user to use it in an other resources. * @@ -6206,6 +7278,49 @@ public static CompletableFuture getUsersPlain(GetUsersPlainArgs public static Output getUsers(GetUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:index/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve information about existing users for use in other resources. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.DatadogFunctions;
+     * import com.pulumi.datadog.inputs.GetUsersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var test = DatadogFunctions.getUsers(GetUsersArgs.builder()
+     *             .filter("user.name}{@literal @}{@code company.com")
+     *             .filterStatus("Active,Pending")
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUsers(GetUsersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:index/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve information about existing users for use in other resources. * diff --git a/sdk/java/src/main/java/com/pulumi/datadog/Utilities.java b/sdk/java/src/main/java/com/pulumi/datadog/Utilities.java index 2b82cea00..3fca2eb42 100644 --- a/sdk/java/src/main/java/com/pulumi/datadog/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/datadog/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) return Optional.empty(); } - public static InvokeOptions withVersion(@Nullable InvokeOptions options) { - if (options != null && options.getVersion().isPresent()) { - return options; - } - return new InvokeOptions( - options == null ? null : options.getParent().orElse(null), - options == null ? null : options.getProvider().orElse(null), - getVersion() - ); + public static InvokeOptions withVersion(@Nullable InvokeOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion() + ); + } + + public static InvokeOutputOptions withVersion(@Nullable InvokeOutputOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; } + return new InvokeOutputOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion(), + options == null ? null : options.getDependsOn() + ); + } private static final java.lang.String version; public static java.lang.String getVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/datadog/aws/AwsFunctions.java b/sdk/java/src/main/java/com/pulumi/datadog/aws/AwsFunctions.java index a5c581432..9d9b60c5e 100644 --- a/sdk/java/src/main/java/com/pulumi/datadog/aws/AwsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/datadog/aws/AwsFunctions.java @@ -10,6 +10,7 @@ import com.pulumi.datadog.aws.outputs.GetIntegrationNamespaceRulesResult; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.resources.InvokeArgs; import java.util.concurrent.CompletableFuture; @@ -49,6 +50,13 @@ public static CompletableFuture getIntegration public static Output getIntegrationLogsServices(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", TypeShape.of(GetIntegrationLogsServicesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve all AWS log ready services. + * + */ + public static Output getIntegrationLogsServices(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:aws/getIntegrationLogsServices:getIntegrationLogsServices", TypeShape.of(GetIntegrationLogsServicesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve all AWS log ready services. * @@ -251,6 +259,45 @@ public static CompletableFuture getIntegrati public static Output getIntegrationNamespaceRules(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", TypeShape.of(GetIntegrationNamespaceRulesResult.class), args, Utilities.withVersion(options)); } + /** + * Provides a Datadog AWS Integration Namespace Rules data source. This can be used to retrieve all available namespace rules for a Datadog-AWS integration. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.datadog.aws.AwsFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var rules = AwsFunctions.getIntegrationNamespaceRules();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIntegrationNamespaceRules(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("datadog:aws/getIntegrationNamespaceRules:getIntegrationNamespaceRules", TypeShape.of(GetIntegrationNamespaceRulesResult.class), args, Utilities.withVersion(options)); + } /** * Provides a Datadog AWS Integration Namespace Rules data source. This can be used to retrieve all available namespace rules for a Datadog-AWS integration. * diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index be35b72f0..e33f24683 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.136.0" + "@pulumi/pulumi": "^3.142.0" }, "devDependencies": { "@types/node": "^10.0.0", diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 085b6da1f..7b5061b7c 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pulumi_datadog" description = "A Pulumi package for creating and managing Datadog resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] + dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "datadog"] readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" version = "4.0.0a0+dev" [project.license] text = "Apache-2.0"