getService

Retrieves information about a Service Discovery Service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicediscovery.ServicediscoveryFunctions;
import com.pulumi.aws.servicediscovery.inputs.GetServiceArgs;
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 test = ServicediscoveryFunctions.getService(GetServiceArgs.builder()
.name("example")
.namespaceId("NAMESPACE_ID_VALUE")
.build());
}
}

Return

A collection of values returned by getService.

Parameters

argument

A collection of arguments for invoking getService.


suspend fun getService(name: String, namespaceId: String, tags: Map<String, String>? = null): GetServiceResult

Return

A collection of values returned by getService.

Parameters

name

Name of the service.

namespaceId

ID of the namespace that the service belongs to.

tags

Map of tags to assign to the service. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

See also


suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult

Return

A collection of values returned by getService.

Parameters

argument

Builder for com.pulumi.aws.servicediscovery.kotlin.inputs.GetServicePlainArgs.

See also