aws.opensearch.ServerlessCollection
Explore with Pulumi AI
Resource for managing an AWS OpenSearch Serverless Collection.
NOTE: An
aws.opensearch.ServerlessCollection
cannot be created without having an applicable encryption security policy. Use thedepends_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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.opensearch.ServerlessSecurityPolicy("example", {
name: "example",
type: "encryption",
policy: JSON.stringify({
Rules: [{
Resource: ["collection/example"],
ResourceType: "collection",
}],
AWSOwnedKey: true,
}),
});
const exampleServerlessCollection = new aws.opensearch.ServerlessCollection("example", {name: "example"}, {
dependsOn: [example],
});
import pulumi
import json
import pulumi_aws as aws
example = aws.opensearch.ServerlessSecurityPolicy("example",
name="example",
type="encryption",
policy=json.dumps({
"Rules": [{
"Resource": ["collection/example"],
"ResourceType": "collection",
}],
"AWSOwnedKey": True,
}))
example_serverless_collection = aws.opensearch.ServerlessCollection("example", name="example",
opts = pulumi.ResourceOptions(depends_on=[example]))
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opensearch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"Rules": []map[string]interface{}{
map[string]interface{}{
"Resource": []string{
"collection/example",
},
"ResourceType": "collection",
},
},
"AWSOwnedKey": true,
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
example, err := opensearch.NewServerlessSecurityPolicy(ctx, "example", &opensearch.ServerlessSecurityPolicyArgs{
Name: pulumi.String("example"),
Type: pulumi.String("encryption"),
Policy: pulumi.String(json0),
})
if err != nil {
return err
}
_, err = opensearch.NewServerlessCollection(ctx, "example", &opensearch.ServerlessCollectionArgs{
Name: pulumi.String("example"),
}, pulumi.DependsOn([]pulumi.Resource{
example,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.OpenSearch.ServerlessSecurityPolicy("example", new()
{
Name = "example",
Type = "encryption",
Policy = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["Rules"] = new[]
{
new Dictionary<string, object?>
{
["Resource"] = new[]
{
"collection/example",
},
["ResourceType"] = "collection",
},
},
["AWSOwnedKey"] = true,
}),
});
var exampleServerlessCollection = new Aws.OpenSearch.ServerlessCollection("example", new()
{
Name = "example",
}, new CustomResourceOptions
{
DependsOn =
{
example,
},
});
});
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 example = new ServerlessSecurityPolicy("example", ServerlessSecurityPolicyArgs.builder()
.name("example")
.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.builder()
.name("example")
.build(), CustomResourceOptions.builder()
.dependsOn(example)
.build());
}
}
resources:
example:
type: aws:opensearch:ServerlessSecurityPolicy
properties:
name: example
type: encryption
policy:
fn::toJSON:
Rules:
- Resource:
- collection/example
ResourceType: collection
AWSOwnedKey: true
exampleServerlessCollection:
type: aws:opensearch:ServerlessCollection
name: example
properties:
name: example
options:
dependson:
- ${example}
Create ServerlessCollection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerlessCollection(name: string, args?: ServerlessCollectionArgs, opts?: CustomResourceOptions);
@overload
def ServerlessCollection(resource_name: str,
args: Optional[ServerlessCollectionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ServerlessCollection(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
standby_replicas: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ServerlessCollectionTimeoutsArgs] = None,
type: Optional[str] = None)
func NewServerlessCollection(ctx *Context, name string, args *ServerlessCollectionArgs, opts ...ResourceOption) (*ServerlessCollection, error)
public ServerlessCollection(string name, ServerlessCollectionArgs? args = null, CustomResourceOptions? opts = null)
public ServerlessCollection(String name, ServerlessCollectionArgs args)
public ServerlessCollection(String name, ServerlessCollectionArgs args, CustomResourceOptions options)
type: aws:opensearch:ServerlessCollection
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 ServerlessCollectionArgs
- 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 ServerlessCollectionArgs
- 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 ServerlessCollectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerlessCollectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerlessCollectionArgs
- 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 serverlessCollectionResource = new Aws.OpenSearch.ServerlessCollection("serverlessCollectionResource", new()
{
Description = "string",
Name = "string",
StandbyReplicas = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.OpenSearch.Inputs.ServerlessCollectionTimeoutsArgs
{
Create = "string",
Delete = "string",
},
Type = "string",
});
example, err := opensearch.NewServerlessCollection(ctx, "serverlessCollectionResource", &opensearch.ServerlessCollectionArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
StandbyReplicas: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opensearch.ServerlessCollectionTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var serverlessCollectionResource = new ServerlessCollection("serverlessCollectionResource", ServerlessCollectionArgs.builder()
.description("string")
.name("string")
.standbyReplicas("string")
.tags(Map.of("string", "string"))
.timeouts(ServerlessCollectionTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.type("string")
.build());
serverless_collection_resource = aws.opensearch.ServerlessCollection("serverlessCollectionResource",
description="string",
name="string",
standby_replicas="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
type="string")
const serverlessCollectionResource = new aws.opensearch.ServerlessCollection("serverlessCollectionResource", {
description: "string",
name: "string",
standbyReplicas: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
type: "string",
});
type: aws:opensearch:ServerlessCollection
properties:
description: string
name: string
standbyReplicas: string
tags:
string: string
timeouts:
create: string
delete: string
type: string
ServerlessCollection 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 ServerlessCollection resource accepts the following input properties:
- Description string
- Description of the collection.
- Name string
Name of the collection.
The following arguments are optional:
- Standby
Replicas string - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Dictionary<string, string>
- 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. - Timeouts
Serverless
Collection Timeouts - Type string
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- Description string
- Description of the collection.
- Name string
Name of the collection.
The following arguments are optional:
- Standby
Replicas string - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - map[string]string
- 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. - Timeouts
Serverless
Collection Timeouts Args - Type string
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- description String
- Description of the collection.
- name String
Name of the collection.
The following arguments are optional:
- standby
Replicas String - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Map<String,String>
- 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. - timeouts
Serverless
Collection Timeouts - type String
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- description string
- Description of the collection.
- name string
Name of the collection.
The following arguments are optional:
- standby
Replicas string - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - {[key: string]: string}
- 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. - timeouts
Serverless
Collection Timeouts - type string
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- description str
- Description of the collection.
- name str
Name of the collection.
The following arguments are optional:
- standby_
replicas str - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Mapping[str, str]
- 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. - timeouts
Serverless
Collection Timeouts Args - type str
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- description String
- Description of the collection.
- name String
Name of the collection.
The following arguments are optional:
- standby
Replicas String - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Map<String>
- 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. - timeouts Property Map
- type String
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerlessCollection resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the collection.
- Collection
Endpoint string - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- Dashboard
Endpoint string - Collection-specific endpoint used to access OpenSearch Dashboards.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- Dictionary<string, string>
- Arn string
- Amazon Resource Name (ARN) of the collection.
- Collection
Endpoint string - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- Dashboard
Endpoint string - Collection-specific endpoint used to access OpenSearch Dashboards.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- map[string]string
- arn String
- Amazon Resource Name (ARN) of the collection.
- collection
Endpoint String - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard
Endpoint String - Collection-specific endpoint used to access OpenSearch Dashboards.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- Map<String,String>
- arn string
- Amazon Resource Name (ARN) of the collection.
- collection
Endpoint string - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard
Endpoint string - Collection-specific endpoint used to access OpenSearch Dashboards.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- {[key: string]: string}
- arn str
- Amazon Resource Name (ARN) of the collection.
- collection_
endpoint str - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard_
endpoint str - Collection-specific endpoint used to access OpenSearch Dashboards.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strarn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- Mapping[str, str]
- arn String
- Amazon Resource Name (ARN) of the collection.
- collection
Endpoint String - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard
Endpoint String - Collection-specific endpoint used to access OpenSearch Dashboards.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- Map<String>
Look up Existing ServerlessCollection Resource
Get an existing ServerlessCollection 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?: ServerlessCollectionState, opts?: CustomResourceOptions): ServerlessCollection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
collection_endpoint: Optional[str] = None,
dashboard_endpoint: Optional[str] = None,
description: Optional[str] = None,
kms_key_arn: Optional[str] = None,
name: Optional[str] = None,
standby_replicas: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[ServerlessCollectionTimeoutsArgs] = None,
type: Optional[str] = None) -> ServerlessCollection
func GetServerlessCollection(ctx *Context, name string, id IDInput, state *ServerlessCollectionState, opts ...ResourceOption) (*ServerlessCollection, error)
public static ServerlessCollection Get(string name, Input<string> id, ServerlessCollectionState? state, CustomResourceOptions? opts = null)
public static ServerlessCollection get(String name, Output<String> id, ServerlessCollectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Arn string
- Amazon Resource Name (ARN) of the collection.
- Collection
Endpoint string - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- Dashboard
Endpoint string - Collection-specific endpoint used to access OpenSearch Dashboards.
- Description string
- Description of the collection.
- Kms
Key stringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- Name string
Name of the collection.
The following arguments are optional:
- Standby
Replicas string - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Dictionary<string, string>
- 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. - Dictionary<string, string>
- Timeouts
Serverless
Collection Timeouts - Type string
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- Arn string
- Amazon Resource Name (ARN) of the collection.
- Collection
Endpoint string - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- Dashboard
Endpoint string - Collection-specific endpoint used to access OpenSearch Dashboards.
- Description string
- Description of the collection.
- Kms
Key stringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- Name string
Name of the collection.
The following arguments are optional:
- Standby
Replicas string - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - map[string]string
- 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. - map[string]string
- Timeouts
Serverless
Collection Timeouts Args - Type string
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- arn String
- Amazon Resource Name (ARN) of the collection.
- collection
Endpoint String - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard
Endpoint String - Collection-specific endpoint used to access OpenSearch Dashboards.
- description String
- Description of the collection.
- kms
Key StringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- name String
Name of the collection.
The following arguments are optional:
- standby
Replicas String - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Map<String,String>
- 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. - Map<String,String>
- timeouts
Serverless
Collection Timeouts - type String
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- arn string
- Amazon Resource Name (ARN) of the collection.
- collection
Endpoint string - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard
Endpoint string - Collection-specific endpoint used to access OpenSearch Dashboards.
- description string
- Description of the collection.
- kms
Key stringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- name string
Name of the collection.
The following arguments are optional:
- standby
Replicas string - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - {[key: string]: string}
- 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. - {[key: string]: string}
- timeouts
Serverless
Collection Timeouts - type string
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- arn str
- Amazon Resource Name (ARN) of the collection.
- collection_
endpoint str - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard_
endpoint str - Collection-specific endpoint used to access OpenSearch Dashboards.
- description str
- Description of the collection.
- kms_
key_ strarn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- name str
Name of the collection.
The following arguments are optional:
- standby_
replicas str - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Mapping[str, str]
- 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. - Mapping[str, str]
- timeouts
Serverless
Collection Timeouts Args - type str
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
- arn String
- Amazon Resource Name (ARN) of the collection.
- collection
Endpoint String - Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
- dashboard
Endpoint String - Collection-specific endpoint used to access OpenSearch Dashboards.
- description String
- Description of the collection.
- kms
Key StringArn - The ARN of the Amazon Web Services KMS key used to encrypt the collection.
- name String
Name of the collection.
The following arguments are optional:
- standby
Replicas String - Indicates whether standby replicas should be used for a collection. One of
ENABLED
orDISABLED
. Defaults toENABLED
. - Map<String>
- 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. - Map<String>
- timeouts Property Map
- type String
- Type of collection. One of
SEARCH
,TIMESERIES
, orVECTORSEARCH
. Defaults toTIMESERIES
.
Supporting Types
ServerlessCollectionTimeouts, ServerlessCollectionTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Import
Using pulumi import
, import OpenSearchServerless Collection using the id
. For example:
$ pulumi import aws:opensearch/serverlessCollection:ServerlessCollection example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.