1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getSmnTopics
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getSmnTopics

Explore with Pulumi AI

flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

Use this data source to get an array of SMN topics.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const topicName = config.requireObject("topicName");
const tpoic1 = flexibleengine.getSmnTopics({
    name: topicName,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
topic_name = config.require_object("topicName")
tpoic1 = flexibleengine.get_smn_topics(name=topic_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		topicName := cfg.RequireObject("topicName")
		_, err := flexibleengine.GetSmnTopics(ctx, &flexibleengine.GetSmnTopicsArgs{
			Name: pulumi.StringRef(topicName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var topicName = config.RequireObject<dynamic>("topicName");
    var tpoic1 = Flexibleengine.GetSmnTopics.Invoke(new()
    {
        Name = topicName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetSmnTopicsArgs;
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 config = ctx.config();
        final var topicName = config.get("topicName");
        final var tpoic1 = FlexibleengineFunctions.getSmnTopics(GetSmnTopicsArgs.builder()
            .name(topicName)
            .build());

    }
}
Copy
configuration:
  topicName:
    type: dynamic
variables:
  tpoic1:
    fn::invoke:
      function: flexibleengine:getSmnTopics
      arguments:
        name: ${topicName}
Copy

Using getSmnTopics

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 getSmnTopics(args: GetSmnTopicsArgs, opts?: InvokeOptions): Promise<GetSmnTopicsResult>
function getSmnTopicsOutput(args: GetSmnTopicsOutputArgs, opts?: InvokeOptions): Output<GetSmnTopicsResult>
Copy
def get_smn_topics(display_name: Optional[str] = None,
                   enterprise_project_id: Optional[str] = None,
                   id: Optional[str] = None,
                   name: Optional[str] = None,
                   region: Optional[str] = None,
                   topic_urn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSmnTopicsResult
def get_smn_topics_output(display_name: Optional[pulumi.Input[str]] = None,
                   enterprise_project_id: Optional[pulumi.Input[str]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   region: Optional[pulumi.Input[str]] = None,
                   topic_urn: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSmnTopicsResult]
Copy
func GetSmnTopics(ctx *Context, args *GetSmnTopicsArgs, opts ...InvokeOption) (*GetSmnTopicsResult, error)
func GetSmnTopicsOutput(ctx *Context, args *GetSmnTopicsOutputArgs, opts ...InvokeOption) GetSmnTopicsResultOutput
Copy

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

public static class GetSmnTopics 
{
    public static Task<GetSmnTopicsResult> InvokeAsync(GetSmnTopicsArgs args, InvokeOptions? opts = null)
    public static Output<GetSmnTopicsResult> Invoke(GetSmnTopicsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSmnTopicsResult> getSmnTopics(GetSmnTopicsArgs args, InvokeOptions options)
public static Output<GetSmnTopicsResult> getSmnTopics(GetSmnTopicsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getSmnTopics:getSmnTopics
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DisplayName string
Specifies the topic display name.
EnterpriseProjectId string
Specifies the enterprise project id of the topic.
Id string
The topic ID. The value is the topic URN.
Name string
Specifies the name of the topic.
Region string
Specifies the region in which to obtain the SMN topics. If omitted, the provider-level region will be used.
TopicUrn string
Specifies the topic URN.
DisplayName string
Specifies the topic display name.
EnterpriseProjectId string
Specifies the enterprise project id of the topic.
Id string
The topic ID. The value is the topic URN.
Name string
Specifies the name of the topic.
Region string
Specifies the region in which to obtain the SMN topics. If omitted, the provider-level region will be used.
TopicUrn string
Specifies the topic URN.
displayName String
Specifies the topic display name.
enterpriseProjectId String
Specifies the enterprise project id of the topic.
id String
The topic ID. The value is the topic URN.
name String
Specifies the name of the topic.
region String
Specifies the region in which to obtain the SMN topics. If omitted, the provider-level region will be used.
topicUrn String
Specifies the topic URN.
displayName string
Specifies the topic display name.
enterpriseProjectId string
Specifies the enterprise project id of the topic.
id string
The topic ID. The value is the topic URN.
name string
Specifies the name of the topic.
region string
Specifies the region in which to obtain the SMN topics. If omitted, the provider-level region will be used.
topicUrn string
Specifies the topic URN.
display_name str
Specifies the topic display name.
enterprise_project_id str
Specifies the enterprise project id of the topic.
id str
The topic ID. The value is the topic URN.
name str
Specifies the name of the topic.
region str
Specifies the region in which to obtain the SMN topics. If omitted, the provider-level region will be used.
topic_urn str
Specifies the topic URN.
displayName String
Specifies the topic display name.
enterpriseProjectId String
Specifies the enterprise project id of the topic.
id String
The topic ID. The value is the topic URN.
name String
Specifies the name of the topic.
region String
Specifies the region in which to obtain the SMN topics. If omitted, the provider-level region will be used.
topicUrn String
Specifies the topic URN.

getSmnTopics Result

The following output properties are available:

Id string
The topic ID. The value is the topic URN.
Region string
Topics List<GetSmnTopicsTopic>
An array of SMN topics found. The topics object structure is documented below.
DisplayName string
The topic display name.
EnterpriseProjectId string
The enterprise project id of the topic.
Name string
The name of the topic.
TopicUrn string
The topic URN.
Id string
The topic ID. The value is the topic URN.
Region string
Topics []GetSmnTopicsTopic
An array of SMN topics found. The topics object structure is documented below.
DisplayName string
The topic display name.
EnterpriseProjectId string
The enterprise project id of the topic.
Name string
The name of the topic.
TopicUrn string
The topic URN.
id String
The topic ID. The value is the topic URN.
region String
topics List<GetSmnTopicsTopic>
An array of SMN topics found. The topics object structure is documented below.
displayName String
The topic display name.
enterpriseProjectId String
The enterprise project id of the topic.
name String
The name of the topic.
topicUrn String
The topic URN.
id string
The topic ID. The value is the topic URN.
region string
topics GetSmnTopicsTopic[]
An array of SMN topics found. The topics object structure is documented below.
displayName string
The topic display name.
enterpriseProjectId string
The enterprise project id of the topic.
name string
The name of the topic.
topicUrn string
The topic URN.
id str
The topic ID. The value is the topic URN.
region str
topics Sequence[GetSmnTopicsTopic]
An array of SMN topics found. The topics object structure is documented below.
display_name str
The topic display name.
enterprise_project_id str
The enterprise project id of the topic.
name str
The name of the topic.
topic_urn str
The topic URN.
id String
The topic ID. The value is the topic URN.
region String
topics List<Property Map>
An array of SMN topics found. The topics object structure is documented below.
displayName String
The topic display name.
enterpriseProjectId String
The enterprise project id of the topic.
name String
The name of the topic.
topicUrn String
The topic URN.

Supporting Types

GetSmnTopicsTopic

DisplayName This property is required. string
Specifies the topic display name.
EnterpriseProjectId This property is required. string
Specifies the enterprise project id of the topic.
Id This property is required. string
The topic ID. The value is the topic URN.
Name This property is required. string
Specifies the name of the topic.
PushPolicy This property is required. double
Message pushing policy.

  • 0: indicates that the message sending fails and the message is cached in the queue.
  • 1: indicates that the failed message is discarded.
Tags This property is required. Dictionary<string, string>
TopicUrn This property is required. string
Specifies the topic URN.
DisplayName This property is required. string
Specifies the topic display name.
EnterpriseProjectId This property is required. string
Specifies the enterprise project id of the topic.
Id This property is required. string
The topic ID. The value is the topic URN.
Name This property is required. string
Specifies the name of the topic.
PushPolicy This property is required. float64
Message pushing policy.

  • 0: indicates that the message sending fails and the message is cached in the queue.
  • 1: indicates that the failed message is discarded.
Tags This property is required. map[string]string
TopicUrn This property is required. string
Specifies the topic URN.
displayName This property is required. String
Specifies the topic display name.
enterpriseProjectId This property is required. String
Specifies the enterprise project id of the topic.
id This property is required. String
The topic ID. The value is the topic URN.
name This property is required. String
Specifies the name of the topic.
pushPolicy This property is required. Double
Message pushing policy.

  • 0: indicates that the message sending fails and the message is cached in the queue.
  • 1: indicates that the failed message is discarded.
tags This property is required. Map<String,String>
topicUrn This property is required. String
Specifies the topic URN.
displayName This property is required. string
Specifies the topic display name.
enterpriseProjectId This property is required. string
Specifies the enterprise project id of the topic.
id This property is required. string
The topic ID. The value is the topic URN.
name This property is required. string
Specifies the name of the topic.
pushPolicy This property is required. number
Message pushing policy.

  • 0: indicates that the message sending fails and the message is cached in the queue.
  • 1: indicates that the failed message is discarded.
tags This property is required. {[key: string]: string}
topicUrn This property is required. string
Specifies the topic URN.
display_name This property is required. str
Specifies the topic display name.
enterprise_project_id This property is required. str
Specifies the enterprise project id of the topic.
id This property is required. str
The topic ID. The value is the topic URN.
name This property is required. str
Specifies the name of the topic.
push_policy This property is required. float
Message pushing policy.

  • 0: indicates that the message sending fails and the message is cached in the queue.
  • 1: indicates that the failed message is discarded.
tags This property is required. Mapping[str, str]
topic_urn This property is required. str
Specifies the topic URN.
displayName This property is required. String
Specifies the topic display name.
enterpriseProjectId This property is required. String
Specifies the enterprise project id of the topic.
id This property is required. String
The topic ID. The value is the topic URN.
name This property is required. String
Specifies the name of the topic.
pushPolicy This property is required. Number
Message pushing policy.

  • 0: indicates that the message sending fails and the message is cached in the queue.
  • 1: indicates that the failed message is discarded.
tags This property is required. Map<String>
topicUrn This property is required. String
Specifies the topic URN.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud