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

hsdp.getNotificationTopics

Explore with Pulumi AI

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

    Search for HSDP Notification Topic resources

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const topic1 = hsdp.getNotificationTopics({
        name: "Topic1",
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    topic1 = hsdp.get_notification_topics(name="Topic1")
    
    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.GetNotificationTopics(ctx, &hsdp.GetNotificationTopicsArgs{
    			Name: "Topic1",
    		}, 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 topic1 = Hsdp.GetNotificationTopics.Invoke(new()
        {
            Name = "Topic1",
        });
    
    });
    
    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.GetNotificationTopicsArgs;
    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 topic1 = HsdpFunctions.getNotificationTopics(GetNotificationTopicsArgs.builder()
                .name("Topic1")
                .build());
    
        }
    }
    
    variables:
      topic1:
        fn::invoke:
          function: hsdp:getNotificationTopics
          arguments:
            name: Topic1
    

    Using getNotificationTopics

    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 getNotificationTopics(args: GetNotificationTopicsArgs, opts?: InvokeOptions): Promise<GetNotificationTopicsResult>
    function getNotificationTopicsOutput(args: GetNotificationTopicsOutputArgs, opts?: InvokeOptions): Output<GetNotificationTopicsResult>
    def get_notification_topics(id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetNotificationTopicsResult
    def get_notification_topics_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetNotificationTopicsResult]
    func GetNotificationTopics(ctx *Context, args *GetNotificationTopicsArgs, opts ...InvokeOption) (*GetNotificationTopicsResult, error)
    func GetNotificationTopicsOutput(ctx *Context, args *GetNotificationTopicsOutputArgs, opts ...InvokeOption) GetNotificationTopicsResultOutput

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

    public static class GetNotificationTopics 
    {
        public static Task<GetNotificationTopicsResult> InvokeAsync(GetNotificationTopicsArgs args, InvokeOptions? opts = null)
        public static Output<GetNotificationTopicsResult> Invoke(GetNotificationTopicsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNotificationTopicsResult> getNotificationTopics(GetNotificationTopicsArgs args, InvokeOptions options)
    public static Output<GetNotificationTopicsResult> getNotificationTopics(GetNotificationTopicsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getNotificationTopics:getNotificationTopics
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of a topic. The topic name length is restricted to a maximum of 256 characters. The special characters allowed are - and _
    Id string
    Name string
    The name of a topic. The topic name length is restricted to a maximum of 256 characters. The special characters allowed are - and _
    Id string
    name String
    The name of a topic. The topic name length is restricted to a maximum of 256 characters. The special characters allowed are - and _
    id String
    name string
    The name of a topic. The topic name length is restricted to a maximum of 256 characters. The special characters allowed are - and _
    id string
    name str
    The name of a topic. The topic name length is restricted to a maximum of 256 characters. The special characters allowed are - and _
    id str
    name String
    The name of a topic. The topic name length is restricted to a maximum of 256 characters. The special characters allowed are - and _
    id String

    getNotificationTopics Result

    The following output properties are available:

    Id string
    Name string
    TopicIds List<string>
    The list of matching topic IDs
    Id string
    Name string
    TopicIds []string
    The list of matching topic IDs
    id String
    name String
    topicIds List<String>
    The list of matching topic IDs
    id string
    name string
    topicIds string[]
    The list of matching topic IDs
    id str
    name str
    topic_ids Sequence[str]
    The list of matching topic IDs
    id String
    name String
    topicIds List<String>
    The list of matching topic IDs

    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