Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getLogAnalyticsUnprocessedDataBucket

This data source provides details about a specific Log Analytics Unprocessed Data Bucket resource in Oracle Cloud Infrastructure Log Analytics service.

This API retrieves details of the configured bucket that stores unprocessed payloads.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testLogAnalyticsUnprocessedDataBucket = Oci.LogAnalytics.GetLogAnalyticsUnprocessedDataBucket.Invoke(new()
    {
        Namespace = @var.Log_analytics_unprocessed_data_bucket_namespace,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LogAnalytics.GetLogAnalyticsUnprocessedDataBucket(ctx, &loganalytics.GetLogAnalyticsUnprocessedDataBucketArgs{
			Namespace: _var.Log_analytics_unprocessed_data_bucket_namespace,
		}, 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.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetLogAnalyticsUnprocessedDataBucketArgs;
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 testLogAnalyticsUnprocessedDataBucket = LogAnalyticsFunctions.getLogAnalyticsUnprocessedDataBucket(GetLogAnalyticsUnprocessedDataBucketArgs.builder()
            .namespace(var_.log_analytics_unprocessed_data_bucket_namespace())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_log_analytics_unprocessed_data_bucket = oci.LogAnalytics.get_log_analytics_unprocessed_data_bucket(namespace=var["log_analytics_unprocessed_data_bucket_namespace"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLogAnalyticsUnprocessedDataBucket = oci.LogAnalytics.getLogAnalyticsUnprocessedDataBucket({
    namespace: _var.log_analytics_unprocessed_data_bucket_namespace,
});
variables:
  testLogAnalyticsUnprocessedDataBucket:
    Fn::Invoke:
      Function: oci:LogAnalytics:getLogAnalyticsUnprocessedDataBucket
      Arguments:
        namespace: ${var.log_analytics_unprocessed_data_bucket_namespace}

Using getLogAnalyticsUnprocessedDataBucket

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 getLogAnalyticsUnprocessedDataBucket(args: GetLogAnalyticsUnprocessedDataBucketArgs, opts?: InvokeOptions): Promise<GetLogAnalyticsUnprocessedDataBucketResult>
function getLogAnalyticsUnprocessedDataBucketOutput(args: GetLogAnalyticsUnprocessedDataBucketOutputArgs, opts?: InvokeOptions): Output<GetLogAnalyticsUnprocessedDataBucketResult>
def get_log_analytics_unprocessed_data_bucket(namespace: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetLogAnalyticsUnprocessedDataBucketResult
def get_log_analytics_unprocessed_data_bucket_output(namespace: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetLogAnalyticsUnprocessedDataBucketResult]
func GetLogAnalyticsUnprocessedDataBucket(ctx *Context, args *GetLogAnalyticsUnprocessedDataBucketArgs, opts ...InvokeOption) (*GetLogAnalyticsUnprocessedDataBucketResult, error)
func GetLogAnalyticsUnprocessedDataBucketOutput(ctx *Context, args *GetLogAnalyticsUnprocessedDataBucketOutputArgs, opts ...InvokeOption) GetLogAnalyticsUnprocessedDataBucketResultOutput

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

public static class GetLogAnalyticsUnprocessedDataBucket 
{
    public static Task<GetLogAnalyticsUnprocessedDataBucketResult> InvokeAsync(GetLogAnalyticsUnprocessedDataBucketArgs args, InvokeOptions? opts = null)
    public static Output<GetLogAnalyticsUnprocessedDataBucketResult> Invoke(GetLogAnalyticsUnprocessedDataBucketInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogAnalyticsUnprocessedDataBucketResult> getLogAnalyticsUnprocessedDataBucket(GetLogAnalyticsUnprocessedDataBucketArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:LogAnalytics/getLogAnalyticsUnprocessedDataBucket:getLogAnalyticsUnprocessedDataBucket
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Namespace string

The Logging Analytics namespace used for the request.

Namespace string

The Logging Analytics namespace used for the request.

namespace String

The Logging Analytics namespace used for the request.

namespace string

The Logging Analytics namespace used for the request.

namespace str

The Logging Analytics namespace used for the request.

namespace String

The Logging Analytics namespace used for the request.

getLogAnalyticsUnprocessedDataBucket Result

The following output properties are available:

Bucket string

Name of the Object Storage bucket.

Id string

The provider-assigned unique ID for this managed resource.

IsEnabled bool

Flag that specifies if this configuration is enabled or not.

Namespace string

Object Storage namespace.

TimeCreated string

The time when this record is created. An RFC3339 formatted datetime string.

TimeUpdated string

The latest time when this record is updated. An RFC3339 formatted datetime string.

Bucket string

Name of the Object Storage bucket.

Id string

The provider-assigned unique ID for this managed resource.

IsEnabled bool

Flag that specifies if this configuration is enabled or not.

Namespace string

Object Storage namespace.

TimeCreated string

The time when this record is created. An RFC3339 formatted datetime string.

TimeUpdated string

The latest time when this record is updated. An RFC3339 formatted datetime string.

bucket String

Name of the Object Storage bucket.

id String

The provider-assigned unique ID for this managed resource.

isEnabled Boolean

Flag that specifies if this configuration is enabled or not.

namespace String

Object Storage namespace.

timeCreated String

The time when this record is created. An RFC3339 formatted datetime string.

timeUpdated String

The latest time when this record is updated. An RFC3339 formatted datetime string.

bucket string

Name of the Object Storage bucket.

id string

The provider-assigned unique ID for this managed resource.

isEnabled boolean

Flag that specifies if this configuration is enabled or not.

namespace string

Object Storage namespace.

timeCreated string

The time when this record is created. An RFC3339 formatted datetime string.

timeUpdated string

The latest time when this record is updated. An RFC3339 formatted datetime string.

bucket str

Name of the Object Storage bucket.

id str

The provider-assigned unique ID for this managed resource.

is_enabled bool

Flag that specifies if this configuration is enabled or not.

namespace str

Object Storage namespace.

time_created str

The time when this record is created. An RFC3339 formatted datetime string.

time_updated str

The latest time when this record is updated. An RFC3339 formatted datetime string.

bucket String

Name of the Object Storage bucket.

id String

The provider-assigned unique ID for this managed resource.

isEnabled Boolean

Flag that specifies if this configuration is enabled or not.

namespace String

Object Storage namespace.

timeCreated String

The time when this record is created. An RFC3339 formatted datetime string.

timeUpdated String

The latest time when this record is updated. An RFC3339 formatted datetime string.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.