Package com.pulumi.aws.redshift
Class EndpointAuthorization
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.redshift.EndpointAuthorization
-
public class EndpointAuthorization extends com.pulumi.resources.CustomResource
Creates a new Amazon Redshift endpoint authorization. ## Example Usage <!--Start PulumiCodeChooser -->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(exampleAwsRedshiftCluster.clusterIdentifier()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description EndpointAuthorization(java.lang.String name)
EndpointAuthorization(java.lang.String name, EndpointAuthorizationArgs args)
EndpointAuthorization(java.lang.String name, EndpointAuthorizationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
account()
com.pulumi.core.Output<java.lang.Boolean>
allowedAllVpcs()
com.pulumi.core.Output<java.lang.String>
clusterIdentifier()
com.pulumi.core.Output<java.lang.Integer>
endpointCount()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
forceDelete()
static EndpointAuthorization
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EndpointAuthorizationState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
grantee()
com.pulumi.core.Output<java.lang.String>
grantor()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
vpcIds()
-
-
-
Constructor Detail
-
EndpointAuthorization
public EndpointAuthorization(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
EndpointAuthorization
public EndpointAuthorization(java.lang.String name, EndpointAuthorizationArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
EndpointAuthorization
public EndpointAuthorization(java.lang.String name, EndpointAuthorizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
account
public com.pulumi.core.Output<java.lang.String> account()
- Returns:
- The Amazon Web Services account ID to grant access to.
-
allowedAllVpcs
public com.pulumi.core.Output<java.lang.Boolean> allowedAllVpcs()
- Returns:
- Indicates whether all VPCs in the grantee account are allowed access to the cluster.
-
clusterIdentifier
public com.pulumi.core.Output<java.lang.String> clusterIdentifier()
- Returns:
- The cluster identifier of the cluster to grant access to.
-
endpointCount
public com.pulumi.core.Output<java.lang.Integer> endpointCount()
- Returns:
- The number of Redshift-managed VPC endpoints created for the authorization.
-
forceDelete
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> forceDelete()
- Returns:
- 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
public com.pulumi.core.Output<java.lang.String> grantee()
- Returns:
- The Amazon Web Services account ID of the grantee of the cluster.
-
grantor
public com.pulumi.core.Output<java.lang.String> grantor()
- Returns:
- The Amazon Web Services account ID of the cluster owner.
-
vpcIds
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> vpcIds()
- Returns:
- The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.
-
get
public static EndpointAuthorization get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable EndpointAuthorizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-