Try AWS Native preview for resources not in the classic version.
aws.redshift.getProducerDataShares
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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:
- Producer
Arn string Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.
The following arguments are optional:
- List<Pulumi.
Aws. Red Shift. Inputs. Get Producer Data Shares Data Share> - 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
, andREJECTED
. Omit this argument to return all statuses.
- Producer
Arn string Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.
The following arguments are optional:
- []Get
Producer Data Shares Data Share - 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
, andREJECTED
. Omit this argument to return all statuses.
- producer
Arn String Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.
The following arguments are optional:
- List<Get
Producer Data Shares Data Share> - 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
, andREJECTED
. Omit this argument to return all statuses.
- producer
Arn string Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.
The following arguments are optional:
- Get
Producer Data Shares Data Share[] - 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
, 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[Get
Producer Data Shares Data Share] - 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
, andREJECTED
. Omit this argument to return all statuses.
- producer
Arn 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_shares
below. - 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.
- Producer
Arn string - ARN (Amazon Resource Name) of the producer.
- List<Pulumi.
Aws. Red Shift. Outputs. Get Producer Data Shares Data Share> - An array of all data shares in the producer. See
data_shares
below. - Status string
- Id string
- Producer ARN.
- Producer
Arn string - ARN (Amazon Resource Name) of the producer.
- []Get
Producer Data Shares Data Share - An array of all data shares in the producer. See
data_shares
below. - Status string
- id String
- Producer ARN.
- producer
Arn String - ARN (Amazon Resource Name) of the producer.
- List<Get
Producer Data Shares Data Share> - An array of all data shares in the producer. See
data_shares
below. - status String
- id string
- Producer ARN.
- producer
Arn string - ARN (Amazon Resource Name) of the producer.
- Get
Producer Data Shares Data Share[] - 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.
- Sequence[Get
Producer Data Shares Data Share] - An array of all data shares in the producer. See
data_shares
below. - status str
- id String
- Producer ARN.
- producer
Arn String - ARN (Amazon Resource Name) of the producer.
- List<Property Map>
- An array of all data shares in the producer. See
data_shares
below. - status String
Supporting Types
GetProducerDataSharesDataShare
- string
- ARN (Amazon Resource Name) of the data share.
- Managed
By string - Identifier of a datashare to show its managing entity.
- Producer
Arn 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.
- Managed
By string - Identifier of a datashare to show its managing entity.
- Producer
Arn 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.
- managed
By String - Identifier of a datashare to show its managing entity.
- producer
Arn 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.
- managed
By string - Identifier of a datashare to show its managing entity.
- producer
Arn 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.
- managed
By String - Identifier of a datashare to show its managing entity.
- producer
Arn 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.
Try AWS Native preview for resources not in the classic version.