Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

getDatastreamDatasetFields

Use the akamai.getDatastreamDatasetFields data source to list groups of data set fields available in the template.

Attributes reference

This data source returns these attributes:

  • fields - A group of data set fields available in a template, including:
    • dataset_group_name - The name of the data set group.
    • dataset_group_description - Additional information about the data set group.
    • dataset_fields - A list of data set fields available within the data set group, including:
      • dataset_field_description - Additional information about the data set field.
      • dataset_field_id - Unique identifier for the field.
      • dataset_field_json_key - The JSON key for the field in a log line.
      • dataset_field_name - The name of the data set field.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var fields = Output.Create(Akamai.GetDatastreamDatasetFields.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.GetDatastreamDatasetFields(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetDatastreamDatasetFieldsArgs;
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 fields = AkamaiFunctions.getDatastreamDatasetFields();

    }
}
import pulumi
import pulumi_akamai as akamai

fields = akamai.get_datastream_dataset_fields()
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const fields = pulumi.output(akamai.getDatastreamDatasetFields());
variables:
  fields:
    Fn::Invoke:
      Function: akamai:getDatastreamDatasetFields
      Arguments: {}

Using getDatastreamDatasetFields

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 getDatastreamDatasetFields(args: GetDatastreamDatasetFieldsArgs, opts?: InvokeOptions): Promise<GetDatastreamDatasetFieldsResult>
function getDatastreamDatasetFieldsOutput(args: GetDatastreamDatasetFieldsOutputArgs, opts?: InvokeOptions): Output<GetDatastreamDatasetFieldsResult>
def get_datastream_dataset_fields(template_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDatastreamDatasetFieldsResult
def get_datastream_dataset_fields_output(template_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDatastreamDatasetFieldsResult]
func GetDatastreamDatasetFields(ctx *Context, args *GetDatastreamDatasetFieldsArgs, opts ...InvokeOption) (*GetDatastreamDatasetFieldsResult, error)
func GetDatastreamDatasetFieldsOutput(ctx *Context, args *GetDatastreamDatasetFieldsOutputArgs, opts ...InvokeOption) GetDatastreamDatasetFieldsResultOutput

> Note: This function is named GetDatastreamDatasetFields in the Go SDK.

public static class GetDatastreamDatasetFields 
{
    public static Task<GetDatastreamDatasetFieldsResult> InvokeAsync(GetDatastreamDatasetFieldsArgs args, InvokeOptions? opts = null)
    public static Output<GetDatastreamDatasetFieldsResult> Invoke(GetDatastreamDatasetFieldsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatastreamDatasetFieldsResult> getDatastreamDatasetFields(GetDatastreamDatasetFieldsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getDatastreamDatasetFields:getDatastreamDatasetFields
  Arguments:
    # Arguments dictionary

The following arguments are supported:

TemplateName string

- (Optional) The name of the data set template you use in your stream configuration. Currently, EDGE_LOGS is the only available data set template and the default value for this argument.

TemplateName string

- (Optional) The name of the data set template you use in your stream configuration. Currently, EDGE_LOGS is the only available data set template and the default value for this argument.

templateName String

- (Optional) The name of the data set template you use in your stream configuration. Currently, EDGE_LOGS is the only available data set template and the default value for this argument.

templateName string

- (Optional) The name of the data set template you use in your stream configuration. Currently, EDGE_LOGS is the only available data set template and the default value for this argument.

template_name str

- (Optional) The name of the data set template you use in your stream configuration. Currently, EDGE_LOGS is the only available data set template and the default value for this argument.

templateName String

- (Optional) The name of the data set template you use in your stream configuration. Currently, EDGE_LOGS is the only available data set template and the default value for this argument.

getDatastreamDatasetFields Result

The following output properties are available:

Fields List<GetDatastreamDatasetFieldsField>
Id string

The provider-assigned unique ID for this managed resource.

TemplateName string
Fields []GetDatastreamDatasetFieldsField
Id string

The provider-assigned unique ID for this managed resource.

TemplateName string
fields List<GetDatastreamDatasetFieldsField>
id String

The provider-assigned unique ID for this managed resource.

templateName String
fields GetDatastreamDatasetFieldsField[]
id string

The provider-assigned unique ID for this managed resource.

templateName string
fields Sequence[GetDatastreamDatasetFieldsField]
id str

The provider-assigned unique ID for this managed resource.

template_name str
fields List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

templateName String

Supporting Types

GetDatastreamDatasetFieldsField

GetDatastreamDatasetFieldsFieldDatasetField

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.