AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.redshift.getDataShares
Explore with Pulumi AI
Data source for managing AWS Redshift Data Shares.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.redshift.getDataShares({});
import pulumi
import pulumi_aws as aws
example = aws.redshift.get_data_shares()
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshift"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redshift.GetDataShares(ctx, &redshift.GetDataSharesArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.RedShift.GetDataShares.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.RedshiftFunctions;
import com.pulumi.aws.redshift.inputs.GetDataSharesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = RedshiftFunctions.getDataShares();
    }
}
variables:
  example:
    fn::invoke:
      function: aws:redshift:getDataShares
      arguments: {}
Using getDataShares
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 getDataShares(args: GetDataSharesArgs, opts?: InvokeOptions): Promise<GetDataSharesResult>
function getDataSharesOutput(args: GetDataSharesOutputArgs, opts?: InvokeOptions): Output<GetDataSharesResult>def get_data_shares(data_shares: Optional[Sequence[GetDataSharesDataShare]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDataSharesResult
def get_data_shares_output(data_shares: Optional[pulumi.Input[Sequence[pulumi.Input[GetDataSharesDataShareArgs]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDataSharesResult]func GetDataShares(ctx *Context, args *GetDataSharesArgs, opts ...InvokeOption) (*GetDataSharesResult, error)
func GetDataSharesOutput(ctx *Context, args *GetDataSharesOutputArgs, opts ...InvokeOption) GetDataSharesResultOutput> Note: This function is named GetDataShares in the Go SDK.
public static class GetDataShares 
{
    public static Task<GetDataSharesResult> InvokeAsync(GetDataSharesArgs args, InvokeOptions? opts = null)
    public static Output<GetDataSharesResult> Invoke(GetDataSharesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataSharesResult> getDataShares(GetDataSharesArgs args, InvokeOptions options)
public static Output<GetDataSharesResult> getDataShares(GetDataSharesArgs args, InvokeOptions options)
fn::invoke:
  function: aws:redshift/getDataShares:getDataShares
  arguments:
    # arguments dictionaryThe following arguments are supported:
- 
List<GetData Shares Data Share> 
- An array of all data shares in the current region. See data_sharesbelow.
- 
[]GetData Shares Data Share 
- An array of all data shares in the current region. See data_sharesbelow.
- 
List<GetData Shares Data Share> 
- An array of all data shares in the current region. See data_sharesbelow.
- 
GetData Shares Data Share[] 
- An array of all data shares in the current region. See data_sharesbelow.
- 
Sequence[GetData Shares Data Share] 
- An array of all data shares in the current region. See data_sharesbelow.
- List<Property Map>
- An array of all data shares in the current region. See data_sharesbelow.
getDataShares Result
The following output properties are available:
- Id string
- AWS region.
- 
List<GetData Shares Data Share> 
- An array of all data shares in the current region. See data_sharesbelow.
- Id string
- AWS region.
- 
[]GetData Shares Data Share 
- An array of all data shares in the current region. See data_sharesbelow.
- id String
- AWS region.
- 
List<GetData Shares Data Share> 
- An array of all data shares in the current region. See data_sharesbelow.
- id string
- AWS region.
- 
GetData Shares Data Share[] 
- An array of all data shares in the current region. See data_sharesbelow.
- id str
- AWS region.
- 
Sequence[GetData Shares Data Share] 
- An array of all data shares in the current region. See data_sharesbelow.
- id String
- AWS region.
- List<Property Map>
- An array of all data shares in the current region. See data_sharesbelow.
Supporting Types
GetDataSharesDataShare    
- string
- ARN (Amazon Resource Name) of the data share.
- ManagedBy string
- Identifier of a datashare to show its managing entity.
- ProducerArn string
- ARN (Amazon Resource Name) of the producer.
- string
- ARN (Amazon Resource Name) of the data share.
- ManagedBy string
- Identifier of a datashare to show its managing entity.
- ProducerArn string
- ARN (Amazon Resource Name) of the producer.
- String
- ARN (Amazon Resource Name) of the data share.
- managedBy String
- Identifier of a datashare to show its managing entity.
- producerArn String
- ARN (Amazon Resource Name) of the producer.
- string
- ARN (Amazon Resource Name) of the data share.
- managedBy string
- Identifier of a datashare to show its managing entity.
- producerArn string
- ARN (Amazon Resource Name) of the producer.
- str
- ARN (Amazon Resource Name) of the data share.
- managed_by str
- Identifier of a datashare to show its managing entity.
- producer_arn str
- ARN (Amazon Resource Name) of the producer.
- String
- ARN (Amazon Resource Name) of the data share.
- managedBy String
- Identifier of a datashare to show its managing entity.
- producerArn String
- ARN (Amazon Resource Name) of the producer.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.