AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.redshift.Partner
Explore with Pulumi AI
Creates a new Amazon Redshift Partner Integration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.RedShift.Partner("example", new()
{
ClusterIdentifier = aws_redshift_cluster.Example.Id,
AccountId = "1234567910",
DatabaseName = aws_redshift_cluster.Example.Database_name,
PartnerName = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/redshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshift.NewPartner(ctx, "example", &redshift.PartnerArgs{
ClusterIdentifier: pulumi.Any(aws_redshift_cluster.Example.Id),
AccountId: pulumi.String("1234567910"),
DatabaseName: pulumi.Any(aws_redshift_cluster.Example.Database_name),
PartnerName: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.Partner;
import com.pulumi.aws.redshift.PartnerArgs;
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) {
var example = new Partner("example", PartnerArgs.builder()
.clusterIdentifier(aws_redshift_cluster.example().id())
.accountId(1234567910)
.databaseName(aws_redshift_cluster.example().database_name())
.partnerName("example")
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.redshift.Partner("example",
cluster_identifier=aws_redshift_cluster["example"]["id"],
account_id="1234567910",
database_name=aws_redshift_cluster["example"]["database_name"],
partner_name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.Partner("example", {
clusterIdentifier: aws_redshift_cluster.example.id,
accountId: "1234567910",
databaseName: aws_redshift_cluster.example.database_name,
partnerName: "example",
});
resources:
example:
type: aws:redshift:Partner
properties:
clusterIdentifier: ${aws_redshift_cluster.example.id}
accountId: 1.23456791e+09
databaseName: ${aws_redshift_cluster.example.database_name}
partnerName: example
Create Partner Resource
new Partner(name: string, args: PartnerArgs, opts?: CustomResourceOptions);
@overload
def Partner(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cluster_identifier: Optional[str] = None,
database_name: Optional[str] = None,
partner_name: Optional[str] = None)
@overload
def Partner(resource_name: str,
args: PartnerArgs,
opts: Optional[ResourceOptions] = None)
func NewPartner(ctx *Context, name string, args PartnerArgs, opts ...ResourceOption) (*Partner, error)
public Partner(string name, PartnerArgs args, CustomResourceOptions? opts = null)
public Partner(String name, PartnerArgs args)
public Partner(String name, PartnerArgs args, CustomResourceOptions options)
type: aws:redshift:Partner
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PartnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PartnerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PartnerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PartnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PartnerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Partner Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Partner resource accepts the following input properties:
- Account
Id string The Amazon Web Services account ID that owns the cluster.
- Cluster
Identifier string The cluster identifier of the cluster that receives data from the partner.
- Database
Name string The name of the database that receives data from the partner.
- Partner
Name string The name of the partner that is authorized to send data.
- Account
Id string The Amazon Web Services account ID that owns the cluster.
- Cluster
Identifier string The cluster identifier of the cluster that receives data from the partner.
- Database
Name string The name of the database that receives data from the partner.
- Partner
Name string The name of the partner that is authorized to send data.
- account
Id String The Amazon Web Services account ID that owns the cluster.
- cluster
Identifier String The cluster identifier of the cluster that receives data from the partner.
- database
Name String The name of the database that receives data from the partner.
- partner
Name String The name of the partner that is authorized to send data.
- account
Id string The Amazon Web Services account ID that owns the cluster.
- cluster
Identifier string The cluster identifier of the cluster that receives data from the partner.
- database
Name string The name of the database that receives data from the partner.
- partner
Name string The name of the partner that is authorized to send data.
- account_
id str The Amazon Web Services account ID that owns the cluster.
- cluster_
identifier str The cluster identifier of the cluster that receives data from the partner.
- database_
name str The name of the database that receives data from the partner.
- partner_
name str The name of the partner that is authorized to send data.
- account
Id String The Amazon Web Services account ID that owns the cluster.
- cluster
Identifier String The cluster identifier of the cluster that receives data from the partner.
- database
Name String The name of the database that receives data from the partner.
- partner
Name String The name of the partner that is authorized to send data.
Outputs
All input properties are implicitly available as output properties. Additionally, the Partner resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
(Optional) The partner integration status.
- Status
Message string (Optional) The status message provided by the partner.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
(Optional) The partner integration status.
- Status
Message string (Optional) The status message provided by the partner.
- id String
The provider-assigned unique ID for this managed resource.
- status String
(Optional) The partner integration status.
- status
Message String (Optional) The status message provided by the partner.
- id string
The provider-assigned unique ID for this managed resource.
- status string
(Optional) The partner integration status.
- status
Message string (Optional) The status message provided by the partner.
- id str
The provider-assigned unique ID for this managed resource.
- status str
(Optional) The partner integration status.
- status_
message str (Optional) The status message provided by the partner.
- id String
The provider-assigned unique ID for this managed resource.
- status String
(Optional) The partner integration status.
- status
Message String (Optional) The status message provided by the partner.
Look up Existing Partner Resource
Get an existing Partner resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PartnerState, opts?: CustomResourceOptions): Partner
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cluster_identifier: Optional[str] = None,
database_name: Optional[str] = None,
partner_name: Optional[str] = None,
status: Optional[str] = None,
status_message: Optional[str] = None) -> Partner
func GetPartner(ctx *Context, name string, id IDInput, state *PartnerState, opts ...ResourceOption) (*Partner, error)
public static Partner Get(string name, Input<string> id, PartnerState? state, CustomResourceOptions? opts = null)
public static Partner get(String name, Output<String> id, PartnerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string The Amazon Web Services account ID that owns the cluster.
- Cluster
Identifier string The cluster identifier of the cluster that receives data from the partner.
- Database
Name string The name of the database that receives data from the partner.
- Partner
Name string The name of the partner that is authorized to send data.
- Status string
(Optional) The partner integration status.
- Status
Message string (Optional) The status message provided by the partner.
- Account
Id string The Amazon Web Services account ID that owns the cluster.
- Cluster
Identifier string The cluster identifier of the cluster that receives data from the partner.
- Database
Name string The name of the database that receives data from the partner.
- Partner
Name string The name of the partner that is authorized to send data.
- Status string
(Optional) The partner integration status.
- Status
Message string (Optional) The status message provided by the partner.
- account
Id String The Amazon Web Services account ID that owns the cluster.
- cluster
Identifier String The cluster identifier of the cluster that receives data from the partner.
- database
Name String The name of the database that receives data from the partner.
- partner
Name String The name of the partner that is authorized to send data.
- status String
(Optional) The partner integration status.
- status
Message String (Optional) The status message provided by the partner.
- account
Id string The Amazon Web Services account ID that owns the cluster.
- cluster
Identifier string The cluster identifier of the cluster that receives data from the partner.
- database
Name string The name of the database that receives data from the partner.
- partner
Name string The name of the partner that is authorized to send data.
- status string
(Optional) The partner integration status.
- status
Message string (Optional) The status message provided by the partner.
- account_
id str The Amazon Web Services account ID that owns the cluster.
- cluster_
identifier str The cluster identifier of the cluster that receives data from the partner.
- database_
name str The name of the database that receives data from the partner.
- partner_
name str The name of the partner that is authorized to send data.
- status str
(Optional) The partner integration status.
- status_
message str (Optional) The status message provided by the partner.
- account
Id String The Amazon Web Services account ID that owns the cluster.
- cluster
Identifier String The cluster identifier of the cluster that receives data from the partner.
- database
Name String The name of the database that receives data from the partner.
- partner
Name String The name of the partner that is authorized to send data.
- status String
(Optional) The partner integration status.
- status
Message String (Optional) The status message provided by the partner.
Import
Redshift usage limits can be imported using the id
, e.g.,
$ pulumi import aws:redshift/partner:Partner example 01234567910:cluster-example-id:example:example
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.