1. Packages
  2. AWS
  3. API Docs
  4. servicediscovery
  5. getHttpNamespace
AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi

aws.servicediscovery.getHttpNamespace

Explore with Pulumi AI

aws logo
AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.servicediscovery.getHttpNamespace({
        name: "development",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.servicediscovery.get_http_namespace(name="development")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.ServiceDiscovery.GetHttpNamespace.Invoke(new()
        {
            Name = "development",
        });
    
    });
    
    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.GetHttpNamespaceArgs;
    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 example = ServicediscoveryFunctions.getHttpNamespace(GetHttpNamespaceArgs.builder()
                .name("development")
                .build());
    
        }
    }
    
    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
    Name of the http namespace.
    Tags Dictionary<string, string>
    Map of tags for the resource.
    Name string
    Name of the http namespace.
    Tags map[string]string
    Map of tags for the resource.
    name String
    Name of the http namespace.
    tags Map<String,String>
    Map of tags for the resource.
    name string
    Name of the http namespace.
    tags {[key: string]: string}
    Map of tags for the resource.
    name str
    Name of the http namespace.
    tags Mapping[str, str]
    Map of tags for the resource.
    name String
    Name of the http namespace.
    tags Map<String>
    Map of tags for the resource.

    getHttpNamespace Result

    The following output properties are available:

    Arn string
    ARN that Amazon Route 53 assigns to the namespace when you create it.
    Description string
    Description that you specify for the namespace when you create it.
    HttpName string
    Name of an HTTP namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Tags Dictionary<string, string>
    Map of tags for the resource.
    Arn string
    ARN that Amazon Route 53 assigns to the namespace when you create it.
    Description string
    Description that you specify for the namespace when you create it.
    HttpName string
    Name of an HTTP namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Tags map[string]string
    Map of tags for the resource.
    arn String
    ARN that Amazon Route 53 assigns to the namespace when you create it.
    description String
    Description that you specify for the namespace when you create it.
    httpName String
    Name of an HTTP namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    tags Map<String,String>
    Map of tags for the resource.
    arn string
    ARN that Amazon Route 53 assigns to the namespace when you create it.
    description string
    Description that you specify for the namespace when you create it.
    httpName string
    Name of an HTTP namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    tags {[key: string]: string}
    Map of tags for the resource.
    arn str
    ARN that Amazon Route 53 assigns to the namespace when you create it.
    description str
    Description that you specify for the namespace when you create it.
    http_name str
    Name of an HTTP namespace.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    tags Mapping[str, str]
    Map of tags for the resource.
    arn String
    ARN that Amazon Route 53 assigns to the namespace when you create it.
    description String
    Description that you specify for the namespace when you create it.
    httpName String
    Name of an HTTP namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    tags Map<String>
    Map of tags for the resource.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.64.0 published on Friday, Dec 6, 2024 by Pulumi