AWS Classic
getHttpNamespace
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.ServiceDiscovery.GetHttpNamespace.InvokeAsync(new Aws.ServiceDiscovery.GetHttpNamespaceArgs
{
Name = "development",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/servicediscovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicediscovery.LookupHttpNamespace(ctx, &servicediscovery.LookupHttpNamespaceArgs{
Name: "development",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(ServicediscoveryFunctions.getHttpNamespace(GetHttpNamespaceArgs.builder()
.name("development")
.build()));
}
}
import pulumi
import pulumi_aws as aws
example = aws.servicediscovery.get_http_namespace(name="development")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.servicediscovery.getHttpNamespace({
name: "development",
}));
variables:
example:
Fn::Invoke:
Function: aws:servicediscovery:getHttpNamespace
Arguments:
name: development
Using getHttpNamespace
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 getHttpNamespace(args: GetHttpNamespaceArgs, opts?: InvokeOptions): Promise<GetHttpNamespaceResult>
function getHttpNamespaceOutput(args: GetHttpNamespaceOutputArgs, opts?: InvokeOptions): Output<GetHttpNamespaceResult>
def get_http_namespace(name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetHttpNamespaceResult
def get_http_namespace_output(name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHttpNamespaceResult]
func LookupHttpNamespace(ctx *Context, args *LookupHttpNamespaceArgs, opts ...InvokeOption) (*LookupHttpNamespaceResult, error)
func LookupHttpNamespaceOutput(ctx *Context, args *LookupHttpNamespaceOutputArgs, opts ...InvokeOption) LookupHttpNamespaceResultOutput
> Note: This function is named LookupHttpNamespace
in the Go SDK.
public static class GetHttpNamespace
{
public static Task<GetHttpNamespaceResult> InvokeAsync(GetHttpNamespaceArgs args, InvokeOptions? opts = null)
public static Output<GetHttpNamespaceResult> Invoke(GetHttpNamespaceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHttpNamespaceResult> getHttpNamespace(GetHttpNamespaceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aws:servicediscovery/getHttpNamespace:getHttpNamespace
Arguments:
# Arguments dictionary
The following arguments are supported:
- Name string
The name of the http namespace.
- Dictionary<string, string>
A map of tags for the resource.
- Name string
The name of the http namespace.
- map[string]string
A map of tags for the resource.
- name String
The name of the http namespace.
- Map<String,String>
A map of tags for the resource.
- name string
The name of the http namespace.
- {[key: string]: string}
A map of tags for the resource.
- name str
The name of the http namespace.
- Mapping[str, str]
A map of tags for the resource.
- name String
The name of the http namespace.
- Map<String>
A map of tags for the resource.
getHttpNamespace Result
The following output properties are available:
- Arn string
The ARN that Amazon Route 53 assigns to the namespace when you create it.
- Description string
The description that you specify for the namespace when you create it.
- Http
Name string The name of an HTTP namespace.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Dictionary<string, string>
A map of tags for the resource.
- Arn string
The ARN that Amazon Route 53 assigns to the namespace when you create it.
- Description string
The description that you specify for the namespace when you create it.
- Http
Name string The name of an HTTP namespace.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- map[string]string
A map of tags for the resource.
- arn String
The ARN that Amazon Route 53 assigns to the namespace when you create it.
- description String
The description that you specify for the namespace when you create it.
- http
Name String The name of an HTTP namespace.
- id String
The provider-assigned unique ID for this managed resource.
- name String
- Map<String,String>
A map of tags for the resource.
- arn string
The ARN that Amazon Route 53 assigns to the namespace when you create it.
- description string
The description that you specify for the namespace when you create it.
- http
Name string The name of an HTTP namespace.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- {[key: string]: string}
A map of tags for the resource.
- arn str
The ARN that Amazon Route 53 assigns to the namespace when you create it.
- description str
The description that you specify for the namespace when you create it.
- http_
name str The name of an HTTP namespace.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- Mapping[str, str]
A map of tags for the resource.
- arn String
The ARN that Amazon Route 53 assigns to the namespace when you create it.
- description String
The description that you specify for the namespace when you create it.
- http
Name String The name of an HTTP namespace.
- id String
The provider-assigned unique ID for this managed resource.
- name String
- Map<String>
A map of tags for the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.