hsdp.DbsTopicSubscription
Explore with Pulumi AI
Manages Connect DBS Topic Subscriptions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Attributes reference
In addition to all arguments above, the following attributes are exported:
id
- The ID reference of the subscription (format:${GUID}
)name
- The name of the subscriptionstatus
- The status of the subscriptionrule_name
- The rule name of the subscription
Create DbsTopicSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbsTopicSubscription(name: string, args: DbsTopicSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def DbsTopicSubscription(resource_name: str,
args: DbsTopicSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbsTopicSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_type: Optional[str] = None,
description: Optional[str] = None,
name_infix: Optional[str] = None,
subscriber_id: Optional[str] = None,
dbs_topic_subscription_id: Optional[str] = None,
deliver_data_only: Optional[bool] = None,
kinesis_stream_partition_key: Optional[str] = None)
func NewDbsTopicSubscription(ctx *Context, name string, args DbsTopicSubscriptionArgs, opts ...ResourceOption) (*DbsTopicSubscription, error)
public DbsTopicSubscription(string name, DbsTopicSubscriptionArgs args, CustomResourceOptions? opts = null)
public DbsTopicSubscription(String name, DbsTopicSubscriptionArgs args)
public DbsTopicSubscription(String name, DbsTopicSubscriptionArgs args, CustomResourceOptions options)
type: hsdp:DbsTopicSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DbsTopicSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DbsTopicSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DbsTopicSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbsTopicSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbsTopicSubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dbsTopicSubscriptionResource = new Hsdp.DbsTopicSubscription("dbsTopicSubscriptionResource", new()
{
DataType = "string",
Description = "string",
NameInfix = "string",
SubscriberId = "string",
DbsTopicSubscriptionId = "string",
DeliverDataOnly = false,
KinesisStreamPartitionKey = "string",
});
example, err := hsdp.NewDbsTopicSubscription(ctx, "dbsTopicSubscriptionResource", &hsdp.DbsTopicSubscriptionArgs{
DataType: pulumi.String("string"),
Description: pulumi.String("string"),
NameInfix: pulumi.String("string"),
SubscriberId: pulumi.String("string"),
DbsTopicSubscriptionId: pulumi.String("string"),
DeliverDataOnly: pulumi.Bool(false),
KinesisStreamPartitionKey: pulumi.String("string"),
})
var dbsTopicSubscriptionResource = new DbsTopicSubscription("dbsTopicSubscriptionResource", DbsTopicSubscriptionArgs.builder()
.dataType("string")
.description("string")
.nameInfix("string")
.subscriberId("string")
.dbsTopicSubscriptionId("string")
.deliverDataOnly(false)
.kinesisStreamPartitionKey("string")
.build());
dbs_topic_subscription_resource = hsdp.DbsTopicSubscription("dbsTopicSubscriptionResource",
data_type="string",
description="string",
name_infix="string",
subscriber_id="string",
dbs_topic_subscription_id="string",
deliver_data_only=False,
kinesis_stream_partition_key="string")
const dbsTopicSubscriptionResource = new hsdp.DbsTopicSubscription("dbsTopicSubscriptionResource", {
dataType: "string",
description: "string",
nameInfix: "string",
subscriberId: "string",
dbsTopicSubscriptionId: "string",
deliverDataOnly: false,
kinesisStreamPartitionKey: "string",
});
type: hsdp:DbsTopicSubscription
properties:
dataType: string
dbsTopicSubscriptionId: string
deliverDataOnly: false
description: string
kinesisStreamPartitionKey: string
nameInfix: string
subscriberId: string
DbsTopicSubscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DbsTopicSubscription resource accepts the following input properties:
- Data
Type string - The data type of the topic
- Description string
- A short description of the subscription
- Name
Infix string - The name infix of the subscription
- Subscriber
Id string - The ID of the subscriber to associate with this topic subscription
- Dbs
Topic stringSubscription Id - Deliver
Data boolOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- Kinesis
Stream stringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- Data
Type string - The data type of the topic
- Description string
- A short description of the subscription
- Name
Infix string - The name infix of the subscription
- Subscriber
Id string - The ID of the subscriber to associate with this topic subscription
- Dbs
Topic stringSubscription Id - Deliver
Data boolOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- Kinesis
Stream stringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- data
Type String - The data type of the topic
- description String
- A short description of the subscription
- name
Infix String - The name infix of the subscription
- subscriber
Id String - The ID of the subscriber to associate with this topic subscription
- dbs
Topic StringSubscription Id - deliver
Data BooleanOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- kinesis
Stream StringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- data
Type string - The data type of the topic
- description string
- A short description of the subscription
- name
Infix string - The name infix of the subscription
- subscriber
Id string - The ID of the subscriber to associate with this topic subscription
- dbs
Topic stringSubscription Id - deliver
Data booleanOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- kinesis
Stream stringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- data_
type str - The data type of the topic
- description str
- A short description of the subscription
- name_
infix str - The name infix of the subscription
- subscriber_
id str - The ID of the subscriber to associate with this topic subscription
- dbs_
topic_ strsubscription_ id - deliver_
data_ boolonly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- kinesis_
stream_ strpartition_ key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- data
Type String - The data type of the topic
- description String
- A short description of the subscription
- name
Infix String - The name infix of the subscription
- subscriber
Id String - The ID of the subscriber to associate with this topic subscription
- dbs
Topic StringSubscription Id - deliver
Data BooleanOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- kinesis
Stream StringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
Outputs
All input properties are implicitly available as output properties. Additionally, the DbsTopicSubscription resource produces the following output properties:
Look up Existing DbsTopicSubscription Resource
Get an existing DbsTopicSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DbsTopicSubscriptionState, opts?: CustomResourceOptions): DbsTopicSubscription
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_type: Optional[str] = None,
dbs_topic_subscription_id: Optional[str] = None,
deliver_data_only: Optional[bool] = None,
description: Optional[str] = None,
kinesis_stream_partition_key: Optional[str] = None,
name: Optional[str] = None,
name_infix: Optional[str] = None,
rule_name: Optional[str] = None,
status: Optional[str] = None,
subscriber_id: Optional[str] = None) -> DbsTopicSubscription
func GetDbsTopicSubscription(ctx *Context, name string, id IDInput, state *DbsTopicSubscriptionState, opts ...ResourceOption) (*DbsTopicSubscription, error)
public static DbsTopicSubscription Get(string name, Input<string> id, DbsTopicSubscriptionState? state, CustomResourceOptions? opts = null)
public static DbsTopicSubscription get(String name, Output<String> id, DbsTopicSubscriptionState state, CustomResourceOptions options)
resources: _: type: hsdp:DbsTopicSubscription get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Data
Type string - The data type of the topic
- Dbs
Topic stringSubscription Id - Deliver
Data boolOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- Description string
- A short description of the subscription
- Kinesis
Stream stringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- Name string
- Name
Infix string - The name infix of the subscription
- Rule
Name string - Status string
- Subscriber
Id string - The ID of the subscriber to associate with this topic subscription
- Data
Type string - The data type of the topic
- Dbs
Topic stringSubscription Id - Deliver
Data boolOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- Description string
- A short description of the subscription
- Kinesis
Stream stringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- Name string
- Name
Infix string - The name infix of the subscription
- Rule
Name string - Status string
- Subscriber
Id string - The ID of the subscriber to associate with this topic subscription
- data
Type String - The data type of the topic
- dbs
Topic StringSubscription Id - deliver
Data BooleanOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- description String
- A short description of the subscription
- kinesis
Stream StringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- name String
- name
Infix String - The name infix of the subscription
- rule
Name String - status String
- subscriber
Id String - The ID of the subscriber to associate with this topic subscription
- data
Type string - The data type of the topic
- dbs
Topic stringSubscription Id - deliver
Data booleanOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- description string
- A short description of the subscription
- kinesis
Stream stringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- name string
- name
Infix string - The name infix of the subscription
- rule
Name string - status string
- subscriber
Id string - The ID of the subscriber to associate with this topic subscription
- data_
type str - The data type of the topic
- dbs_
topic_ strsubscription_ id - deliver_
data_ boolonly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- description str
- A short description of the subscription
- kinesis_
stream_ strpartition_ key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- name str
- name_
infix str - The name infix of the subscription
- rule_
name str - status str
- subscriber_
id str - The ID of the subscriber to associate with this topic subscription
- data
Type String - The data type of the topic
- dbs
Topic StringSubscription Id - deliver
Data BooleanOnly - Boolean designating whether to deliver only data (true) or data and metadata (false). Default is
false
- description String
- A short description of the subscription
- kinesis
Stream StringPartition Key - When used in combination with a Kinesis Subscriber, the Stream Partition Key for inserting the data into the Kinesis Stream needs to be provided. Example:=
${newuuid()}
- name String
- name
Infix String - The name infix of the subscription
- rule
Name String - status String
- subscriber
Id String - The ID of the subscriber to associate with this topic subscription
Import
$ pulumi import hsdp:index/dbsTopicSubscription:DbsTopicSubscription An existing Topic subscription using `hsdp_dbs_topic_subscription`, e.g.
bash
$ pulumi import hsdp:index/dbsTopicSubscription:DbsTopicSubscription target guid-of-the-subscription-to-import
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.