1. Packages
  2. AWS Classic
  3. API Docs
  4. redshift
  5. getDataShares

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.redshift.getDataShares

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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, nil, 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:redshift/getDataShares:getDataShares
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DataShares List<Pulumi.Aws.RedShift.Inputs.GetDataSharesDataShare>
    An array of all data shares in the current region. See data_shares below.
    DataShares []GetDataSharesDataShare
    An array of all data shares in the current region. See data_shares below.
    dataShares List<GetDataSharesDataShare>
    An array of all data shares in the current region. See data_shares below.
    dataShares GetDataSharesDataShare[]
    An array of all data shares in the current region. See data_shares below.
    data_shares Sequence[GetDataSharesDataShare]
    An array of all data shares in the current region. See data_shares below.
    dataShares List<Property Map>
    An array of all data shares in the current region. See data_shares below.

    getDataShares Result

    The following output properties are available:

    Id string
    AWS region.
    DataShares List<Pulumi.Aws.RedShift.Outputs.GetDataSharesDataShare>
    An array of all data shares in the current region. See data_shares below.
    Id string
    AWS region.
    DataShares []GetDataSharesDataShare
    An array of all data shares in the current region. See data_shares below.
    id String
    AWS region.
    dataShares List<GetDataSharesDataShare>
    An array of all data shares in the current region. See data_shares below.
    id string
    AWS region.
    dataShares GetDataSharesDataShare[]
    An array of all data shares in the current region. See data_shares below.
    id str
    AWS region.
    data_shares Sequence[GetDataSharesDataShare]
    An array of all data shares in the current region. See data_shares below.
    id String
    AWS region.
    dataShares List<Property Map>
    An array of all data shares in the current region. See data_shares below.

    Supporting Types

    GetDataSharesDataShare

    DataShareArn 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.
    DataShareArn 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.
    dataShareArn 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.
    dataShareArn 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.
    data_share_arn 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.
    dataShareArn 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 aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi