We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.58.0
published on Monday, Mar 23, 2026 by Pulumi
published on Monday, Mar 23, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.58.0
published on Monday, Mar 23, 2026 by Pulumi
published on Monday, Mar 23, 2026 by Pulumi
Resource Type definition for AWS::ServiceDiscovery::Service
Using getService
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>def get_service(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput> Note: This function is named LookupService in the Go SDK.
public static class GetService
{
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:servicediscovery:getService
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The unique identifier for the service.
- Id string
- The unique identifier for the service.
- id String
- The unique identifier for the service.
- id string
- The unique identifier for the service.
- id str
- The unique identifier for the service.
- id String
- The unique identifier for the service.
getService Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the service.
- Description string
- A description for the service.
- Dns
Config Pulumi.Aws Native. Service Discovery. Outputs. Service Dns Config - DNS-related configurations for the service.
- Health
Check Pulumi.Config Aws Native. Service Discovery. Outputs. Service Health Check Config - Settings for health checks. Used when routing is DNS-based.
- Id string
- The unique identifier for the service.
- Service
Attributes Dictionary<string, string> - A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
-
List<Pulumi.
Aws Native. Outputs. Tag> - An array of key-value pairs to associate with the service.
- Arn string
- The Amazon Resource Name (ARN) of the service.
- Description string
- A description for the service.
- Dns
Config ServiceDns Config - DNS-related configurations for the service.
- Health
Check ServiceConfig Health Check Config - Settings for health checks. Used when routing is DNS-based.
- Id string
- The unique identifier for the service.
- Service
Attributes map[string]string - A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
- Tag
- An array of key-value pairs to associate with the service.
- arn String
- The Amazon Resource Name (ARN) of the service.
- description String
- A description for the service.
- dns
Config ServiceDns Config - DNS-related configurations for the service.
- health
Check ServiceConfig Health Check Config - Settings for health checks. Used when routing is DNS-based.
- id String
- The unique identifier for the service.
- service
Attributes Map<String,String> - A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
- List<Tag>
- An array of key-value pairs to associate with the service.
- arn string
- The Amazon Resource Name (ARN) of the service.
- description string
- A description for the service.
- dns
Config ServiceDns Config - DNS-related configurations for the service.
- health
Check ServiceConfig Health Check Config - Settings for health checks. Used when routing is DNS-based.
- id string
- The unique identifier for the service.
- service
Attributes {[key: string]: string} - A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
- Tag[]
- An array of key-value pairs to associate with the service.
- arn str
- The Amazon Resource Name (ARN) of the service.
- description str
- A description for the service.
- dns_
config ServiceDns Config - DNS-related configurations for the service.
- health_
check_ Serviceconfig Health Check Config - Settings for health checks. Used when routing is DNS-based.
- id str
- The unique identifier for the service.
- service_
attributes Mapping[str, str] - A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
- Sequence[root_Tag]
- An array of key-value pairs to associate with the service.
- arn String
- The Amazon Resource Name (ARN) of the service.
- description String
- A description for the service.
- dns
Config Property Map - DNS-related configurations for the service.
- health
Check Property MapConfig - Settings for health checks. Used when routing is DNS-based.
- id String
- The unique identifier for the service.
- service
Attributes Map<String> - A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
- List<Property Map>
- An array of key-value pairs to associate with the service.
Supporting Types
ServiceDnsConfig
- Dns
Records List<Pulumi.Aws Native. Service Discovery. Inputs. Service Dns Record> - A list of DNS records associated with the service.
- Namespace
Id string - The ID of the namespace for the DNS configuration.
- Routing
Policy string - The routing policy to use for DNS queries.
- Dns
Records []ServiceDns Record - A list of DNS records associated with the service.
- Namespace
Id string - The ID of the namespace for the DNS configuration.
- Routing
Policy string - The routing policy to use for DNS queries.
- dns
Records List<ServiceDns Record> - A list of DNS records associated with the service.
- namespace
Id String - The ID of the namespace for the DNS configuration.
- routing
Policy String - The routing policy to use for DNS queries.
- dns
Records ServiceDns Record[] - A list of DNS records associated with the service.
- namespace
Id string - The ID of the namespace for the DNS configuration.
- routing
Policy string - The routing policy to use for DNS queries.
- dns_
records Sequence[ServiceDns Record] - A list of DNS records associated with the service.
- namespace_
id str - The ID of the namespace for the DNS configuration.
- routing_
policy str - The routing policy to use for DNS queries.
- dns
Records List<Property Map> - A list of DNS records associated with the service.
- namespace
Id String - The ID of the namespace for the DNS configuration.
- routing
Policy String - The routing policy to use for DNS queries.
ServiceDnsRecord
ServiceHealthCheckConfig
- Type string
- The type of health check (e.g., HTTP, HTTPS, TCP).
- Failure
Threshold double - The number of consecutive health check failures that must occur before declaring the service unhealthy.
- Resource
Path string - The path to ping on the service for health checks.
- Type string
- The type of health check (e.g., HTTP, HTTPS, TCP).
- Failure
Threshold float64 - The number of consecutive health check failures that must occur before declaring the service unhealthy.
- Resource
Path string - The path to ping on the service for health checks.
- type String
- The type of health check (e.g., HTTP, HTTPS, TCP).
- failure
Threshold Double - The number of consecutive health check failures that must occur before declaring the service unhealthy.
- resource
Path String - The path to ping on the service for health checks.
- type string
- The type of health check (e.g., HTTP, HTTPS, TCP).
- failure
Threshold number - The number of consecutive health check failures that must occur before declaring the service unhealthy.
- resource
Path string - The path to ping on the service for health checks.
- type str
- The type of health check (e.g., HTTP, HTTPS, TCP).
- failure_
threshold float - The number of consecutive health check failures that must occur before declaring the service unhealthy.
- resource_
path str - The path to ping on the service for health checks.
- type String
- The type of health check (e.g., HTTP, HTTPS, TCP).
- failure
Threshold Number - The number of consecutive health check failures that must occur before declaring the service unhealthy.
- resource
Path String - The path to ping on the service for health checks.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.58.0
published on Monday, Mar 23, 2026 by Pulumi
published on Monday, Mar 23, 2026 by Pulumi
