import * as pulumi from "@pulumi/pulumi"; /** * Gets information about an Aiven for OpenSearch® ACL rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const osAclRule = aiven.getOpenSearchAclRule({ * project: exampleProject.project, * serviceName: exampleOpensearch.serviceName, * username: "documentation-user-1", * index: "index5", * }); * ``` */ export declare function getOpenSearchAclRule(args: GetOpenSearchAclRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getOpenSearchAclRule. */ export interface GetOpenSearchAclRuleArgs { /** * The index pattern for this ACL rule. Maximum length: `249`. Changing this property forces recreation of the resource. */ index: string; /** * The permissions for this ACL rule. The possible values are `admin`, `deny`, `read`, `readwrite` and `write`. */ permission: 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. */ project: 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. */ serviceName: string; /** * The username for the OpenSearch user this ACL rule applies to. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ username: string; } /** * A collection of values returned by getOpenSearchAclRule. */ export interface GetOpenSearchAclRuleResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The index pattern for this ACL rule. Maximum length: `249`. Changing this property forces recreation of the resource. */ readonly index: string; /** * The permissions for this ACL rule. The possible values are `admin`, `deny`, `read`, `readwrite` and `write`. */ readonly permission: 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. */ readonly project: 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. */ readonly serviceName: string; /** * The username for the OpenSearch user this ACL rule applies to. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ readonly username: string; } /** * Gets information about an Aiven for OpenSearch® ACL rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const osAclRule = aiven.getOpenSearchAclRule({ * project: exampleProject.project, * serviceName: exampleOpensearch.serviceName, * username: "documentation-user-1", * index: "index5", * }); * ``` */ export declare function getOpenSearchAclRuleOutput(args: GetOpenSearchAclRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getOpenSearchAclRule. */ export interface GetOpenSearchAclRuleOutputArgs { /** * The index pattern for this ACL rule. Maximum length: `249`. Changing this property forces recreation of the resource. */ index: pulumi.Input; /** * The permissions for this ACL rule. The possible values are `admin`, `deny`, `read`, `readwrite` and `write`. */ permission: pulumi.Input; /** * 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. */ project: pulumi.Input; /** * 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. */ serviceName: pulumi.Input; /** * The username for the OpenSearch user this ACL rule applies to. Maximum length: `40`. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. */ username: pulumi.Input; } //# sourceMappingURL=getOpenSearchAclRule.d.ts.map