Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi
datadog.getSensitiveDataScannerGroupOrder
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const foo = datadog.getSensitiveDataScannerGroupOrder({});
const foobar = new datadog.SensitiveDataScannerGroupOrder("foobar", {groupIds: foo.then(foo => foo.groupIds)});
import pulumi
import pulumi_datadog as datadog
foo = datadog.get_sensitive_data_scanner_group_order()
foobar = datadog.SensitiveDataScannerGroupOrder("foobar", group_ids=foo.group_ids)
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := datadog.LookupSensitiveDataScannerGroupOrder(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = datadog.NewSensitiveDataScannerGroupOrder(ctx, "foobar", &datadog.SensitiveDataScannerGroupOrderArgs{
GroupIds: interface{}(foo.GroupIds),
})
if err != nil {
return err
}
return nil
})
}
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),
});
});
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());
}
}
resources:
foobar:
type: datadog:SensitiveDataScannerGroupOrder
properties:
groupIds: ${foo.groupIds}
variables:
foo:
fn::invoke:
Function: datadog:getSensitiveDataScannerGroupOrder
Arguments: {}
Using getSensitiveDataScannerGroupOrder
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSensitiveDataScannerGroupOrder(opts?: InvokeOptions): Promise<GetSensitiveDataScannerGroupOrderResult>
function getSensitiveDataScannerGroupOrderOutput(opts?: InvokeOptions): Output<GetSensitiveDataScannerGroupOrderResult>
def get_sensitive_data_scanner_group_order(opts: Optional[InvokeOptions] = None) -> GetSensitiveDataScannerGroupOrderResult
def get_sensitive_data_scanner_group_order_output(opts: Optional[InvokeOptions] = None) -> Output[GetSensitiveDataScannerGroupOrderResult]
func LookupSensitiveDataScannerGroupOrder(ctx *Context, opts ...InvokeOption) (*LookupSensitiveDataScannerGroupOrderResult, error)
func LookupSensitiveDataScannerGroupOrderOutput(ctx *Context, opts ...InvokeOption) LookupSensitiveDataScannerGroupOrderResultOutput
> Note: This function is named LookupSensitiveDataScannerGroupOrder
in the Go SDK.
public static class GetSensitiveDataScannerGroupOrder
{
public static Task<GetSensitiveDataScannerGroupOrderResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetSensitiveDataScannerGroupOrderResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetSensitiveDataScannerGroupOrderResult> getSensitiveDataScannerGroupOrder(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: datadog:index/getSensitiveDataScannerGroupOrder:getSensitiveDataScannerGroupOrder
arguments:
# arguments dictionary
getSensitiveDataScannerGroupOrder Result
The following output properties are available:
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.