Inbound Connection Accepter Args
data class InboundConnectionAccepterArgs(val connectionId: Output<String>? = null) : ConvertibleToJava<InboundConnectionAccepterArgs>
Manages an AWS Opensearch Inbound Connection Accepter. If connecting domains from different AWS accounts, ensure that the accepter is configured to use the AWS account where the remote opensearch domain exists.
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.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 com.pulumi.aws.opensearch.InboundConnectionAccepter;
import com.pulumi.aws.opensearch.InboundConnectionAccepterArgs;
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) {
final var currentCallerIdentity = AwsFunctions.getCallerIdentity();
final var currentRegion = AwsFunctions.getRegion();
var fooOutboundConnection = new OutboundConnection("fooOutboundConnection", OutboundConnectionArgs.builder()
.connectionAlias("outbound_connection")
.localDomainInfo(OutboundConnectionLocalDomainInfoArgs.builder()
.ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.region(currentRegion.applyValue(getRegionResult -> getRegionResult.name()))
.domainName(aws_opensearch_domain.local_domain().domain_name())
.build())
.remoteDomainInfo(OutboundConnectionRemoteDomainInfoArgs.builder()
.ownerId(currentCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.region(currentRegion.applyValue(getRegionResult -> getRegionResult.name()))
.domainName(aws_opensearch_domain.remote_domain().domain_name())
.build())
.build());
var fooInboundConnectionAccepter = new InboundConnectionAccepter("fooInboundConnectionAccepter", InboundConnectionAccepterArgs.builder()
.connectionId(fooOutboundConnection.id())
.build());
}
}
Content copied to clipboard
Import
AWS Opensearch Inbound Connection Accepters can be imported by using the Inbound Connection ID, e.g.,
$ pulumi import aws:opensearch/inboundConnectionAccepter:InboundConnectionAccepter foo connection-id
Content copied to clipboard