ServerlessCollectionArgs

data class ServerlessCollectionArgs(val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<ServerlessCollectionTimeoutsArgs>? = null, val type: Output<String>? = null) : ConvertibleToJava<ServerlessCollectionArgs>

Resource for managing an AWS OpenSearch Serverless Collection.

NOTE: An aws.opensearch.ServerlessCollection cannot be created without having an applicable encryption security policy. Use the depends_on meta-argument to define this dependency. NOTE: An aws.opensearch.ServerlessCollection is not accessible without configuring an applicable network security policy. Data cannot be accessed without configuring an applicable data access policy.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opensearch.ServerlessSecurityPolicy;
import com.pulumi.aws.opensearch.ServerlessSecurityPolicyArgs;
import com.pulumi.aws.opensearch.ServerlessCollection;
import com.pulumi.aws.opensearch.ServerlessCollectionArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import com.pulumi.resources.CustomResourceOptions;
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) {
var exampleServerlessSecurityPolicy = new ServerlessSecurityPolicy("exampleServerlessSecurityPolicy", ServerlessSecurityPolicyArgs.builder()
.type("encryption")
.policy(serializeJson(
jsonObject(
jsonProperty("Rules", jsonArray(jsonObject(
jsonProperty("Resource", jsonArray("collection/example")),
jsonProperty("ResourceType", "collection")
))),
jsonProperty("AWSOwnedKey", true)
)))
.build());
var exampleServerlessCollection = new ServerlessCollection("exampleServerlessCollection", ServerlessCollectionArgs.Empty, CustomResourceOptions.builder()
.dependsOn(exampleServerlessSecurityPolicy)
.build());
}
}

Import

Using pulumi import, import OpenSearchServerless Collection using the id. For example:

$ pulumi import aws:opensearch/serverlessCollection:ServerlessCollection example example

Constructors

Link copied to clipboard
fun ServerlessCollectionArgs(description: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<ServerlessCollectionTimeoutsArgs>? = null, type: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServerlessCollectionArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

Description of the collection.

Link copied to clipboard
val name: Output<String>? = null

Name of the collection. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the collection. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
Link copied to clipboard
val type: Output<String>? = null

Type of collection. One of SEARCH, TIMESERIES, or VECTORSEARCH. Defaults to TIMESERIES.