Class 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());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import Redshift endpoint authorization using the `id`. For example: ```sh $ pulumi import aws:redshift/endpointAuthorization:EndpointAuthorization example 01234567910:cluster-example-id ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.