ovh.Dbaas.LogsOutputOpenSearchAlias
Explore with Pulumi AI
Creates a DBaaS Logs Opensearch output alias.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const alias = new ovh.dbaas.LogsOutputOpenSearchAlias("alias", {
description: "my opensearch alias",
serviceName: "....",
suffix: "alias",
});
import pulumi
import pulumi_ovh as ovh
alias = ovh.dbaas.LogsOutputOpenSearchAlias("alias",
description="my opensearch alias",
service_name="....",
suffix="alias")
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.NewLogsOutputOpenSearchAlias(ctx, "alias", &Dbaas.LogsOutputOpenSearchAliasArgs{
Description: pulumi.String("my opensearch alias"),
ServiceName: pulumi.String("...."),
Suffix: pulumi.String("alias"),
})
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 @alias = new Ovh.Dbaas.LogsOutputOpenSearchAlias("alias", new()
{
Description = "my opensearch alias",
ServiceName = "....",
Suffix = "alias",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dbaas.LogsOutputOpenSearchAlias;
import com.pulumi.ovh.Dbaas.LogsOutputOpenSearchAliasArgs;
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 alias = new LogsOutputOpenSearchAlias("alias", LogsOutputOpenSearchAliasArgs.builder()
.description("my opensearch alias")
.serviceName("....")
.suffix("alias")
.build());
}
}
resources:
alias:
type: ovh:Dbaas:LogsOutputOpenSearchAlias
properties:
description: my opensearch alias
serviceName: '....'
suffix: alias
Create LogsOutputOpenSearchAlias Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsOutputOpenSearchAlias(name: string, args: LogsOutputOpenSearchAliasArgs, opts?: CustomResourceOptions);
@overload
def LogsOutputOpenSearchAlias(resource_name: str,
args: LogsOutputOpenSearchAliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogsOutputOpenSearchAlias(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
service_name: Optional[str] = None,
suffix: Optional[str] = None,
indexes: Optional[Sequence[str]] = None,
nb_index: Optional[int] = None,
nb_stream: Optional[int] = None,
streams: Optional[Sequence[str]] = None)
func NewLogsOutputOpenSearchAlias(ctx *Context, name string, args LogsOutputOpenSearchAliasArgs, opts ...ResourceOption) (*LogsOutputOpenSearchAlias, error)
public LogsOutputOpenSearchAlias(string name, LogsOutputOpenSearchAliasArgs args, CustomResourceOptions? opts = null)
public LogsOutputOpenSearchAlias(String name, LogsOutputOpenSearchAliasArgs args)
public LogsOutputOpenSearchAlias(String name, LogsOutputOpenSearchAliasArgs args, CustomResourceOptions options)
type: ovh:Dbaas:LogsOutputOpenSearchAlias
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 LogsOutputOpenSearchAliasArgs
- 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 LogsOutputOpenSearchAliasArgs
- 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 LogsOutputOpenSearchAliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsOutputOpenSearchAliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogsOutputOpenSearchAliasArgs
- 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 logsOutputOpenSearchAliasResource = new Ovh.Dbaas.LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource", new()
{
Description = "string",
ServiceName = "string",
Suffix = "string",
Indexes = new[]
{
"string",
},
NbIndex = 0,
NbStream = 0,
Streams = new[]
{
"string",
},
});
example, err := Dbaas.NewLogsOutputOpenSearchAlias(ctx, "logsOutputOpenSearchAliasResource", &Dbaas.LogsOutputOpenSearchAliasArgs{
Description: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Suffix: pulumi.String("string"),
Indexes: pulumi.StringArray{
pulumi.String("string"),
},
NbIndex: pulumi.Int(0),
NbStream: pulumi.Int(0),
Streams: pulumi.StringArray{
pulumi.String("string"),
},
})
var logsOutputOpenSearchAliasResource = new LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource", LogsOutputOpenSearchAliasArgs.builder()
.description("string")
.serviceName("string")
.suffix("string")
.indexes("string")
.nbIndex(0)
.nbStream(0)
.streams("string")
.build());
logs_output_open_search_alias_resource = ovh.dbaas.LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource",
description="string",
service_name="string",
suffix="string",
indexes=["string"],
nb_index=0,
nb_stream=0,
streams=["string"])
const logsOutputOpenSearchAliasResource = new ovh.dbaas.LogsOutputOpenSearchAlias("logsOutputOpenSearchAliasResource", {
description: "string",
serviceName: "string",
suffix: "string",
indexes: ["string"],
nbIndex: 0,
nbStream: 0,
streams: ["string"],
});
type: ovh:Dbaas:LogsOutputOpenSearchAlias
properties:
description: string
indexes:
- string
nbIndex: 0
nbStream: 0
serviceName: string
streams:
- string
suffix: string
LogsOutputOpenSearchAlias 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 LogsOutputOpenSearchAlias resource accepts the following input properties:
- Description string
- Index description
- Service
Name string - The service name
- Suffix string
- Index suffix
- Indexes List<string>
- List of attached indexes id
- Nb
Index int - Number of indices linked
- Nb
Stream int - Number of streams linked
- Streams List<string>
- List of attached streams id
- Description string
- Index description
- Service
Name string - The service name
- Suffix string
- Index suffix
- Indexes []string
- List of attached indexes id
- Nb
Index int - Number of indices linked
- Nb
Stream int - Number of streams linked
- Streams []string
- List of attached streams id
- description String
- Index description
- service
Name String - The service name
- suffix String
- Index suffix
- indexes List<String>
- List of attached indexes id
- nb
Index Integer - Number of indices linked
- nb
Stream Integer - Number of streams linked
- streams List<String>
- List of attached streams id
- description string
- Index description
- service
Name string - The service name
- suffix string
- Index suffix
- indexes string[]
- List of attached indexes id
- nb
Index number - Number of indices linked
- nb
Stream number - Number of streams linked
- streams string[]
- List of attached streams id
- description str
- Index description
- service_
name str - The service name
- suffix str
- Index suffix
- indexes Sequence[str]
- List of attached indexes id
- nb_
index int - Number of indices linked
- nb_
stream int - Number of streams linked
- streams Sequence[str]
- List of attached streams id
- description String
- Index description
- service
Name String - The service name
- suffix String
- Index suffix
- indexes List<String>
- List of attached indexes id
- nb
Index Number - Number of indices linked
- nb
Stream Number - Number of streams linked
- streams List<String>
- List of attached streams id
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsOutputOpenSearchAlias resource produces the following output properties:
- Alias
Id string - Alias Id
- Created
At string - Alias creation
- Current
Size int - Current alias size (in bytes)
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Editable bool - Indicates if you are allowed to edit entry
- Name string
- Alias name
- Updated
At string - Input last update
- Alias
Id string - Alias Id
- Created
At string - Alias creation
- Current
Size int - Current alias size (in bytes)
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Editable bool - Indicates if you are allowed to edit entry
- Name string
- Alias name
- Updated
At string - Input last update
- alias
Id String - Alias Id
- created
At String - Alias creation
- current
Size Integer - Current alias size (in bytes)
- id String
- The provider-assigned unique ID for this managed resource.
- is
Editable Boolean - Indicates if you are allowed to edit entry
- name String
- Alias name
- updated
At String - Input last update
- alias
Id string - Alias Id
- created
At string - Alias creation
- current
Size number - Current alias size (in bytes)
- id string
- The provider-assigned unique ID for this managed resource.
- is
Editable boolean - Indicates if you are allowed to edit entry
- name string
- Alias name
- updated
At string - Input last update
- alias_
id str - Alias Id
- created_
at str - Alias creation
- current_
size int - Current alias size (in bytes)
- id str
- The provider-assigned unique ID for this managed resource.
- is_
editable bool - Indicates if you are allowed to edit entry
- name str
- Alias name
- updated_
at str - Input last update
- alias
Id String - Alias Id
- created
At String - Alias creation
- current
Size Number - Current alias size (in bytes)
- id String
- The provider-assigned unique ID for this managed resource.
- is
Editable Boolean - Indicates if you are allowed to edit entry
- name String
- Alias name
- updated
At String - Input last update
Look up Existing LogsOutputOpenSearchAlias Resource
Get an existing LogsOutputOpenSearchAlias 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?: LogsOutputOpenSearchAliasState, opts?: CustomResourceOptions): LogsOutputOpenSearchAlias
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias_id: Optional[str] = None,
created_at: Optional[str] = None,
current_size: Optional[int] = None,
description: Optional[str] = None,
indexes: Optional[Sequence[str]] = None,
is_editable: Optional[bool] = None,
name: Optional[str] = None,
nb_index: Optional[int] = None,
nb_stream: Optional[int] = None,
service_name: Optional[str] = None,
streams: Optional[Sequence[str]] = None,
suffix: Optional[str] = None,
updated_at: Optional[str] = None) -> LogsOutputOpenSearchAlias
func GetLogsOutputOpenSearchAlias(ctx *Context, name string, id IDInput, state *LogsOutputOpenSearchAliasState, opts ...ResourceOption) (*LogsOutputOpenSearchAlias, error)
public static LogsOutputOpenSearchAlias Get(string name, Input<string> id, LogsOutputOpenSearchAliasState? state, CustomResourceOptions? opts = null)
public static LogsOutputOpenSearchAlias get(String name, Output<String> id, LogsOutputOpenSearchAliasState 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.
- Alias
Id string - Alias Id
- Created
At string - Alias creation
- Current
Size int - Current alias size (in bytes)
- Description string
- Index description
- Indexes List<string>
- List of attached indexes id
- Is
Editable bool - Indicates if you are allowed to edit entry
- Name string
- Alias name
- Nb
Index int - Number of indices linked
- Nb
Stream int - Number of streams linked
- Service
Name string - The service name
- Streams List<string>
- List of attached streams id
- Suffix string
- Index suffix
- Updated
At string - Input last update
- Alias
Id string - Alias Id
- Created
At string - Alias creation
- Current
Size int - Current alias size (in bytes)
- Description string
- Index description
- Indexes []string
- List of attached indexes id
- Is
Editable bool - Indicates if you are allowed to edit entry
- Name string
- Alias name
- Nb
Index int - Number of indices linked
- Nb
Stream int - Number of streams linked
- Service
Name string - The service name
- Streams []string
- List of attached streams id
- Suffix string
- Index suffix
- Updated
At string - Input last update
- alias
Id String - Alias Id
- created
At String - Alias creation
- current
Size Integer - Current alias size (in bytes)
- description String
- Index description
- indexes List<String>
- List of attached indexes id
- is
Editable Boolean - Indicates if you are allowed to edit entry
- name String
- Alias name
- nb
Index Integer - Number of indices linked
- nb
Stream Integer - Number of streams linked
- service
Name String - The service name
- streams List<String>
- List of attached streams id
- suffix String
- Index suffix
- updated
At String - Input last update
- alias
Id string - Alias Id
- created
At string - Alias creation
- current
Size number - Current alias size (in bytes)
- description string
- Index description
- indexes string[]
- List of attached indexes id
- is
Editable boolean - Indicates if you are allowed to edit entry
- name string
- Alias name
- nb
Index number - Number of indices linked
- nb
Stream number - Number of streams linked
- service
Name string - The service name
- streams string[]
- List of attached streams id
- suffix string
- Index suffix
- updated
At string - Input last update
- alias_
id str - Alias Id
- created_
at str - Alias creation
- current_
size int - Current alias size (in bytes)
- description str
- Index description
- indexes Sequence[str]
- List of attached indexes id
- is_
editable bool - Indicates if you are allowed to edit entry
- name str
- Alias name
- nb_
index int - Number of indices linked
- nb_
stream int - Number of streams linked
- service_
name str - The service name
- streams Sequence[str]
- List of attached streams id
- suffix str
- Index suffix
- updated_
at str - Input last update
- alias
Id String - Alias Id
- created
At String - Alias creation
- current
Size Number - Current alias size (in bytes)
- description String
- Index description
- indexes List<String>
- List of attached indexes id
- is
Editable Boolean - Indicates if you are allowed to edit entry
- name String
- Alias name
- nb
Index Number - Number of indices linked
- nb
Stream Number - Number of streams linked
- service
Name String - The service name
- streams List<String>
- List of attached streams id
- suffix String
- Index suffix
- updated
At String - Input last update
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.