AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.redshift.getDataShares
Explore with Pulumi AI
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, &redshift.GetDataSharesArgs{}, 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:
- List<Get
Data Shares Data Share> - An array of all data shares in the current region. See
data_shares
below.
- []Get
Data Shares Data Share - An array of all data shares in the current region. See
data_shares
below.
- List<Get
Data Shares Data Share> - An array of all data shares in the current region. See
data_shares
below.
- Get
Data Shares Data Share[] - An array of all data shares in the current region. See
data_shares
below.
- Sequence[Get
Data Shares Data Share] - An array of all data shares in the current region. See
data_shares
below.
- 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.
- List<Get
Data Shares Data Share> - An array of all data shares in the current region. See
data_shares
below.
- Id string
- AWS region.
- []Get
Data Shares Data Share - An array of all data shares in the current region. See
data_shares
below.
- id String
- AWS region.
- List<Get
Data Shares Data Share> - An array of all data shares in the current region. See
data_shares
below.
- id string
- AWS region.
- Get
Data Shares Data Share[] - An array of all data shares in the current region. See
data_shares
below.
- id str
- AWS region.
- Sequence[Get
Data Shares Data Share] - An array of all data shares in the current region. See
data_shares
below.
- id String
- AWS region.
- List<Property Map>
- An array of all data shares in the current region. See
data_shares
below.
Supporting Types
GetDataSharesDataShare
- string
- ARN (Amazon Resource Name) of the data share.
- Managed
By string - Identifier of a datashare to show its managing entity.
- Producer
Arn string - ARN (Amazon Resource Name) of the producer.
- string
- ARN (Amazon Resource Name) of the data share.
- Managed
By string - Identifier of a datashare to show its managing entity.
- Producer
Arn string - ARN (Amazon Resource Name) of the producer.
- String
- ARN (Amazon Resource Name) of the data share.
- managed
By String - Identifier of a datashare to show its managing entity.
- producer
Arn String - ARN (Amazon Resource Name) of the producer.
- string
- ARN (Amazon Resource Name) of the data share.
- managed
By string - Identifier of a datashare to show its managing entity.
- producer
Arn string - ARN (Amazon Resource Name) of the producer.
- 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.
- String
- ARN (Amazon Resource Name) of the data share.
- managed
By String - Identifier of a datashare to show its managing entity.
- producer
Arn 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.