aiven.OpensearchUser
Explore with Pulumi AI
The OpenSearch User resource allows the creation and management of Aiven OpenSearch Users.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const foo = new aiven.OpensearchUser("foo", {
serviceName: bar.serviceName,
project: "my-project",
username: "user-1",
password: "Test$1234",
});
import pulumi
import pulumi_aiven as aiven
foo = aiven.OpensearchUser("foo",
service_name=bar["serviceName"],
project="my-project",
username="user-1",
password="Test$1234")
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewOpensearchUser(ctx, "foo", &aiven.OpensearchUserArgs{
ServiceName: pulumi.Any(bar.ServiceName),
Project: pulumi.String("my-project"),
Username: pulumi.String("user-1"),
Password: pulumi.String("Test$1234"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var foo = new Aiven.OpensearchUser("foo", new()
{
ServiceName = bar.ServiceName,
Project = "my-project",
Username = "user-1",
Password = "Test$1234",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.OpensearchUser;
import com.pulumi.aiven.OpensearchUserArgs;
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 foo = new OpensearchUser("foo", OpensearchUserArgs.builder()
.serviceName(bar.serviceName())
.project("my-project")
.username("user-1")
.password("Test$1234")
.build());
}
}
resources:
foo:
type: aiven:OpensearchUser
properties:
serviceName: ${bar.serviceName}
project: my-project
username: user-1
password: Test$1234
Create OpensearchUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OpensearchUser(name: string, args: OpensearchUserArgs, opts?: CustomResourceOptions);
@overload
def OpensearchUser(resource_name: str,
args: OpensearchUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OpensearchUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
username: Optional[str] = None,
password: Optional[str] = None)
func NewOpensearchUser(ctx *Context, name string, args OpensearchUserArgs, opts ...ResourceOption) (*OpensearchUser, error)
public OpensearchUser(string name, OpensearchUserArgs args, CustomResourceOptions? opts = null)
public OpensearchUser(String name, OpensearchUserArgs args)
public OpensearchUser(String name, OpensearchUserArgs args, CustomResourceOptions options)
type: aiven:OpensearchUser
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 OpensearchUserArgs
- 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 OpensearchUserArgs
- 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 OpensearchUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OpensearchUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OpensearchUserArgs
- 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 opensearchUserResource = new Aiven.OpensearchUser("opensearchUserResource", new()
{
Project = "string",
ServiceName = "string",
Username = "string",
Password = "string",
});
example, err := aiven.NewOpensearchUser(ctx, "opensearchUserResource", &aiven.OpensearchUserArgs{
Project: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Username: pulumi.String("string"),
Password: pulumi.String("string"),
})
var opensearchUserResource = new OpensearchUser("opensearchUserResource", OpensearchUserArgs.builder()
.project("string")
.serviceName("string")
.username("string")
.password("string")
.build());
opensearch_user_resource = aiven.OpensearchUser("opensearchUserResource",
project="string",
service_name="string",
username="string",
password="string")
const opensearchUserResource = new aiven.OpensearchUser("opensearchUserResource", {
project: "string",
serviceName: "string",
username: "string",
password: "string",
});
type: aiven:OpensearchUser
properties:
password: string
project: string
serviceName: string
username: string
OpensearchUser 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 OpensearchUser resource accepts the following input properties:
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Username string
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Password string
- The password of the OpenSearch User.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Username string
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Password string
- The password of the OpenSearch User.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- username String
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password String
- The password of the OpenSearch User.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- username string
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password string
- The password of the OpenSearch User.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service_
name str - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- username str
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password str
- The password of the OpenSearch User.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- username String
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password String
- The password of the OpenSearch User.
Outputs
All input properties are implicitly available as output properties. Additionally, the OpensearchUser resource produces the following output properties:
Look up Existing OpensearchUser Resource
Get an existing OpensearchUser 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?: OpensearchUserState, opts?: CustomResourceOptions): OpensearchUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
type: Optional[str] = None,
username: Optional[str] = None) -> OpensearchUser
func GetOpensearchUser(ctx *Context, name string, id IDInput, state *OpensearchUserState, opts ...ResourceOption) (*OpensearchUser, error)
public static OpensearchUser Get(string name, Input<string> id, OpensearchUserState? state, CustomResourceOptions? opts = null)
public static OpensearchUser get(String name, Output<String> id, OpensearchUserState 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.
- Password string
- The password of the OpenSearch User.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Type string
- Type of the user account. Tells whether the user is the primary account or a regular account.
- Username string
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Password string
- The password of the OpenSearch User.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Type string
- Type of the user account. Tells whether the user is the primary account or a regular account.
- Username string
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password String
- The password of the OpenSearch User.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- type String
- Type of the user account. Tells whether the user is the primary account or a regular account.
- username String
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password string
- The password of the OpenSearch User.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name string - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- type string
- Type of the user account. Tells whether the user is the primary account or a regular account.
- username string
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password str
- The password of the OpenSearch User.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service_
name str - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- type str
- Type of the user account. Tells whether the user is the primary account or a regular account.
- username str
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- password String
- The password of the OpenSearch User.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- type String
- Type of the user account. Tells whether the user is the primary account or a regular account.
- username String
- The actual name of the OpenSearch User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
Import
$ pulumi import aiven:index/opensearchUser:OpensearchUser foo PROJECT/SERVICE_NAME/USERNAME
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.