Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

getOpenSearchAclRule

The Opensearch ACL Rule data source provides information about an existing Aiven Opensearch ACL Rule.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var osAclRule = Output.Create(Aiven.GetOpenSearchAclRule.InvokeAsync(new Aiven.GetOpenSearchAclRuleArgs
        {
            Project = aiven_opensearch_acl_config.Os_acls_config.Project,
            ServiceName = aiven_opensearch_acl_config.Os_acls_config.Service_name,
            Username = "<USERNAME>",
            Index = "<INDEX>",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupOpenSearchAclRule(ctx, &GetOpenSearchAclRuleArgs{
			Project:     aiven_opensearch_acl_config.Os_acls_config.Project,
			ServiceName: aiven_opensearch_acl_config.Os_acls_config.Service_name,
			Username:    "<USERNAME>",
			Index:       "<INDEX>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var osAclRule = Output.of(AivenFunctions.getOpenSearchAclRule(GetOpenSearchAclRuleArgs.builder()
            .project(aiven_opensearch_acl_config.os_acls_config().project())
            .serviceName(aiven_opensearch_acl_config.os_acls_config().service_name())
            .username("<USERNAME>")
            .index("<INDEX>")
            .build()));

    }
}
import pulumi
import pulumi_aiven as aiven

os_acl_rule = aiven.get_open_search_acl_rule(project=aiven_opensearch_acl_config["os_acls_config"]["project"],
    service_name=aiven_opensearch_acl_config["os_acls_config"]["service_name"],
    username="<USERNAME>",
    index="<INDEX>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const osAclRule = aiven.getOpenSearchAclRule({
    project: aiven_opensearch_acl_config.os_acls_config.project,
    serviceName: aiven_opensearch_acl_config.os_acls_config.service_name,
    username: "<USERNAME>",
    index: "<INDEX>",
});
variables:
  osAclRule:
    Fn::Invoke:
      Function: aiven:getOpenSearchAclRule
      Arguments:
        project: ${aiven_opensearch_acl_config.os_acls_config.project}
        serviceName: ${aiven_opensearch_acl_config.os_acls_config.service_name}
        username: <USERNAME>
        index: <INDEX>

Using getOpenSearchAclRule

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 getOpenSearchAclRule(args: GetOpenSearchAclRuleArgs, opts?: InvokeOptions): Promise<GetOpenSearchAclRuleResult>
function getOpenSearchAclRuleOutput(args: GetOpenSearchAclRuleOutputArgs, opts?: InvokeOptions): Output<GetOpenSearchAclRuleResult>
def get_open_search_acl_rule(index: Optional[str] = None,
                             permission: Optional[str] = None,
                             project: Optional[str] = None,
                             service_name: Optional[str] = None,
                             username: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetOpenSearchAclRuleResult
def get_open_search_acl_rule_output(index: Optional[pulumi.Input[str]] = None,
                             permission: Optional[pulumi.Input[str]] = None,
                             project: Optional[pulumi.Input[str]] = None,
                             service_name: Optional[pulumi.Input[str]] = None,
                             username: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetOpenSearchAclRuleResult]
func LookupOpenSearchAclRule(ctx *Context, args *LookupOpenSearchAclRuleArgs, opts ...InvokeOption) (*LookupOpenSearchAclRuleResult, error)
func LookupOpenSearchAclRuleOutput(ctx *Context, args *LookupOpenSearchAclRuleOutputArgs, opts ...InvokeOption) LookupOpenSearchAclRuleResultOutput

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

public static class GetOpenSearchAclRule 
{
    public static Task<GetOpenSearchAclRuleResult> InvokeAsync(GetOpenSearchAclRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetOpenSearchAclRuleResult> Invoke(GetOpenSearchAclRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOpenSearchAclRuleResult> getOpenSearchAclRule(GetOpenSearchAclRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aiven:index/getOpenSearchAclRule:getOpenSearchAclRule
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Index string
Permission string
Project string
ServiceName string
Username string
Index string
Permission string
Project string
ServiceName string
Username string
index String
permission String
project String
serviceName String
username String
index string
permission string
project string
serviceName string
username string
index String
permission String
project String
serviceName String
username String

getOpenSearchAclRule Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Index string
Permission string
Project string
ServiceName string
Username string
Id string

The provider-assigned unique ID for this managed resource.

Index string
Permission string
Project string
ServiceName string
Username string
id String

The provider-assigned unique ID for this managed resource.

index String
permission String
project String
serviceName String
username String
id string

The provider-assigned unique ID for this managed resource.

index string
permission string
project string
serviceName string
username string
id str

The provider-assigned unique ID for this managed resource.

index str
permission str
project str
service_name str
username str
id String

The provider-assigned unique ID for this managed resource.

index String
permission String
project String
serviceName String
username String

Package Details

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

This Pulumi package is based on the aiven Terraform Provider.