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

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.getProducerDataShares

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 Producer Data Shares.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.redshift.getProducerDataShares({
        producerArn: "",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.redshift.get_producer_data_shares(producer_arn="")
    
    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.GetProducerDataShares(ctx, &redshift.GetProducerDataSharesArgs{
    			ProducerArn: "",
    		}, 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.GetProducerDataShares.Invoke(new()
        {
            ProducerArn = "",
        });
    
    });
    
    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.GetProducerDataSharesArgs;
    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.getProducerDataShares(GetProducerDataSharesArgs.builder()
                .producerArn("")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:redshift:getProducerDataShares
          Arguments:
            producerArn:
    

    Using getProducerDataShares

    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 getProducerDataShares(args: GetProducerDataSharesArgs, opts?: InvokeOptions): Promise<GetProducerDataSharesResult>
    function getProducerDataSharesOutput(args: GetProducerDataSharesOutputArgs, opts?: InvokeOptions): Output<GetProducerDataSharesResult>
    def get_producer_data_shares(data_shares: Optional[Sequence[GetProducerDataSharesDataShare]] = None,
                                 producer_arn: Optional[str] = None,
                                 status: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetProducerDataSharesResult
    def get_producer_data_shares_output(data_shares: Optional[pulumi.Input[Sequence[pulumi.Input[GetProducerDataSharesDataShareArgs]]]] = None,
                                 producer_arn: Optional[pulumi.Input[str]] = None,
                                 status: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetProducerDataSharesResult]
    func GetProducerDataShares(ctx *Context, args *GetProducerDataSharesArgs, opts ...InvokeOption) (*GetProducerDataSharesResult, error)
    func GetProducerDataSharesOutput(ctx *Context, args *GetProducerDataSharesOutputArgs, opts ...InvokeOption) GetProducerDataSharesResultOutput

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

    public static class GetProducerDataShares 
    {
        public static Task<GetProducerDataSharesResult> InvokeAsync(GetProducerDataSharesArgs args, InvokeOptions? opts = null)
        public static Output<GetProducerDataSharesResult> Invoke(GetProducerDataSharesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProducerDataSharesResult> getProducerDataShares(GetProducerDataSharesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:redshift/getProducerDataShares:getProducerDataShares
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProducerArn string

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    DataShares List<Pulumi.Aws.RedShift.Inputs.GetProducerDataSharesDataShare>
    An array of all data shares in the producer. See data_shares below.
    Status string
    Status of a datashare in the producer. Valid values are ACTIVE, AUTHORIZED, PENDING_AUTHORIZATION, DEAUTHORIZED, and REJECTED. Omit this argument to return all statuses.
    ProducerArn string

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    DataShares []GetProducerDataSharesDataShare
    An array of all data shares in the producer. See data_shares below.
    Status string
    Status of a datashare in the producer. Valid values are ACTIVE, AUTHORIZED, PENDING_AUTHORIZATION, DEAUTHORIZED, and REJECTED. Omit this argument to return all statuses.
    producerArn String

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    dataShares List<GetProducerDataSharesDataShare>
    An array of all data shares in the producer. See data_shares below.
    status String
    Status of a datashare in the producer. Valid values are ACTIVE, AUTHORIZED, PENDING_AUTHORIZATION, DEAUTHORIZED, and REJECTED. Omit this argument to return all statuses.
    producerArn string

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    dataShares GetProducerDataSharesDataShare[]
    An array of all data shares in the producer. See data_shares below.
    status string
    Status of a datashare in the producer. Valid values are ACTIVE, AUTHORIZED, PENDING_AUTHORIZATION, DEAUTHORIZED, and REJECTED. Omit this argument to return all statuses.
    producer_arn str

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    data_shares Sequence[GetProducerDataSharesDataShare]
    An array of all data shares in the producer. See data_shares below.
    status str
    Status of a datashare in the producer. Valid values are ACTIVE, AUTHORIZED, PENDING_AUTHORIZATION, DEAUTHORIZED, and REJECTED. Omit this argument to return all statuses.
    producerArn String

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    dataShares List<Property Map>
    An array of all data shares in the producer. See data_shares below.
    status String
    Status of a datashare in the producer. Valid values are ACTIVE, AUTHORIZED, PENDING_AUTHORIZATION, DEAUTHORIZED, and REJECTED. Omit this argument to return all statuses.

    getProducerDataShares Result

    The following output properties are available:

    Id string
    Producer ARN.
    ProducerArn string
    ARN (Amazon Resource Name) of the producer.
    DataShares List<Pulumi.Aws.RedShift.Outputs.GetProducerDataSharesDataShare>
    An array of all data shares in the producer. See data_shares below.
    Status string
    Id string
    Producer ARN.
    ProducerArn string
    ARN (Amazon Resource Name) of the producer.
    DataShares []GetProducerDataSharesDataShare
    An array of all data shares in the producer. See data_shares below.
    Status string
    id String
    Producer ARN.
    producerArn String
    ARN (Amazon Resource Name) of the producer.
    dataShares List<GetProducerDataSharesDataShare>
    An array of all data shares in the producer. See data_shares below.
    status String
    id string
    Producer ARN.
    producerArn string
    ARN (Amazon Resource Name) of the producer.
    dataShares GetProducerDataSharesDataShare[]
    An array of all data shares in the producer. See data_shares below.
    status string
    id str
    Producer ARN.
    producer_arn str
    ARN (Amazon Resource Name) of the producer.
    data_shares Sequence[GetProducerDataSharesDataShare]
    An array of all data shares in the producer. See data_shares below.
    status str
    id String
    Producer ARN.
    producerArn String
    ARN (Amazon Resource Name) of the producer.
    dataShares List<Property Map>
    An array of all data shares in the producer. See data_shares below.
    status String

    Supporting Types

    GetProducerDataSharesDataShare

    DataShareArn string
    ARN (Amazon Resource Name) of the data share.
    ManagedBy string
    Identifier of a datashare to show its managing entity.
    ProducerArn string

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    DataShareArn string
    ARN (Amazon Resource Name) of the data share.
    ManagedBy string
    Identifier of a datashare to show its managing entity.
    ProducerArn string

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    dataShareArn String
    ARN (Amazon Resource Name) of the data share.
    managedBy String
    Identifier of a datashare to show its managing entity.
    producerArn String

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    dataShareArn string
    ARN (Amazon Resource Name) of the data share.
    managedBy string
    Identifier of a datashare to show its managing entity.
    producerArn string

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    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

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    dataShareArn String
    ARN (Amazon Resource Name) of the data share.
    managedBy String
    Identifier of a datashare to show its managing entity.
    producerArn String

    Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.

    The following arguments are optional:

    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