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,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
topic_name = config.require_object("topicName")
tpoic1 = flexibleengine.get_smn_topics(name=topic_name)
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
})
}
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,
});
});
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());
}
}
configuration:
topicName:
type: dynamic
variables:
tpoic1:
fn::invoke:
function: flexibleengine:getSmnTopics
arguments:
name: ${topicName}
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>
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]
func GetSmnTopics(ctx *Context, args *GetSmnTopicsArgs, opts ...InvokeOption) (*GetSmnTopicsResult, error)
func GetSmnTopicsOutput(ctx *Context, args *GetSmnTopicsOutputArgs, opts ...InvokeOption) GetSmnTopicsResultOutput
> 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)
}
public static CompletableFuture<GetSmnTopicsResult> getSmnTopics(GetSmnTopicsArgs args, InvokeOptions options)
public static Output<GetSmnTopicsResult> getSmnTopics(GetSmnTopicsArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getSmnTopics:getSmnTopics
arguments:
# arguments dictionary
The following arguments are supported:
- Display
Name string - Specifies the topic display name.
- Enterprise
Project stringId - 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.
- Topic
Urn string - Specifies the topic URN.
- Display
Name string - Specifies the topic display name.
- Enterprise
Project stringId - 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.
- Topic
Urn string - Specifies the topic URN.
- display
Name String - Specifies the topic display name.
- enterprise
Project StringId - 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.
- topic
Urn String - Specifies the topic URN.
- display
Name string - Specifies the topic display name.
- enterprise
Project stringId - 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.
- topic
Urn string - Specifies the topic URN.
- display_
name str - Specifies the topic display name.
- enterprise_
project_ strid - 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.
- display
Name String - Specifies the topic display name.
- enterprise
Project StringId - 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.
- topic
Urn 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<Get
Smn Topics Topic> - An array of SMN topics found. The topics object structure is documented below.
- Display
Name string - The topic display name.
- Enterprise
Project stringId - The enterprise project id of the topic.
- Name string
- The name of the topic.
- Topic
Urn string - The topic URN.
- Id string
- The topic ID. The value is the topic URN.
- Region string
- Topics
[]Get
Smn Topics Topic - An array of SMN topics found. The topics object structure is documented below.
- Display
Name string - The topic display name.
- Enterprise
Project stringId - The enterprise project id of the topic.
- Name string
- The name of the topic.
- Topic
Urn string - The topic URN.
- id String
- The topic ID. The value is the topic URN.
- region String
- topics
List<Get
Smn Topics Topic> - An array of SMN topics found. The topics object structure is documented below.
- display
Name String - The topic display name.
- enterprise
Project StringId - The enterprise project id of the topic.
- name String
- The name of the topic.
- topic
Urn String - The topic URN.
- id string
- The topic ID. The value is the topic URN.
- region string
- topics
Get
Smn Topics Topic[] - An array of SMN topics found. The topics object structure is documented below.
- display
Name string - The topic display name.
- enterprise
Project stringId - The enterprise project id of the topic.
- name string
- The name of the topic.
- topic
Urn string - The topic URN.
- id str
- The topic ID. The value is the topic URN.
- region str
- topics
Sequence[Get
Smn Topics Topic] - An array of SMN topics found. The topics object structure is documented below.
- display_
name str - The topic display name.
- enterprise_
project_ strid - 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.
- display
Name String - The topic display name.
- enterprise
Project StringId - The enterprise project id of the topic.
- name String
- The name of the topic.
- topic
Urn String - The topic URN.
Supporting Types
GetSmnTopicsTopic
- Display
Name string - Specifies the topic display name.
- Enterprise
Project stringId - 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.
- Push
Policy 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.
- Dictionary<string, string>
- Topic
Urn string - Specifies the topic URN.
- Display
Name string - Specifies the topic display name.
- Enterprise
Project stringId - 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.
- Push
Policy 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.
- map[string]string
- Topic
Urn string - Specifies the topic URN.
- display
Name String - Specifies the topic display name.
- enterprise
Project StringId - 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.
- push
Policy 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.
- Map<String,String>
- topic
Urn String - Specifies the topic URN.
- display
Name string - Specifies the topic display name.
- enterprise
Project stringId - 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.
- push
Policy 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.
- {[key: string]: string}
- topic
Urn string - Specifies the topic URN.
- display_
name str - Specifies the topic display name.
- enterprise_
project_ strid - 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.
- push_
policy 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.
- Mapping[str, str]
- topic_
urn str - Specifies the topic URN.
- display
Name String - Specifies the topic display name.
- enterprise
Project StringId - 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.
- push
Policy 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.
- Map<String>
- topic
Urn 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