1. Packages
  2. Ibm Provider
  3. API Docs
  4. EnSubscriptionChrome
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.EnSubscriptionChrome

Explore with Pulumi AI

Create, update, or delete a Chrome subscription by using IBM Cloud™ Event Notifications.

Example Usage

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

const chromeSubscription = new ibm.EnSubscriptionChrome("chromeSubscription", {
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    description: "Chrome Subscription for Notification",
    destinationId: ibm_en_destination_chrome.chrome_destination.destination_id,
    topicId: ibm_en_topic.topic1.topic_id,
});
Copy
import pulumi
import pulumi_ibm as ibm

chrome_subscription = ibm.EnSubscriptionChrome("chromeSubscription",
    instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    description="Chrome Subscription for Notification",
    destination_id=ibm_en_destination_chrome["chrome_destination"]["destination_id"],
    topic_id=ibm_en_topic["topic1"]["topic_id"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewEnSubscriptionChrome(ctx, "chromeSubscription", &ibm.EnSubscriptionChromeArgs{
			InstanceGuid:  pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
			Description:   pulumi.String("Chrome Subscription for Notification"),
			DestinationId: pulumi.Any(ibm_en_destination_chrome.Chrome_destination.Destination_id),
			TopicId:       pulumi.Any(ibm_en_topic.Topic1.Topic_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var chromeSubscription = new Ibm.EnSubscriptionChrome("chromeSubscription", new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        Description = "Chrome Subscription for Notification",
        DestinationId = ibm_en_destination_chrome.Chrome_destination.Destination_id,
        TopicId = ibm_en_topic.Topic1.Topic_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.EnSubscriptionChrome;
import com.pulumi.ibm.EnSubscriptionChromeArgs;
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) {
        var chromeSubscription = new EnSubscriptionChrome("chromeSubscription", EnSubscriptionChromeArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .description("Chrome Subscription for Notification")
            .destinationId(ibm_en_destination_chrome.chrome_destination().destination_id())
            .topicId(ibm_en_topic.topic1().topic_id())
            .build());

    }
}
Copy
resources:
  chromeSubscription:
    type: ibm:EnSubscriptionChrome
    properties:
      instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
      description: Chrome Subscription for Notification
      destinationId: ${ibm_en_destination_chrome.chrome_destination.destination_id}
      topicId: ${ibm_en_topic.topic1.topic_id}
Copy

Create EnSubscriptionChrome Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EnSubscriptionChrome(name: string, args: EnSubscriptionChromeArgs, opts?: CustomResourceOptions);
@overload
def EnSubscriptionChrome(resource_name: str,
                         args: EnSubscriptionChromeArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def EnSubscriptionChrome(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         destination_id: Optional[str] = None,
                         instance_guid: Optional[str] = None,
                         topic_id: Optional[str] = None,
                         description: Optional[str] = None,
                         en_subscription_chrome_id: Optional[str] = None,
                         name: Optional[str] = None)
func NewEnSubscriptionChrome(ctx *Context, name string, args EnSubscriptionChromeArgs, opts ...ResourceOption) (*EnSubscriptionChrome, error)
public EnSubscriptionChrome(string name, EnSubscriptionChromeArgs args, CustomResourceOptions? opts = null)
public EnSubscriptionChrome(String name, EnSubscriptionChromeArgs args)
public EnSubscriptionChrome(String name, EnSubscriptionChromeArgs args, CustomResourceOptions options)
type: ibm:EnSubscriptionChrome
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EnSubscriptionChromeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EnSubscriptionChromeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EnSubscriptionChromeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EnSubscriptionChromeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EnSubscriptionChromeArgs
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 enSubscriptionChromeResource = new Ibm.EnSubscriptionChrome("enSubscriptionChromeResource", new()
{
    DestinationId = "string",
    InstanceGuid = "string",
    TopicId = "string",
    Description = "string",
    EnSubscriptionChromeId = "string",
    Name = "string",
});
Copy
example, err := ibm.NewEnSubscriptionChrome(ctx, "enSubscriptionChromeResource", &ibm.EnSubscriptionChromeArgs{
	DestinationId:          pulumi.String("string"),
	InstanceGuid:           pulumi.String("string"),
	TopicId:                pulumi.String("string"),
	Description:            pulumi.String("string"),
	EnSubscriptionChromeId: pulumi.String("string"),
	Name:                   pulumi.String("string"),
})
Copy
var enSubscriptionChromeResource = new EnSubscriptionChrome("enSubscriptionChromeResource", EnSubscriptionChromeArgs.builder()
    .destinationId("string")
    .instanceGuid("string")
    .topicId("string")
    .description("string")
    .enSubscriptionChromeId("string")
    .name("string")
    .build());
Copy
en_subscription_chrome_resource = ibm.EnSubscriptionChrome("enSubscriptionChromeResource",
    destination_id="string",
    instance_guid="string",
    topic_id="string",
    description="string",
    en_subscription_chrome_id="string",
    name="string")
Copy
const enSubscriptionChromeResource = new ibm.EnSubscriptionChrome("enSubscriptionChromeResource", {
    destinationId: "string",
    instanceGuid: "string",
    topicId: "string",
    description: "string",
    enSubscriptionChromeId: "string",
    name: "string",
});
Copy
type: ibm:EnSubscriptionChrome
properties:
    description: string
    destinationId: string
    enSubscriptionChromeId: string
    instanceGuid: string
    name: string
    topicId: string
Copy

EnSubscriptionChrome 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 EnSubscriptionChrome resource accepts the following input properties:

DestinationId This property is required. string
Destination ID.
InstanceGuid This property is required. string
Unique identifier for IBM Cloud Event Notifications instance.
TopicId This property is required. string
Topic ID.
Description string
Subscription description.
EnSubscriptionChromeId string
(String) The unique identifier of the chrome_subscription.
Name string
Subscription name.
DestinationId This property is required. string
Destination ID.
InstanceGuid This property is required. string
Unique identifier for IBM Cloud Event Notifications instance.
TopicId This property is required. string
Topic ID.
Description string
Subscription description.
EnSubscriptionChromeId string
(String) The unique identifier of the chrome_subscription.
Name string
Subscription name.
destinationId This property is required. String
Destination ID.
instanceGuid This property is required. String
Unique identifier for IBM Cloud Event Notifications instance.
topicId This property is required. String
Topic ID.
description String
Subscription description.
enSubscriptionChromeId String
(String) The unique identifier of the chrome_subscription.
name String
Subscription name.
destinationId This property is required. string
Destination ID.
instanceGuid This property is required. string
Unique identifier for IBM Cloud Event Notifications instance.
topicId This property is required. string
Topic ID.
description string
Subscription description.
enSubscriptionChromeId string
(String) The unique identifier of the chrome_subscription.
name string
Subscription name.
destination_id This property is required. str
Destination ID.
instance_guid This property is required. str
Unique identifier for IBM Cloud Event Notifications instance.
topic_id This property is required. str
Topic ID.
description str
Subscription description.
en_subscription_chrome_id str
(String) The unique identifier of the chrome_subscription.
name str
Subscription name.
destinationId This property is required. String
Destination ID.
instanceGuid This property is required. String
Unique identifier for IBM Cloud Event Notifications instance.
topicId This property is required. String
Topic ID.
description String
Subscription description.
enSubscriptionChromeId String
(String) The unique identifier of the chrome_subscription.
name String
Subscription name.

Outputs

All input properties are implicitly available as output properties. Additionally, the EnSubscriptionChrome resource produces the following output properties:

DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
Id string
The provider-assigned unique ID for this managed resource.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
Id string
The provider-assigned unique ID for this managed resource.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
id String
The provider-assigned unique ID for this managed resource.
subscriptionId String
(String) The unique identifier of the created subscription.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.
destinationName string
The Destintion name.
destinationType string
The type of Destination.
id string
The provider-assigned unique ID for this managed resource.
subscriptionId string
(String) The unique identifier of the created subscription.
topicName string
Name of the topic.
updatedAt string
(String) Last updated time.
destination_name str
The Destintion name.
destination_type str
The type of Destination.
id str
The provider-assigned unique ID for this managed resource.
subscription_id str
(String) The unique identifier of the created subscription.
topic_name str
Name of the topic.
updated_at str
(String) Last updated time.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
id String
The provider-assigned unique ID for this managed resource.
subscriptionId String
(String) The unique identifier of the created subscription.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.

Look up Existing EnSubscriptionChrome Resource

Get an existing EnSubscriptionChrome 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?: EnSubscriptionChromeState, opts?: CustomResourceOptions): EnSubscriptionChrome
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        destination_id: Optional[str] = None,
        destination_name: Optional[str] = None,
        destination_type: Optional[str] = None,
        en_subscription_chrome_id: Optional[str] = None,
        instance_guid: Optional[str] = None,
        name: Optional[str] = None,
        subscription_id: Optional[str] = None,
        topic_id: Optional[str] = None,
        topic_name: Optional[str] = None,
        updated_at: Optional[str] = None) -> EnSubscriptionChrome
func GetEnSubscriptionChrome(ctx *Context, name string, id IDInput, state *EnSubscriptionChromeState, opts ...ResourceOption) (*EnSubscriptionChrome, error)
public static EnSubscriptionChrome Get(string name, Input<string> id, EnSubscriptionChromeState? state, CustomResourceOptions? opts = null)
public static EnSubscriptionChrome get(String name, Output<String> id, EnSubscriptionChromeState state, CustomResourceOptions options)
resources:  _:    type: ibm:EnSubscriptionChrome    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Description string
Subscription description.
DestinationId string
Destination ID.
DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
EnSubscriptionChromeId string
(String) The unique identifier of the chrome_subscription.
InstanceGuid string
Unique identifier for IBM Cloud Event Notifications instance.
Name string
Subscription name.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicId string
Topic ID.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
Description string
Subscription description.
DestinationId string
Destination ID.
DestinationName string
The Destintion name.
DestinationType string
The type of Destination.
EnSubscriptionChromeId string
(String) The unique identifier of the chrome_subscription.
InstanceGuid string
Unique identifier for IBM Cloud Event Notifications instance.
Name string
Subscription name.
SubscriptionId string
(String) The unique identifier of the created subscription.
TopicId string
Topic ID.
TopicName string
Name of the topic.
UpdatedAt string
(String) Last updated time.
description String
Subscription description.
destinationId String
Destination ID.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
enSubscriptionChromeId String
(String) The unique identifier of the chrome_subscription.
instanceGuid String
Unique identifier for IBM Cloud Event Notifications instance.
name String
Subscription name.
subscriptionId String
(String) The unique identifier of the created subscription.
topicId String
Topic ID.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.
description string
Subscription description.
destinationId string
Destination ID.
destinationName string
The Destintion name.
destinationType string
The type of Destination.
enSubscriptionChromeId string
(String) The unique identifier of the chrome_subscription.
instanceGuid string
Unique identifier for IBM Cloud Event Notifications instance.
name string
Subscription name.
subscriptionId string
(String) The unique identifier of the created subscription.
topicId string
Topic ID.
topicName string
Name of the topic.
updatedAt string
(String) Last updated time.
description str
Subscription description.
destination_id str
Destination ID.
destination_name str
The Destintion name.
destination_type str
The type of Destination.
en_subscription_chrome_id str
(String) The unique identifier of the chrome_subscription.
instance_guid str
Unique identifier for IBM Cloud Event Notifications instance.
name str
Subscription name.
subscription_id str
(String) The unique identifier of the created subscription.
topic_id str
Topic ID.
topic_name str
Name of the topic.
updated_at str
(String) Last updated time.
description String
Subscription description.
destinationId String
Destination ID.
destinationName String
The Destintion name.
destinationType String
The type of Destination.
enSubscriptionChromeId String
(String) The unique identifier of the chrome_subscription.
instanceGuid String
Unique identifier for IBM Cloud Event Notifications instance.
name String
Subscription name.
subscriptionId String
(String) The unique identifier of the created subscription.
topicId String
Topic ID.
topicName String
Name of the topic.
updatedAt String
(String) Last updated time.

Import

You can import the ibm_en_subscription_chrome resource by using id.

The id property can be formed from instance_guid, and subscription_id in the following format:

<instance_guid>/<subscription_id>

  • instance_guid: A string. Unique identifier for IBM Cloud Event Notifications instance.

  • subscription_id: A string. Unique identifier for Subscription.

Example

$ pulumi import ibm:index/enSubscriptionChrome:EnSubscriptionChrome chrome_subscription <instance_guid>/<subscription_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.