1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. opensearch
  6. getDataSource

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    Creates a data source for an Amazon OpenSearch Service domain.

    Using getDataSource

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDataSource(args: GetDataSourceArgs, opts?: InvokeOptions): Promise<GetDataSourceResult>
    function getDataSourceOutput(args: GetDataSourceOutputArgs, opts?: InvokeOutputOptions): Output<GetDataSourceResult>
    def get_data_source(arn: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDataSourceResult
    def get_data_source_output(arn: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOutputOptions] = None) -> Output[GetDataSourceResult]
    func LookupDataSource(ctx *Context, args *LookupDataSourceArgs, opts ...InvokeOption) (*LookupDataSourceResult, error)
    func LookupDataSourceOutput(ctx *Context, args *LookupDataSourceOutputArgs, opts ...InvokeOption) LookupDataSourceResultOutput

    > Note: This function is named LookupDataSource in the Go SDK.

    public static class GetDataSource 
    {
        public static Task<GetDataSourceResult> InvokeAsync(GetDataSourceArgs args, InvokeOptions? opts = null)
        public static Output<GetDataSourceResult> Invoke(GetDataSourceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDataSourceResult> Invoke(GetDataSourceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOptions options)
    public static Output<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOptions options)
    public static Output<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:opensearch:getDataSource
      arguments:
        # arguments dictionary
    data "aws-native_opensearch_get_data_source" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the data source.
    Arn string
    The Amazon Resource Name (ARN) of the data source.
    arn string
    The Amazon Resource Name (ARN) of the data source.
    arn String
    The Amazon Resource Name (ARN) of the data source.
    arn string
    The Amazon Resource Name (ARN) of the data source.
    arn str
    The Amazon Resource Name (ARN) of the data source.
    arn String
    The Amazon Resource Name (ARN) of the data source.

    getDataSource Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the data source.
    DataSourceType Pulumi.AwsNative.OpenSearch.Outputs.DataSourceType
    Description string
    A description of the data source.
    Status Pulumi.AwsNative.OpenSearch.DataSourceStatus
    The status of the data source.
    Arn string
    The Amazon Resource Name (ARN) of the data source.
    DataSourceType DataSourceType
    Description string
    A description of the data source.
    Status DataSourceStatus
    The status of the data source.
    arn string
    The Amazon Resource Name (ARN) of the data source.
    data_source_type object
    description string
    A description of the data source.
    status "ACTIVE" | "DISABLED"
    The status of the data source.
    arn String
    The Amazon Resource Name (ARN) of the data source.
    dataSourceType DataSourceType
    description String
    A description of the data source.
    status DataSourceStatus
    The status of the data source.
    arn string
    The Amazon Resource Name (ARN) of the data source.
    dataSourceType DataSourceType
    description string
    A description of the data source.
    status DataSourceStatus
    The status of the data source.
    arn str
    The Amazon Resource Name (ARN) of the data source.
    data_source_type DataSourceType
    description str
    A description of the data source.
    status DataSourceStatus
    The status of the data source.
    arn String
    The Amazon Resource Name (ARN) of the data source.
    dataSourceType Property Map
    description String
    A description of the data source.
    status "ACTIVE" | "DISABLED"
    The status of the data source.

    Supporting Types

    DataSourceS3GlueDataCatalog

    RoleArn string
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.
    RoleArn string
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.
    role_arn string
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.
    roleArn String
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.
    roleArn string
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.
    role_arn str
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.
    roleArn String
    The ARN of the IAM role that grants OpenSearch Service permission to access the Glue Data Catalog.

    DataSourceStatus

    DataSourceType

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial