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

ibm.EnIntegration

Explore with Pulumi AI

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

    update integration using IBM Cloud™ Event Notifications.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const enKmsIntegration = new ibm.EnIntegration("enKmsIntegration", {
        instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
        integrationId: "xyz-rdserr-froyth-lowhbw",
        type: "kms",
        metadata: {
            endpoint: "https://us-south.kms.cloud.ibm.com",
            crn: "crn:v1:bluemix:public:kms:us-south:a/tyyeeuuii2637390003hehhhhi:fgsyysbnjiios::",
            rootKeyId: "gyyebvhy-34673783-nshuwubw",
        },
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    en_kms_integration = ibm.EnIntegration("enKmsIntegration",
        instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
        integration_id="xyz-rdserr-froyth-lowhbw",
        type="kms",
        metadata={
            "endpoint": "https://us-south.kms.cloud.ibm.com",
            "crn": "crn:v1:bluemix:public:kms:us-south:a/tyyeeuuii2637390003hehhhhi:fgsyysbnjiios::",
            "root_key_id": "gyyebvhy-34673783-nshuwubw",
        })
    
    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.NewEnIntegration(ctx, "enKmsIntegration", &ibm.EnIntegrationArgs{
    			InstanceGuid:  pulumi.Any(ibm_resource_instance.En_terraform_test_resource.Guid),
    			IntegrationId: pulumi.String("xyz-rdserr-froyth-lowhbw"),
    			Type:          pulumi.String("kms"),
    			Metadata: &ibm.EnIntegrationMetadataArgs{
    				Endpoint:  pulumi.String("https://us-south.kms.cloud.ibm.com"),
    				Crn:       pulumi.String("crn:v1:bluemix:public:kms:us-south:a/tyyeeuuii2637390003hehhhhi:fgsyysbnjiios::"),
    				RootKeyId: pulumi.String("gyyebvhy-34673783-nshuwubw"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var enKmsIntegration = new Ibm.EnIntegration("enKmsIntegration", new()
        {
            InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
            IntegrationId = "xyz-rdserr-froyth-lowhbw",
            Type = "kms",
            Metadata = new Ibm.Inputs.EnIntegrationMetadataArgs
            {
                Endpoint = "https://us-south.kms.cloud.ibm.com",
                Crn = "crn:v1:bluemix:public:kms:us-south:a/tyyeeuuii2637390003hehhhhi:fgsyysbnjiios::",
                RootKeyId = "gyyebvhy-34673783-nshuwubw",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.EnIntegration;
    import com.pulumi.ibm.EnIntegrationArgs;
    import com.pulumi.ibm.inputs.EnIntegrationMetadataArgs;
    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 enKmsIntegration = new EnIntegration("enKmsIntegration", EnIntegrationArgs.builder()
                .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
                .integrationId("xyz-rdserr-froyth-lowhbw")
                .type("kms")
                .metadata(EnIntegrationMetadataArgs.builder()
                    .endpoint("https://us-south.kms.cloud.ibm.com")
                    .crn("crn:v1:bluemix:public:kms:us-south:a/tyyeeuuii2637390003hehhhhi:fgsyysbnjiios::")
                    .rootKeyId("gyyebvhy-34673783-nshuwubw")
                    .build())
                .build());
    
        }
    }
    
    resources:
      enKmsIntegration:
        type: ibm:EnIntegration
        properties:
          instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
          integrationId: xyz-rdserr-froyth-lowhbw
          type: kms
          metadata:
            endpoint: https://us-south.kms.cloud.ibm.com
            crn: 'crn:v1:bluemix:public:kms:us-south:a/tyyeeuuii2637390003hehhhhi:fgsyysbnjiios::'
            rootKeyId: gyyebvhy-34673783-nshuwubw
    

    Create EnIntegration Resource

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

    Constructor syntax

    new EnIntegration(name: string, args: EnIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def EnIntegration(resource_name: str,
                      args: EnIntegrationArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnIntegration(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      instance_guid: Optional[str] = None,
                      integration_id: Optional[str] = None,
                      metadata: Optional[EnIntegrationMetadataArgs] = None,
                      type: Optional[str] = None,
                      en_integration_id: Optional[str] = None)
    func NewEnIntegration(ctx *Context, name string, args EnIntegrationArgs, opts ...ResourceOption) (*EnIntegration, error)
    public EnIntegration(string name, EnIntegrationArgs args, CustomResourceOptions? opts = null)
    public EnIntegration(String name, EnIntegrationArgs args)
    public EnIntegration(String name, EnIntegrationArgs args, CustomResourceOptions options)
    
    type: ibm:EnIntegration
    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 EnIntegrationArgs
    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 EnIntegrationArgs
    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 EnIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnIntegrationArgs
    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 enIntegrationResource = new Ibm.EnIntegration("enIntegrationResource", new()
    {
        InstanceGuid = "string",
        IntegrationId = "string",
        Metadata = new Ibm.Inputs.EnIntegrationMetadataArgs
        {
            Crn = "string",
            Endpoint = "string",
            RootKeyId = "string",
        },
        Type = "string",
        EnIntegrationId = "string",
    });
    
    example, err := ibm.NewEnIntegration(ctx, "enIntegrationResource", &ibm.EnIntegrationArgs{
    	InstanceGuid:  pulumi.String("string"),
    	IntegrationId: pulumi.String("string"),
    	Metadata: &ibm.EnIntegrationMetadataArgs{
    		Crn:       pulumi.String("string"),
    		Endpoint:  pulumi.String("string"),
    		RootKeyId: pulumi.String("string"),
    	},
    	Type:            pulumi.String("string"),
    	EnIntegrationId: pulumi.String("string"),
    })
    
    var enIntegrationResource = new EnIntegration("enIntegrationResource", EnIntegrationArgs.builder()
        .instanceGuid("string")
        .integrationId("string")
        .metadata(EnIntegrationMetadataArgs.builder()
            .crn("string")
            .endpoint("string")
            .rootKeyId("string")
            .build())
        .type("string")
        .enIntegrationId("string")
        .build());
    
    en_integration_resource = ibm.EnIntegration("enIntegrationResource",
        instance_guid="string",
        integration_id="string",
        metadata={
            "crn": "string",
            "endpoint": "string",
            "root_key_id": "string",
        },
        type="string",
        en_integration_id="string")
    
    const enIntegrationResource = new ibm.EnIntegration("enIntegrationResource", {
        instanceGuid: "string",
        integrationId: "string",
        metadata: {
            crn: "string",
            endpoint: "string",
            rootKeyId: "string",
        },
        type: "string",
        enIntegrationId: "string",
    });
    
    type: ibm:EnIntegration
    properties:
        enIntegrationId: string
        instanceGuid: string
        integrationId: string
        metadata:
            crn: string
            endpoint: string
            rootKeyId: string
        type: string
    

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

    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    IntegrationId string
    Unique identifier for Integration created with .
    Metadata EnIntegrationMetadata
    Nested scheme for params:
    Type string
    The integration type kms/hs-crypto.
    EnIntegrationId string
    (String) The unique identifier of the en_integration.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    IntegrationId string
    Unique identifier for Integration created with .
    Metadata EnIntegrationMetadataArgs
    Nested scheme for params:
    Type string
    The integration type kms/hs-crypto.
    EnIntegrationId string
    (String) The unique identifier of the en_integration.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    integrationId String
    Unique identifier for Integration created with .
    metadata EnIntegrationMetadata
    Nested scheme for params:
    type String
    The integration type kms/hs-crypto.
    enIntegrationId String
    (String) The unique identifier of the en_integration.
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    integrationId string
    Unique identifier for Integration created with .
    metadata EnIntegrationMetadata
    Nested scheme for params:
    type string
    The integration type kms/hs-crypto.
    enIntegrationId string
    (String) The unique identifier of the en_integration.
    instance_guid str
    Unique identifier for IBM Cloud Event Notifications instance.
    integration_id str
    Unique identifier for Integration created with .
    metadata EnIntegrationMetadataArgs
    Nested scheme for params:
    type str
    The integration type kms/hs-crypto.
    en_integration_id str
    (String) The unique identifier of the en_integration.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    integrationId String
    Unique identifier for Integration created with .
    metadata Property Map
    Nested scheme for params:
    type String
    The integration type kms/hs-crypto.
    enIntegrationId String
    (String) The unique identifier of the en_integration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnIntegration 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 EnIntegration Resource

    Get an existing EnIntegration 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?: EnIntegrationState, opts?: CustomResourceOptions): EnIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            en_integration_id: Optional[str] = None,
            instance_guid: Optional[str] = None,
            integration_id: Optional[str] = None,
            metadata: Optional[EnIntegrationMetadataArgs] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> EnIntegration
    func GetEnIntegration(ctx *Context, name string, id IDInput, state *EnIntegrationState, opts ...ResourceOption) (*EnIntegration, error)
    public static EnIntegration Get(string name, Input<string> id, EnIntegrationState? state, CustomResourceOptions? opts = null)
    public static EnIntegration get(String name, Output<String> id, EnIntegrationState state, CustomResourceOptions options)
    resources:  _:    type: ibm:EnIntegration    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:
    EnIntegrationId string
    (String) The unique identifier of the en_integration.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    IntegrationId string
    Unique identifier for Integration created with .
    Metadata EnIntegrationMetadata
    Nested scheme for params:
    Type string
    The integration type kms/hs-crypto.
    UpdatedAt string
    (String) Last updated time.
    EnIntegrationId string
    (String) The unique identifier of the en_integration.
    InstanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    IntegrationId string
    Unique identifier for Integration created with .
    Metadata EnIntegrationMetadataArgs
    Nested scheme for params:
    Type string
    The integration type kms/hs-crypto.
    UpdatedAt string
    (String) Last updated time.
    enIntegrationId String
    (String) The unique identifier of the en_integration.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    integrationId String
    Unique identifier for Integration created with .
    metadata EnIntegrationMetadata
    Nested scheme for params:
    type String
    The integration type kms/hs-crypto.
    updatedAt String
    (String) Last updated time.
    enIntegrationId string
    (String) The unique identifier of the en_integration.
    instanceGuid string
    Unique identifier for IBM Cloud Event Notifications instance.
    integrationId string
    Unique identifier for Integration created with .
    metadata EnIntegrationMetadata
    Nested scheme for params:
    type string
    The integration type kms/hs-crypto.
    updatedAt string
    (String) Last updated time.
    en_integration_id str
    (String) The unique identifier of the en_integration.
    instance_guid str
    Unique identifier for IBM Cloud Event Notifications instance.
    integration_id str
    Unique identifier for Integration created with .
    metadata EnIntegrationMetadataArgs
    Nested scheme for params:
    type str
    The integration type kms/hs-crypto.
    updated_at str
    (String) Last updated time.
    enIntegrationId String
    (String) The unique identifier of the en_integration.
    instanceGuid String
    Unique identifier for IBM Cloud Event Notifications instance.
    integrationId String
    Unique identifier for Integration created with .
    metadata Property Map
    Nested scheme for params:
    type String
    The integration type kms/hs-crypto.
    updatedAt String
    (String) Last updated time.

    Supporting Types

    EnIntegrationMetadata, EnIntegrationMetadataArgs

    Crn string
    crn of key protect/ hyper protect instance.
    Endpoint string
    key protect/hyper protect service endpoint.
    RootKeyId string
    Root key id.
    Crn string
    crn of key protect/ hyper protect instance.
    Endpoint string
    key protect/hyper protect service endpoint.
    RootKeyId string
    Root key id.
    crn String
    crn of key protect/ hyper protect instance.
    endpoint String
    key protect/hyper protect service endpoint.
    rootKeyId String
    Root key id.
    crn string
    crn of key protect/ hyper protect instance.
    endpoint string
    key protect/hyper protect service endpoint.
    rootKeyId string
    Root key id.
    crn str
    crn of key protect/ hyper protect instance.
    endpoint str
    key protect/hyper protect service endpoint.
    root_key_id str
    Root key id.
    crn String
    crn of key protect/ hyper protect instance.
    endpoint String
    key protect/hyper protect service endpoint.
    rootKeyId String
    Root key id.

    Import

    You can import the ibm_en_integration resource by using id.

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

    <instance_guid>/<integration_id>

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

    • integration_id: A string. Unique identifier for Destination.

    Example

    $ pulumi import ibm:index/enIntegration:EnIntegration en_integration <instance_guid>/<integration_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