1. Packages
  2. Aiven Provider
  3. API Docs
  4. ElasticSearchAclConfig
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    The Elasticsearch ACL Config resource allows the configuration of ACL management on an Aiven Elasticsearch service.

    Example Usage

    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var es_acl_config = new Aiven.ElasticSearchAclConfig("es-acl-config", new Aiven.ElasticSearchAclConfigArgs
            {
                Project = aiven_project.Es_project.Project,
                ServiceName = aiven_service.Es.Service_name,
                Enabled = true,
                ExtendedAcl = false,
            });
        }
    
    }
    
    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.NewElasticSearchAclConfig(ctx, "es-acl-config", &aiven.ElasticSearchAclConfigArgs{
    			Project:     pulumi.Any(aiven_project.Es - project.Project),
    			ServiceName: pulumi.Any(aiven_service.Es.Service_name),
    			Enabled:     pulumi.Bool(true),
    			ExtendedAcl: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const es_acl_config = new aiven.ElasticSearchAclConfig("es-acl-config", {
        project: aiven_project["es-project"].project,
        serviceName: aiven_service.es.service_name,
        enabled: true,
        extendedAcl: false,
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    es_acl_config = aiven.ElasticSearchAclConfig("es-acl-config",
        project=aiven_project["es-project"]["project"],
        service_name=aiven_service["es"]["service_name"],
        enabled=True,
        extended_acl=False)
    

    Example coming soon!

    Create ElasticSearchAclConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ElasticSearchAclConfig(name: string, args: ElasticSearchAclConfigArgs, opts?: CustomResourceOptions);
    @overload
    def ElasticSearchAclConfig(resource_name: str,
                               args: ElasticSearchAclConfigArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ElasticSearchAclConfig(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               project: Optional[str] = None,
                               service_name: Optional[str] = None,
                               enabled: Optional[bool] = None,
                               extended_acl: Optional[bool] = None)
    func NewElasticSearchAclConfig(ctx *Context, name string, args ElasticSearchAclConfigArgs, opts ...ResourceOption) (*ElasticSearchAclConfig, error)
    public ElasticSearchAclConfig(string name, ElasticSearchAclConfigArgs args, CustomResourceOptions? opts = null)
    public ElasticSearchAclConfig(String name, ElasticSearchAclConfigArgs args)
    public ElasticSearchAclConfig(String name, ElasticSearchAclConfigArgs args, CustomResourceOptions options)
    
    type: aiven:ElasticSearchAclConfig
    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 ElasticSearchAclConfigArgs
    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 ElasticSearchAclConfigArgs
    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 ElasticSearchAclConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ElasticSearchAclConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ElasticSearchAclConfigArgs
    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 elasticSearchAclConfigResource = new Aiven.ElasticSearchAclConfig("elasticSearchAclConfigResource", new()
    {
        Project = "string",
        ServiceName = "string",
        Enabled = false,
        ExtendedAcl = false,
    });
    
    example, err := aiven.NewElasticSearchAclConfig(ctx, "elasticSearchAclConfigResource", &aiven.ElasticSearchAclConfigArgs{
    	Project:     pulumi.String("string"),
    	ServiceName: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	ExtendedAcl: pulumi.Bool(false),
    })
    
    var elasticSearchAclConfigResource = new ElasticSearchAclConfig("elasticSearchAclConfigResource", ElasticSearchAclConfigArgs.builder()
        .project("string")
        .serviceName("string")
        .enabled(false)
        .extendedAcl(false)
        .build());
    
    elastic_search_acl_config_resource = aiven.ElasticSearchAclConfig("elasticSearchAclConfigResource",
        project="string",
        service_name="string",
        enabled=False,
        extended_acl=False)
    
    const elasticSearchAclConfigResource = new aiven.ElasticSearchAclConfig("elasticSearchAclConfigResource", {
        project: "string",
        serviceName: "string",
        enabled: false,
        extendedAcl: false,
    });
    
    type: aiven:ElasticSearchAclConfig
    properties:
        enabled: false
        extendedAcl: false
        project: string
        serviceName: string
    

    ElasticSearchAclConfig 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 ElasticSearchAclConfig resource accepts the following input properties:

    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.
    ServiceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    ExtendedAcl 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 10.
    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.
    ServiceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    ExtendedAcl 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 10.
    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.
    serviceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    extendedAcl 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 10.
    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.
    serviceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    extendedAcl 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 10.
    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 bool
    Enable Elasticsearch 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 10.
    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.
    serviceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    extendedAcl 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 10.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ElasticSearchAclConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ElasticSearchAclConfig Resource

    Get an existing ElasticSearchAclConfig 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?: ElasticSearchAclConfigState, opts?: CustomResourceOptions): ElasticSearchAclConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            extended_acl: Optional[bool] = None,
            project: Optional[str] = None,
            service_name: Optional[str] = None) -> ElasticSearchAclConfig
    func GetElasticSearchAclConfig(ctx *Context, name string, id IDInput, state *ElasticSearchAclConfigState, opts ...ResourceOption) (*ElasticSearchAclConfig, error)
    public static ElasticSearchAclConfig Get(string name, Input<string> id, ElasticSearchAclConfigState? state, CustomResourceOptions? opts = null)
    public static ElasticSearchAclConfig get(String name, Output<String> id, ElasticSearchAclConfigState state, CustomResourceOptions options)
    resources:  _:    type: aiven:ElasticSearchAclConfig    get:      id: ${id}
    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.
    The following state arguments are supported:
    Enabled bool
    Enable Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    ExtendedAcl 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 10.
    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.
    ServiceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    ExtendedAcl 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 10.
    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.
    ServiceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    extendedAcl 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 10.
    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.
    serviceName 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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    extendedAcl 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 10.
    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.
    serviceName 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 Elasticsearch 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 10.
    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 Elasticsearch ACLs. When disabled authenticated service users have unrestricted access The default value is true.
    extendedAcl 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 10.
    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.
    serviceName 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.
    aiven logo
    Viewing docs for Aiven v4.5.2 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.