ibm.EnDestinationCustomEmail
Explore with Pulumi AI
Create EnDestinationCustomEmail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnDestinationCustomEmail(name: string, args: EnDestinationCustomEmailArgs, opts?: CustomResourceOptions);
@overload
def EnDestinationCustomEmail(resource_name: str,
args: EnDestinationCustomEmailArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnDestinationCustomEmail(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_guid: Optional[str] = None,
type: Optional[str] = None,
collect_failed_events: Optional[bool] = None,
config: Optional[EnDestinationCustomEmailConfigArgs] = None,
description: Optional[str] = None,
en_destination_custom_email_id: Optional[str] = None,
name: Optional[str] = None,
verification_type: Optional[str] = None)
func NewEnDestinationCustomEmail(ctx *Context, name string, args EnDestinationCustomEmailArgs, opts ...ResourceOption) (*EnDestinationCustomEmail, error)
public EnDestinationCustomEmail(string name, EnDestinationCustomEmailArgs args, CustomResourceOptions? opts = null)
public EnDestinationCustomEmail(String name, EnDestinationCustomEmailArgs args)
public EnDestinationCustomEmail(String name, EnDestinationCustomEmailArgs args, CustomResourceOptions options)
type: ibm:EnDestinationCustomEmail
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 EnDestinationCustomEmailArgs
- 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 EnDestinationCustomEmailArgs
- 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 EnDestinationCustomEmailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnDestinationCustomEmailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnDestinationCustomEmailArgs
- 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 enDestinationCustomEmailResource = new Ibm.EnDestinationCustomEmail("enDestinationCustomEmailResource", new()
{
InstanceGuid = "string",
Type = "string",
CollectFailedEvents = false,
Config = new Ibm.Inputs.EnDestinationCustomEmailConfigArgs
{
Params = new[]
{
new Ibm.Inputs.EnDestinationCustomEmailConfigParamArgs
{
Domain = "string",
Dkims = new[]
{
new Ibm.Inputs.EnDestinationCustomEmailConfigParamDkimArgs
{
PublicKey = "string",
Selector = "string",
Verification = "string",
},
},
Spfs = new[]
{
new Ibm.Inputs.EnDestinationCustomEmailConfigParamSpfArgs
{
TxtName = "string",
TxtValue = "string",
Verification = "string",
},
},
},
},
},
Description = "string",
EnDestinationCustomEmailId = "string",
Name = "string",
VerificationType = "string",
});
example, err := ibm.NewEnDestinationCustomEmail(ctx, "enDestinationCustomEmailResource", &ibm.EnDestinationCustomEmailArgs{
InstanceGuid: pulumi.String("string"),
Type: pulumi.String("string"),
CollectFailedEvents: pulumi.Bool(false),
Config: &ibm.EnDestinationCustomEmailConfigArgs{
Params: ibm.EnDestinationCustomEmailConfigParamArray{
&ibm.EnDestinationCustomEmailConfigParamArgs{
Domain: pulumi.String("string"),
Dkims: ibm.EnDestinationCustomEmailConfigParamDkimArray{
&ibm.EnDestinationCustomEmailConfigParamDkimArgs{
PublicKey: pulumi.String("string"),
Selector: pulumi.String("string"),
Verification: pulumi.String("string"),
},
},
Spfs: ibm.EnDestinationCustomEmailConfigParamSpfArray{
&ibm.EnDestinationCustomEmailConfigParamSpfArgs{
TxtName: pulumi.String("string"),
TxtValue: pulumi.String("string"),
Verification: pulumi.String("string"),
},
},
},
},
},
Description: pulumi.String("string"),
EnDestinationCustomEmailId: pulumi.String("string"),
Name: pulumi.String("string"),
VerificationType: pulumi.String("string"),
})
var enDestinationCustomEmailResource = new EnDestinationCustomEmail("enDestinationCustomEmailResource", EnDestinationCustomEmailArgs.builder()
.instanceGuid("string")
.type("string")
.collectFailedEvents(false)
.config(EnDestinationCustomEmailConfigArgs.builder()
.params(EnDestinationCustomEmailConfigParamArgs.builder()
.domain("string")
.dkims(EnDestinationCustomEmailConfigParamDkimArgs.builder()
.publicKey("string")
.selector("string")
.verification("string")
.build())
.spfs(EnDestinationCustomEmailConfigParamSpfArgs.builder()
.txtName("string")
.txtValue("string")
.verification("string")
.build())
.build())
.build())
.description("string")
.enDestinationCustomEmailId("string")
.name("string")
.verificationType("string")
.build());
en_destination_custom_email_resource = ibm.EnDestinationCustomEmail("enDestinationCustomEmailResource",
instance_guid="string",
type="string",
collect_failed_events=False,
config={
"params": [{
"domain": "string",
"dkims": [{
"public_key": "string",
"selector": "string",
"verification": "string",
}],
"spfs": [{
"txt_name": "string",
"txt_value": "string",
"verification": "string",
}],
}],
},
description="string",
en_destination_custom_email_id="string",
name="string",
verification_type="string")
const enDestinationCustomEmailResource = new ibm.EnDestinationCustomEmail("enDestinationCustomEmailResource", {
instanceGuid: "string",
type: "string",
collectFailedEvents: false,
config: {
params: [{
domain: "string",
dkims: [{
publicKey: "string",
selector: "string",
verification: "string",
}],
spfs: [{
txtName: "string",
txtValue: "string",
verification: "string",
}],
}],
},
description: "string",
enDestinationCustomEmailId: "string",
name: "string",
verificationType: "string",
});
type: ibm:EnDestinationCustomEmail
properties:
collectFailedEvents: false
config:
params:
- dkims:
- publicKey: string
selector: string
verification: string
domain: string
spfs:
- txtName: string
txtValue: string
verification: string
description: string
enDestinationCustomEmailId: string
instanceGuid: string
name: string
type: string
verificationType: string
EnDestinationCustomEmail 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 EnDestinationCustomEmail resource accepts the following input properties:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Type string
- The type of Destination type smtp_custom.
- Collect
Failed boolEvents - Whether to collect the failed event in Cloud Object Storage bucket
- Config
En
Destination Custom Email Config - Payload describing a destination configuration.
- Description string
- The Destination description.
- En
Destination stringCustom Email Id - Name string
- The Destintion name.
- Verification
Type string - Verification Method spf/dkim.
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Type string
- The type of Destination type smtp_custom.
- Collect
Failed boolEvents - Whether to collect the failed event in Cloud Object Storage bucket
- Config
En
Destination Custom Email Config Args - Payload describing a destination configuration.
- Description string
- The Destination description.
- En
Destination stringCustom Email Id - Name string
- The Destintion name.
- Verification
Type string - Verification Method spf/dkim.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- type String
- The type of Destination type smtp_custom.
- collect
Failed BooleanEvents - Whether to collect the failed event in Cloud Object Storage bucket
- config
En
Destination Custom Email Config - Payload describing a destination configuration.
- description String
- The Destination description.
- en
Destination StringCustom Email Id - name String
- The Destintion name.
- verification
Type String - Verification Method spf/dkim.
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- type string
- The type of Destination type smtp_custom.
- collect
Failed booleanEvents - Whether to collect the failed event in Cloud Object Storage bucket
- config
En
Destination Custom Email Config - Payload describing a destination configuration.
- description string
- The Destination description.
- en
Destination stringCustom Email Id - name string
- The Destintion name.
- verification
Type string - Verification Method spf/dkim.
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- type str
- The type of Destination type smtp_custom.
- collect_
failed_ boolevents - Whether to collect the failed event in Cloud Object Storage bucket
- config
En
Destination Custom Email Config Args - Payload describing a destination configuration.
- description str
- The Destination description.
- en_
destination_ strcustom_ email_ id - name str
- The Destintion name.
- verification_
type str - Verification Method spf/dkim.
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- type String
- The type of Destination type smtp_custom.
- collect
Failed BooleanEvents - Whether to collect the failed event in Cloud Object Storage bucket
- config Property Map
- Payload describing a destination configuration.
- description String
- The Destination description.
- en
Destination StringCustom Email Id - name String
- The Destintion name.
- verification
Type String - Verification Method spf/dkim.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnDestinationCustomEmail resource produces the following output properties:
- Destination
Id string - Destination ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Count double - Number of subscriptions.
- Subscription
Names List<string> - List of subscriptions.
- Updated
At string - Last updated time.
- Destination
Id string - Destination ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Count float64 - Number of subscriptions.
- Subscription
Names []string - List of subscriptions.
- Updated
At string - Last updated time.
- destination
Id String - Destination ID
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Count Double - Number of subscriptions.
- subscription
Names List<String> - List of subscriptions.
- updated
At String - Last updated time.
- destination
Id string - Destination ID
- id string
- The provider-assigned unique ID for this managed resource.
- subscription
Count number - Number of subscriptions.
- subscription
Names string[] - List of subscriptions.
- updated
At string - Last updated time.
- destination_
id str - Destination ID
- id str
- The provider-assigned unique ID for this managed resource.
- subscription_
count float - Number of subscriptions.
- subscription_
names Sequence[str] - List of subscriptions.
- updated_
at str - Last updated time.
- destination
Id String - Destination ID
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Count Number - Number of subscriptions.
- subscription
Names List<String> - List of subscriptions.
- updated
At String - Last updated time.
Look up Existing EnDestinationCustomEmail Resource
Get an existing EnDestinationCustomEmail 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?: EnDestinationCustomEmailState, opts?: CustomResourceOptions): EnDestinationCustomEmail
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
collect_failed_events: Optional[bool] = None,
config: Optional[EnDestinationCustomEmailConfigArgs] = None,
description: Optional[str] = None,
destination_id: Optional[str] = None,
en_destination_custom_email_id: Optional[str] = None,
instance_guid: Optional[str] = None,
name: Optional[str] = None,
subscription_count: Optional[float] = None,
subscription_names: Optional[Sequence[str]] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None,
verification_type: Optional[str] = None) -> EnDestinationCustomEmail
func GetEnDestinationCustomEmail(ctx *Context, name string, id IDInput, state *EnDestinationCustomEmailState, opts ...ResourceOption) (*EnDestinationCustomEmail, error)
public static EnDestinationCustomEmail Get(string name, Input<string> id, EnDestinationCustomEmailState? state, CustomResourceOptions? opts = null)
public static EnDestinationCustomEmail get(String name, Output<String> id, EnDestinationCustomEmailState state, CustomResourceOptions options)
resources: _: type: ibm:EnDestinationCustomEmail 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.
- Collect
Failed boolEvents - Whether to collect the failed event in Cloud Object Storage bucket
- Config
En
Destination Custom Email Config - Payload describing a destination configuration.
- Description string
- The Destination description.
- Destination
Id string - Destination ID
- En
Destination stringCustom Email Id - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- The Destintion name.
- Subscription
Count double - Number of subscriptions.
- Subscription
Names List<string> - List of subscriptions.
- Type string
- The type of Destination type smtp_custom.
- Updated
At string - Last updated time.
- Verification
Type string - Verification Method spf/dkim.
- Collect
Failed boolEvents - Whether to collect the failed event in Cloud Object Storage bucket
- Config
En
Destination Custom Email Config Args - Payload describing a destination configuration.
- Description string
- The Destination description.
- Destination
Id string - Destination ID
- En
Destination stringCustom Email Id - Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- Name string
- The Destintion name.
- Subscription
Count float64 - Number of subscriptions.
- Subscription
Names []string - List of subscriptions.
- Type string
- The type of Destination type smtp_custom.
- Updated
At string - Last updated time.
- Verification
Type string - Verification Method spf/dkim.
- collect
Failed BooleanEvents - Whether to collect the failed event in Cloud Object Storage bucket
- config
En
Destination Custom Email Config - Payload describing a destination configuration.
- description String
- The Destination description.
- destination
Id String - Destination ID
- en
Destination StringCustom Email Id - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- The Destintion name.
- subscription
Count Double - Number of subscriptions.
- subscription
Names List<String> - List of subscriptions.
- type String
- The type of Destination type smtp_custom.
- updated
At String - Last updated time.
- verification
Type String - Verification Method spf/dkim.
- collect
Failed booleanEvents - Whether to collect the failed event in Cloud Object Storage bucket
- config
En
Destination Custom Email Config - Payload describing a destination configuration.
- description string
- The Destination description.
- destination
Id string - Destination ID
- en
Destination stringCustom Email Id - instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
- name string
- The Destintion name.
- subscription
Count number - Number of subscriptions.
- subscription
Names string[] - List of subscriptions.
- type string
- The type of Destination type smtp_custom.
- updated
At string - Last updated time.
- verification
Type string - Verification Method spf/dkim.
- collect_
failed_ boolevents - Whether to collect the failed event in Cloud Object Storage bucket
- config
En
Destination Custom Email Config Args - Payload describing a destination configuration.
- description str
- The Destination description.
- destination_
id str - Destination ID
- en_
destination_ strcustom_ email_ id - instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
- name str
- The Destintion name.
- subscription_
count float - Number of subscriptions.
- subscription_
names Sequence[str] - List of subscriptions.
- type str
- The type of Destination type smtp_custom.
- updated_
at str - Last updated time.
- verification_
type str - Verification Method spf/dkim.
- collect
Failed BooleanEvents - Whether to collect the failed event in Cloud Object Storage bucket
- config Property Map
- Payload describing a destination configuration.
- description String
- The Destination description.
- destination
Id String - Destination ID
- en
Destination StringCustom Email Id - instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
- name String
- The Destintion name.
- subscription
Count Number - Number of subscriptions.
- subscription
Names List<String> - List of subscriptions.
- type String
- The type of Destination type smtp_custom.
- updated
At String - Last updated time.
- verification
Type String - Verification Method spf/dkim.
Supporting Types
EnDestinationCustomEmailConfig, EnDestinationCustomEmailConfigArgs
EnDestinationCustomEmailConfigParam, EnDestinationCustomEmailConfigParamArgs
- Domain string
- Domain for the Custom Domain Email Destination
- Dkims
List<En
Destination Custom Email Config Param Dkim> - The DKIM attributes.
- Spfs
List<En
Destination Custom Email Config Param Spf> - The SPF attributes.
- Domain string
- Domain for the Custom Domain Email Destination
- Dkims
[]En
Destination Custom Email Config Param Dkim - The DKIM attributes.
- Spfs
[]En
Destination Custom Email Config Param Spf - The SPF attributes.
- domain String
- Domain for the Custom Domain Email Destination
- dkims
List<En
Destination Custom Email Config Param Dkim> - The DKIM attributes.
- spfs
List<En
Destination Custom Email Config Param Spf> - The SPF attributes.
- domain string
- Domain for the Custom Domain Email Destination
- dkims
En
Destination Custom Email Config Param Dkim[] - The DKIM attributes.
- spfs
En
Destination Custom Email Config Param Spf[] - The SPF attributes.
- domain str
- Domain for the Custom Domain Email Destination
- dkims
Sequence[En
Destination Custom Email Config Param Dkim] - The DKIM attributes.
- spfs
Sequence[En
Destination Custom Email Config Param Spf] - The SPF attributes.
- domain String
- Domain for the Custom Domain Email Destination
- dkims List<Property Map>
- The DKIM attributes.
- spfs List<Property Map>
- The SPF attributes.
EnDestinationCustomEmailConfigParamDkim, EnDestinationCustomEmailConfigParamDkimArgs
- Public
Key string - Selector string
- Verification string
- Public
Key string - Selector string
- Verification string
- public
Key String - selector String
- verification String
- public
Key string - selector string
- verification string
- public_
key str - selector str
- verification str
- public
Key String - selector String
- verification String
EnDestinationCustomEmailConfigParamSpf, EnDestinationCustomEmailConfigParamSpfArgs
- Txt
Name string - Txt
Value string - Verification string
- Txt
Name string - Txt
Value string - Verification string
- txt
Name String - txt
Value String - verification String
- txt
Name string - txt
Value string - verification string
- txt_
name str - txt_
value str - verification str
- txt
Name String - txt
Value String - verification String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.