1. Packages
  2. AWS
  3. API Docs
  4. redshift
  5. getProducerDataShares
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.redshift.getProducerDataShares

Explore with Pulumi AI

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: "",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.redshift.get_producer_data_shares(producer_arn="")
Copy
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
	})
}
Copy
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 = "",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:redshift:getProducerDataShares
      arguments:
        producerArn: ""
Copy

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>
Copy
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]
Copy
func GetProducerDataShares(ctx *Context, args *GetProducerDataSharesArgs, opts ...InvokeOption) (*GetProducerDataSharesResult, error)
func GetProducerDataSharesOutput(ctx *Context, args *GetProducerDataSharesOutputArgs, opts ...InvokeOption) GetProducerDataSharesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProducerDataSharesResult> getProducerDataShares(GetProducerDataSharesArgs args, InvokeOptions options)
public static Output<GetProducerDataSharesResult> getProducerDataShares(GetProducerDataSharesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:redshift/getProducerDataShares:getProducerDataShares
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProducerArn This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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<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 This property is required. string
ARN (Amazon Resource Name) of the data share.
ManagedBy This property is required. string
Identifier of a datashare to show its managing entity.
ProducerArn This property is required. string

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

The following arguments are optional:

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

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

The following arguments are optional:

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

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

The following arguments are optional:

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

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

The following arguments are optional:

data_share_arn This property is required. str
ARN (Amazon Resource Name) of the data share.
managed_by This property is required. str
Identifier of a datashare to show its managing entity.
producer_arn This property is required. str

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

The following arguments are optional:

dataShareArn This property is required. String
ARN (Amazon Resource Name) of the data share.
managedBy This property is required. String
Identifier of a datashare to show its managing entity.
producerArn This property is required. 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.