opsgenie.EmailIntegration
Explore with Pulumi AI
Manages an Email Integration within Opsgenie.
Create EmailIntegration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EmailIntegration(name: string, args: EmailIntegrationArgs, opts?: CustomResourceOptions);
@overload
def EmailIntegration(resource_name: str,
args: EmailIntegrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EmailIntegration(resource_name: str,
opts: Optional[ResourceOptions] = None,
email_username: Optional[str] = None,
enabled: Optional[bool] = None,
ignore_responders_from_payload: Optional[bool] = None,
name: Optional[str] = None,
owner_team_id: Optional[str] = None,
responders: Optional[Sequence[EmailIntegrationResponderArgs]] = None,
suppress_notifications: Optional[bool] = None)
func NewEmailIntegration(ctx *Context, name string, args EmailIntegrationArgs, opts ...ResourceOption) (*EmailIntegration, error)
public EmailIntegration(string name, EmailIntegrationArgs args, CustomResourceOptions? opts = null)
public EmailIntegration(String name, EmailIntegrationArgs args)
public EmailIntegration(String name, EmailIntegrationArgs args, CustomResourceOptions options)
type: opsgenie:EmailIntegration
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 EmailIntegrationArgs
- 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 EmailIntegrationArgs
- 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 EmailIntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailIntegrationArgs
- 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 emailIntegrationResource = new Opsgenie.EmailIntegration("emailIntegrationResource", new()
{
EmailUsername = "string",
Enabled = false,
IgnoreRespondersFromPayload = false,
Name = "string",
OwnerTeamId = "string",
Responders = new[]
{
new Opsgenie.Inputs.EmailIntegrationResponderArgs
{
Id = "string",
Type = "string",
},
},
SuppressNotifications = false,
});
example, err := opsgenie.NewEmailIntegration(ctx, "emailIntegrationResource", &opsgenie.EmailIntegrationArgs{
EmailUsername: pulumi.String("string"),
Enabled: pulumi.Bool(false),
IgnoreRespondersFromPayload: pulumi.Bool(false),
Name: pulumi.String("string"),
OwnerTeamId: pulumi.String("string"),
Responders: opsgenie.EmailIntegrationResponderArray{
&opsgenie.EmailIntegrationResponderArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
SuppressNotifications: pulumi.Bool(false),
})
var emailIntegrationResource = new EmailIntegration("emailIntegrationResource", EmailIntegrationArgs.builder()
.emailUsername("string")
.enabled(false)
.ignoreRespondersFromPayload(false)
.name("string")
.ownerTeamId("string")
.responders(EmailIntegrationResponderArgs.builder()
.id("string")
.type("string")
.build())
.suppressNotifications(false)
.build());
email_integration_resource = opsgenie.EmailIntegration("emailIntegrationResource",
email_username="string",
enabled=False,
ignore_responders_from_payload=False,
name="string",
owner_team_id="string",
responders=[{
"id": "string",
"type": "string",
}],
suppress_notifications=False)
const emailIntegrationResource = new opsgenie.EmailIntegration("emailIntegrationResource", {
emailUsername: "string",
enabled: false,
ignoreRespondersFromPayload: false,
name: "string",
ownerTeamId: "string",
responders: [{
id: "string",
type: "string",
}],
suppressNotifications: false,
});
type: opsgenie:EmailIntegration
properties:
emailUsername: string
enabled: false
ignoreRespondersFromPayload: false
name: string
ownerTeamId: string
responders:
- id: string
type: string
suppressNotifications: false
EmailIntegration 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 EmailIntegration resource accepts the following input properties:
- Email
Username string - The username part of the email address. It must be unique for each integration.
- Enabled bool
- A Member block as documented below.
- Ignore
Responders boolFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - Name string
- Name of the integration. Name must be unique for each integration.
- Owner
Team stringId - Owner team id of the integration.
- Responders
List<Email
Integration Responder> - Suppress
Notifications bool - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- Email
Username string - The username part of the email address. It must be unique for each integration.
- Enabled bool
- A Member block as documented below.
- Ignore
Responders boolFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - Name string
- Name of the integration. Name must be unique for each integration.
- Owner
Team stringId - Owner team id of the integration.
- Responders
[]Email
Integration Responder Args - Suppress
Notifications bool - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email
Username String - The username part of the email address. It must be unique for each integration.
- enabled Boolean
- A Member block as documented below.
- ignore
Responders BooleanFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name String
- Name of the integration. Name must be unique for each integration.
- owner
Team StringId - Owner team id of the integration.
- responders
List<Email
Integration Responder> - suppress
Notifications Boolean - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email
Username string - The username part of the email address. It must be unique for each integration.
- enabled boolean
- A Member block as documented below.
- ignore
Responders booleanFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name string
- Name of the integration. Name must be unique for each integration.
- owner
Team stringId - Owner team id of the integration.
- responders
Email
Integration Responder[] - suppress
Notifications boolean - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email_
username str - The username part of the email address. It must be unique for each integration.
- enabled bool
- A Member block as documented below.
- ignore_
responders_ boolfrom_ payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name str
- Name of the integration. Name must be unique for each integration.
- owner_
team_ strid - Owner team id of the integration.
- responders
Sequence[Email
Integration Responder Args] - suppress_
notifications bool - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email
Username String - The username part of the email address. It must be unique for each integration.
- enabled Boolean
- A Member block as documented below.
- ignore
Responders BooleanFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name String
- Name of the integration. Name must be unique for each integration.
- owner
Team StringId - Owner team id of the integration.
- responders List<Property Map>
- suppress
Notifications Boolean - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
Outputs
All input properties are implicitly available as output properties. Additionally, the EmailIntegration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EmailIntegration Resource
Get an existing EmailIntegration 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?: EmailIntegrationState, opts?: CustomResourceOptions): EmailIntegration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email_username: Optional[str] = None,
enabled: Optional[bool] = None,
ignore_responders_from_payload: Optional[bool] = None,
name: Optional[str] = None,
owner_team_id: Optional[str] = None,
responders: Optional[Sequence[EmailIntegrationResponderArgs]] = None,
suppress_notifications: Optional[bool] = None) -> EmailIntegration
func GetEmailIntegration(ctx *Context, name string, id IDInput, state *EmailIntegrationState, opts ...ResourceOption) (*EmailIntegration, error)
public static EmailIntegration Get(string name, Input<string> id, EmailIntegrationState? state, CustomResourceOptions? opts = null)
public static EmailIntegration get(String name, Output<String> id, EmailIntegrationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Email
Username string - The username part of the email address. It must be unique for each integration.
- Enabled bool
- A Member block as documented below.
- Ignore
Responders boolFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - Name string
- Name of the integration. Name must be unique for each integration.
- Owner
Team stringId - Owner team id of the integration.
- Responders
List<Email
Integration Responder> - Suppress
Notifications bool - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- Email
Username string - The username part of the email address. It must be unique for each integration.
- Enabled bool
- A Member block as documented below.
- Ignore
Responders boolFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - Name string
- Name of the integration. Name must be unique for each integration.
- Owner
Team stringId - Owner team id of the integration.
- Responders
[]Email
Integration Responder Args - Suppress
Notifications bool - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email
Username String - The username part of the email address. It must be unique for each integration.
- enabled Boolean
- A Member block as documented below.
- ignore
Responders BooleanFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name String
- Name of the integration. Name must be unique for each integration.
- owner
Team StringId - Owner team id of the integration.
- responders
List<Email
Integration Responder> - suppress
Notifications Boolean - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email
Username string - The username part of the email address. It must be unique for each integration.
- enabled boolean
- A Member block as documented below.
- ignore
Responders booleanFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name string
- Name of the integration. Name must be unique for each integration.
- owner
Team stringId - Owner team id of the integration.
- responders
Email
Integration Responder[] - suppress
Notifications boolean - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email_
username str - The username part of the email address. It must be unique for each integration.
- enabled bool
- A Member block as documented below.
- ignore_
responders_ boolfrom_ payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name str
- Name of the integration. Name must be unique for each integration.
- owner_
team_ strid - Owner team id of the integration.
- responders
Sequence[Email
Integration Responder Args] - suppress_
notifications bool - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
- email
Username String - The username part of the email address. It must be unique for each integration.
- enabled Boolean
- A Member block as documented below.
- ignore
Responders BooleanFrom Payload - If enabled, the integration will ignore recipients sent in request payloads. Default:
false
. - name String
- Name of the integration. Name must be unique for each integration.
- owner
Team StringId - Owner team id of the integration.
- responders List<Property Map>
- suppress
Notifications Boolean - If enabled, notifications that come from alerts will be suppressed. Default:
false
.
Supporting Types
EmailIntegrationResponder, EmailIntegrationResponderArgs
Import
Email Integrations can be imported using the id
, e.g.
$ pulumi import opsgenie:index/emailIntegration:EmailIntegration test id`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Opsgenie pulumi/pulumi-opsgenie
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
opsgenie
Terraform Provider.