SDK for PHP 3.x

Client: Aws\OpenSearchServerless\OpenSearchServerlessClient
Service ID: opensearchserverless
Version: 2021-11-01

This page describes the parameters and results for the operations of the OpenSearch Service Serverless (2021-11-01), and shows how to use the Aws\OpenSearchServerless\OpenSearchServerlessClient object to call the described operations. This documentation is specific to the 2021-11-01 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

BatchGetCollection ( array $params = [] )
Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint.
BatchGetEffectiveLifecyclePolicy ( array $params = [] )
Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes.
BatchGetLifecyclePolicy ( array $params = [] )
Returns one or more configured OpenSearch Serverless lifecycle policies.
BatchGetVpcEndpoint ( array $params = [] )
Returns attributes for one or more VPC endpoints associated with the current account.
CreateAccessPolicy ( array $params = [] )
Creates a data access policy for OpenSearch Serverless.
CreateCollection ( array $params = [] )
Creates a new OpenSearch Serverless collection.
CreateLifecyclePolicy ( array $params = [] )
Creates a lifecyle policy to be applied to OpenSearch Serverless indexes.
CreateSecurityConfig ( array $params = [] )
Specifies a security configuration for OpenSearch Serverless.
CreateSecurityPolicy ( array $params = [] )
Creates a security policy to be used by one or more OpenSearch Serverless collections.
CreateVpcEndpoint ( array $params = [] )
Creates an OpenSearch Serverless-managed interface VPC endpoint.
DeleteAccessPolicy ( array $params = [] )
Deletes an OpenSearch Serverless access policy.
DeleteCollection ( array $params = [] )
Deletes an OpenSearch Serverless collection.
DeleteLifecyclePolicy ( array $params = [] )
Deletes an OpenSearch Serverless lifecycle policy.
DeleteSecurityConfig ( array $params = [] )
Deletes a security configuration for OpenSearch Serverless.
DeleteSecurityPolicy ( array $params = [] )
Deletes an OpenSearch Serverless security policy.
DeleteVpcEndpoint ( array $params = [] )
Deletes an OpenSearch Serverless-managed interface endpoint.
GetAccessPolicy ( array $params = [] )
Returns an OpenSearch Serverless access policy.
GetAccountSettings ( array $params = [] )
Returns account-level settings related to OpenSearch Serverless.
GetPoliciesStats ( array $params = [] )
Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
GetSecurityConfig ( array $params = [] )
Returns information about an OpenSearch Serverless security configuration.
GetSecurityPolicy ( array $params = [] )
Returns information about a configured OpenSearch Serverless security policy.
ListAccessPolicies ( array $params = [] )
Returns information about a list of OpenSearch Serverless access policies.
ListCollections ( array $params = [] )
Lists all OpenSearch Serverless collections.
ListLifecyclePolicies ( array $params = [] )
Returns a list of OpenSearch Serverless lifecycle policies.
ListSecurityConfigs ( array $params = [] )
Returns information about configured OpenSearch Serverless security configurations.
ListSecurityPolicies ( array $params = [] )
Returns information about configured OpenSearch Serverless security policies.
ListTagsForResource ( array $params = [] )
Returns the tags for an OpenSearch Serverless resource.
ListVpcEndpoints ( array $params = [] )
Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account.
TagResource ( array $params = [] )
Associates tags with an OpenSearch Serverless resource.
UntagResource ( array $params = [] )
Removes a tag or set of tags from an OpenSearch Serverless resource.
UpdateAccessPolicy ( array $params = [] )
Updates an OpenSearch Serverless access policy.
UpdateAccountSettings ( array $params = [] )
Update the OpenSearch Serverless settings for the current Amazon Web Services account.
UpdateCollection ( array $params = [] )
Updates an OpenSearch Serverless collection.
UpdateLifecyclePolicy ( array $params = [] )
Updates an OpenSearch Serverless access policy.
UpdateSecurityConfig ( array $params = [] )
Updates a security configuration for OpenSearch Serverless.
UpdateSecurityPolicy ( array $params = [] )
Updates an OpenSearch Serverless security policy.
UpdateVpcEndpoint ( array $params = [] )
Updates an OpenSearch Serverless-managed interface endpoint.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

ListAccessPolicies
ListCollections
ListLifecyclePolicies
ListSecurityConfigs
ListSecurityPolicies
ListVpcEndpoints

Operations

BatchGetCollection

$result = $client->batchGetCollection([/* ... */]);
$promise = $client->batchGetCollectionAsync([/* ... */]);

Returns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Parameter Syntax

$result = $client->batchGetCollection([
    'ids' => ['<string>', ...],
    'names' => ['<string>', ...],
]);

Parameter Details

Members
ids
Type: Array of strings

A list of collection IDs. You can't provide names and IDs in the same request. The ID is part of the collection endpoint. You can also retrieve it using the ListCollections API.

names
Type: Array of strings

A list of collection names. You can't provide names and IDs in the same request.

Result Syntax

