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: "",
});
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)
public static Output<GetProducerDataSharesResult> getProducerDataShares(GetProducerDataSharesArgs args, InvokeOptions options)
fn::invoke:
  function: aws:redshift/getProducerDataShares:getProducerDataShares
  arguments:
    # arguments dictionaryThe 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: 
- 
List<GetProducer Data Shares Data Share> 
- An array of all data shares in the producer. See data_sharesbelow.
- Status string
- Status of a datashare in the producer. Valid values are ACTIVE,AUTHORIZED,PENDING_AUTHORIZATION,DEAUTHORIZED, andREJECTED. 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: 
- 
[]GetProducer Data Shares Data Share 
- An array of all data shares in the producer. See data_sharesbelow.
- Status string
- Status of a datashare in the producer. Valid values are ACTIVE,AUTHORIZED,PENDING_AUTHORIZATION,DEAUTHORIZED, andREJECTED. 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: 
- 
List<GetProducer Data Shares Data Share> 
- An array of all data shares in the producer. See data_sharesbelow.
- status String
- Status of a datashare in the producer. Valid values are ACTIVE,AUTHORIZED,PENDING_AUTHORIZATION,DEAUTHORIZED, andREJECTED. 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: 
- 
GetProducer Data Shares Data Share[] 
- An array of all data shares in the producer. See data_sharesbelow.
- status string
- Status of a datashare in the producer. Valid values are ACTIVE,AUTHORIZED,PENDING_AUTHORIZATION,DEAUTHORIZED, andREJECTED. 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: 
- 
Sequence[GetProducer Data Shares Data Share] 
- An array of all data shares in the producer. See data_sharesbelow.
- status str
- Status of a datashare in the producer. Valid values are ACTIVE,AUTHORIZED,PENDING_AUTHORIZATION,DEAUTHORIZED, andREJECTED. 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: 
- List<Property Map>
- An array of all data shares in the producer. See data_sharesbelow.
- status String
- Status of a datashare in the producer. Valid values are ACTIVE,AUTHORIZED,PENDING_AUTHORIZATION,DEAUTHORIZED, andREJECTED. 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.
- 
List<GetProducer Data Shares Data Share> 
- An array of all data shares in the producer. See data_sharesbelow.
- Status string
- Id string
- Producer ARN.
- ProducerArn string
- ARN (Amazon Resource Name) of the producer.
- 
[]GetProducer Data Shares Data Share 
- An array of all data shares in the producer. See data_sharesbelow.
- Status string
- id String
- Producer ARN.
- producerArn String
- ARN (Amazon Resource Name) of the producer.
- 
List<GetProducer Data Shares Data Share> 
- An array of all data shares in the producer. See data_sharesbelow.
- status String
- id string
- Producer ARN.
- producerArn string
- ARN (Amazon Resource Name) of the producer.
- 
GetProducer Data Shares Data Share[] 
- An array of all data shares in the producer. See data_sharesbelow.
- status string
- id str
- Producer ARN.
- producer_arn str
- ARN (Amazon Resource Name) of the producer.
- 
Sequence[GetProducer Data Shares Data Share] 
- An array of all data shares in the producer. See data_sharesbelow.
- status str
- id String
- Producer ARN.
- producerArn String
- ARN (Amazon Resource Name) of the producer.
- List<Property Map>
- An array of all data shares in the producer. See data_sharesbelow.
- status String
Supporting Types
GetProducerDataSharesDataShare     
- 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: 
- 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: 
- 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: 
- 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: 
- 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: 
- 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 awsTerraform Provider.