oci.LogAnalytics.LogAnalyticsPreferencesManagement
This resource provides the Log Analytics Preferences Management resource in Oracle Cloud Infrastructure Log Analytics service.
Updates the tenant preferences. Currently, only “DEFAULT_HOMEPAGE” is supported.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testLogAnalyticsPreferencesManagement = new Oci.LogAnalytics.LogAnalyticsPreferencesManagement("testLogAnalyticsPreferencesManagement", new()
{
Namespace = @var.Log_analytics_preferences_management_namespace,
Items = new[]
{
new Oci.LogAnalytics.Inputs.LogAnalyticsPreferencesManagementItemArgs
{
Name = @var.Log_analytics_preferences_management_items_name,
Value = @var.Log_analytics_preferences_management_items_value,
},
},
});
});
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.NewLogAnalyticsPreferencesManagement(ctx, "testLogAnalyticsPreferencesManagement", &LogAnalytics.LogAnalyticsPreferencesManagementArgs{
Namespace: pulumi.Any(_var.Log_analytics_preferences_management_namespace),
Items: loganalytics.LogAnalyticsPreferencesManagementItemArray{
&loganalytics.LogAnalyticsPreferencesManagementItemArgs{
Name: pulumi.Any(_var.Log_analytics_preferences_management_items_name),
Value: pulumi.Any(_var.Log_analytics_preferences_management_items_value),
},
},
})
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.LogAnalyticsPreferencesManagement;
import com.pulumi.oci.LogAnalytics.LogAnalyticsPreferencesManagementArgs;
import com.pulumi.oci.LogAnalytics.inputs.LogAnalyticsPreferencesManagementItemArgs;
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) {
var testLogAnalyticsPreferencesManagement = new LogAnalyticsPreferencesManagement("testLogAnalyticsPreferencesManagement", LogAnalyticsPreferencesManagementArgs.builder()
.namespace(var_.log_analytics_preferences_management_namespace())
.items(LogAnalyticsPreferencesManagementItemArgs.builder()
.name(var_.log_analytics_preferences_management_items_name())
.value(var_.log_analytics_preferences_management_items_value())
.build())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_log_analytics_preferences_management = oci.log_analytics.LogAnalyticsPreferencesManagement("testLogAnalyticsPreferencesManagement",
namespace=var["log_analytics_preferences_management_namespace"],
items=[oci.log_analytics.LogAnalyticsPreferencesManagementItemArgs(
name=var["log_analytics_preferences_management_items_name"],
value=var["log_analytics_preferences_management_items_value"],
)])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsPreferencesManagement = new oci.loganalytics.LogAnalyticsPreferencesManagement("testLogAnalyticsPreferencesManagement", {
namespace: _var.log_analytics_preferences_management_namespace,
items: [{
name: _var.log_analytics_preferences_management_items_name,
value: _var.log_analytics_preferences_management_items_value,
}],
});
resources:
testLogAnalyticsPreferencesManagement:
type: oci:LogAnalytics:LogAnalyticsPreferencesManagement
properties:
#Required
namespace: ${var.log_analytics_preferences_management_namespace}
#Optional
items:
- name: ${var.log_analytics_preferences_management_items_name}
value: ${var.log_analytics_preferences_management_items_value}
Create LogAnalyticsPreferencesManagement Resource
new LogAnalyticsPreferencesManagement(name: string, args: LogAnalyticsPreferencesManagementArgs, opts?: CustomResourceOptions);
@overload
def LogAnalyticsPreferencesManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
items: Optional[Sequence[_loganalytics.LogAnalyticsPreferencesManagementItemArgs]] = None,
namespace: Optional[str] = None)
@overload
def LogAnalyticsPreferencesManagement(resource_name: str,
args: LogAnalyticsPreferencesManagementArgs,
opts: Optional[ResourceOptions] = None)
func NewLogAnalyticsPreferencesManagement(ctx *Context, name string, args LogAnalyticsPreferencesManagementArgs, opts ...ResourceOption) (*LogAnalyticsPreferencesManagement, error)
public LogAnalyticsPreferencesManagement(string name, LogAnalyticsPreferencesManagementArgs args, CustomResourceOptions? opts = null)
public LogAnalyticsPreferencesManagement(String name, LogAnalyticsPreferencesManagementArgs args)
public LogAnalyticsPreferencesManagement(String name, LogAnalyticsPreferencesManagementArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:LogAnalyticsPreferencesManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogAnalyticsPreferencesManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LogAnalyticsPreferencesManagementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LogAnalyticsPreferencesManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogAnalyticsPreferencesManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogAnalyticsPreferencesManagementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LogAnalyticsPreferencesManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LogAnalyticsPreferencesManagement resource accepts the following input properties:
- Namespace string
The Logging Analytics namespace used for the request.
- Items
List<Log
Analytics Preferences Management Item Args> An array of tenant preference details.
- Namespace string
The Logging Analytics namespace used for the request.
- Items
[]Log
Analytics Preferences Management Item Args An array of tenant preference details.
- namespace String
The Logging Analytics namespace used for the request.
- items
List<Preferences
Management Item Args> An array of tenant preference details.
- namespace string
The Logging Analytics namespace used for the request.
- items
Log
Analytics Preferences Management Item Args[] An array of tenant preference details.
- namespace str
The Logging Analytics namespace used for the request.
- items
Log
Analytics Preferences Management Item Args] An array of tenant preference details.
- namespace String
The Logging Analytics namespace used for the request.
- items List<Property Map>
An array of tenant preference details.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogAnalyticsPreferencesManagement resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing LogAnalyticsPreferencesManagement Resource
Get an existing LogAnalyticsPreferencesManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LogAnalyticsPreferencesManagementState, opts?: CustomResourceOptions): LogAnalyticsPreferencesManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
items: Optional[Sequence[_loganalytics.LogAnalyticsPreferencesManagementItemArgs]] = None,
namespace: Optional[str] = None) -> LogAnalyticsPreferencesManagement
func GetLogAnalyticsPreferencesManagement(ctx *Context, name string, id IDInput, state *LogAnalyticsPreferencesManagementState, opts ...ResourceOption) (*LogAnalyticsPreferencesManagement, error)
public static LogAnalyticsPreferencesManagement Get(string name, Input<string> id, LogAnalyticsPreferencesManagementState? state, CustomResourceOptions? opts = null)
public static LogAnalyticsPreferencesManagement get(String name, Output<String> id, LogAnalyticsPreferencesManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Items
List<Log
Analytics Preferences Management Item Args> An array of tenant preference details.
- Namespace string
The Logging Analytics namespace used for the request.
- Items
[]Log
Analytics Preferences Management Item Args An array of tenant preference details.
- Namespace string
The Logging Analytics namespace used for the request.
- items
List<Preferences
Management Item Args> An array of tenant preference details.
- namespace String
The Logging Analytics namespace used for the request.
- items
Log
Analytics Preferences Management Item Args[] An array of tenant preference details.
- namespace string
The Logging Analytics namespace used for the request.
- items
Log
Analytics Preferences Management Item Args] An array of tenant preference details.
- namespace str
The Logging Analytics namespace used for the request.
- items List<Property Map>
An array of tenant preference details.
- namespace String
The Logging Analytics namespace used for the request.
Supporting Types
LogAnalyticsPreferencesManagementItem
Import
Import is not supported for LogAnalyticsPreferencesManagement
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.