AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.redshift.EndpointAuthorization
Explore with Pulumi AI
Creates a new Amazon Redshift endpoint authorization.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.RedShift.EndpointAuthorization("example", new()
{
Account = "01234567910",
ClusterIdentifier = aws_redshift_cluster.Example.Cluster_identifier,
});
});
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.NewEndpointAuthorization(ctx, "example", &redshift.EndpointAuthorizationArgs{
Account: pulumi.String("01234567910"),
ClusterIdentifier: pulumi.Any(aws_redshift_cluster.Example.Cluster_identifier),
})
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.EndpointAuthorization;
import com.pulumi.aws.redshift.EndpointAuthorizationArgs;
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 EndpointAuthorization("example", EndpointAuthorizationArgs.builder()
.account("01234567910")
.clusterIdentifier(aws_redshift_cluster.example().cluster_identifier())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.redshift.EndpointAuthorization("example",
account="01234567910",
cluster_identifier=aws_redshift_cluster["example"]["cluster_identifier"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.EndpointAuthorization("example", {
account: "01234567910",
clusterIdentifier: aws_redshift_cluster.example.cluster_identifier,
});
resources:
example:
type: aws:redshift:EndpointAuthorization
properties:
account: '01234567910'
clusterIdentifier: ${aws_redshift_cluster.example.cluster_identifier}
Create EndpointAuthorization Resource
new EndpointAuthorization(name: string, args: EndpointAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def EndpointAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
cluster_identifier: Optional[str] = None,
force_delete: Optional[bool] = None,
vpc_ids: Optional[Sequence[str]] = None)
@overload
def EndpointAuthorization(resource_name: str,
args: EndpointAuthorizationArgs,
opts: Optional[ResourceOptions] = None)
func NewEndpointAuthorization(ctx *Context, name string, args EndpointAuthorizationArgs, opts ...ResourceOption) (*EndpointAuthorization, error)
public EndpointAuthorization(string name, EndpointAuthorizationArgs args, CustomResourceOptions? opts = null)
public EndpointAuthorization(String name, EndpointAuthorizationArgs args)
public EndpointAuthorization(String name, EndpointAuthorizationArgs args, CustomResourceOptions options)
type: aws:redshift:EndpointAuthorization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointAuthorizationArgs
- 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 EndpointAuthorizationArgs
- 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 EndpointAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointAuthorizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EndpointAuthorization 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 EndpointAuthorization resource accepts the following input properties:
- Account string
The Amazon Web Services account ID to grant access to.
- Cluster
Identifier string The cluster identifier of the cluster to grant access to.
- Force
Delete bool Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- Vpc
Ids List<string> The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- Account string
The Amazon Web Services account ID to grant access to.
- Cluster
Identifier string The cluster identifier of the cluster to grant access to.
- Force
Delete bool Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- Vpc
Ids []string The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account String
The Amazon Web Services account ID to grant access to.
- cluster
Identifier String The cluster identifier of the cluster to grant access to.
- force
Delete Boolean Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- vpc
Ids List<String> The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account string
The Amazon Web Services account ID to grant access to.
- cluster
Identifier string The cluster identifier of the cluster to grant access to.
- force
Delete boolean Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- vpc
Ids string[] The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account str
The Amazon Web Services account ID to grant access to.
- cluster_
identifier str The cluster identifier of the cluster to grant access to.
- force_
delete bool Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- vpc_
ids Sequence[str] The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account String
The Amazon Web Services account ID to grant access to.
- cluster
Identifier String The cluster identifier of the cluster to grant access to.
- force
Delete Boolean Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- vpc
Ids List<String> The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointAuthorization resource produces the following output properties:
- Allowed
All boolVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- Endpoint
Count int The number of Redshift-managed VPC endpoints created for the authorization.
- Grantee string
The Amazon Web Services account ID of the grantee of the cluster.
- Grantor string
The Amazon Web Services account ID of the cluster owner.
- Id string
The provider-assigned unique ID for this managed resource.
- Allowed
All boolVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- Endpoint
Count int The number of Redshift-managed VPC endpoints created for the authorization.
- Grantee string
The Amazon Web Services account ID of the grantee of the cluster.
- Grantor string
The Amazon Web Services account ID of the cluster owner.
- Id string
The provider-assigned unique ID for this managed resource.
- allowed
All BooleanVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- endpoint
Count Integer The number of Redshift-managed VPC endpoints created for the authorization.
- grantee String
The Amazon Web Services account ID of the grantee of the cluster.
- grantor String
The Amazon Web Services account ID of the cluster owner.
- id String
The provider-assigned unique ID for this managed resource.
- allowed
All booleanVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- endpoint
Count number The number of Redshift-managed VPC endpoints created for the authorization.
- grantee string
The Amazon Web Services account ID of the grantee of the cluster.
- grantor string
The Amazon Web Services account ID of the cluster owner.
- id string
The provider-assigned unique ID for this managed resource.
- allowed_
all_ boolvpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- endpoint_
count int The number of Redshift-managed VPC endpoints created for the authorization.
- grantee str
The Amazon Web Services account ID of the grantee of the cluster.
- grantor str
The Amazon Web Services account ID of the cluster owner.
- id str
The provider-assigned unique ID for this managed resource.
- allowed
All BooleanVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- endpoint
Count Number The number of Redshift-managed VPC endpoints created for the authorization.
- grantee String
The Amazon Web Services account ID of the grantee of the cluster.
- grantor String
The Amazon Web Services account ID of the cluster owner.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing EndpointAuthorization Resource
Get an existing EndpointAuthorization 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?: EndpointAuthorizationState, opts?: CustomResourceOptions): EndpointAuthorization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
allowed_all_vpcs: Optional[bool] = None,
cluster_identifier: Optional[str] = None,
endpoint_count: Optional[int] = None,
force_delete: Optional[bool] = None,
grantee: Optional[str] = None,
grantor: Optional[str] = None,
vpc_ids: Optional[Sequence[str]] = None) -> EndpointAuthorization
func GetEndpointAuthorization(ctx *Context, name string, id IDInput, state *EndpointAuthorizationState, opts ...ResourceOption) (*EndpointAuthorization, error)
public static EndpointAuthorization Get(string name, Input<string> id, EndpointAuthorizationState? state, CustomResourceOptions? opts = null)
public static EndpointAuthorization get(String name, Output<String> id, EndpointAuthorizationState 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 string
The Amazon Web Services account ID to grant access to.
- Allowed
All boolVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- Cluster
Identifier string The cluster identifier of the cluster to grant access to.
- Endpoint
Count int The number of Redshift-managed VPC endpoints created for the authorization.
- Force
Delete bool Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- Grantee string
The Amazon Web Services account ID of the grantee of the cluster.
- Grantor string
The Amazon Web Services account ID of the cluster owner.
- Vpc
Ids List<string> The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- Account string
The Amazon Web Services account ID to grant access to.
- Allowed
All boolVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- Cluster
Identifier string The cluster identifier of the cluster to grant access to.
- Endpoint
Count int The number of Redshift-managed VPC endpoints created for the authorization.
- Force
Delete bool Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- Grantee string
The Amazon Web Services account ID of the grantee of the cluster.
- Grantor string
The Amazon Web Services account ID of the cluster owner.
- Vpc
Ids []string The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account String
The Amazon Web Services account ID to grant access to.
- allowed
All BooleanVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- cluster
Identifier String The cluster identifier of the cluster to grant access to.
- endpoint
Count Integer The number of Redshift-managed VPC endpoints created for the authorization.
- force
Delete Boolean Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- grantee String
The Amazon Web Services account ID of the grantee of the cluster.
- grantor String
The Amazon Web Services account ID of the cluster owner.
- vpc
Ids List<String> The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account string
The Amazon Web Services account ID to grant access to.
- allowed
All booleanVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- cluster
Identifier string The cluster identifier of the cluster to grant access to.
- endpoint
Count number The number of Redshift-managed VPC endpoints created for the authorization.
- force
Delete boolean Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- grantee string
The Amazon Web Services account ID of the grantee of the cluster.
- grantor string
The Amazon Web Services account ID of the cluster owner.
- vpc
Ids string[] The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account str
The Amazon Web Services account ID to grant access to.
- allowed_
all_ boolvpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- cluster_
identifier str The cluster identifier of the cluster to grant access to.
- endpoint_
count int The number of Redshift-managed VPC endpoints created for the authorization.
- force_
delete bool Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- grantee str
The Amazon Web Services account ID of the grantee of the cluster.
- grantor str
The Amazon Web Services account ID of the cluster owner.
- vpc_
ids Sequence[str] The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
- account String
The Amazon Web Services account ID to grant access to.
- allowed
All BooleanVpcs Indicates whether all VPCs in the grantee account are allowed access to the cluster.
- cluster
Identifier String The cluster identifier of the cluster to grant access to.
- endpoint
Count Number The number of Redshift-managed VPC endpoints created for the authorization.
- force
Delete Boolean Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is
false
.- grantee String
The Amazon Web Services account ID of the grantee of the cluster.
- grantor String
The Amazon Web Services account ID of the cluster owner.
- vpc
Ids List<String> The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
Import
Redshift endpoint authorization can be imported using the id
, e.g.,
$ pulumi import aws:redshift/endpointAuthorization:EndpointAuthorization example 01234567910:cluster-example-id
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.