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

hsdp.getNotificationSubscription

Explore with Pulumi AI

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

    Looks up HSDP Notification subscription resources

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const subscription = hsdp.getNotificationSubscription({
        subscriptionId: "ca1e3aa4-1409-4b1b-95e5-8795ecdecea7",
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    subscription = hsdp.get_notification_subscription(subscription_id="ca1e3aa4-1409-4b1b-95e5-8795ecdecea7")
    
    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.LookupNotificationSubscription(ctx, &hsdp.LookupNotificationSubscriptionArgs{
    			SubscriptionId: "ca1e3aa4-1409-4b1b-95e5-8795ecdecea7",
    		}, 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 subscription = Hsdp.GetNotificationSubscription.Invoke(new()
        {
            SubscriptionId = "ca1e3aa4-1409-4b1b-95e5-8795ecdecea7",
        });
    
    });
    
    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.GetNotificationSubscriptionArgs;
    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 subscription = HsdpFunctions.getNotificationSubscription(GetNotificationSubscriptionArgs.builder()
                .subscriptionId("ca1e3aa4-1409-4b1b-95e5-8795ecdecea7")
                .build());
    
        }
    }
    
    variables:
      subscription:
        fn::invoke:
          function: hsdp:getNotificationSubscription
          arguments:
            subscriptionId: ca1e3aa4-1409-4b1b-95e5-8795ecdecea7
    

    Using getNotificationSubscription

    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 getNotificationSubscription(args: GetNotificationSubscriptionArgs, opts?: InvokeOptions): Promise<GetNotificationSubscriptionResult>
    function getNotificationSubscriptionOutput(args: GetNotificationSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetNotificationSubscriptionResult>
    def get_notification_subscription(id: Optional[str] = None,
                                      subscription_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetNotificationSubscriptionResult
    def get_notification_subscription_output(id: Optional[pulumi.Input[str]] = None,
                                      subscription_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetNotificationSubscriptionResult]
    func LookupNotificationSubscription(ctx *Context, args *LookupNotificationSubscriptionArgs, opts ...InvokeOption) (*LookupNotificationSubscriptionResult, error)
    func LookupNotificationSubscriptionOutput(ctx *Context, args *LookupNotificationSubscriptionOutputArgs, opts ...InvokeOption) LookupNotificationSubscriptionResultOutput

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

    public static class GetNotificationSubscription 
    {
        public static Task<GetNotificationSubscriptionResult> InvokeAsync(GetNotificationSubscriptionArgs args, InvokeOptions? opts = null)
        public static Output<GetNotificationSubscriptionResult> Invoke(GetNotificationSubscriptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNotificationSubscriptionResult> getNotificationSubscription(GetNotificationSubscriptionArgs args, InvokeOptions options)
    public static Output<GetNotificationSubscriptionResult> getNotificationSubscription(GetNotificationSubscriptionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getNotificationSubscription:getNotificationSubscription
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SubscriptionId string
    Id string
    = (Optional) The UUID of the subscription
    SubscriptionId string
    Id string
    = (Optional) The UUID of the subscription
    subscriptionId String
    id String
    = (Optional) The UUID of the subscription
    subscriptionId string
    id string
    = (Optional) The UUID of the subscription
    subscription_id str
    id str
    = (Optional) The UUID of the subscription
    subscriptionId String
    id String
    = (Optional) The UUID of the subscription

    getNotificationSubscription Result

    The following output properties are available:

    Id string
    SubscriberId string
    (Optional) The UUID of the subscriber
    SubscriptionEndpoint string
    The subscription endpoint
    SubscriptionId string
    TopicId string
    (Optional) The UUID of the topic
    Id string
    SubscriberId string
    (Optional) The UUID of the subscriber
    SubscriptionEndpoint string
    The subscription endpoint
    SubscriptionId string
    TopicId string
    (Optional) The UUID of the topic
    id String
    subscriberId String
    (Optional) The UUID of the subscriber
    subscriptionEndpoint String
    The subscription endpoint
    subscriptionId String
    topicId String
    (Optional) The UUID of the topic
    id string
    subscriberId string
    (Optional) The UUID of the subscriber
    subscriptionEndpoint string
    The subscription endpoint
    subscriptionId string
    topicId string
    (Optional) The UUID of the topic
    id str
    subscriber_id str
    (Optional) The UUID of the subscriber
    subscription_endpoint str
    The subscription endpoint
    subscription_id str
    topic_id str
    (Optional) The UUID of the topic
    id String
    subscriberId String
    (Optional) The UUID of the subscriber
    subscriptionEndpoint String
    The subscription endpoint
    subscriptionId String
    topicId String
    (Optional) The UUID of the topic

    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