Class OutboundConnection


  • public class OutboundConnection
    extends com.pulumi.resources.CustomResource
    Manages an AWS Opensearch Outbound Connection. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.AwsFunctions;
     import com.pulumi.aws.inputs.GetCallerIdentityArgs;
     import com.pulumi.aws.inputs.GetRegionArgs;
     import com.pulumi.aws.opensearch.OutboundConnection;
     import com.pulumi.aws.opensearch.OutboundConnectionArgs;
     import com.pulumi.aws.opensearch.inputs.OutboundConnectionLocalDomainInfoArgs;
     import com.pulumi.aws.opensearch.inputs.OutboundConnectionRemoteDomainInfoArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     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 current = AwsFunctions.getCallerIdentity(GetCallerIdentityArgs.builder()
                 .build());
     
             final var currentGetRegion = AwsFunctions.getRegion(GetRegionArgs.builder()
                 .build());
     
             var foo = new OutboundConnection("foo", OutboundConnectionArgs.builder()
                 .localDomainInfo(OutboundConnectionLocalDomainInfoArgs.builder()
                     .ownerId(current.accountId())
                     .region(currentGetRegion.region())
                     .domainName(localDomain.domainName())
                     .build())
                 .remoteDomainInfo(OutboundConnectionRemoteDomainInfoArgs.builder()
                     .ownerId(current.accountId())
                     .region(currentGetRegion.region())
                     .domainName(remoteDomain.domainName())
                     .build())
                 .connectionAlias("outbound_connection")
                 .connectionMode("DIRECT")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import AWS Opensearch Outbound Connections using the Outbound Connection ID. For example: ```sh $ pulumi import aws:opensearch/outboundConnection:OutboundConnection foo connection-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
    • Constructor Detail

      • OutboundConnection

        public OutboundConnection​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • OutboundConnection

        public OutboundConnection​(java.lang.String name,
                                  OutboundConnectionArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • OutboundConnection

        public OutboundConnection​(java.lang.String name,
                                  OutboundConnectionArgs 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

      • acceptConnection

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> acceptConnection()
        Returns:
        Accepts the connection.
      • connectionAlias

        public com.pulumi.core.Output<java.lang.String> connectionAlias()
        Returns:
        Specifies the connection alias that will be used by the customer for this connection.
      • connectionMode

        public com.pulumi.core.Output<java.lang.String> connectionMode()
        Returns:
        Specifies the connection mode. Accepted values are `DIRECT` or `VPC_ENDPOINT`.
      • connectionStatus

        public com.pulumi.core.Output<java.lang.String> connectionStatus()
        Returns:
        Status of the connection request.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • get

        public static OutboundConnection get​(java.lang.String name,
                                             com.pulumi.core.Output<java.lang.String> id,
                                             @Nullable
                                             OutboundConnectionState 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.