1. Packages
  2. Ibm Provider
  3. API Docs
  4. EnIbmsource
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.EnIbmsource

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    update a IBM Cloud source registered with Event Notifications by using IBM Cloud™ Event Notifications.

    Create EnIbmsource Resource

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

    Constructor syntax

    new EnIbmsource(name: string, args: EnIbmsourceArgs, opts?: CustomResourceOptions);
    @overload
    def EnIbmsource(resource_name: str,
                    args: EnIbmsourceArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnIbmsource(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    enabled: Optional[bool] = None,
                    instance_guid: Optional[str] = None,
                    source_id: Optional[str] = None,
                    en_ibmsource_id: Optional[str] = None)
    func NewEnIbmsource(ctx *Context, name string, args EnIbmsourceArgs, opts ...ResourceOption) (*EnIbmsource, error)
    public EnIbmsource(string name, EnIbmsourceArgs args, CustomResourceOptions? opts = null)
    public EnIbmsource(String name, EnIbmsourceArgs args)
    public EnIbmsource(String name, EnIbmsourceArgs args, CustomResourceOptions options)
    
    type: ibm:EnIbmsource
    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 EnIbmsourceArgs
    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 EnIbmsourceArgs
    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 EnIbmsourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnIbmsourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnIbmsourceArgs
    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 enIbmsourceResource = new Ibm.EnIbmsource("enIbmsourceResource", new()
    {
        Enabled = false,
        InstanceGuid = "string",
        SourceId = "string",
        EnIbmsourceId = "string",
    });
    
    example, err := ibm.NewEnIbmsource(ctx, "enIbmsourceResource", &ibm.EnIbmsourceArgs{
    	Enabled:       pulumi.Bool(false),
    	InstanceGuid:  pulumi.String("string"),
    	SourceId:      pulumi.String("string"),
    	EnIbmsourceId: pulumi.String("string"),
    })
    
    var enIbmsourceResource = new EnIbmsource("enIbmsourceResource", EnIbmsourceArgs.builder()
        .enabled(false)
        .instanceGuid("string")
        .sourceId("string")
        .enIbmsourceId("string")
        .build());
    
    en_ibmsource_resource = ibm.EnIbmsource("enIbmsourceResource",
        enabled=False,
        instance_guid="string",
        source_id="string",
        en_ibmsource_id="string")
    
    const enIbmsourceResource = new ibm.EnIbmsource("enIbmsourceResource", {
        enabled: false,
        instanceGuid: "string",
        sourceId: "string",
        enIbmsourceId: "string",
    });
    
    type: ibm:EnIbmsource
    properties:
        enIbmsourceId: string
        enabled: false
        instanceGuid: string
        sourceId: string
    

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

    Enabled bool
    The enabled flag to enbale the IBM Cloud source.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    SourceId string
    The Source id of the IBM Cloud source integrated with Event Notifications..
    EnIbmsourceId string
    (String) The unique identifier of the en_ibmsource.
    Enabled bool
    The enabled flag to enbale the IBM Cloud source.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    SourceId string
    The Source id of the IBM Cloud source integrated with Event Notifications..
    EnIbmsourceId string
    (String) The unique identifier of the en_ibmsource.
    enabled Boolean
    The enabled flag to enbale the IBM Cloud source.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    sourceId String
    The Source id of the IBM Cloud source integrated with Event Notifications..
    enIbmsourceId String
    (String) The unique identifier of the en_ibmsource.
    enabled boolean
    The enabled flag to enbale the IBM Cloud source.
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    sourceId string
    The Source id of the IBM Cloud source integrated with Event Notifications..
    enIbmsourceId string
    (String) The unique identifier of the en_ibmsource.
    enabled bool
    The enabled flag to enbale the IBM Cloud source.
    instance_guid str
    Unique identifier for IBM Cloud Event Notifications instance.
    source_id str
    The Source id of the IBM Cloud source integrated with Event Notifications..
    en_ibmsource_id str
    (String) The unique identifier of the en_ibmsource.
    enabled Boolean
    The enabled flag to enbale the IBM Cloud source.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    sourceId String
    The Source id of the IBM Cloud source integrated with Event Notifications..
    enIbmsourceId String
    (String) The unique identifier of the en_ibmsource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    (String) Last updated time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    (String) Last updated time.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    (String) Last updated time.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    (String) Last updated time.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    (String) Last updated time.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    (String) Last updated time.

    Look up Existing EnIbmsource Resource

    Get an existing EnIbmsource 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?: EnIbmsourceState, opts?: CustomResourceOptions): EnIbmsource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            en_ibmsource_id: Optional[str] = None,
            enabled: Optional[bool] = None,
            instance_guid: Optional[str] = None,
            source_id: Optional[str] = None,
            updated_at: Optional[str] = None) -> EnIbmsource
    func GetEnIbmsource(ctx *Context, name string, id IDInput, state *EnIbmsourceState, opts ...ResourceOption) (*EnIbmsource, error)
    public static EnIbmsource Get(string name, Input<string> id, EnIbmsourceState? state, CustomResourceOptions? opts = null)
    public static EnIbmsource get(String name, Output<String> id, EnIbmsourceState state, CustomResourceOptions options)
    resources:  _:    type: ibm:EnIbmsource    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.
    The following state arguments are supported:
    EnIbmsourceId string
    (String) The unique identifier of the en_ibmsource.
    Enabled bool
    The enabled flag to enbale the IBM Cloud source.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    SourceId string
    The Source id of the IBM Cloud source integrated with Event Notifications..
    UpdatedAt string
    (String) Last updated time.
    EnIbmsourceId string
    (String) The unique identifier of the en_ibmsource.
    Enabled bool
    The enabled flag to enbale the IBM Cloud source.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    SourceId string
    The Source id of the IBM Cloud source integrated with Event Notifications..
    UpdatedAt string
    (String) Last updated time.
    enIbmsourceId String
    (String) The unique identifier of the en_ibmsource.
    enabled Boolean
    The enabled flag to enbale the IBM Cloud source.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    sourceId String
    The Source id of the IBM Cloud source integrated with Event Notifications..
    updatedAt String
    (String) Last updated time.
    enIbmsourceId string
    (String) The unique identifier of the en_ibmsource.
    enabled boolean
    The enabled flag to enbale the IBM Cloud source.
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    sourceId string
    The Source id of the IBM Cloud source integrated with Event Notifications..
    updatedAt string
    (String) Last updated time.
    en_ibmsource_id str
    (String) The unique identifier of the en_ibmsource.
    enabled bool
    The enabled flag to enbale the IBM Cloud source.
    instance_guid str
    Unique identifier for IBM Cloud Event Notifications instance.
    source_id str
    The Source id of the IBM Cloud source integrated with Event Notifications..
    updated_at str
    (String) Last updated time.
    enIbmsourceId String
    (String) The unique identifier of the en_ibmsource.
    enabled Boolean
    The enabled flag to enbale the IBM Cloud source.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    sourceId String
    The Source id of the IBM Cloud source integrated with Event Notifications..
    updatedAt String
    (String) Last updated time.

    Import

    You can import the ibm_en_ibmsource resource by using id.

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

    <instance_guid>/<source_id>

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

    • source_id: A string. Unique identifier for Source.

    Example

    $ pulumi import ibm:index/enIbmsource:EnIbmsource en_ibmsource <instance_guid>/<source_id>
    

    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud