Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.pubsub/v1beta1a.Topic
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates the given topic with the given name.
Create Topic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Topic(name: string, args?: TopicArgs, opts?: CustomResourceOptions);
@overload
def Topic(resource_name: str,
args: Optional[TopicArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Topic(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None)
func NewTopic(ctx *Context, name string, args *TopicArgs, opts ...ResourceOption) (*Topic, error)
public Topic(string name, TopicArgs? args = null, CustomResourceOptions? opts = null)
type: google-native:pubsub/v1beta1a:Topic
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 TopicArgs
- 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 TopicArgs
- 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 TopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TopicArgs
- 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 google_nativeTopicResource = new GoogleNative.Pubsub.V1Beta1a.Topic("google-nativeTopicResource", new()
{
Name = "string",
});
example, err := pubsubv1beta1a.NewTopic(ctx, "google-nativeTopicResource", &pubsubv1beta1a.TopicArgs{
Name: pulumi.String("string"),
})
var google_nativeTopicResource = new Topic("google-nativeTopicResource", TopicArgs.builder()
.name("string")
.build());
google_native_topic_resource = google_native.pubsub.v1beta1a.Topic("google-nativeTopicResource", name="string")
const google_nativeTopicResource = new google_native.pubsub.v1beta1a.Topic("google-nativeTopicResource", {name: "string"});
type: google-native:pubsub/v1beta1a:Topic
properties:
name: string
Topic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Topic resource accepts the following input properties:
- Name string
- Name of the topic.
- Name string
- Name of the topic.
- name String
- Name of the topic.
- name string
- Name of the topic.
- name str
- Name of the topic.
- name String
- Name of the topic.
Outputs
All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.