Package com.pulumi.aws.opensearch
Class OutboundConnection
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.opensearch.OutboundConnection
-
public class OutboundConnection extends com.pulumi.resources.CustomResourceManages an AWS Opensearch Outbound Connection. ## Example Usage ### Basic Usage
## 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 ```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()); } }
-
-
Constructor Summary
Constructors Constructor Description OutboundConnection(java.lang.String name)OutboundConnection(java.lang.String name, OutboundConnectionArgs args)OutboundConnection(java.lang.String name, OutboundConnectionArgs 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.util.Optional<java.lang.Boolean>>acceptConnection()com.pulumi.core.Output<java.lang.String>connectionAlias()com.pulumi.core.Output<java.lang.String>connectionMode()com.pulumi.core.Output<OutboundConnectionConnectionProperties>connectionProperties()com.pulumi.core.Output<java.lang.String>connectionStatus()static OutboundConnectionget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, OutboundConnectionState 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<OutboundConnectionLocalDomainInfo>localDomainInfo()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<OutboundConnectionRemoteDomainInfo>remoteDomainInfo()
-
-
-
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`.
-
connectionProperties
public com.pulumi.core.Output<OutboundConnectionConnectionProperties> connectionProperties()
- Returns:
- Configuration block for the outbound connection.
-
connectionStatus
public com.pulumi.core.Output<java.lang.String> connectionStatus()
- Returns:
- Status of the connection request.
-
localDomainInfo
public com.pulumi.core.Output<OutboundConnectionLocalDomainInfo> localDomainInfo()
- Returns:
- Configuration block for the local Opensearch domain.
-
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.
-
remoteDomainInfo
public com.pulumi.core.Output<OutboundConnectionRemoteDomainInfo> remoteDomainInfo()
- Returns:
- Configuration block for the remote Opensearch domain.
-
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.
-
-