Aiven
getElasticSearchAclRule
The Elasticsearch ACL Rule data source provides information about an existing Aiven Elasticsearch ACL Rule.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var esAclRule = Output.Create(Aiven.GetElasticSearchAclRule.InvokeAsync(new Aiven.GetElasticSearchAclRuleArgs
{
Project = aiven_elasticsearch_acl_config.Es_acls_config.Project,
ServiceName = aiven_elasticsearch_acl_config.Es_acls_config.Service_name,
Username = "<USERNAME>",
Index = "<INDEX>",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupElasticSearchAclRule(ctx, &GetElasticSearchAclRuleArgs{
Project: aiven_elasticsearch_acl_config.Es_acls_config.Project,
ServiceName: aiven_elasticsearch_acl_config.Es_acls_config.Service_name,
Username: "<USERNAME>",
Index: "<INDEX>",
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aiven as aiven
es_acl_rule = aiven.get_elastic_search_acl_rule(project=aiven_elasticsearch_acl_config["es_acls_config"]["project"],
service_name=aiven_elasticsearch_acl_config["es_acls_config"]["service_name"],
username="<USERNAME>",
index="<INDEX>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const esAclRule = aiven.getElasticSearchAclRule({
project: aiven_elasticsearch_acl_config.es_acls_config.project,
serviceName: aiven_elasticsearch_acl_config.es_acls_config.service_name,
username: "<USERNAME>",
index: "<INDEX>",
});
Coming soon!
Using getElasticSearchAclRule
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 getElasticSearchAclRule(args: GetElasticSearchAclRuleArgs, opts?: InvokeOptions): Promise<GetElasticSearchAclRuleResult>
function getElasticSearchAclRuleOutput(args: GetElasticSearchAclRuleOutputArgs, opts?: InvokeOptions): Output<GetElasticSearchAclRuleResult>
def get_elastic_search_acl_rule(index: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetElasticSearchAclRuleResult
def get_elastic_search_acl_rule_output(index: 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[GetElasticSearchAclRuleResult]
func LookupElasticSearchAclRule(ctx *Context, args *LookupElasticSearchAclRuleArgs, opts ...InvokeOption) (*LookupElasticSearchAclRuleResult, error)
func LookupElasticSearchAclRuleOutput(ctx *Context, args *LookupElasticSearchAclRuleOutputArgs, opts ...InvokeOption) LookupElasticSearchAclRuleResultOutput
> Note: This function is named LookupElasticSearchAclRule
in the Go SDK.
public static class GetElasticSearchAclRule
{
public static Task<GetElasticSearchAclRuleResult> InvokeAsync(GetElasticSearchAclRuleArgs args, InvokeOptions? opts = null)
public static Output<GetElasticSearchAclRuleResult> Invoke(GetElasticSearchAclRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetElasticSearchAclRuleResult> getElasticSearchAclRule(GetElasticSearchAclRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aiven:index/getElasticSearchAclRule:getElasticSearchAclRule
Arguments:
# Arguments dictionary
The following arguments are supported:
- Index string
The index pattern for the ACL entry. Maximum Length:
249
. 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.
- Username string
The username for the ACL entry. Maximum Length:
40
. 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.
- Index string
The index pattern for the ACL entry. Maximum Length:
249
. 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.
- Username string
The username for the ACL entry. Maximum Length:
40
. 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.
- index String
The index pattern for the ACL entry. Maximum Length:
249
. 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.
- username String
The username for the ACL entry. Maximum Length:
40
. 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.
- index string
The index pattern for the ACL entry. Maximum Length:
249
. 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.
- username string
The username for the ACL entry. Maximum Length:
40
. 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.
- index str
The index pattern for the ACL entry. Maximum Length:
249
. 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.
- username str
The username for the ACL entry. Maximum Length:
40
. 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.
- index String
The index pattern for the ACL entry. Maximum Length:
249
. 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.
- username String
The username for the ACL entry. Maximum Length:
40
. 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.
getElasticSearchAclRule Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Index string
The index pattern for the ACL entry. Maximum Length:
249
. This property cannot be changed, doing so forces recreation of the resource.- Permission string
The permission for the ACL entry. The possible values are
deny
,admin
,read
,readwrite
andwrite
.- 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.
- Username string
The username for the ACL entry. Maximum Length:
40
. 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.
- Id string
The provider-assigned unique ID for this managed resource.
- Index string
The index pattern for the ACL entry. Maximum Length:
249
. This property cannot be changed, doing so forces recreation of the resource.- Permission string
The permission for the ACL entry. The possible values are
deny
,admin
,read
,readwrite
andwrite
.- 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.
- Username string
The username for the ACL entry. Maximum Length:
40
. 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.
- id String
The provider-assigned unique ID for this managed resource.
- index String
The index pattern for the ACL entry. Maximum Length:
249
. This property cannot be changed, doing so forces recreation of the resource.- permission String
The permission for the ACL entry. The possible values are
deny
,admin
,read
,readwrite
andwrite
.- 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.
- username String
The username for the ACL entry. Maximum Length:
40
. 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.
- id string
The provider-assigned unique ID for this managed resource.
- index string
The index pattern for the ACL entry. Maximum Length:
249
. This property cannot be changed, doing so forces recreation of the resource.- permission string
The permission for the ACL entry. The possible values are
deny
,admin
,read
,readwrite
andwrite
.- 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.
- username string
The username for the ACL entry. Maximum Length:
40
. 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.
- id str
The provider-assigned unique ID for this managed resource.
- index str
The index pattern for the ACL entry. Maximum Length:
249
. This property cannot be changed, doing so forces recreation of the resource.- permission str
The permission for the ACL entry. The possible values are
deny
,admin
,read
,readwrite
andwrite
.- 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.
- username str
The username for the ACL entry. Maximum Length:
40
. 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.
- id String
The provider-assigned unique ID for this managed resource.
- index String
The index pattern for the ACL entry. Maximum Length:
249
. This property cannot be changed, doing so forces recreation of the resource.- permission String
The permission for the ACL entry. The possible values are
deny
,admin
,read
,readwrite
andwrite
.- 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.
- username String
The username for the ACL entry. Maximum Length:
40
. 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
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.