1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getNotificationTopic
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getNotificationTopic

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Look up a HSDP Notification Topic resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const topic = hsdp.getNotificationTopic({
        name: "some-topic",
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    topic = hsdp.get_notification_topic(name="some-topic")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hsdp.LookupNotificationTopic(ctx, &hsdp.LookupNotificationTopicArgs{
    			Name: pulumi.StringRef("some-topic"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var topic = Hsdp.GetNotificationTopic.Invoke(new()
        {
            Name = "some-topic",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetNotificationTopicArgs;
    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 topic = HsdpFunctions.getNotificationTopic(GetNotificationTopicArgs.builder()
                .name("some-topic")
                .build());
    
        }
    }
    
    variables:
      topic:
        fn::invoke:
          function: hsdp:getNotificationTopic
          arguments:
            name: some-topic
    

    Using getNotificationTopic

    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 getNotificationTopic(args: GetNotificationTopicArgs, opts?: InvokeOptions): Promise<GetNotificationTopicResult>
    function getNotificationTopicOutput(args: GetNotificationTopicOutputArgs, opts?: InvokeOptions): Output<GetNotificationTopicResult>
    def get_notification_topic(id: Optional[str] = None,
                               name: Optional[str] = None,
                               topic_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetNotificationTopicResult
    def get_notification_topic_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               topic_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetNotificationTopicResult]
    func LookupNotificationTopic(ctx *Context, args *LookupNotificationTopicArgs, opts ...InvokeOption) (*LookupNotificationTopicResult, error)
    func LookupNotificationTopicOutput(ctx *Context, args *LookupNotificationTopicOutputArgs, opts ...InvokeOption) LookupNotificationTopicResultOutput

    > Note: This function is named LookupNotificationTopic in the Go SDK.

    public static class GetNotificationTopic 
    {
        public static Task<GetNotificationTopicResult> InvokeAsync(GetNotificationTopicArgs args, InvokeOptions? opts = null)
        public static Output<GetNotificationTopicResult> Invoke(GetNotificationTopicInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNotificationTopicResult> getNotificationTopic(GetNotificationTopicArgs args, InvokeOptions options)
    public static Output<GetNotificationTopicResult> getNotificationTopic(GetNotificationTopicArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getNotificationTopic:getNotificationTopic
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The GUID of the found topic
    Name string

    The name of the topic look up.

    Specify either a topic_id or a name, not both.

    TopicId string
    The GUID of the topic to look up.
    Id string
    The GUID of the found topic
    Name string

    The name of the topic look up.

    Specify either a topic_id or a name, not both.

    TopicId string
    The GUID of the topic to look up.
    id String
    The GUID of the found topic
    name String

    The name of the topic look up.

    Specify either a topic_id or a name, not both.

    topicId String
    The GUID of the topic to look up.
    id string
    The GUID of the found topic
    name string

    The name of the topic look up.

    Specify either a topic_id or a name, not both.

    topicId string
    The GUID of the topic to look up.
    id str
    The GUID of the found topic
    name str

    The name of the topic look up.

    Specify either a topic_id or a name, not both.

    topic_id str
    The GUID of the topic to look up.
    id String
    The GUID of the found topic
    name String

    The name of the topic look up.

    Specify either a topic_id or a name, not both.

    topicId String
    The GUID of the topic to look up.

    getNotificationTopic Result

    The following output properties are available:

    AllowedScopes List<string>
    The list of allowed scopes
    Description string
    The intended usage of this topic
    Id string
    The GUID of the found topic
    IsAuditable bool
    whether the topic has to be audited whenever messages are published to it.
    ProducerId string
    The UUID of the producer associated with this topic
    Scope string
    The scope of this topic. Can be either public or private
    Name string
    TopicId string
    AllowedScopes []string
    The list of allowed scopes
    Description string
    The intended usage of this topic
    Id string
    The GUID of the found topic
    IsAuditable bool
    whether the topic has to be audited whenever messages are published to it.
    ProducerId string
    The UUID of the producer associated with this topic
    Scope string
    The scope of this topic. Can be either public or private
    Name string
    TopicId string
    allowedScopes List<String>
    The list of allowed scopes
    description String
    The intended usage of this topic
    id String
    The GUID of the found topic
    isAuditable Boolean
    whether the topic has to be audited whenever messages are published to it.
    producerId String
    The UUID of the producer associated with this topic
    scope String
    The scope of this topic. Can be either public or private
    name String
    topicId String
    allowedScopes string[]
    The list of allowed scopes
    description string
    The intended usage of this topic
    id string
    The GUID of the found topic
    isAuditable boolean
    whether the topic has to be audited whenever messages are published to it.
    producerId string
    The UUID of the producer associated with this topic
    scope string
    The scope of this topic. Can be either public or private
    name string
    topicId string
    allowed_scopes Sequence[str]
    The list of allowed scopes
    description str
    The intended usage of this topic
    id str
    The GUID of the found topic
    is_auditable bool
    whether the topic has to be audited whenever messages are published to it.
    producer_id str
    The UUID of the producer associated with this topic
    scope str
    The scope of this topic. Can be either public or private
    name str
    topic_id str
    allowedScopes List<String>
    The list of allowed scopes
    description String
    The intended usage of this topic
    id String
    The GUID of the found topic
    isAuditable Boolean
    whether the topic has to be audited whenever messages are published to it.
    producerId String
    The UUID of the producer associated with this topic
    scope String
    The scope of this topic. Can be either public or private
    name String
    topicId String

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software