ibm.EnIntegration
Explore with Pulumi AI
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:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Integration
Id string - Unique identifier for Integration created with .
- Metadata
En
Integration Metadata - Nested scheme for params:
- Type string
- The integration type kms/hs-crypto.
- En
Integration stringId - (String) The unique identifier of the
en_integration
.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Integration
Id string - Unique identifier for Integration created with .
- Metadata
En
Integration Metadata Args - Nested scheme for params:
- Type string
- The integration type kms/hs-crypto.
- En
Integration stringId - (String) The unique identifier of the
en_integration
.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- integration
Id String - Unique identifier for Integration created with .
- metadata
En
Integration Metadata - Nested scheme for params:
- type String
- The integration type kms/hs-crypto.
- en
Integration StringId - (String) The unique identifier of the
en_integration
.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- integration
Id string - Unique identifier for Integration created with .
- metadata
En
Integration Metadata - Nested scheme for params:
- type string
- The integration type kms/hs-crypto.
- en
Integration stringId - (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
En
Integration Metadata Args - Nested scheme for params:
- type str
- The integration type kms/hs-crypto.
- en_
integration_ strid - (String) The unique identifier of the
en_integration
.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- integration
Id String - Unique identifier for Integration created with .
- metadata Property Map
- Nested scheme for params:
- type String
- The integration type kms/hs-crypto.
- en
Integration StringId - (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 str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - (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.
- En
Integration stringId - (String) The unique identifier of the
en_integration
. - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Integration
Id string - Unique identifier for Integration created with .
- Metadata
En
Integration Metadata - Nested scheme for params:
- Type string
- The integration type kms/hs-crypto.
- Updated
At string - (String) Last updated time.
- En
Integration stringId - (String) The unique identifier of the
en_integration
. - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Integration
Id string - Unique identifier for Integration created with .
- Metadata
En
Integration Metadata Args - Nested scheme for params:
- Type string
- The integration type kms/hs-crypto.
- Updated
At string - (String) Last updated time.
- en
Integration StringId - (String) The unique identifier of the
en_integration
. - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- integration
Id String - Unique identifier for Integration created with .
- metadata
En
Integration Metadata - Nested scheme for params:
- type String
- The integration type kms/hs-crypto.
- updated
At String - (String) Last updated time.
- en
Integration stringId - (String) The unique identifier of the
en_integration
. - instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- integration
Id string - Unique identifier for Integration created with .
- metadata
En
Integration Metadata - Nested scheme for params:
- type string
- The integration type kms/hs-crypto.
- updated
At string - (String) Last updated time.
- en_
integration_ strid - (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
En
Integration Metadata Args - Nested scheme for params:
- type str
- The integration type kms/hs-crypto.
- updated_
at str - (String) Last updated time.
- en
Integration StringId - (String) The unique identifier of the
en_integration
. - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- integration
Id String - Unique identifier for Integration created with .
- metadata Property Map
- Nested scheme for params:
- type String
- The integration type kms/hs-crypto.
- updated
At String - (String) Last updated time.
Supporting Types
EnIntegrationMetadata, EnIntegrationMetadataArgs
- crn str
- crn of key protect/ hyper protect instance.
- endpoint str
- key protect/hyper protect service endpoint.
- root_
key_ strid - 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.