elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
elasticstack.getElasticsearchEnrichPolicy
elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
Returns information about an enrich policy. See the enrich policy API documentation for more details.
Using getElasticsearchEnrichPolicy
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 getElasticsearchEnrichPolicy(args: GetElasticsearchEnrichPolicyArgs, opts?: InvokeOptions): Promise<GetElasticsearchEnrichPolicyResult>
function getElasticsearchEnrichPolicyOutput(args: GetElasticsearchEnrichPolicyOutputArgs, opts?: InvokeOptions): Output<GetElasticsearchEnrichPolicyResult>def get_elasticsearch_enrich_policy(elasticsearch_connections: Optional[Sequence[GetElasticsearchEnrichPolicyElasticsearchConnection]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetElasticsearchEnrichPolicyResult
def get_elasticsearch_enrich_policy_output(elasticsearch_connections: Optional[pulumi.Input[Sequence[pulumi.Input[GetElasticsearchEnrichPolicyElasticsearchConnectionArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetElasticsearchEnrichPolicyResult]func LookupElasticsearchEnrichPolicy(ctx *Context, args *LookupElasticsearchEnrichPolicyArgs, opts ...InvokeOption) (*LookupElasticsearchEnrichPolicyResult, error)
func LookupElasticsearchEnrichPolicyOutput(ctx *Context, args *LookupElasticsearchEnrichPolicyOutputArgs, opts ...InvokeOption) LookupElasticsearchEnrichPolicyResultOutput> Note: This function is named LookupElasticsearchEnrichPolicy in the Go SDK.
public static class GetElasticsearchEnrichPolicy
{
public static Task<GetElasticsearchEnrichPolicyResult> InvokeAsync(GetElasticsearchEnrichPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetElasticsearchEnrichPolicyResult> Invoke(GetElasticsearchEnrichPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetElasticsearchEnrichPolicyResult> getElasticsearchEnrichPolicy(GetElasticsearchEnrichPolicyArgs args, InvokeOptions options)
public static Output<GetElasticsearchEnrichPolicyResult> getElasticsearchEnrichPolicy(GetElasticsearchEnrichPolicyArgs args, InvokeOptions options)
fn::invoke:
function: elasticstack:index/getElasticsearchEnrichPolicy:getElasticsearchEnrichPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the policy.
- Elasticsearch
Connections List<GetElasticsearch Enrich Policy Elasticsearch Connection> - Elasticsearch connection configuration block.
- Name string
- The name of the policy.
- Elasticsearch
Connections []GetElasticsearch Enrich Policy Elasticsearch Connection - Elasticsearch connection configuration block.
- name String
- The name of the policy.
- elasticsearch
Connections List<GetElasticsearch Enrich Policy Elasticsearch Connection> - Elasticsearch connection configuration block.
- name string
- The name of the policy.
- elasticsearch
Connections GetElasticsearch Enrich Policy Elasticsearch Connection[] - Elasticsearch connection configuration block.
- name str
- The name of the policy.
- elasticsearch_
connections Sequence[GetElasticsearch Enrich Policy Elasticsearch Connection] - Elasticsearch connection configuration block.
- name String
- The name of the policy.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
getElasticsearchEnrichPolicy Result
The following output properties are available:
- Enrich
Fields List<string> - Fields to add to matching incoming documents. These fields must be present in the source indices.
- Id string
- Internal identifier of the resource
- Indices List<string>
- Array of one or more source indices used to create the enrich index.
- Match
Field string - Field from the source indices used to match incoming documents.
- Name string
- The name of the policy.
- Policy
Type string - The type of enrich policy, can be one of geo_match, match, range.
- Query string
- Query used to filter documents in the enrich index. The policy only uses documents matching this query to enrich incoming documents. Defaults to a match_all query.
- Elasticsearch
Connections List<GetElasticsearch Enrich Policy Elasticsearch Connection> - Elasticsearch connection configuration block.
- Enrich
Fields []string - Fields to add to matching incoming documents. These fields must be present in the source indices.
- Id string
- Internal identifier of the resource
- Indices []string
- Array of one or more source indices used to create the enrich index.
- Match
Field string - Field from the source indices used to match incoming documents.
- Name string
- The name of the policy.
- Policy
Type string - The type of enrich policy, can be one of geo_match, match, range.
- Query string
- Query used to filter documents in the enrich index. The policy only uses documents matching this query to enrich incoming documents. Defaults to a match_all query.
- Elasticsearch
Connections []GetElasticsearch Enrich Policy Elasticsearch Connection - Elasticsearch connection configuration block.
- enrich
Fields List<String> - Fields to add to matching incoming documents. These fields must be present in the source indices.
- id String
- Internal identifier of the resource
- indices List<String>
- Array of one or more source indices used to create the enrich index.
- match
Field String - Field from the source indices used to match incoming documents.
- name String
- The name of the policy.
- policy
Type String - The type of enrich policy, can be one of geo_match, match, range.
- query String
- Query used to filter documents in the enrich index. The policy only uses documents matching this query to enrich incoming documents. Defaults to a match_all query.
- elasticsearch
Connections List<GetElasticsearch Enrich Policy Elasticsearch Connection> - Elasticsearch connection configuration block.
- enrich
Fields string[] - Fields to add to matching incoming documents. These fields must be present in the source indices.
- id string
- Internal identifier of the resource
- indices string[]
- Array of one or more source indices used to create the enrich index.
- match
Field string - Field from the source indices used to match incoming documents.
- name string
- The name of the policy.
- policy
Type string - The type of enrich policy, can be one of geo_match, match, range.
- query string
- Query used to filter documents in the enrich index. The policy only uses documents matching this query to enrich incoming documents. Defaults to a match_all query.
- elasticsearch
Connections GetElasticsearch Enrich Policy Elasticsearch Connection[] - Elasticsearch connection configuration block.
- enrich_
fields Sequence[str] - Fields to add to matching incoming documents. These fields must be present in the source indices.
- id str
- Internal identifier of the resource
- indices Sequence[str]
- Array of one or more source indices used to create the enrich index.
- match_
field str - Field from the source indices used to match incoming documents.
- name str
- The name of the policy.
- policy_
type str - The type of enrich policy, can be one of geo_match, match, range.
- query str
- Query used to filter documents in the enrich index. The policy only uses documents matching this query to enrich incoming documents. Defaults to a match_all query.
- elasticsearch_
connections Sequence[GetElasticsearch Enrich Policy Elasticsearch Connection] - Elasticsearch connection configuration block.
- enrich
Fields List<String> - Fields to add to matching incoming documents. These fields must be present in the source indices.
- id String
- Internal identifier of the resource
- indices List<String>
- Array of one or more source indices used to create the enrich index.
- match
Field String - Field from the source indices used to match incoming documents.
- name String
- The name of the policy.
- policy
Type String - The type of enrich policy, can be one of geo_match, match, range.
- query String
- Query used to filter documents in the enrich index. The policy only uses documents matching this query to enrich incoming documents. Defaults to a match_all query.
- elasticsearch
Connections List<Property Map> - Elasticsearch connection configuration block.
Supporting Types
GetElasticsearchEnrichPolicyElasticsearchConnection
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints List<string>
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Headers Dictionary<string, string>
- A list of headers to be sent with each request to Elasticsearch.
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- Api
Key string - API Key to use for authentication to Elasticsearch
- Bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- Ca
Data string - PEM-encoded custom Certificate Authority certificate
- Ca
File string - Path to a custom Certificate Authority certificate
- Cert
Data string - PEM encoded certificate for client auth
- Cert
File string - Path to a file containing the PEM encoded certificate for client auth
- Endpoints []string
- Es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- Headers map[string]string
- A list of headers to be sent with each request to Elasticsearch.
- Insecure bool
- Disable TLS certificate validation
- Key
Data string - PEM encoded private key for client auth
- Key
File string - Path to a file containing the PEM encoded private key for client auth
- Password string
- Password to use for API authentication to Elasticsearch.
- Username string
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- headers Map<String,String>
- A list of headers to be sent with each request to Elasticsearch.
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
- api
Key string - API Key to use for authentication to Elasticsearch
- bearer
Token string - Bearer Token to use for authentication to Elasticsearch
- ca
Data string - PEM-encoded custom Certificate Authority certificate
- ca
File string - Path to a custom Certificate Authority certificate
- cert
Data string - PEM encoded certificate for client auth
- cert
File string - Path to a file containing the PEM encoded certificate for client auth
- endpoints string[]
- es
Client stringAuthentication - ES Client Authentication field to be used with the JWT token
- headers {[key: string]: string}
- A list of headers to be sent with each request to Elasticsearch.
- insecure boolean
- Disable TLS certificate validation
- key
Data string - PEM encoded private key for client auth
- key
File string - Path to a file containing the PEM encoded private key for client auth
- password string
- Password to use for API authentication to Elasticsearch.
- username string
- Username to use for API authentication to Elasticsearch.
- api_
key str - API Key to use for authentication to Elasticsearch
- bearer_
token str - Bearer Token to use for authentication to Elasticsearch
- ca_
data str - PEM-encoded custom Certificate Authority certificate
- ca_
file str - Path to a custom Certificate Authority certificate
- cert_
data str - PEM encoded certificate for client auth
- cert_
file str - Path to a file containing the PEM encoded certificate for client auth
- endpoints Sequence[str]
- es_
client_ strauthentication - ES Client Authentication field to be used with the JWT token
- headers Mapping[str, str]
- A list of headers to be sent with each request to Elasticsearch.
- insecure bool
- Disable TLS certificate validation
- key_
data str - PEM encoded private key for client auth
- key_
file str - Path to a file containing the PEM encoded private key for client auth
- password str
- Password to use for API authentication to Elasticsearch.
- username str
- Username to use for API authentication to Elasticsearch.
- api
Key String - API Key to use for authentication to Elasticsearch
- bearer
Token String - Bearer Token to use for authentication to Elasticsearch
- ca
Data String - PEM-encoded custom Certificate Authority certificate
- ca
File String - Path to a custom Certificate Authority certificate
- cert
Data String - PEM encoded certificate for client auth
- cert
File String - Path to a file containing the PEM encoded certificate for client auth
- endpoints List<String>
- es
Client StringAuthentication - ES Client Authentication field to be used with the JWT token
- headers Map<String>
- A list of headers to be sent with each request to Elasticsearch.
- insecure Boolean
- Disable TLS certificate validation
- key
Data String - PEM encoded private key for client auth
- key
File String - Path to a file containing the PEM encoded private key for client auth
- password String
- Password to use for API authentication to Elasticsearch.
- username String
- Username to use for API authentication to Elasticsearch.
Package Details
- Repository
- elasticstack elastic/terraform-provider-elasticstack
- License
- Notes
- This Pulumi package is based on the
elasticstackTerraform Provider.
elasticstack 0.12.1 published on Thursday, Oct 23, 2025 by elastic
