Learn R Programming

paws.analytics (version 0.7.0)

opensearchserviceserverless: OpenSearch Service Serverless

Description

Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and security policies.

OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning, configuring, and tuning your OpenSearch clusters. It enables you to easily search and analyze petabytes of data without having to worry about the underlying infrastructure and data management.

To learn more about OpenSearch Serverless, see What is Amazon OpenSearch Serverless?

Usage

opensearchserviceserverless(
  config = list(),
  credentials = list(),
  endpoint = NULL,
  region = NULL
)

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Service syntax

svc <- opensearchserviceserverless(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

batch_get_collectionReturns attributes for one or more collections, including the collection endpoint and the OpenSearch Dashboards endpoint
batch_get_effective_lifecycle_policyReturns a list of successful and failed retrievals for the OpenSearch Serverless indexes
batch_get_lifecycle_policyReturns one or more configured OpenSearch Serverless lifecycle policies
batch_get_vpc_endpointReturns attributes for one or more VPC endpoints associated with the current account
create_access_policyCreates a data access policy for OpenSearch Serverless
create_collectionCreates a new OpenSearch Serverless collection
create_lifecycle_policyCreates a lifecyle policy to be applied to OpenSearch Serverless indexes
create_security_configSpecifies a security configuration for OpenSearch Serverless
create_security_policyCreates a security policy to be used by one or more OpenSearch Serverless collections
create_vpc_endpointCreates an OpenSearch Serverless-managed interface VPC endpoint
delete_access_policyDeletes an OpenSearch Serverless access policy
delete_collectionDeletes an OpenSearch Serverless collection
delete_lifecycle_policyDeletes an OpenSearch Serverless lifecycle policy
delete_security_configDeletes a security configuration for OpenSearch Serverless
delete_security_policyDeletes an OpenSearch Serverless security policy
delete_vpc_endpointDeletes an OpenSearch Serverless-managed interface endpoint
get_access_policyReturns an OpenSearch Serverless access policy
get_account_settingsReturns account-level settings related to OpenSearch Serverless
get_policies_statsReturns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies
get_security_configReturns information about an OpenSearch Serverless security configuration
get_security_policyReturns information about a configured OpenSearch Serverless security policy
list_access_policiesReturns information about a list of OpenSearch Serverless access policies
list_collectionsLists all OpenSearch Serverless collections
list_lifecycle_policiesReturns a list of OpenSearch Serverless lifecycle policies
list_security_configsReturns information about configured OpenSearch Serverless security configurations
list_security_policiesReturns information about configured OpenSearch Serverless security policies
list_tags_for_resourceReturns the tags for an OpenSearch Serverless resource
list_vpc_endpointsReturns the OpenSearch Serverless-managed interface VPC endpoints associated with the current account
tag_resourceAssociates tags with an OpenSearch Serverless resource
untag_resourceRemoves a tag or set of tags from an OpenSearch Serverless resource
update_access_policyUpdates an OpenSearch Serverless access policy
update_account_settingsUpdate the OpenSearch Serverless settings for the current Amazon Web Services account
update_collectionUpdates an OpenSearch Serverless collection
update_lifecycle_policyUpdates an OpenSearch Serverless access policy
update_security_configUpdates a security configuration for OpenSearch Serverless
update_security_policyUpdates an OpenSearch Serverless security policy
update_vpc_endpointUpdates an OpenSearch Serverless-managed interface endpoint

Examples

Run this code
if (FALSE) {
svc <- opensearchserviceserverless()
svc$batch_get_collection(
  Foo = 123
)
}

Run the code above in your browser using DataLab