mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Add path
to google_pubsub_subscription
The path is used to globally identify a subscription.
This commit is contained in:
parent
e5d92bcbd9
commit
67e99493a0
@ -38,6 +38,11 @@ func resourcePubsubSubscription() *schema.Resource {
|
||||
ForceNew: true,
|
||||
},
|
||||
|
||||
"path": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"push_config": &schema.Schema{
|
||||
Type: schema.TypeList,
|
||||
Optional: true,
|
||||
@ -113,6 +118,7 @@ func resourcePubsubSubscriptionCreate(d *schema.ResourceData, meta interface{})
|
||||
}
|
||||
|
||||
d.SetId(res.Name)
|
||||
d.Set("path", name)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user