aiven.getOpenSearchAclConfig
Explore with Pulumi AI
The OpenSearch ACL Config data source provides information about an existing Aiven OpenSearch ACL Config.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var os_acl_config = Aiven.GetOpenSearchAclConfig.Invoke(new()
{
Project = aiven_project.Os_project.Project,
ServiceName = aiven_opensearch.Os.Service_name,
});
});
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.LookupOpenSearchAclConfig(ctx, &aiven.LookupOpenSearchAclConfigArgs{
Project: aiven_project.OsProject.Project,
ServiceName: aiven_opensearch.Os.Service_name,
}, nil)
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.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetOpenSearchAclConfigArgs;
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) {
final var os-acl-config = AivenFunctions.getOpenSearchAclConfig(GetOpenSearchAclConfigArgs.builder()
.project(aiven_project.os-project().project())
.serviceName(aiven_opensearch.os().service_name())
.build());
}
}
import pulumi
import pulumi_aiven as aiven
os_acl_config = aiven.get_open_search_acl_config(project=aiven_project["os-project"]["project"],
service_name=aiven_opensearch["os"]["service_name"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const os-acl-config = aiven.getOpenSearchAclConfig({
project: aiven_project["os-project"].project,
serviceName: aiven_opensearch.os.service_name,
});
variables:
os-acl-config:
fn::invoke:
Function: aiven:getOpenSearchAclConfig
Arguments:
project: ${aiven_project"os-project"[%!s(MISSING)].project}
serviceName: ${aiven_opensearch.os.service_name}
Using getOpenSearchAclConfig
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 getOpenSearchAclConfig(args: GetOpenSearchAclConfigArgs, opts?: InvokeOptions): Promise<GetOpenSearchAclConfigResult>
function getOpenSearchAclConfigOutput(args: GetOpenSearchAclConfigOutputArgs, opts?: InvokeOptions): Output<GetOpenSearchAclConfigResult>
def get_open_search_acl_config(project: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOpenSearchAclConfigResult
def get_open_search_acl_config_output(project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOpenSearchAclConfigResult]
func LookupOpenSearchAclConfig(ctx *Context, args *LookupOpenSearchAclConfigArgs, opts ...InvokeOption) (*LookupOpenSearchAclConfigResult, error)
func LookupOpenSearchAclConfigOutput(ctx *Context, args *LookupOpenSearchAclConfigOutputArgs, opts ...InvokeOption) LookupOpenSearchAclConfigResultOutput
> Note: This function is named LookupOpenSearchAclConfig
in the Go SDK.
public static class GetOpenSearchAclConfig
{
public static Task<GetOpenSearchAclConfigResult> InvokeAsync(GetOpenSearchAclConfigArgs args, InvokeOptions? opts = null)
public static Output<GetOpenSearchAclConfigResult> Invoke(GetOpenSearchAclConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOpenSearchAclConfigResult> getOpenSearchAclConfig(GetOpenSearchAclConfigArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aiven:index/getOpenSearchAclConfig:getOpenSearchAclConfig
arguments:
# arguments dictionary
The following arguments are supported:
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- project str
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
getOpenSearchAclConfig Result
The following output properties are available:
- Enabled bool
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is
true
.- Extended
Acl bool Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is
true
.- Id string
The provider-assigned unique ID for this managed resource.
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Enabled bool
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is
true
.- Extended
Acl bool Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is
true
.- Id string
The provider-assigned unique ID for this managed resource.
- Project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- Service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- enabled Boolean
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is
true
.- extended
Acl Boolean Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is
true
.- id String
The provider-assigned unique ID for this managed resource.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- enabled boolean
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is
true
.- extended
Acl boolean Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is
true
.- id string
The provider-assigned unique ID for this managed resource.
- project string
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name string Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- enabled bool
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is
true
.- extended_
acl bool Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is
true
.- id str
The provider-assigned unique ID for this managed resource.
- project str
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service_
name str Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- enabled Boolean
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access. The default value is
true
.- extended
Acl Boolean Index rules can be applied in a limited fashion to the _mget, _msearch and _bulk APIs (and only those) by enabling the ExtendedAcl option for the service. When it is enabled, users can use these APIs as long as all operations only target indexes they have been granted access to. The default value is
true
.- id String
The provider-assigned unique ID for this managed resource.
- project String
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
- service
Name String Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.