pagerduty.JiraCloudAccountMappingRule
Explore with Pulumi AI
An Jira Cloud’s account mapping rule configures the bidirectional synchronization between Jira issues and PagerDuty incidents.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.pagerduty.PagerdutyFunctions;
import com.pulumi.pagerduty.inputs.GetEscalationPolicyArgs;
import com.pulumi.pagerduty.inputs.GetPriorityArgs;
import com.pulumi.pagerduty.Service;
import com.pulumi.pagerduty.ServiceArgs;
import com.pulumi.pagerduty.User;
import com.pulumi.pagerduty.UserArgs;
import com.pulumi.pagerduty.JiraCloudAccountMappingRule;
import com.pulumi.pagerduty.JiraCloudAccountMappingRuleArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
final var default = PagerdutyFunctions.getEscalationPolicy(GetEscalationPolicyArgs.builder()
.name("Default")
.build());
final var p1 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
.name("P1")
.build());
final var p2 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
.name("P2")
.build());
final var p3 = PagerdutyFunctions.getPriority(GetPriorityArgs.builder()
.name("P3")
.build());
var foo = new Service("foo", ServiceArgs.builder()
.name("My Web App")
.escalationPolicy(default_.id())
.build());
var fooUser = new User("fooUser", UserArgs.builder()
.name("Earline Greenholt")
.email("125.greenholt.earline@graham.name")
.build());
var fooJiraCloudAccountMappingRule = new JiraCloudAccountMappingRule("fooJiraCloudAccountMappingRule", JiraCloudAccountMappingRuleArgs.builder()
.name("Integration with My Web App")
.accountMapping("PLBP09X")
.config(JiraCloudAccountMappingRuleConfigArgs.builder()
.service(foo.id())
.jira(JiraCloudAccountMappingRuleConfigJiraArgs.builder()
.autocreateJql("priority = Highest")
.createIssueOnIncidentTrigger(true)
.customFields(
JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs.builder()
.sourceIncidentField("incident_description")
.targetIssueField("description")
.targetIssueFieldName("Description")
.type("attribute")
.build(),
JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs.builder()
.targetIssueField("security")
.targetIssueFieldName("Security Level")
.type("jira_value")
.value(serializeJson(
jsonObject(
jsonProperty("displayName", "Sec Level 1"),
jsonProperty("id", "10000")
)))
.build())
.issueType(JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs.builder()
.id("10001")
.name("Incident")
.build())
.priorities(
JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
.jiraId("1")
.pagerdutyId(p1.applyValue(getPriorityResult -> getPriorityResult.id()))
.build(),
JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
.jiraId("2")
.pagerdutyId(p2.applyValue(getPriorityResult -> getPriorityResult.id()))
.build(),
JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
.jiraId("3")
.pagerdutyId(p3.applyValue(getPriorityResult -> getPriorityResult.id()))
.build())
.project(JiraCloudAccountMappingRuleConfigJiraProjectArgs.builder()
.id("10100")
.key("ITS")
.name("IT Support")
.build())
.statusMapping(JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs.builder()
.acknowledged(JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs.builder()
.id("2")
.name("In Progress")
.build())
.resolved(JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs.builder()
.id("3")
.name("Resolved")
.build())
.triggered(JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs.builder()
.id("1")
.name("Open")
.build())
.build())
.syncNotesUser(fooUser.id())
.build())
.build())
.build());
}
}
resources:
foo:
type: pagerduty:Service
properties:
name: My Web App
escalationPolicy: ${default.id}
fooUser:
type: pagerduty:User
name: foo
properties:
name: Earline Greenholt
email: 125.greenholt.earline@graham.name
fooJiraCloudAccountMappingRule:
type: pagerduty:JiraCloudAccountMappingRule
name: foo
properties:
name: Integration with My Web App
accountMapping: PLBP09X
config:
- service: ${foo.id}
jira:
- autocreateJql: priority = Highest
createIssueOnIncidentTrigger: true
customFields:
- sourceIncidentField: incident_description
targetIssueField: description
targetIssueFieldName: Description
type: attribute
- targetIssueField: security
targetIssueFieldName: Security Level
type: jira_value
value:
fn::toJSON:
displayName: Sec Level 1
id: '10000'
issueType:
- id: '10001'
name: Incident
priorities:
- jiraId: '1'
pagerdutyId: ${p1.id}
- jiraId: '2'
pagerdutyId: ${p2.id}
- jiraId: '3'
pagerdutyId: ${p3.id}
project:
- id: '10100'
key: ITS
name: IT Support
statusMapping:
- acknowledged:
- id: '2'
name: In Progress
resolved:
- id: '3'
name: Resolved
triggered:
- id: '1'
name: Open
syncNotesUser: ${fooUser.id}
variables:
default:
fn::invoke:
Function: pagerduty:getEscalationPolicy
Arguments:
name: Default
p1:
fn::invoke:
Function: pagerduty:getPriority
Arguments:
name: P1
p2:
fn::invoke:
Function: pagerduty:getPriority
Arguments:
name: P2
p3:
fn::invoke:
Function: pagerduty:getPriority
Arguments:
name: P3
Create JiraCloudAccountMappingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JiraCloudAccountMappingRule(name: string, args: JiraCloudAccountMappingRuleArgs, opts?: CustomResourceOptions);
@overload
def JiraCloudAccountMappingRule(resource_name: str,
args: JiraCloudAccountMappingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JiraCloudAccountMappingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_mapping: Optional[str] = None,
config: Optional[JiraCloudAccountMappingRuleConfigArgs] = None,
name: Optional[str] = None)
func NewJiraCloudAccountMappingRule(ctx *Context, name string, args JiraCloudAccountMappingRuleArgs, opts ...ResourceOption) (*JiraCloudAccountMappingRule, error)
public JiraCloudAccountMappingRule(string name, JiraCloudAccountMappingRuleArgs args, CustomResourceOptions? opts = null)
public JiraCloudAccountMappingRule(String name, JiraCloudAccountMappingRuleArgs args)
public JiraCloudAccountMappingRule(String name, JiraCloudAccountMappingRuleArgs args, CustomResourceOptions options)
type: pagerduty:JiraCloudAccountMappingRule
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 JiraCloudAccountMappingRuleArgs
- 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 JiraCloudAccountMappingRuleArgs
- 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 JiraCloudAccountMappingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JiraCloudAccountMappingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JiraCloudAccountMappingRuleArgs
- 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 jiraCloudAccountMappingRuleResource = new Pagerduty.JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource", new()
{
AccountMapping = "string",
Config = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigArgs
{
Service = "string",
Jira = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraArgs
{
AutocreateJql = "string",
CreateIssueOnIncidentTrigger = false,
CustomFields = new[]
{
new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs
{
TargetIssueField = "string",
TargetIssueFieldName = "string",
Type = "string",
SourceIncidentField = "string",
Value = "string",
},
},
IssueType = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs
{
Id = "string",
Name = "string",
},
Priorities = new[]
{
new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraPriorityArgs
{
JiraId = "string",
PagerdutyId = "string",
},
},
Project = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraProjectArgs
{
Id = "string",
Key = "string",
Name = "string",
},
StatusMapping = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs
{
Acknowledged = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs
{
Id = "string",
Name = "string",
},
Resolved = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs
{
Id = "string",
Name = "string",
},
Triggered = new Pagerduty.Inputs.JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs
{
Id = "string",
Name = "string",
},
},
SyncNotesUser = "string",
},
},
Name = "string",
});
example, err := pagerduty.NewJiraCloudAccountMappingRule(ctx, "jiraCloudAccountMappingRuleResource", &pagerduty.JiraCloudAccountMappingRuleArgs{
AccountMapping: pulumi.String("string"),
Config: &pagerduty.JiraCloudAccountMappingRuleConfigArgs{
Service: pulumi.String("string"),
Jira: &pagerduty.JiraCloudAccountMappingRuleConfigJiraArgs{
AutocreateJql: pulumi.String("string"),
CreateIssueOnIncidentTrigger: pulumi.Bool(false),
CustomFields: pagerduty.JiraCloudAccountMappingRuleConfigJiraCustomFieldArray{
&pagerduty.JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs{
TargetIssueField: pulumi.String("string"),
TargetIssueFieldName: pulumi.String("string"),
Type: pulumi.String("string"),
SourceIncidentField: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
IssueType: &pagerduty.JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
Priorities: pagerduty.JiraCloudAccountMappingRuleConfigJiraPriorityArray{
&pagerduty.JiraCloudAccountMappingRuleConfigJiraPriorityArgs{
JiraId: pulumi.String("string"),
PagerdutyId: pulumi.String("string"),
},
},
Project: &pagerduty.JiraCloudAccountMappingRuleConfigJiraProjectArgs{
Id: pulumi.String("string"),
Key: pulumi.String("string"),
Name: pulumi.String("string"),
},
StatusMapping: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs{
Acknowledged: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
Resolved: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
Triggered: &pagerduty.JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
SyncNotesUser: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var jiraCloudAccountMappingRuleResource = new JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource", JiraCloudAccountMappingRuleArgs.builder()
.accountMapping("string")
.config(JiraCloudAccountMappingRuleConfigArgs.builder()
.service("string")
.jira(JiraCloudAccountMappingRuleConfigJiraArgs.builder()
.autocreateJql("string")
.createIssueOnIncidentTrigger(false)
.customFields(JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs.builder()
.targetIssueField("string")
.targetIssueFieldName("string")
.type("string")
.sourceIncidentField("string")
.value("string")
.build())
.issueType(JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs.builder()
.id("string")
.name("string")
.build())
.priorities(JiraCloudAccountMappingRuleConfigJiraPriorityArgs.builder()
.jiraId("string")
.pagerdutyId("string")
.build())
.project(JiraCloudAccountMappingRuleConfigJiraProjectArgs.builder()
.id("string")
.key("string")
.name("string")
.build())
.statusMapping(JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs.builder()
.acknowledged(JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs.builder()
.id("string")
.name("string")
.build())
.resolved(JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs.builder()
.id("string")
.name("string")
.build())
.triggered(JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs.builder()
.id("string")
.name("string")
.build())
.build())
.syncNotesUser("string")
.build())
.build())
.name("string")
.build());
jira_cloud_account_mapping_rule_resource = pagerduty.JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource",
account_mapping="string",
config={
"service": "string",
"jira": {
"autocreate_jql": "string",
"create_issue_on_incident_trigger": False,
"custom_fields": [{
"target_issue_field": "string",
"target_issue_field_name": "string",
"type": "string",
"source_incident_field": "string",
"value": "string",
}],
"issue_type": {
"id": "string",
"name": "string",
},
"priorities": [{
"jira_id": "string",
"pagerduty_id": "string",
}],
"project": {
"id": "string",
"key": "string",
"name": "string",
},
"status_mapping": {
"acknowledged": {
"id": "string",
"name": "string",
},
"resolved": {
"id": "string",
"name": "string",
},
"triggered": {
"id": "string",
"name": "string",
},
},
"sync_notes_user": "string",
},
},
name="string")
const jiraCloudAccountMappingRuleResource = new pagerduty.JiraCloudAccountMappingRule("jiraCloudAccountMappingRuleResource", {
accountMapping: "string",
config: {
service: "string",
jira: {
autocreateJql: "string",
createIssueOnIncidentTrigger: false,
customFields: [{
targetIssueField: "string",
targetIssueFieldName: "string",
type: "string",
sourceIncidentField: "string",
value: "string",
}],
issueType: {
id: "string",
name: "string",
},
priorities: [{
jiraId: "string",
pagerdutyId: "string",
}],
project: {
id: "string",
key: "string",
name: "string",
},
statusMapping: {
acknowledged: {
id: "string",
name: "string",
},
resolved: {
id: "string",
name: "string",
},
triggered: {
id: "string",
name: "string",
},
},
syncNotesUser: "string",
},
},
name: "string",
});
type: pagerduty:JiraCloudAccountMappingRule
properties:
accountMapping: string
config:
jira:
autocreateJql: string
createIssueOnIncidentTrigger: false
customFields:
- sourceIncidentField: string
targetIssueField: string
targetIssueFieldName: string
type: string
value: string
issueType:
id: string
name: string
priorities:
- jiraId: string
pagerdutyId: string
project:
id: string
key: string
name: string
statusMapping:
acknowledged:
id: string
name: string
resolved:
id: string
name: string
triggered:
id: string
name: string
syncNotesUser: string
service: string
name: string
JiraCloudAccountMappingRule 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 JiraCloudAccountMappingRule resource accepts the following input properties:
- Account
Mapping string - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- Config
Jira
Cloud Account Mapping Rule Config - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- Name string
- The name of the rule.
- Account
Mapping string - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- Config
Jira
Cloud Account Mapping Rule Config Args - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- Name string
- The name of the rule.
- account
Mapping String - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- config
Jira
Cloud Account Mapping Rule Config - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name String
- The name of the rule.
- account
Mapping string - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- config
Jira
Cloud Account Mapping Rule Config - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name string
- The name of the rule.
- account_
mapping str - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- config
Jira
Cloud Account Mapping Rule Config Args - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name str
- The name of the rule.
- account
Mapping String - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- config Property Map
- Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name String
- The name of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the JiraCloudAccountMappingRule resource produces the following output properties:
- Autocreate
Jql stringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- Autocreate
Jql stringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Autocreate
Jql stringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- Autocreate
Jql stringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- autocreate
Jql StringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate
Jql StringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- id String
- The provider-assigned unique ID for this managed resource.
- autocreate
Jql stringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate
Jql stringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- id string
- The provider-assigned unique ID for this managed resource.
- autocreate_
jql_ strdisabled_ reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate_
jql_ strdisabled_ until - The timestamp until which the auto-creation using JQL feature is disabled.
- id str
- The provider-assigned unique ID for this managed resource.
- autocreate
Jql StringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate
Jql StringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing JiraCloudAccountMappingRule Resource
Get an existing JiraCloudAccountMappingRule 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?: JiraCloudAccountMappingRuleState, opts?: CustomResourceOptions): JiraCloudAccountMappingRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_mapping: Optional[str] = None,
autocreate_jql_disabled_reason: Optional[str] = None,
autocreate_jql_disabled_until: Optional[str] = None,
config: Optional[JiraCloudAccountMappingRuleConfigArgs] = None,
name: Optional[str] = None) -> JiraCloudAccountMappingRule
func GetJiraCloudAccountMappingRule(ctx *Context, name string, id IDInput, state *JiraCloudAccountMappingRuleState, opts ...ResourceOption) (*JiraCloudAccountMappingRule, error)
public static JiraCloudAccountMappingRule Get(string name, Input<string> id, JiraCloudAccountMappingRuleState? state, CustomResourceOptions? opts = null)
public static JiraCloudAccountMappingRule get(String name, Output<String> id, JiraCloudAccountMappingRuleState 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.
- Account
Mapping string - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- Autocreate
Jql stringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- Autocreate
Jql stringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- Config
Jira
Cloud Account Mapping Rule Config - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- Name string
- The name of the rule.
- Account
Mapping string - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- Autocreate
Jql stringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- Autocreate
Jql stringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- Config
Jira
Cloud Account Mapping Rule Config Args - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- Name string
- The name of the rule.
- account
Mapping String - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- autocreate
Jql StringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate
Jql StringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- config
Jira
Cloud Account Mapping Rule Config - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name String
- The name of the rule.
- account
Mapping string - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- autocreate
Jql stringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate
Jql stringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- config
Jira
Cloud Account Mapping Rule Config - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name string
- The name of the rule.
- account_
mapping str - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- autocreate_
jql_ strdisabled_ reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate_
jql_ strdisabled_ until - The timestamp until which the auto-creation using JQL feature is disabled.
- config
Jira
Cloud Account Mapping Rule Config Args - Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name str
- The name of the rule.
- account
Mapping String - [Updating can cause a resource replacement] The account mapping this rule belongs to.
- autocreate
Jql StringDisabled Reason - If auto-creation using JQL is disabled, this field provides the reason for the disablement.
- autocreate
Jql StringDisabled Until - The timestamp until which the auto-creation using JQL feature is disabled.
- config Property Map
- Configuration for bidirectional synchronization between Jira issues and PagerDuty incidents.
- name String
- The name of the rule.
Supporting Types
JiraCloudAccountMappingRuleConfig, JiraCloudAccountMappingRuleConfigArgs
- Service string
- [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
- Jira
Jira
Cloud Account Mapping Rule Config Jira - Synchronization settings.
- Service string
- [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
- Jira
Jira
Cloud Account Mapping Rule Config Jira - Synchronization settings.
- service String
- [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
- jira
Jira
Cloud Account Mapping Rule Config Jira - Synchronization settings.
- service string
- [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
- jira
Jira
Cloud Account Mapping Rule Config Jira - Synchronization settings.
- service str
- [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
- jira
Jira
Cloud Account Mapping Rule Config Jira - Synchronization settings.
- service String
- [Updating can cause a resource replacement] The ID of the linked PagerDuty service.
- jira Property Map
- Synchronization settings.
JiraCloudAccountMappingRuleConfigJira, JiraCloudAccountMappingRuleConfigJiraArgs
- Autocreate
Jql string - JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
- Create
Issue boolOn Incident Trigger - When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
- Custom
Fields List<JiraCloud Account Mapping Rule Config Jira Custom Field> - Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
- Issue
Type JiraCloud Account Mapping Rule Config Jira Issue Type - Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
- Priorities
List<Jira
Cloud Account Mapping Rule Config Jira Priority> - Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
- Project
Jira
Cloud Account Mapping Rule Config Jira Project - [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
- Status
Mapping JiraCloud Account Mapping Rule Config Jira Status Mapping - Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
- Sync
Notes stringUser - ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
- Autocreate
Jql string - JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
- Create
Issue boolOn Incident Trigger - When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
- Custom
Fields []JiraCloud Account Mapping Rule Config Jira Custom Field - Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
- Issue
Type JiraCloud Account Mapping Rule Config Jira Issue Type - Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
- Priorities
[]Jira
Cloud Account Mapping Rule Config Jira Priority - Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
- Project
Jira
Cloud Account Mapping Rule Config Jira Project - [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
- Status
Mapping JiraCloud Account Mapping Rule Config Jira Status Mapping - Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
- Sync
Notes stringUser - ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
- autocreate
Jql String - JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
- create
Issue BooleanOn Incident Trigger - When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
- custom
Fields List<JiraCloud Account Mapping Rule Config Jira Custom Field> - Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
- issue
Type JiraCloud Account Mapping Rule Config Jira Issue Type - Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
- priorities
List<Jira
Cloud Account Mapping Rule Config Jira Priority> - Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
- project
Jira
Cloud Account Mapping Rule Config Jira Project - [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
- status
Mapping JiraCloud Account Mapping Rule Config Jira Status Mapping - Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
- sync
Notes StringUser - ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
- autocreate
Jql string - JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
- create
Issue booleanOn Incident Trigger - When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
- custom
Fields JiraCloud Account Mapping Rule Config Jira Custom Field[] - Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
- issue
Type JiraCloud Account Mapping Rule Config Jira Issue Type - Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
- priorities
Jira
Cloud Account Mapping Rule Config Jira Priority[] - Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
- project
Jira
Cloud Account Mapping Rule Config Jira Project - [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
- status
Mapping JiraCloud Account Mapping Rule Config Jira Status Mapping - Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
- sync
Notes stringUser - ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
- autocreate_
jql str - JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
- create_
issue_ boolon_ incident_ trigger - When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
- custom_
fields Sequence[JiraCloud Account Mapping Rule Config Jira Custom Field] - Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
- issue_
type JiraCloud Account Mapping Rule Config Jira Issue Type - Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
- priorities
Sequence[Jira
Cloud Account Mapping Rule Config Jira Priority] - Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
- project
Jira
Cloud Account Mapping Rule Config Jira Project - [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
- status_
mapping JiraCloud Account Mapping Rule Config Jira Status Mapping - Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
- sync_
notes_ struser - ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
- autocreate
Jql String - JQL query to automatically create PagerDuty incidents when matching Jira issues are created. Leave empty to disable this feature.
- create
Issue BooleanOn Incident Trigger - When enabled, automatically creates a Jira issue whenever a PagerDuty incident is triggered.
- custom
Fields List<Property Map> - Defines how Jira fields are populated when a Jira Issue is created from a PagerDuty Incident.
- issue
Type Property Map - Specifies the Jira issue type to be created or synchronized with PagerDuty incidents.
- priorities List<Property Map>
- Maps PagerDuty incident priorities to Jira issue priorities for synchronization.
- project Property Map
- [Updating can cause a resource replacement] Defines the Jira project where issues will be created or synchronized.
- status
Mapping Property Map - Maps PagerDuty incident statuses to corresponding Jira issue statuses for synchronization.
- sync
Notes StringUser - ID of the PagerDuty user for syncing notes and comments between Jira issues and PagerDuty incidents. If not provided, note synchronization is disabled.
JiraCloudAccountMappingRuleConfigJiraCustomField, JiraCloudAccountMappingRuleConfigJiraCustomFieldArgs
- Target
Issue stringField - The unique identifier key of the Jira field that will be set.
- Target
Issue stringField Name - The human-readable name of the Jira field.
- Type string
- The type of the value that will be set; one of
attribute
,const
orjira_value
. - Source
Incident stringField - The PagerDuty incident field from which the value will be extracted (only applicable if
type
isattribute
); one ofincident_number
,incident_title
,incident_description
,incident_status
,incident_created_at
,incident_service
,incident_escalation_policy
,incident_impacted_services
,incident_html_url
,incident_assignees
,incident_acknowledgers
,incident_last_status_change_at
,incident_last_status_change_by
,incident_urgency
orincident_priority
. - Value string
- The value to be set for the Jira field (only applicable if
type
isconst
orjira_value
). It must be set as a JSON string.
- Target
Issue stringField - The unique identifier key of the Jira field that will be set.
- Target
Issue stringField Name - The human-readable name of the Jira field.
- Type string
- The type of the value that will be set; one of
attribute
,const
orjira_value
. - Source
Incident stringField - The PagerDuty incident field from which the value will be extracted (only applicable if
type
isattribute
); one ofincident_number
,incident_title
,incident_description
,incident_status
,incident_created_at
,incident_service
,incident_escalation_policy
,incident_impacted_services
,incident_html_url
,incident_assignees
,incident_acknowledgers
,incident_last_status_change_at
,incident_last_status_change_by
,incident_urgency
orincident_priority
. - Value string
- The value to be set for the Jira field (only applicable if
type
isconst
orjira_value
). It must be set as a JSON string.
- target
Issue StringField - The unique identifier key of the Jira field that will be set.
- target
Issue StringField Name - The human-readable name of the Jira field.
- type String
- The type of the value that will be set; one of
attribute
,const
orjira_value
. - source
Incident StringField - The PagerDuty incident field from which the value will be extracted (only applicable if
type
isattribute
); one ofincident_number
,incident_title
,incident_description
,incident_status
,incident_created_at
,incident_service
,incident_escalation_policy
,incident_impacted_services
,incident_html_url
,incident_assignees
,incident_acknowledgers
,incident_last_status_change_at
,incident_last_status_change_by
,incident_urgency
orincident_priority
. - value String
- The value to be set for the Jira field (only applicable if
type
isconst
orjira_value
). It must be set as a JSON string.
- target
Issue stringField - The unique identifier key of the Jira field that will be set.
- target
Issue stringField Name - The human-readable name of the Jira field.
- type string
- The type of the value that will be set; one of
attribute
,const
orjira_value
. - source
Incident stringField - The PagerDuty incident field from which the value will be extracted (only applicable if
type
isattribute
); one ofincident_number
,incident_title
,incident_description
,incident_status
,incident_created_at
,incident_service
,incident_escalation_policy
,incident_impacted_services
,incident_html_url
,incident_assignees
,incident_acknowledgers
,incident_last_status_change_at
,incident_last_status_change_by
,incident_urgency
orincident_priority
. - value string
- The value to be set for the Jira field (only applicable if
type
isconst
orjira_value
). It must be set as a JSON string.
- target_
issue_ strfield - The unique identifier key of the Jira field that will be set.
- target_
issue_ strfield_ name - The human-readable name of the Jira field.
- type str
- The type of the value that will be set; one of
attribute
,const
orjira_value
. - source_
incident_ strfield - The PagerDuty incident field from which the value will be extracted (only applicable if
type
isattribute
); one ofincident_number
,incident_title
,incident_description
,incident_status
,incident_created_at
,incident_service
,incident_escalation_policy
,incident_impacted_services
,incident_html_url
,incident_assignees
,incident_acknowledgers
,incident_last_status_change_at
,incident_last_status_change_by
,incident_urgency
orincident_priority
. - value str
- The value to be set for the Jira field (only applicable if
type
isconst
orjira_value
). It must be set as a JSON string.
- target
Issue StringField - The unique identifier key of the Jira field that will be set.
- target
Issue StringField Name - The human-readable name of the Jira field.
- type String
- The type of the value that will be set; one of
attribute
,const
orjira_value
. - source
Incident StringField - The PagerDuty incident field from which the value will be extracted (only applicable if
type
isattribute
); one ofincident_number
,incident_title
,incident_description
,incident_status
,incident_created_at
,incident_service
,incident_escalation_policy
,incident_impacted_services
,incident_html_url
,incident_assignees
,incident_acknowledgers
,incident_last_status_change_at
,incident_last_status_change_by
,incident_urgency
orincident_priority
. - value String
- The value to be set for the Jira field (only applicable if
type
isconst
orjira_value
). It must be set as a JSON string.
JiraCloudAccountMappingRuleConfigJiraIssueType, JiraCloudAccountMappingRuleConfigJiraIssueTypeArgs
JiraCloudAccountMappingRuleConfigJiraPriority, JiraCloudAccountMappingRuleConfigJiraPriorityArgs
- Jira
Id string - The ID of the Jira priority.
- Pagerduty
Id string - The ID of the PagerDuty priority.
- Jira
Id string - The ID of the Jira priority.
- Pagerduty
Id string - The ID of the PagerDuty priority.
- jira
Id String - The ID of the Jira priority.
- pagerduty
Id String - The ID of the PagerDuty priority.
- jira
Id string - The ID of the Jira priority.
- pagerduty
Id string - The ID of the PagerDuty priority.
- jira_
id str - The ID of the Jira priority.
- pagerduty_
id str - The ID of the PagerDuty priority.
- jira
Id String - The ID of the Jira priority.
- pagerduty
Id String - The ID of the PagerDuty priority.
JiraCloudAccountMappingRuleConfigJiraProject, JiraCloudAccountMappingRuleConfigJiraProjectArgs
JiraCloudAccountMappingRuleConfigJiraStatusMapping, JiraCloudAccountMappingRuleConfigJiraStatusMappingArgs
- Acknowledged
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Acknowledged - Jira status that maps to the PagerDuty
acknowledged
status. - Resolved
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Resolved - Jira status that maps to the PagerDuty
resolved
status. - Triggered
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Triggered - Jira status that maps to the PagerDuty
triggered
status.
- Acknowledged
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Acknowledged - Jira status that maps to the PagerDuty
acknowledged
status. - Resolved
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Resolved - Jira status that maps to the PagerDuty
resolved
status. - Triggered
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Triggered - Jira status that maps to the PagerDuty
triggered
status.
- acknowledged
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Acknowledged - Jira status that maps to the PagerDuty
acknowledged
status. - resolved
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Resolved - Jira status that maps to the PagerDuty
resolved
status. - triggered
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Triggered - Jira status that maps to the PagerDuty
triggered
status.
- acknowledged
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Acknowledged - Jira status that maps to the PagerDuty
acknowledged
status. - resolved
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Resolved - Jira status that maps to the PagerDuty
resolved
status. - triggered
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Triggered - Jira status that maps to the PagerDuty
triggered
status.
- acknowledged
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Acknowledged - Jira status that maps to the PagerDuty
acknowledged
status. - resolved
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Resolved - Jira status that maps to the PagerDuty
resolved
status. - triggered
Jira
Cloud Account Mapping Rule Config Jira Status Mapping Triggered - Jira status that maps to the PagerDuty
triggered
status.
- acknowledged Property Map
- Jira status that maps to the PagerDuty
acknowledged
status. - resolved Property Map
- Jira status that maps to the PagerDuty
resolved
status. - triggered Property Map
- Jira status that maps to the PagerDuty
triggered
status.
JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledged, JiraCloudAccountMappingRuleConfigJiraStatusMappingAcknowledgedArgs
JiraCloudAccountMappingRuleConfigJiraStatusMappingResolved, JiraCloudAccountMappingRuleConfigJiraStatusMappingResolvedArgs
JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggered, JiraCloudAccountMappingRuleConfigJiraStatusMappingTriggeredArgs
Import
Jira Cloud account mapping rules can be imported using the account_mapping_id
and rule_id
, e.g.
$ pulumi import pagerduty:index/jiraCloudAccountMappingRule:JiraCloudAccountMappingRule main PLBP09X:PLB09Z
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- PagerDuty pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerduty
Terraform Provider.