ovh.Dbaas.LogsOutputOpenSearchIndex
Explore with Pulumi AI
Creates a DBaaS Logs Opensearch output index.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const index = new ovh.dbaas.LogsOutputOpenSearchIndex("index", {
description: "my opensearch index",
serviceName: "....",
suffix: "index",
});
import pulumi
import pulumi_ovh as ovh
index = ovh.dbaas.LogsOutputOpenSearchIndex("index",
description="my opensearch index",
service_name="....",
suffix="index")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Dbaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Dbaas.NewLogsOutputOpenSearchIndex(ctx, "index", &Dbaas.LogsOutputOpenSearchIndexArgs{
Description: pulumi.String("my opensearch index"),
ServiceName: pulumi.String("...."),
Suffix: pulumi.String("index"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var index = new Ovh.Dbaas.LogsOutputOpenSearchIndex("index", new()
{
Description = "my opensearch index",
ServiceName = "....",
Suffix = "index",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dbaas.LogsOutputOpenSearchIndex;
import com.pulumi.ovh.Dbaas.LogsOutputOpenSearchIndexArgs;
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 index = new LogsOutputOpenSearchIndex("index", LogsOutputOpenSearchIndexArgs.builder()
.description("my opensearch index")
.serviceName("....")
.suffix("index")
.build());
}
}
resources:
index:
type: ovh:Dbaas:LogsOutputOpenSearchIndex
properties:
description: my opensearch index
serviceName: '....'
suffix: index
Create LogsOutputOpenSearchIndex Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsOutputOpenSearchIndex(name: string, args: LogsOutputOpenSearchIndexArgs, opts?: CustomResourceOptions);
@overload
def LogsOutputOpenSearchIndex(resource_name: str,
args: LogsOutputOpenSearchIndexArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogsOutputOpenSearchIndex(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
nb_shard: Optional[int] = None,
service_name: Optional[str] = None,
suffix: Optional[str] = None)
func NewLogsOutputOpenSearchIndex(ctx *Context, name string, args LogsOutputOpenSearchIndexArgs, opts ...ResourceOption) (*LogsOutputOpenSearchIndex, error)
public LogsOutputOpenSearchIndex(string name, LogsOutputOpenSearchIndexArgs args, CustomResourceOptions? opts = null)
public LogsOutputOpenSearchIndex(String name, LogsOutputOpenSearchIndexArgs args)
public LogsOutputOpenSearchIndex(String name, LogsOutputOpenSearchIndexArgs args, CustomResourceOptions options)
type: ovh:Dbaas:LogsOutputOpenSearchIndex
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LogsOutputOpenSearchIndexArgs
- 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 LogsOutputOpenSearchIndexArgs
- 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 LogsOutputOpenSearchIndexArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsOutputOpenSearchIndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogsOutputOpenSearchIndexArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var logsOutputOpenSearchIndexResource = new Ovh.Dbaas.LogsOutputOpenSearchIndex("logsOutputOpenSearchIndexResource", new()
{
Description = "string",
NbShard = 0,
ServiceName = "string",
Suffix = "string",
});
example, err := Dbaas.NewLogsOutputOpenSearchIndex(ctx, "logsOutputOpenSearchIndexResource", &Dbaas.LogsOutputOpenSearchIndexArgs{
Description: pulumi.String("string"),
NbShard: pulumi.Int(0),
ServiceName: pulumi.String("string"),
Suffix: pulumi.String("string"),
})
var logsOutputOpenSearchIndexResource = new LogsOutputOpenSearchIndex("logsOutputOpenSearchIndexResource", LogsOutputOpenSearchIndexArgs.builder()
.description("string")
.nbShard(0)
.serviceName("string")
.suffix("string")
.build());
logs_output_open_search_index_resource = ovh.dbaas.LogsOutputOpenSearchIndex("logsOutputOpenSearchIndexResource",
description="string",
nb_shard=0,
service_name="string",
suffix="string")
const logsOutputOpenSearchIndexResource = new ovh.dbaas.LogsOutputOpenSearchIndex("logsOutputOpenSearchIndexResource", {
description: "string",
nbShard: 0,
serviceName: "string",
suffix: "string",
});
type: ovh:Dbaas:LogsOutputOpenSearchIndex
properties:
description: string
nbShard: 0
serviceName: string
suffix: string
LogsOutputOpenSearchIndex Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogsOutputOpenSearchIndex resource accepts the following input properties:
- Description string
- Index description
- Nb
Shard int - Number of shards
- Service
Name string - The service name
- Suffix string
- Index suffix
- Description string
- Index description
- Nb
Shard int - Number of shards
- Service
Name string - The service name
- Suffix string
- Index suffix
- description String
- Index description
- nb
Shard Integer - Number of shards
- service
Name String - The service name
- suffix String
- Index suffix
- description string
- Index description
- nb
Shard number - Number of shards
- service
Name string - The service name
- suffix string
- Index suffix
- description str
- Index description
- nb_
shard int - Number of shards
- service_
name str - The service name
- suffix str
- Index suffix
- description String
- Index description
- nb
Shard Number - Number of shards
- service
Name String - The service name
- suffix String
- Index suffix
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsOutputOpenSearchIndex resource produces the following output properties:
- Alert
Notify boolEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- Created
At string - Index creation
- Current
Size int - Current index size (in bytes)
- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Id string - Index ID
- Is
Editable bool - Indicates if you are allowed to edit entry
- Max
Size int - Maximum index size (in bytes)
- Name string
- Index name
- Updated
At string - Index last update
- Alert
Notify boolEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- Created
At string - Index creation
- Current
Size int - Current index size (in bytes)
- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Id string - Index ID
- Is
Editable bool - Indicates if you are allowed to edit entry
- Max
Size int - Maximum index size (in bytes)
- Name string
- Index name
- Updated
At string - Index last update
- alert
Notify BooleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At String - Index creation
- current
Size Integer - Current index size (in bytes)
- id String
- The provider-assigned unique ID for this managed resource.
- index
Id String - Index ID
- is
Editable Boolean - Indicates if you are allowed to edit entry
- max
Size Integer - Maximum index size (in bytes)
- name String
- Index name
- updated
At String - Index last update
- alert
Notify booleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At string - Index creation
- current
Size number - Current index size (in bytes)
- id string
- The provider-assigned unique ID for this managed resource.
- index
Id string - Index ID
- is
Editable boolean - Indicates if you are allowed to edit entry
- max
Size number - Maximum index size (in bytes)
- name string
- Index name
- updated
At string - Index last update
- alert_
notify_ boolenabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created_
at str - Index creation
- current_
size int - Current index size (in bytes)
- id str
- The provider-assigned unique ID for this managed resource.
- index_
id str - Index ID
- is_
editable bool - Indicates if you are allowed to edit entry
- max_
size int - Maximum index size (in bytes)
- name str
- Index name
- updated_
at str - Index last update
- alert
Notify BooleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At String - Index creation
- current
Size Number - Current index size (in bytes)
- id String
- The provider-assigned unique ID for this managed resource.
- index
Id String - Index ID
- is
Editable Boolean - Indicates if you are allowed to edit entry
- max
Size Number - Maximum index size (in bytes)
- name String
- Index name
- updated
At String - Index last update
Look up Existing LogsOutputOpenSearchIndex Resource
Get an existing LogsOutputOpenSearchIndex 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?: LogsOutputOpenSearchIndexState, opts?: CustomResourceOptions): LogsOutputOpenSearchIndex
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_notify_enabled: Optional[bool] = None,
created_at: Optional[str] = None,
current_size: Optional[int] = None,
description: Optional[str] = None,
index_id: Optional[str] = None,
is_editable: Optional[bool] = None,
max_size: Optional[int] = None,
name: Optional[str] = None,
nb_shard: Optional[int] = None,
service_name: Optional[str] = None,
suffix: Optional[str] = None,
updated_at: Optional[str] = None) -> LogsOutputOpenSearchIndex
func GetLogsOutputOpenSearchIndex(ctx *Context, name string, id IDInput, state *LogsOutputOpenSearchIndexState, opts ...ResourceOption) (*LogsOutputOpenSearchIndex, error)
public static LogsOutputOpenSearchIndex Get(string name, Input<string> id, LogsOutputOpenSearchIndexState? state, CustomResourceOptions? opts = null)
public static LogsOutputOpenSearchIndex get(String name, Output<String> id, LogsOutputOpenSearchIndexState 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.
- Alert
Notify boolEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- Created
At string - Index creation
- Current
Size int - Current index size (in bytes)
- Description string
- Index description
- Index
Id string - Index ID
- Is
Editable bool - Indicates if you are allowed to edit entry
- Max
Size int - Maximum index size (in bytes)
- Name string
- Index name
- Nb
Shard int - Number of shards
- Service
Name string - The service name
- Suffix string
- Index suffix
- Updated
At string - Index last update
- Alert
Notify boolEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- Created
At string - Index creation
- Current
Size int - Current index size (in bytes)
- Description string
- Index description
- Index
Id string - Index ID
- Is
Editable bool - Indicates if you are allowed to edit entry
- Max
Size int - Maximum index size (in bytes)
- Name string
- Index name
- Nb
Shard int - Number of shards
- Service
Name string - The service name
- Suffix string
- Index suffix
- Updated
At string - Index last update
- alert
Notify BooleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At String - Index creation
- current
Size Integer - Current index size (in bytes)
- description String
- Index description
- index
Id String - Index ID
- is
Editable Boolean - Indicates if you are allowed to edit entry
- max
Size Integer - Maximum index size (in bytes)
- name String
- Index name
- nb
Shard Integer - Number of shards
- service
Name String - The service name
- suffix String
- Index suffix
- updated
At String - Index last update
- alert
Notify booleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At string - Index creation
- current
Size number - Current index size (in bytes)
- description string
- Index description
- index
Id string - Index ID
- is
Editable boolean - Indicates if you are allowed to edit entry
- max
Size number - Maximum index size (in bytes)
- name string
- Index name
- nb
Shard number - Number of shards
- service
Name string - The service name
- suffix string
- Index suffix
- updated
At string - Index last update
- alert_
notify_ boolenabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created_
at str - Index creation
- current_
size int - Current index size (in bytes)
- description str
- Index description
- index_
id str - Index ID
- is_
editable bool - Indicates if you are allowed to edit entry
- max_
size int - Maximum index size (in bytes)
- name str
- Index name
- nb_
shard int - Number of shards
- service_
name str - The service name
- suffix str
- Index suffix
- updated_
at str - Index last update
- alert
Notify BooleanEnabled - If set, notify when size is near 80, 90 or 100 % of its maximum capacity
- created
At String - Index creation
- current
Size Number - Current index size (in bytes)
- description String
- Index description
- index
Id String - Index ID
- is
Editable Boolean - Indicates if you are allowed to edit entry
- max
Size Number - Maximum index size (in bytes)
- name String
- Index name
- nb
Shard Number - Number of shards
- service
Name String - The service name
- suffix String
- Index suffix
- updated
At String - Index last update
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.