[
    'collectionDetails' => [
        [
            'arn' => '<string>',
            'collectionEndpoint' => '<string>',
            'createdDate' => <integer>,
            'dashboardEndpoint' => '<string>',
            'description' => '<string>',
            'failureCode' => '<string>',
            'failureMessage' => '<string>',
            'id' => '<string>',
            'kmsKeyArn' => '<string>',
            'lastModifiedDate' => <integer>,
            'name' => '<string>',
            'standbyReplicas' => 'ENABLED|DISABLED',
            'status' => 'CREATING|DELETING|ACTIVE|FAILED',
            'type' => 'SEARCH|TIMESERIES|VECTORSEARCH',
        ],
        // ...
    ],
    'collectionErrorDetails' => [
        [
            'errorCode' => '<string>',
            'errorMessage' => '<string>',
            'id' => '<string>',
            'name' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
collectionDetails
Type: Array of CollectionDetail structures

Details about each collection.

collectionErrorDetails
Type: Array of CollectionErrorDetail structures

Error information for the request.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

BatchGetEffectiveLifecyclePolicy

$result = $client->batchGetEffectiveLifecyclePolicy([/* ... */]);
$promise = $client->batchGetEffectiveLifecyclePolicyAsync([/* ... */]);

Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.

Parameter Syntax

$result = $client->batchGetEffectiveLifecyclePolicy([
    'resourceIdentifiers' => [ // REQUIRED
        [
            'resource' => '<string>', // REQUIRED
            'type' => 'retention', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
resourceIdentifiers
Required: Yes
Type: Array of LifecyclePolicyResourceIdentifier structures

The unique identifiers of policy types and resource names.

Result Syntax

[
    'effectiveLifecyclePolicyDetails' => [
        [
            'noMinRetentionPeriod' => true || false,
            'policyName' => '<string>',
            'resource' => '<string>',
            'resourceType' => 'index',
            'retentionPeriod' => '<string>',
            'type' => 'retention',
        ],
        // ...
    ],
    'effectiveLifecyclePolicyErrorDetails' => [
        [
            'errorCode' => '<string>',
            'errorMessage' => '<string>',
            'resource' => '<string>',
            'type' => 'retention',
        ],
        // ...
    ],
]

Result Details

Members
effectiveLifecyclePolicyDetails
Type: Array of EffectiveLifecyclePolicyDetail structures

A list of lifecycle policies applied to the OpenSearch Serverless indexes.

effectiveLifecyclePolicyErrorDetails
Type: Array of EffectiveLifecyclePolicyErrorDetail structures

A list of resources for which retrieval failed.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

BatchGetLifecyclePolicy

$result = $client->batchGetLifecyclePolicy([/* ... */]);
$promise = $client->batchGetLifecyclePolicyAsync([/* ... */]);

Returns one or more configured OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.

Parameter Syntax

$result = $client->batchGetLifecyclePolicy([
    'identifiers' => [ // REQUIRED
        [
            'name' => '<string>', // REQUIRED
            'type' => 'retention', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
identifiers
Required: Yes
Type: Array of LifecyclePolicyIdentifier structures

The unique identifiers of policy types and policy names.

Result Syntax

[
    'lifecyclePolicyDetails' => [
        [
            'createdDate' => <integer>,
            'description' => '<string>',
            'lastModifiedDate' => <integer>,
            'name' => '<string>',
            'policy' => [
            ],
            'policyVersion' => '<string>',
            'type' => 'retention',
        ],
        // ...
    ],
    'lifecyclePolicyErrorDetails' => [
        [
            'errorCode' => '<string>',
            'errorMessage' => '<string>',
            'name' => '<string>',
            'type' => 'retention',
        ],
        // ...
    ],
]

Result Details

Members
lifecyclePolicyDetails
Type: Array of LifecyclePolicyDetail structures

A list of lifecycle policies matched to the input policy name and policy type.

lifecyclePolicyErrorDetails
Type: Array of LifecyclePolicyErrorDetail structures

A list of lifecycle policy names and policy types for which retrieval failed.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

BatchGetVpcEndpoint

$result = $client->batchGetVpcEndpoint([/* ... */]);
$promise = $client->batchGetVpcEndpointAsync([/* ... */]);

Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Parameter Syntax

$result = $client->batchGetVpcEndpoint([
    'ids' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ids
Required: Yes
Type: Array of strings

A list of VPC endpoint identifiers.

Result Syntax

[
    'vpcEndpointDetails' => [
        [
            'createdDate' => <integer>,
            'failureCode' => '<string>',
            'failureMessage' => '<string>',
            'id' => '<string>',
            'name' => '<string>',
            'securityGroupIds' => ['<string>', ...],
            'status' => 'PENDING|DELETING|ACTIVE|FAILED',
            'subnetIds' => ['<string>', ...],
            'vpcId' => '<string>',
        ],
        // ...
    ],
    'vpcEndpointErrorDetails' => [
        [
            'errorCode' => '<string>',
            'errorMessage' => '<string>',
            'id' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
vpcEndpointDetails
Type: Array of VpcEndpointDetail structures

Details about the specified VPC endpoint.

vpcEndpointErrorDetails
Type: Array of VpcEndpointErrorDetail structures

Error information for a failed request.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

CreateAccessPolicy

$result = $client->createAccessPolicy([/* ... */]);
$promise = $client->createAccessPolicyAsync([/* ... */]);

Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->createAccessPolicy([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'policy' => '<string>', // REQUIRED
    'type' => 'data', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the policy. Typically used to store information about the permissions defined in the policy.

name
Required: Yes
Type: string

The name of the policy.

policy
Required: Yes
Type: string

The JSON policy document to use as the content for the policy.

type
Required: Yes
Type: string

The type of policy.

Result Syntax

[
    'accessPolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'data',
    ],
]

Result Details

Members
accessPolicyDetail
Type: AccessPolicyDetail structure

Details about the created access policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

CreateCollection

$result = $client->createCollection([/* ... */]);
$promise = $client->createCollectionAsync([/* ... */]);

Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Parameter Syntax

$result = $client->createCollection([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'standbyReplicas' => 'ENABLED|DISABLED',
    'tags' => [
        [
            'key' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'type' => 'SEARCH|TIMESERIES|VECTORSEARCH',
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

Description of the collection.

name
Required: Yes
Type: string

Name of the collection.

standbyReplicas
Type: string

Indicates whether standby replicas should be used for a collection.

tags
Type: Array of Tag structures

An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.

type
Type: string

The type of collection.

Result Syntax

[
    'createCollectionDetail' => [
        'arn' => '<string>',
        'createdDate' => <integer>,
        'description' => '<string>',
        'id' => '<string>',
        'kmsKeyArn' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'standbyReplicas' => 'ENABLED|DISABLED',
        'status' => 'CREATING|DELETING|ACTIVE|FAILED',
        'type' => 'SEARCH|TIMESERIES|VECTORSEARCH',
    ],
]

Result Details

Members
createCollectionDetail
Type: CreateCollectionDetail structure

Details about the collection.

Errors

OcuLimitExceededException:

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

CreateLifecyclePolicy

$result = $client->createLifecyclePolicy([/* ... */]);
$promise = $client->createLifecyclePolicyAsync([/* ... */]);

Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.

Parameter Syntax

$result = $client->createLifecyclePolicy([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'policy' => '<string>', // REQUIRED
    'type' => 'retention', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the lifecycle policy.

name
Required: Yes
Type: string

The name of the lifecycle policy.

policy
Required: Yes
Type: string

The JSON policy document to use as the content for the lifecycle policy.

type
Required: Yes
Type: string

The type of lifecycle policy.

Result Syntax

[
    'lifecyclePolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'retention',
    ],
]

Result Details

Members
lifecyclePolicyDetail
Type: LifecyclePolicyDetail structure

Details about the created lifecycle policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

CreateSecurityConfig

$result = $client->createSecurityConfig([/* ... */]);
$promise = $client->createSecurityConfigAsync([/* ... */]);

Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->createSecurityConfig([
    'clientToken' => '<string>',
    'description' => '<string>',
    'iamIdentityCenterOptions' => [
        'groupAttribute' => 'GroupId|GroupName',
        'instanceArn' => '<string>', // REQUIRED
        'userAttribute' => 'UserId|UserName|Email',
    ],
    'name' => '<string>', // REQUIRED
    'samlOptions' => [
        'groupAttribute' => '<string>',
        'metadata' => '<string>', // REQUIRED
        'sessionTimeout' => <integer>,
        'userAttribute' => '<string>',
    ],
    'type' => 'saml|iamidentitycenter', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the security configuration.

iamIdentityCenterOptions

Describes IAM Identity Center options in the form of a key-value map. This field is required if you specify iamidentitycenter for the type parameter.

name
Required: Yes
Type: string

The name of the security configuration.

samlOptions
Type: SamlConfigOptions structure

Describes SAML options in in the form of a key-value map. This field is required if you specify saml for the type parameter.

type
Required: Yes
Type: string

The type of security configuration.

Result Syntax

[
    'securityConfigDetail' => [
        'configVersion' => '<string>',
        'createdDate' => <integer>,
        'description' => '<string>',
        'iamIdentityCenterOptions' => [
            'applicationArn' => '<string>',
            'applicationDescription' => '<string>',
            'applicationName' => '<string>',
            'groupAttribute' => 'GroupId|GroupName',
            'instanceArn' => '<string>',
            'userAttribute' => 'UserId|UserName|Email',
        ],
        'id' => '<string>',
        'lastModifiedDate' => <integer>,
        'samlOptions' => [
            'groupAttribute' => '<string>',
            'metadata' => '<string>',
            'sessionTimeout' => <integer>,
            'userAttribute' => '<string>',
        ],
        'type' => 'saml|iamidentitycenter',
    ],
]

Result Details

Members
securityConfigDetail
Type: SecurityConfigDetail structure

Details about the created security configuration.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

CreateSecurityPolicy

$result = $client->createSecurityPolicy([/* ... */]);
$promise = $client->createSecurityPolicyAsync([/* ... */]);

Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->createSecurityPolicy([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'policy' => '<string>', // REQUIRED
    'type' => 'encryption|network', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the policy. Typically used to store information about the permissions defined in the policy.

name
Required: Yes
Type: string

The name of the policy.

policy
Required: Yes
Type: string

The JSON policy document to use as the content for the new policy.

type
Required: Yes
Type: string

The type of security policy.

Result Syntax

[
    'securityPolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'encryption|network',
    ],
]

Result Details

Members
securityPolicyDetail
Type: SecurityPolicyDetail structure

Details about the created security policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

CreateVpcEndpoint

$result = $client->createVpcEndpoint([/* ... */]);
$promise = $client->createVpcEndpointAsync([/* ... */]);

Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Parameter Syntax

$result = $client->createVpcEndpoint([
    'clientToken' => '<string>',
    'name' => '<string>', // REQUIRED
    'securityGroupIds' => ['<string>', ...],
    'subnetIds' => ['<string>', ...], // REQUIRED
    'vpcId' => '<string>', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

name
Required: Yes
Type: string

The name of the interface endpoint.

securityGroupIds
Type: Array of strings

The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

subnetIds
Required: Yes
Type: Array of strings

The ID of one or more subnets from which you'll access OpenSearch Serverless.

vpcId
Required: Yes
Type: string

The ID of the VPC from which you'll access OpenSearch Serverless.

Result Syntax

[
    'createVpcEndpointDetail' => [
        'id' => '<string>',
        'name' => '<string>',
        'status' => 'PENDING|DELETING|ACTIVE|FAILED',
    ],
]

Result Details

Members
createVpcEndpointDetail
Type: CreateVpcEndpointDetail structure

Details about the created interface VPC endpoint.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

DeleteAccessPolicy

$result = $client->deleteAccessPolicy([/* ... */]);
$promise = $client->deleteAccessPolicyAsync([/* ... */]);

Deletes an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->deleteAccessPolicy([
    'clientToken' => '<string>',
    'name' => '<string>', // REQUIRED
    'type' => 'data', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

name
Required: Yes
Type: string

The name of the policy to delete.

type
Required: Yes
Type: string

The type of policy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

DeleteCollection

$result = $client->deleteCollection([/* ... */]);
$promise = $client->deleteCollectionAsync([/* ... */]);

Deletes an OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Parameter Syntax

$result = $client->deleteCollection([
    'clientToken' => '<string>',
    'id' => '<string>', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive identifier to ensure idempotency of the request.

id
Required: Yes
Type: string

The unique identifier of the collection. For example, 1iu5usc406kd. The ID is part of the collection endpoint. You can also retrieve it using the ListCollections API.

Result Syntax

[
    'deleteCollectionDetail' => [
        'id' => '<string>',
        'name' => '<string>',
        'status' => 'CREATING|DELETING|ACTIVE|FAILED',
    ],
]

Result Details

Members
deleteCollectionDetail
Type: DeleteCollectionDetail structure

Details of the deleted collection.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

DeleteLifecyclePolicy

$result = $client->deleteLifecyclePolicy([/* ... */]);
$promise = $client->deleteLifecyclePolicyAsync([/* ... */]);

Deletes an OpenSearch Serverless lifecycle policy. For more information, see Deleting data lifecycle policies.

Parameter Syntax

$result = $client->deleteLifecyclePolicy([
    'clientToken' => '<string>',
    'name' => '<string>', // REQUIRED
    'type' => 'retention', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

name
Required: Yes
Type: string

The name of the policy to delete.

type
Required: Yes
Type: string

The type of lifecycle policy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

DeleteSecurityConfig

$result = $client->deleteSecurityConfig([/* ... */]);
$promise = $client->deleteSecurityConfigAsync([/* ... */]);

Deletes a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->deleteSecurityConfig([
    'clientToken' => '<string>',
    'id' => '<string>', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

id
Required: Yes
Type: string

The security configuration identifier. For SAML the ID will be saml/<accountId>/<idpProviderName>. For example, saml/123456789123/OKTADev.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

DeleteSecurityPolicy

$result = $client->deleteSecurityPolicy([/* ... */]);
$promise = $client->deleteSecurityPolicyAsync([/* ... */]);

Deletes an OpenSearch Serverless security policy.

Parameter Syntax

$result = $client->deleteSecurityPolicy([
    'clientToken' => '<string>',
    'name' => '<string>', // REQUIRED
    'type' => 'encryption|network', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

name
Required: Yes
Type: string

The name of the policy to delete.

type
Required: Yes
Type: string

The type of policy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

DeleteVpcEndpoint

$result = $client->deleteVpcEndpoint([/* ... */]);
$promise = $client->deleteVpcEndpointAsync([/* ... */]);

Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Parameter Syntax

$result = $client->deleteVpcEndpoint([
    'clientToken' => '<string>',
    'id' => '<string>', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

id
Required: Yes
Type: string

The VPC endpoint identifier.

Result Syntax

[
    'deleteVpcEndpointDetail' => [
        'id' => '<string>',
        'name' => '<string>',
        'status' => 'PENDING|DELETING|ACTIVE|FAILED',
    ],
]

Result Details

Members
deleteVpcEndpointDetail
Type: DeleteVpcEndpointDetail structure

Details about the deleted endpoint.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

GetAccessPolicy

$result = $client->getAccessPolicy([/* ... */]);
$promise = $client->getAccessPolicyAsync([/* ... */]);

Returns an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->getAccessPolicy([
    'name' => '<string>', // REQUIRED
    'type' => 'data', // REQUIRED
]);

Parameter Details

Members
name
Required: Yes
Type: string

The name of the access policy.

type
Required: Yes
Type: string

Tye type of policy. Currently, the only supported value is data.

Result Syntax

[
    'accessPolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'data',
    ],
]

Result Details

Members
accessPolicyDetail
Type: AccessPolicyDetail structure

Details about the requested access policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

GetAccountSettings

$result = $client->getAccountSettings([/* ... */]);
$promise = $client->getAccountSettingsAsync([/* ... */]);

Returns account-level settings related to OpenSearch Serverless.

Parameter Syntax

$result = $client->getAccountSettings([
]);

Parameter Details

Members

Result Syntax

[
    'accountSettingsDetail' => [
        'capacityLimits' => [
            'maxIndexingCapacityInOCU' => <integer>,
            'maxSearchCapacityInOCU' => <integer>,
        ],
    ],
]

Result Details

Members
accountSettingsDetail
Type: AccountSettingsDetail structure

OpenSearch Serverless-related details for the current account.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

GetPoliciesStats

$result = $client->getPoliciesStats([/* ... */]);
$promise = $client->getPoliciesStatsAsync([/* ... */]);

Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.

Parameter Syntax

$result = $client->getPoliciesStats([
]);

Parameter Details

Members

Result Syntax

[
    'AccessPolicyStats' => [
        'DataPolicyCount' => <integer>,
    ],
    'LifecyclePolicyStats' => [
        'RetentionPolicyCount' => <integer>,
    ],
    'SecurityConfigStats' => [
        'SamlConfigCount' => <integer>,
    ],
    'SecurityPolicyStats' => [
        'EncryptionPolicyCount' => <integer>,
        'NetworkPolicyCount' => <integer>,
    ],
    'TotalPolicyCount' => <integer>,
]

Result Details

Members
AccessPolicyStats
Type: AccessPolicyStats structure

Information about the data access policies in your account.

LifecyclePolicyStats
Type: LifecyclePolicyStats structure

Information about the lifecycle policies in your account.

SecurityConfigStats
Type: SecurityConfigStats structure

Information about the security configurations in your account.

SecurityPolicyStats
Type: SecurityPolicyStats structure

Information about the security policies in your account.

TotalPolicyCount
Type: long (int|float)

The total number of OpenSearch Serverless security policies and configurations in your account.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

GetSecurityConfig

$result = $client->getSecurityConfig([/* ... */]);
$promise = $client->getSecurityConfigAsync([/* ... */]);

Returns information about an OpenSearch Serverless security configuration. For more information, see SAML authentication for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->getSecurityConfig([
    'id' => '<string>', // REQUIRED
]);

Parameter Details

Members
id
Required: Yes
Type: string

The unique identifier of the security configuration.

Result Syntax

[
    'securityConfigDetail' => [
        'configVersion' => '<string>',
        'createdDate' => <integer>,
        'description' => '<string>',
        'iamIdentityCenterOptions' => [
            'applicationArn' => '<string>',
            'applicationDescription' => '<string>',
            'applicationName' => '<string>',
            'groupAttribute' => 'GroupId|GroupName',
            'instanceArn' => '<string>',
            'userAttribute' => 'UserId|UserName|Email',
        ],
        'id' => '<string>',
        'lastModifiedDate' => <integer>,
        'samlOptions' => [
            'groupAttribute' => '<string>',
            'metadata' => '<string>',
            'sessionTimeout' => <integer>,
            'userAttribute' => '<string>',
        ],
        'type' => 'saml|iamidentitycenter',
    ],
]

Result Details

Members
securityConfigDetail
Type: SecurityConfigDetail structure

Details of the requested security configuration.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

GetSecurityPolicy

$result = $client->getSecurityPolicy([/* ... */]);
$promise = $client->getSecurityPolicyAsync([/* ... */]);

Returns information about a configured OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->getSecurityPolicy([
    'name' => '<string>', // REQUIRED
    'type' => 'encryption|network', // REQUIRED
]);

Parameter Details

Members
name
Required: Yes
Type: string

The name of the security policy.

type
Required: Yes
Type: string

The type of security policy.

Result Syntax

[
    'securityPolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'encryption|network',
    ],
]

Result Details

Members
securityPolicyDetail
Type: SecurityPolicyDetail structure

Details about the requested security policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListAccessPolicies

$result = $client->listAccessPolicies([/* ... */]);
$promise = $client->listAccessPoliciesAsync([/* ... */]);

Returns information about a list of OpenSearch Serverless access policies.

Parameter Syntax

$result = $client->listAccessPolicies([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'resource' => ['<string>', ...],
    'type' => 'data', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.

nextToken
Type: string

If your initial ListAccessPolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListAccessPolicies operations, which returns results in the next page.

resource
Type: Array of strings

Resource filters (can be collections or indexes) that policies can apply to.

type
Required: Yes
Type: string

The type of access policy.

Result Syntax

[
    'accessPolicySummaries' => [
        [
            'createdDate' => <integer>,
            'description' => '<string>',
            'lastModifiedDate' => <integer>,
            'name' => '<string>',
            'policyVersion' => '<string>',
            'type' => 'data',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
accessPolicySummaries
Type: Array of AccessPolicySummary structures

Details about the requested access policies.

nextToken
Type: string

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListCollections

$result = $client->listCollections([/* ... */]);
$promise = $client->listCollectionsAsync([/* ... */]);

Lists all OpenSearch Serverless collections. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Make sure to include an empty request body {} if you don't include any collection filters in the request.

Parameter Syntax

$result = $client->listCollections([
    'collectionFilters' => [
        'name' => '<string>',
        'status' => 'CREATING|DELETING|ACTIVE|FAILED',
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
collectionFilters
Type: CollectionFilters structure

A list of filter names and values that you can use for requests.

maxResults
Type: int

The maximum number of results to return. Default is 20. You can use nextToken to get the next page of results.

nextToken
Type: string

If your initial ListCollections operation returns a nextToken, you can include the returned nextToken in subsequent ListCollections operations, which returns results in the next page.

Result Syntax

[
    'collectionSummaries' => [
        [
            'arn' => '<string>',
            'id' => '<string>',
            'name' => '<string>',
            'status' => 'CREATING|DELETING|ACTIVE|FAILED',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
collectionSummaries
Type: Array of CollectionSummary structures

Details about each collection.

nextToken
Type: string

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListLifecyclePolicies

$result = $client->listLifecyclePolicies([/* ... */]);
$promise = $client->listLifecyclePoliciesAsync([/* ... */]);

Returns a list of OpenSearch Serverless lifecycle policies. For more information, see Viewing data lifecycle policies.

Parameter Syntax

$result = $client->listLifecyclePolicies([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'resources' => ['<string>', ...],
    'type' => 'retention', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

An optional parameter that specifies the maximum number of results to return. You can use use nextToken to get the next page of results. The default is 10.

nextToken
Type: string

If your initial ListLifecyclePolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListLifecyclePolicies operations, which returns results in the next page.

resources
Type: Array of strings

Resource filters that policies can apply to. Currently, the only supported resource type is index.

type
Required: Yes
Type: string

The type of lifecycle policy.

Result Syntax

[
    'lifecyclePolicySummaries' => [
        [
            'createdDate' => <integer>,
            'description' => '<string>',
            'lastModifiedDate' => <integer>,
            'name' => '<string>',
            'policyVersion' => '<string>',
            'type' => 'retention',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
lifecyclePolicySummaries
Type: Array of LifecyclePolicySummary structures

Details about the requested lifecycle policies.

nextToken
Type: string

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListSecurityConfigs

$result = $client->listSecurityConfigs([/* ... */]);
$promise = $client->listSecurityConfigsAsync([/* ... */]);

Returns information about configured OpenSearch Serverless security configurations. For more information, see SAML authentication for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->listSecurityConfigs([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'type' => 'saml|iamidentitycenter', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.

nextToken
Type: string

If your initial ListSecurityConfigs operation returns a nextToken, you can include the returned nextToken in subsequent ListSecurityConfigs operations, which returns results in the next page.

type
Required: Yes
Type: string

The type of security configuration.

Result Syntax

[
    'nextToken' => '<string>',
    'securityConfigSummaries' => [
        [
            'configVersion' => '<string>',
            'createdDate' => <integer>,
            'description' => '<string>',
            'id' => '<string>',
            'lastModifiedDate' => <integer>,
            'type' => 'saml|iamidentitycenter',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

securityConfigSummaries
Type: Array of SecurityConfigSummary structures

Details about the security configurations in your account.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListSecurityPolicies

$result = $client->listSecurityPolicies([/* ... */]);
$promise = $client->listSecurityPoliciesAsync([/* ... */]);

Returns information about configured OpenSearch Serverless security policies.

Parameter Syntax

$result = $client->listSecurityPolicies([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'resource' => ['<string>', ...],
    'type' => 'encryption|network', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.

nextToken
Type: string

If your initial ListSecurityPolicies operation returns a nextToken, you can include the returned nextToken in subsequent ListSecurityPolicies operations, which returns results in the next page.

resource
Type: Array of strings

Resource filters (can be collection or indexes) that policies can apply to.

type
Required: Yes
Type: string

The type of policy.

Result Syntax

[
    'nextToken' => '<string>',
    'securityPolicySummaries' => [
        [
            'createdDate' => <integer>,
            'description' => '<string>',
            'lastModifiedDate' => <integer>,
            'name' => '<string>',
            'policyVersion' => '<string>',
            'type' => 'encryption|network',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

securityPolicySummaries
Type: Array of SecurityPolicySummary structures

Details about the security policies in your account.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

Returns the tags for an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.

Parameter Syntax

$result = $client->listTagsForResource([
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.

Result Syntax

[
    'tags' => [
        [
            'key' => '<string>',
            'value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
tags
Type: Array of Tag structures

The tags associated with the resource.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ListVpcEndpoints

$result = $client->listVpcEndpoints([/* ... */]);
$promise = $client->listVpcEndpointsAsync([/* ... */]);

Returns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Parameter Syntax

$result = $client->listVpcEndpoints([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'vpcEndpointFilters' => [
        'status' => 'PENDING|DELETING|ACTIVE|FAILED',
    ],
]);

Parameter Details

Members
maxResults
Type: int

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.

nextToken
Type: string

If your initial ListVpcEndpoints operation returns a nextToken, you can include the returned nextToken in subsequent ListVpcEndpoints operations, which returns results in the next page.

vpcEndpointFilters
Type: VpcEndpointFilters structure

Filter the results according to the current status of the VPC endpoint. Possible statuses are CREATING, DELETING, UPDATING, ACTIVE, and FAILED.

Result Syntax

[
    'nextToken' => '<string>',
    'vpcEndpointSummaries' => [
        [
            'id' => '<string>',
            'name' => '<string>',
            'status' => 'PENDING|DELETING|ACTIVE|FAILED',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

vpcEndpointSummaries
Type: Array of VpcEndpointSummary structures

Details about each VPC endpoint, including the name and current status.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Associates tags with an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.

Parameter Syntax

$result = $client->tagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tags' => [ // REQUIRED
        [
            'key' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.

tags
Required: Yes
Type: Array of Tag structures

A list of tags (key-value pairs) to add to the resource. All tag keys in the request must be unique.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see Tagging Amazon OpenSearch Serverless collections.

Parameter Syntax

$result = $client->untagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource to remove tags from. The resource must be active (not in the DELETING state), and must be owned by the account ID included in the request.

tagKeys
Required: Yes
Type: Array of strings

The tag or set of tags to remove from the resource. All tag keys in the request must be unique.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

UpdateAccessPolicy

$result = $client->updateAccessPolicy([/* ... */]);
$promise = $client->updateAccessPolicyAsync([/* ... */]);

Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->updateAccessPolicy([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'policy' => '<string>',
    'policyVersion' => '<string>', // REQUIRED
    'type' => 'data', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the policy. Typically used to store information about the permissions defined in the policy.

name
Required: Yes
Type: string

The name of the policy.

policy
Type: string

The JSON policy document to use as the content for the policy.

policyVersion
Required: Yes
Type: string

The version of the policy being updated.

type
Required: Yes
Type: string

The type of policy.

Result Syntax

[
    'accessPolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'data',
    ],
]

Result Details

Members
accessPolicyDetail
Type: AccessPolicyDetail structure

Details about the updated access policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

UpdateAccountSettings

$result = $client->updateAccountSettings([/* ... */]);
$promise = $client->updateAccountSettingsAsync([/* ... */]);

Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->updateAccountSettings([
    'capacityLimits' => [
        'maxIndexingCapacityInOCU' => <integer>,
        'maxSearchCapacityInOCU' => <integer>,
    ],
]);

Parameter Details

Members
capacityLimits
Type: CapacityLimits structure

The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.

Result Syntax

[
    'accountSettingsDetail' => [
        'capacityLimits' => [
            'maxIndexingCapacityInOCU' => <integer>,
            'maxSearchCapacityInOCU' => <integer>,
        ],
    ],
]

Result Details

Members
accountSettingsDetail
Type: AccountSettingsDetail structure

OpenSearch Serverless-related settings for the current Amazon Web Services account.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

UpdateCollection

$result = $client->updateCollection([/* ... */]);
$promise = $client->updateCollectionAsync([/* ... */]);

Updates an OpenSearch Serverless collection.

Parameter Syntax

$result = $client->updateCollection([
    'clientToken' => '<string>',
    'description' => '<string>',
    'id' => '<string>', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the collection.

id
Required: Yes
Type: string

The unique identifier of the collection.

Result Syntax

[
    'updateCollectionDetail' => [
        'arn' => '<string>',
        'createdDate' => <integer>,
        'description' => '<string>',
        'id' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'status' => 'CREATING|DELETING|ACTIVE|FAILED',
        'type' => 'SEARCH|TIMESERIES|VECTORSEARCH',
    ],
]

Result Details

Members
updateCollectionDetail
Type: UpdateCollectionDetail structure

Details about the updated collection.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

UpdateLifecyclePolicy

$result = $client->updateLifecyclePolicy([/* ... */]);
$promise = $client->updateLifecyclePolicyAsync([/* ... */]);

Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.

Parameter Syntax

$result = $client->updateLifecyclePolicy([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'policy' => '<string>',
    'policyVersion' => '<string>', // REQUIRED
    'type' => 'retention', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

A unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the lifecycle policy.

name
Required: Yes
Type: string

The name of the policy.

policy
Type: string

The JSON policy document to use as the content for the lifecycle policy.

policyVersion
Required: Yes
Type: string

The version of the policy being updated.

type
Required: Yes
Type: string

The type of lifecycle policy.

Result Syntax

[
    'lifecyclePolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'retention',
    ],
]

Result Details

Members
lifecyclePolicyDetail
Type: LifecyclePolicyDetail structure

Details about the updated lifecycle policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

UpdateSecurityConfig

$result = $client->updateSecurityConfig([/* ... */]);
$promise = $client->updateSecurityConfigAsync([/* ... */]);

Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->updateSecurityConfig([
    'clientToken' => '<string>',
    'configVersion' => '<string>', // REQUIRED
    'description' => '<string>',
    'iamIdentityCenterOptionsUpdates' => [
        'groupAttribute' => 'GroupId|GroupName',
        'userAttribute' => 'UserId|UserName|Email',
    ],
    'id' => '<string>', // REQUIRED
    'samlOptions' => [
        'groupAttribute' => '<string>',
        'metadata' => '<string>', // REQUIRED
        'sessionTimeout' => <integer>,
        'userAttribute' => '<string>',
    ],
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

configVersion
Required: Yes
Type: string

The version of the security configuration to be updated. You can find the most recent version of a security configuration using the GetSecurityPolicy command.

description
Type: string

A description of the security configuration.

iamIdentityCenterOptionsUpdates

Describes IAM Identity Center options in the form of a key-value map.

id
Required: Yes
Type: string

The security configuration identifier. For SAML the ID will be saml/<accountId>/<idpProviderName>. For example, saml/123456789123/OKTADev.

samlOptions
Type: SamlConfigOptions structure

SAML options in in the form of a key-value map.

Result Syntax

[
    'securityConfigDetail' => [
        'configVersion' => '<string>',
        'createdDate' => <integer>,
        'description' => '<string>',
        'iamIdentityCenterOptions' => [
            'applicationArn' => '<string>',
            'applicationDescription' => '<string>',
            'applicationName' => '<string>',
            'groupAttribute' => 'GroupId|GroupName',
            'instanceArn' => '<string>',
            'userAttribute' => 'UserId|UserName|Email',
        ],
        'id' => '<string>',
        'lastModifiedDate' => <integer>,
        'samlOptions' => [
            'groupAttribute' => '<string>',
            'metadata' => '<string>',
            'sessionTimeout' => <integer>,
            'userAttribute' => '<string>',
        ],
        'type' => 'saml|iamidentitycenter',
    ],
]

Result Details

Members
securityConfigDetail
Type: SecurityConfigDetail structure

Details about the updated security configuration.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

UpdateSecurityPolicy

$result = $client->updateSecurityPolicy([/* ... */]);
$promise = $client->updateSecurityPolicyAsync([/* ... */]);

Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

Parameter Syntax

$result = $client->updateSecurityPolicy([
    'clientToken' => '<string>',
    'description' => '<string>',
    'name' => '<string>', // REQUIRED
    'policy' => '<string>',
    'policyVersion' => '<string>', // REQUIRED
    'type' => 'encryption|network', // REQUIRED
]);

Parameter Details

Members
clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

description
Type: string

A description of the policy. Typically used to store information about the permissions defined in the policy.

name
Required: Yes
Type: string

The name of the policy.

policy
Type: string

The JSON policy document to use as the content for the new policy.

policyVersion
Required: Yes
Type: string

The version of the policy being updated.

type
Required: Yes
Type: string

The type of access policy.

Result Syntax

[
    'securityPolicyDetail' => [
        'createdDate' => <integer>,
        'description' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'policy' => [
        ],
        'policyVersion' => '<string>',
        'type' => 'encryption|network',
    ],
]

Result Details

Members
securityPolicyDetail
Type: SecurityPolicyDetail structure

Details about the updated security policy.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ResourceNotFoundException:

Thrown when accessing or deleting a resource that does not exist.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

ServiceQuotaExceededException:

Thrown when you attempt to create more resources than the service allows based on service quotas.

UpdateVpcEndpoint

$result = $client->updateVpcEndpoint([/* ... */]);
$promise = $client->updateVpcEndpointAsync([/* ... */]);

Updates an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Parameter Syntax

$result = $client->updateVpcEndpoint([
    'addSecurityGroupIds' => ['<string>', ...],
    'addSubnetIds' => ['<string>', ...],
    'clientToken' => '<string>',
    'id' => '<string>', // REQUIRED
    'removeSecurityGroupIds' => ['<string>', ...],
    'removeSubnetIds' => ['<string>', ...],
]);

Parameter Details

Members
addSecurityGroupIds
Type: Array of strings

The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

addSubnetIds
Type: Array of strings

The ID of one or more subnets to add to the endpoint.

clientToken
Type: string

Unique, case-sensitive identifier to ensure idempotency of the request.

id
Required: Yes
Type: string

The unique identifier of the interface endpoint to update.

removeSecurityGroupIds
Type: Array of strings

The unique identifiers of the security groups to remove from the endpoint.

removeSubnetIds
Type: Array of strings

The unique identifiers of the subnets to remove from the endpoint.

Result Syntax

[
    'UpdateVpcEndpointDetail' => [
        'id' => '<string>',
        'lastModifiedDate' => <integer>,
        'name' => '<string>',
        'securityGroupIds' => ['<string>', ...],
        'status' => 'PENDING|DELETING|ACTIVE|FAILED',
        'subnetIds' => ['<string>', ...],
    ],
]

Result Details

Members
UpdateVpcEndpointDetail
Type: UpdateVpcEndpointDetail structure

Details about the updated VPC endpoint.

Errors

InternalServerException:

Thrown when an error internal to the service occurs while processing a request.

ConflictException:

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

ValidationException:

Thrown when the HTTP request contains invalid input or is missing required input.

Shapes

AccessPolicyDetail

Description

Details about an OpenSearch Serverless access policy.

Members
createdDate
Type: long (int|float)

The date the policy was created.

description
Type: string

The description of the policy.

lastModifiedDate
Type: long (int|float)

The timestamp of when the policy was last modified.

name
Type: string

The name of the policy.

policy
Type: document (null|bool|string|numeric) or an (array|associative array) whose members are all valid documents

The JSON policy document without any whitespaces.

policyVersion
Type: string

The version of the policy.

type
Type: string

The type of access policy.

AccessPolicyStats

Description

Statistics for an OpenSearch Serverless access policy.

Members
DataPolicyCount
Type: long (int|float)

The number of data access policies in the current account.

AccessPolicySummary

Description

A summary of the data access policy.

Members
createdDate
Type: long (int|float)

The Epoch time when the access policy was created.

description
Type: string

The description of the access policy.

lastModifiedDate
Type: long (int|float)

The date and time when the collection was last modified.

name
Type: string

The name of the access policy.

policyVersion
Type: string

The version of the policy.

type
Type: string

The type of access policy. Currently, the only available type is data.

AccountSettingsDetail

Description

OpenSearch Serverless-related information for the current account.

Members
capacityLimits
Type: CapacityLimits structure

The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.

CapacityLimits

Description

The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see Managing capacity limits for Amazon OpenSearch Serverless.

Members
maxIndexingCapacityInOCU
Type: int

The maximum indexing capacity for collections.

maxSearchCapacityInOCU
Type: int

The maximum search capacity for collections.

CollectionDetail

Description

Details about each OpenSearch Serverless collection, including the collection endpoint and the OpenSearch Dashboards endpoint.

Members
arn
Type: string

The Amazon Resource Name (ARN) of the collection.

collectionEndpoint
Type: string

Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.

createdDate
Type: long (int|float)

The Epoch time when the collection was created.

dashboardEndpoint
Type: string

Collection-specific endpoint used to access OpenSearch Dashboards.

description
Type: string

A description of the collection.

failureCode
Type: string

A failure code associated with the request.

failureMessage
Type: string

A message associated with the failure code.

id
Type: string

A unique identifier for the collection.

kmsKeyArn
Type: string

The ARN of the Amazon Web Services KMS key used to encrypt the collection.

lastModifiedDate
Type: long (int|float)

The date and time when the collection was last modified.

name
Type: string

The name of the collection.

standbyReplicas
Type: string

Details about an OpenSearch Serverless collection.

status
Type: string

The current status of the collection.

type
Type: string

The type of collection.

CollectionErrorDetail

Description

Error information for an OpenSearch Serverless request.

Members
errorCode
Type: string

The error code for the request. For example, NOT_FOUND.

errorMessage
Type: string

A description of the error. For example, The specified Collection is not found.

id
Type: string

If the request contains collection IDs, the response includes the IDs provided in the request.

name
Type: string

If the request contains collection names, the response includes the names provided in the request.

CollectionFilters

Description

A list of filter keys that you can use for LIST, UPDATE, and DELETE requests to OpenSearch Serverless collections.

Members
name
Type: string

The name of the collection.

status
Type: string

The current status of the collection.

CollectionSummary

Description

Details about each OpenSearch Serverless collection.

Members
arn
Type: string

The Amazon Resource Name (ARN) of the collection.

id
Type: string

The unique identifier of the collection.

name
Type: string

The name of the collection.

status
Type: string

The current status of the collection.

ConflictException

Description

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.

Members
message
Type: string

CreateCollectionDetail

Description

Details about the created OpenSearch Serverless collection.

Members
arn
Type: string

The Amazon Resource Name (ARN) of the collection.

createdDate
Type: long (int|float)

The Epoch time when the collection was created.

description
Type: string

A description of the collection.

id
Type: string

The unique identifier of the collection.

kmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the KMS key with which to encrypt the collection.

lastModifiedDate
Type: long (int|float)

The date and time when the collection was last modified.

name
Type: string

The name of the collection.

standbyReplicas
Type: string

Creates details about an OpenSearch Serverless collection.

status
Type: string

The current status of the collection.

type
Type: string

The type of collection.

CreateIamIdentityCenterConfigOptions

Description

Describes IAM Identity Center options for creating an OpenSearch Serverless security configuration in the form of a key-value map.

Members
groupAttribute
Type: string

The group attribute for this IAM Identity Center integration. Defaults to GroupId.

instanceArn
Required: Yes
Type: string

The ARN of the IAM Identity Center instance used to integrate with OpenSearch Serverless.

userAttribute
Type: string

The user attribute for this IAM Identity Center integration. Defaults to UserId.

CreateVpcEndpointDetail

Description

Creation details for an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

Members
id
Type: string

The unique identifier of the endpoint.

name
Type: string

The name of the endpoint.

status
Type: string

The current status in the endpoint creation process.

DeleteCollectionDetail

Description

Details about a deleted OpenSearch Serverless collection.

Members
id
Type: string

The unique identifier of the collection.

name
Type: string

The name of the collection.

status
Type: string

The current status of the collection.

DeleteVpcEndpointDetail

Description

Deletion details for an OpenSearch Serverless-managed interface endpoint.

Members
id
Type: string

The unique identifier of the endpoint.

name
Type: string

The name of the endpoint.

status
Type: string

The current status of the endpoint deletion process.

Document

Members

EffectiveLifecyclePolicyDetail

Description

Error information for an OpenSearch Serverless request.

Members
noMinRetentionPeriod
Type: boolean

The minimum number of index retention days set. That is an optional param that will return as true if the minimum number of days or hours is not set to a index resource.

policyName
Type: string

The name of the lifecycle policy.

resource
Type: string

The name of the OpenSearch Serverless index resource.

resourceType
Type: string

The type of OpenSearch Serverless resource. Currently, the only supported resource is index.

retentionPeriod
Type: string

The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.

type
Type: string

The type of lifecycle policy.

EffectiveLifecyclePolicyErrorDetail

Description

Error information for an OpenSearch Serverless request.

Members
errorCode
Type: string

The error code for the request.

errorMessage
Type: string

A description of the error. For example, The specified Index resource is not found.

resource
Type: string

The name of OpenSearch Serverless index resource.

type
Type: string

The type of lifecycle policy.

IamIdentityCenterConfigOptions

Description

Describes IAM Identity Center options for an OpenSearch Serverless security configuration in the form of a key-value map.

Members
applicationArn
Type: string

The ARN of the IAM Identity Center application used to integrate with OpenSearch Serverless.

applicationDescription
Type: string

The description of the IAM Identity Center application used to integrate with OpenSearch Serverless.

applicationName
Type: string

The name of the IAM Identity Center application used to integrate with OpenSearch Serverless.

groupAttribute
Type: string

The group attribute for this IAM Identity Center integration. Defaults to GroupId.

instanceArn
Type: string

The ARN of the IAM Identity Center instance used to integrate with OpenSearch Serverless.

userAttribute
Type: string

The user attribute for this IAM Identity Center integration. Defaults to UserId

InternalServerException

Description

Thrown when an error internal to the service occurs while processing a request.

Members
message
Type: string

LifecyclePolicyDetail

Description

Details about an OpenSearch Serverless lifecycle policy.

Members
createdDate
Type: long (int|float)

The date the lifecycle policy was created.

description
Type: string

The description of the lifecycle policy.

lastModifiedDate
Type: long (int|float)

The timestamp of when the lifecycle policy was last modified.

name
Type: string

The name of the lifecycle policy.

policy
Type: document (null|bool|string|numeric) or an (array|associative array) whose members are all valid documents

The JSON policy document without any whitespaces.

policyVersion
Type: string

The version of the lifecycle policy.

type
Type: string

The type of lifecycle policy.

LifecyclePolicyErrorDetail

Description

Error information for an OpenSearch Serverless request.

Members
errorCode
Type: string

The error code for the request. For example, NOT_FOUND.

errorMessage
Type: string

A description of the error. For example, The specified Lifecycle Policy is not found.

name
Type: string

The name of the lifecycle policy.

type
Type: string

The type of lifecycle policy.

LifecyclePolicyIdentifier

Description

The unique identifiers of policy types and policy names.

Members
name
Required: Yes
Type: string

The name of the lifecycle policy.

type
Required: Yes
Type: string

The type of lifecycle policy.

LifecyclePolicyResourceIdentifier

Description

The unique identifiers of policy types and resource names.

Members
resource
Required: Yes
Type: string

The name of the OpenSearch Serverless ilndex resource.

type
Required: Yes
Type: string

The type of lifecycle policy.

LifecyclePolicyStats

Description

Statistics for an OpenSearch Serverless lifecycle policy.

Members
RetentionPolicyCount
Type: long (int|float)

The number of retention lifecycle policies in the current account.

LifecyclePolicySummary

Description

A summary of the lifecycle policy.

Members
createdDate
Type: long (int|float)

The Epoch time when the lifecycle policy was created.

description
Type: string

The description of the lifecycle policy.

lastModifiedDate
Type: long (int|float)

The date and time when the lifecycle policy was last modified.

name
Type: string

The name of the lifecycle policy.

policyVersion
Type: string

The version of the lifecycle policy.

type
Type: string

The type of lifecycle policy.

OcuLimitExceededException

Description

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

Members
message
Required: Yes
Type: string

Description of the error.

ResourceNotFoundException

Description

Thrown when accessing or deleting a resource that does not exist.

Members
message
Type: string

SamlConfigOptions

Description

Describes SAML options for an OpenSearch Serverless security configuration in the form of a key-value map.

Members
groupAttribute
Type: string

The group attribute for this SAML integration.

metadata
Required: Yes
Type: string

The XML IdP metadata file generated from your identity provider.

sessionTimeout
Type: int

The session timeout, in minutes. Default is 60 minutes (12 hours).

userAttribute
Type: string

A user attribute for this SAML integration.

SecurityConfigDetail

Description

Details about a security configuration for OpenSearch Serverless.

Members
configVersion
Type: string

The version of the security configuration.

createdDate
Type: long (int|float)

The date the configuration was created.

description
Type: string

The description of the security configuration.

iamIdentityCenterOptions

Describes IAM Identity Center options in the form of a key-value map.

id
Type: string

The unique identifier of the security configuration.

lastModifiedDate
Type: long (int|float)

The timestamp of when the configuration was last modified.

samlOptions
Type: SamlConfigOptions structure

SAML options for the security configuration in the form of a key-value map.

type
Type: string

The type of security configuration.

SecurityConfigStats

Description

Statistics for an OpenSearch Serverless security configuration.

Members
SamlConfigCount
Type: long (int|float)

The number of security configurations in the current account.

SecurityConfigSummary

Description

A summary of a security configuration for OpenSearch Serverless.

Members
configVersion
Type: string

The version of the security configuration.

createdDate
Type: long (int|float)

The Epoch time when the security configuration was created.

description
Type: string

The description of the security configuration.

id
Type: string

The unique identifier of the security configuration.

lastModifiedDate
Type: long (int|float)

The timestamp of when the configuration was last modified.

type
Type: string

The type of security configuration.

SecurityPolicyDetail

Description

Details about an OpenSearch Serverless security policy.

Members
createdDate
Type: long (int|float)

The date the policy was created.

description
Type: string

The description of the security policy.

lastModifiedDate
Type: long (int|float)

The timestamp of when the policy was last modified.

name
Type: string

The name of the policy.

policy
Type: document (null|bool|string|numeric) or an (array|associative array) whose members are all valid documents

The JSON policy document without any whitespaces.

policyVersion
Type: string

The version of the policy.

type
Type: string

The type of security policy.

SecurityPolicyStats

Description

Statistics for an OpenSearch Serverless security policy.

Members
EncryptionPolicyCount
Type: long (int|float)

The number of encryption policies in the current account.

NetworkPolicyCount
Type: long (int|float)

The number of network policies in the current account.

SecurityPolicySummary

Description

A summary of a security policy for OpenSearch Serverless.

Members
createdDate
Type: long (int|float)

The date the policy was created.

description
Type: string

The description of the security policy.

lastModifiedDate
Type: long (int|float)

The timestamp of when the policy was last modified.

name
Type: string

The name of the policy.

policyVersion
Type: string

The version of the policy.

type
Type: string

The type of security policy.

ServiceQuotaExceededException

Description

Thrown when you attempt to create more resources than the service allows based on service quotas.

Members
message
Required: Yes
Type: string

Description of the error.

quotaCode
Type: string

Service Quotas requirement to identify originating quota.

resourceId
Type: string

Identifier of the resource affected.

resourceType
Type: string

Type of the resource affected.

serviceCode
Required: Yes
Type: string

Service Quotas requirement to identify originating service.

Tag

Description

A map of key-value pairs associated to an OpenSearch Serverless resource.

Members
key
Required: Yes
Type: string

The key to use in the tag.

value
Required: Yes
Type: string

The value of the tag.

UpdateCollectionDetail

Description

Details about an updated OpenSearch Serverless collection.

Members
arn
Type: string

The Amazon Resource Name (ARN) of the collection.

createdDate
Type: long (int|float)

The date and time when the collection was created.

description
Type: string

The description of the collection.

id
Type: string

The unique identifier of the collection.

lastModifiedDate
Type: long (int|float)

The date and time when the collection was last modified.

name
Type: string

The name of the collection.

status
Type: string

The current status of the collection.

type
Type: string

The collection type.

UpdateIamIdentityCenterConfigOptions

Description

Describes IAM Identity Center options for updating an OpenSearch Serverless security configuration in the form of a key-value map.

Members
groupAttribute
Type: string

The group attribute for this IAM Identity Center integration. Defaults to GroupId.

userAttribute
Type: string

The user attribute for this IAM Identity Center integration. Defaults to UserId.

UpdateVpcEndpointDetail

Description

Update details for an OpenSearch Serverless-managed interface endpoint.

Members
id
Type: string

The unique identifier of the endpoint.

lastModifiedDate
Type: long (int|float)

The timestamp of when the endpoint was last modified.

name
Type: string

The name of the endpoint.

securityGroupIds
Type: Array of strings

The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

status
Type: string

The current status of the endpoint update process.

subnetIds
Type: Array of strings

The ID of the subnets from which you access OpenSearch Serverless.

ValidationException

Description

Thrown when the HTTP request contains invalid input or is missing required input.

Members
message
Type: string

VpcEndpointDetail

Description

Details about an OpenSearch Serverless-managed interface endpoint.

Members
createdDate
Type: long (int|float)

The date the endpoint was created.

failureCode
Type: string

A failure code associated with the request.

failureMessage
Type: string

A message associated with the failure code.

id
Type: string

The unique identifier of the endpoint.

name
Type: string

The name of the endpoint.

securityGroupIds
Type: Array of strings

The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

status
Type: string

The current status of the endpoint.

subnetIds
Type: Array of strings

The ID of the subnets from which you access OpenSearch Serverless.

vpcId
Type: string

The ID of the VPC from which you access OpenSearch Serverless.

VpcEndpointErrorDetail

Description

Error information for a failed BatchGetVpcEndpoint request.

Members
errorCode
Type: string

The error code for the failed request.

errorMessage
Type: string

An error message describing the reason for the failure.

id
Type: string

The unique identifier of the VPC endpoint.

VpcEndpointFilters

Description

Filter the results of a ListVpcEndpoints request.

Members
status
Type: string

The current status of the endpoint.

VpcEndpointSummary

Description

The VPC endpoint object.

Members
id
Type: string

The unique identifier of the endpoint.

name
Type: string

The name of the endpoint.

status
Type: string

The current status of the endpoint.