diff --git a/provider/cmd/pulumi-resource-rootly/schema.json b/provider/cmd/pulumi-resource-rootly/schema.json index 65b3f81..0c525e0 100644 --- a/provider/cmd/pulumi-resource-rootly/schema.json +++ b/provider/cmd/pulumi-resource-rootly/schema.json @@ -3060,6 +3060,10 @@ "type": "string" } }, + "environmentsImpactedByIncident": { + "type": "boolean", + "description": "Value must be one of true or false\n" + }, "labels": { "type": "array", "items": { @@ -3086,6 +3090,10 @@ "type": "string" } }, + "servicesImpactedByIncident": { + "type": "boolean", + "description": "Value must be one of true or false\n" + }, "sources": { "type": "array", "items": { @@ -3148,6 +3156,10 @@ "type": "string" } }, + "servicesImpactedByIncident": { + "type": "boolean", + "description": "Value must be one of true or false\n" + }, "taskType": { "type": "string" } @@ -3205,6 +3217,10 @@ "type": "string" } }, + "servicesImpactedByIncident": { + "type": "boolean", + "description": "Value must be one of true or false\n" + }, "taskType": { "type": "string" } @@ -3238,6 +3254,10 @@ "type": "string" } }, + "environmentsImpactedByIncident": { + "type": "boolean", + "description": "Value must be one of true or false\n" + }, "labels": { "type": "array", "items": { @@ -3270,6 +3290,10 @@ "type": "string" } }, + "servicesImpactedByIncident": { + "type": "boolean", + "description": "Value must be one of true or false\n" + }, "sources": { "type": "array", "items": { @@ -7155,10 +7179,6 @@ "slug": { "type": "string", "description": "The slug of the functionality\n" - }, - "status": { - "type": "string", - "description": "The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n" } }, "required": [ @@ -7249,10 +7269,6 @@ "slug": { "type": "string", "description": "The slug of the functionality\n" - }, - "status": { - "type": "string", - "description": "The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n" } }, "stateInputs": { @@ -7330,10 +7346,6 @@ "slug": { "type": "string", "description": "The slug of the functionality\n" - }, - "status": { - "type": "string", - "description": "The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n" } }, "type": "object" @@ -7474,6 +7486,9 @@ "description": "Value must be one of true or false\n" } }, + "requiredInputs": [ + "incidentPermissionSetId" + ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentPermissionSetBoolean resources.\n", "properties": { @@ -7542,6 +7557,9 @@ "type": "string" } }, + "requiredInputs": [ + "incidentPermissionSetId" + ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentPermissionSetResource resources.\n", "properties": { @@ -9108,10 +9126,6 @@ "slug": { "type": "string", "description": "The slug of the service\n" - }, - "status": { - "type": "string", - "description": "The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n" } }, "required": [ @@ -9237,10 +9251,6 @@ "slug": { "type": "string", "description": "The slug of the service\n" - }, - "status": { - "type": "string", - "description": "The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n" } }, "stateInputs": { @@ -9346,10 +9356,6 @@ "slug": { "type": "string", "description": "The slug of the service\n" - }, - "status": { - "type": "string", - "description": "The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n" } }, "type": "object" diff --git a/provider/go.mod b/provider/go.mod index 3fd1d65..26a5faa 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -9,7 +9,7 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf require ( github.com/gobuffalo/flect v0.1.3 github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 - github.com/rootlyhq/terraform-provider-rootly v1.2.12 + github.com/rootlyhq/terraform-provider-rootly v1.2.15 ) require ( @@ -229,7 +229,7 @@ require ( gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect golang.org/x/crypto v0.18.0 // indirect - golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect + golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.20.0 // indirect golang.org/x/oauth2 v0.13.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index 8aeb90b..3073a00 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2232,8 +2232,8 @@ github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTE github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= -github.com/rootlyhq/terraform-provider-rootly v1.2.12 h1:5zUGtRQZpGfsvHO6V7TuNjuPPDvLGrK3jGAXFDthHx0= -github.com/rootlyhq/terraform-provider-rootly v1.2.12/go.mod h1:z6XoKrY2PgxO0sBjxundqc3LammJV7Ly8Ij2CDfyurs= +github.com/rootlyhq/terraform-provider-rootly v1.2.15 h1:/KkiC9N8wjuVani5g2ZlmrTSTK2WtfAiPt7Y8WuzP9Q= +github.com/rootlyhq/terraform-provider-rootly v1.2.15/go.mod h1:z6XoKrY2PgxO0sBjxundqc3LammJV7Ly8Ij2CDfyurs= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= @@ -2621,8 +2621,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= -golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc h1:ao2WRsKSzW6KuUY9IWPwWahcHCgR0s52IfwutMfEbdM= -golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= +golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e h1:723BNChdd0c2Wk6WOE320qGBiPtYx0F0Bbm1kriShfE= +golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= diff --git a/sdk/nodejs/functionality.ts b/sdk/nodejs/functionality.ts index 76d625e..481eacf 100644 --- a/sdk/nodejs/functionality.ts +++ b/sdk/nodejs/functionality.ts @@ -137,10 +137,6 @@ export class Functionality extends pulumi.CustomResource { * The slug of the functionality */ public readonly slug!: pulumi.Output; - /** - * The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`. - */ - public readonly status!: pulumi.Output; /** * Create a Functionality resource with the given unique name, arguments, and options. @@ -168,7 +164,6 @@ export class Functionality extends pulumi.CustomResource { resourceInputs["slackAliases"] = state ? state.slackAliases : undefined; resourceInputs["slackChannels"] = state ? state.slackChannels : undefined; resourceInputs["slug"] = state ? state.slug : undefined; - resourceInputs["status"] = state ? state.status : undefined; } else { const args = argsOrState as FunctionalityArgs | undefined; resourceInputs["color"] = args ? args.color : undefined; @@ -184,7 +179,6 @@ export class Functionality extends pulumi.CustomResource { resourceInputs["slackAliases"] = args ? args.slackAliases : undefined; resourceInputs["slackChannels"] = args ? args.slackChannels : undefined; resourceInputs["slug"] = args ? args.slug : undefined; - resourceInputs["status"] = args ? args.status : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Functionality.__pulumiType, name, resourceInputs, opts); @@ -247,10 +241,6 @@ export interface FunctionalityState { * The slug of the functionality */ slug?: pulumi.Input; - /** - * The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`. - */ - status?: pulumi.Input; } /** @@ -309,8 +299,4 @@ export interface FunctionalityArgs { * The slug of the functionality */ slug?: pulumi.Input; - /** - * The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`. - */ - status?: pulumi.Input; } diff --git a/sdk/nodejs/incidentPermissionSetBoolean.ts b/sdk/nodejs/incidentPermissionSetBoolean.ts index 4e278b5..1a29893 100644 --- a/sdk/nodejs/incidentPermissionSetBoolean.ts +++ b/sdk/nodejs/incidentPermissionSetBoolean.ts @@ -50,7 +50,7 @@ export class IncidentPermissionSetBoolean extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args?: IncidentPermissionSetBooleanArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args: IncidentPermissionSetBooleanArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: IncidentPermissionSetBooleanArgs | IncidentPermissionSetBooleanState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -62,6 +62,9 @@ export class IncidentPermissionSetBoolean extends pulumi.CustomResource { resourceInputs["private"] = state ? state.private : undefined; } else { const args = argsOrState as IncidentPermissionSetBooleanArgs | undefined; + if ((!args || args.incidentPermissionSetId === undefined) && !opts.urn) { + throw new Error("Missing required property 'incidentPermissionSetId'"); + } resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["incidentPermissionSetId"] = args ? args.incidentPermissionSetId : undefined; resourceInputs["kind"] = args ? args.kind : undefined; @@ -93,7 +96,7 @@ export interface IncidentPermissionSetBooleanState { */ export interface IncidentPermissionSetBooleanArgs { enabled?: pulumi.Input; - incidentPermissionSetId?: pulumi.Input; + incidentPermissionSetId: pulumi.Input; /** * Value must be one of `publishToStatusPage`, `assignIncidentRoles`, `inviteSubscribers`, `updateSummary`, `updateTimeline`, `triggerWorkflows`, `modifyCustomFields`. */ diff --git a/sdk/nodejs/incidentPermissionSetResource.ts b/sdk/nodejs/incidentPermissionSetResource.ts index f2bdb6e..b3af01a 100644 --- a/sdk/nodejs/incidentPermissionSetResource.ts +++ b/sdk/nodejs/incidentPermissionSetResource.ts @@ -51,7 +51,7 @@ export class IncidentPermissionSetResource extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args?: IncidentPermissionSetResourceArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, args: IncidentPermissionSetResourceArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: IncidentPermissionSetResourceArgs | IncidentPermissionSetResourceState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; @@ -64,6 +64,9 @@ export class IncidentPermissionSetResource extends pulumi.CustomResource { resourceInputs["resourceType"] = state ? state.resourceType : undefined; } else { const args = argsOrState as IncidentPermissionSetResourceArgs | undefined; + if ((!args || args.incidentPermissionSetId === undefined) && !opts.urn) { + throw new Error("Missing required property 'incidentPermissionSetId'"); + } resourceInputs["incidentPermissionSetId"] = args ? args.incidentPermissionSetId : undefined; resourceInputs["kind"] = args ? args.kind : undefined; resourceInputs["private"] = args ? args.private : undefined; @@ -96,7 +99,7 @@ export interface IncidentPermissionSetResourceState { * The set of arguments for constructing a IncidentPermissionSetResource resource. */ export interface IncidentPermissionSetResourceArgs { - incidentPermissionSetId?: pulumi.Input; + incidentPermissionSetId: pulumi.Input; /** * Value must be one of `severities`, `incidentTypes`, `statuses`. */ diff --git a/sdk/nodejs/service.ts b/sdk/nodejs/service.ts index ddaaa99..6ecfd36 100644 --- a/sdk/nodejs/service.ts +++ b/sdk/nodejs/service.ts @@ -165,10 +165,6 @@ export class Service extends pulumi.CustomResource { * The slug of the service */ public readonly slug!: pulumi.Output; - /** - * The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`. - */ - public readonly status!: pulumi.Output; /** * Create a Service resource with the given unique name, arguments, and options. @@ -203,7 +199,6 @@ export class Service extends pulumi.CustomResource { resourceInputs["slackAliases"] = state ? state.slackAliases : undefined; resourceInputs["slackChannels"] = state ? state.slackChannels : undefined; resourceInputs["slug"] = state ? state.slug : undefined; - resourceInputs["status"] = state ? state.status : undefined; } else { const args = argsOrState as ServiceArgs | undefined; resourceInputs["backstageId"] = args ? args.backstageId : undefined; @@ -226,7 +221,6 @@ export class Service extends pulumi.CustomResource { resourceInputs["slackAliases"] = args ? args.slackAliases : undefined; resourceInputs["slackChannels"] = args ? args.slackChannels : undefined; resourceInputs["slug"] = args ? args.slug : undefined; - resourceInputs["status"] = args ? args.status : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Service.__pulumiType, name, resourceInputs, opts); @@ -317,10 +311,6 @@ export interface ServiceState { * The slug of the service */ slug?: pulumi.Input; - /** - * The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`. - */ - status?: pulumi.Input; } /** @@ -407,8 +397,4 @@ export interface ServiceArgs { * The slug of the service */ slug?: pulumi.Input; - /** - * The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`. - */ - status?: pulumi.Input; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 5737b27..f81b0e1 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -1697,6 +1697,10 @@ export interface WorkflowTaskCreateZoomMeetingTaskParamsPostToSlackChannel { export interface WorkflowTaskGetAlertsTaskParams { environmentIds?: pulumi.Input[]>; + /** + * Value must be one of true or false + */ + environmentsImpactedByIncident?: pulumi.Input; labels?: pulumi.Input[]>; /** * How far back to fetch commits (in format '1 minute', '30 days', '3 months', etc.) @@ -1708,6 +1712,10 @@ export interface WorkflowTaskGetAlertsTaskParams { postToIncidentTimeline?: pulumi.Input; postToSlackChannels?: pulumi.Input[]>; serviceIds?: pulumi.Input[]>; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: pulumi.Input; sources?: pulumi.Input[]>; taskType?: pulumi.Input; } @@ -1733,6 +1741,10 @@ export interface WorkflowTaskGetGithubCommitsTaskParams { postToIncidentTimeline?: pulumi.Input; postToSlackChannels?: pulumi.Input[]>; serviceIds?: pulumi.Input[]>; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: pulumi.Input; taskType?: pulumi.Input; } @@ -1757,6 +1769,10 @@ export interface WorkflowTaskGetGitlabCommitsTaskParams { postToIncidentTimeline?: pulumi.Input; postToSlackChannels?: pulumi.Input[]>; serviceIds?: pulumi.Input[]>; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: pulumi.Input; taskType?: pulumi.Input; } @@ -1767,6 +1783,10 @@ export interface WorkflowTaskGetGitlabCommitsTaskParamsPostToSlackChannel { export interface WorkflowTaskGetPulsesTaskParams { environmentIds?: pulumi.Input[]>; + /** + * Value must be one of true or false + */ + environmentsImpactedByIncident?: pulumi.Input; labels?: pulumi.Input[]>; /** * How far back to fetch commits (in format '1 minute', '30 days', '3 months', etc.) @@ -1779,6 +1799,10 @@ export interface WorkflowTaskGetPulsesTaskParams { postToSlackChannels?: pulumi.Input[]>; refs?: pulumi.Input[]>; serviceIds?: pulumi.Input[]>; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: pulumi.Input; sources?: pulumi.Input[]>; taskType?: pulumi.Input; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 4bfad25..271890d 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1781,6 +1781,10 @@ export interface WorkflowTaskCreateZoomMeetingTaskParamsPostToSlackChannel { export interface WorkflowTaskGetAlertsTaskParams { environmentIds?: string[]; + /** + * Value must be one of true or false + */ + environmentsImpactedByIncident?: boolean; labels?: string[]; /** * How far back to fetch commits (in format '1 minute', '30 days', '3 months', etc.) @@ -1792,6 +1796,10 @@ export interface WorkflowTaskGetAlertsTaskParams { postToIncidentTimeline?: boolean; postToSlackChannels?: outputs.WorkflowTaskGetAlertsTaskParamsPostToSlackChannel[]; serviceIds?: string[]; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: boolean; sources?: string[]; taskType?: string; } @@ -1817,6 +1825,10 @@ export interface WorkflowTaskGetGithubCommitsTaskParams { postToIncidentTimeline?: boolean; postToSlackChannels?: outputs.WorkflowTaskGetGithubCommitsTaskParamsPostToSlackChannel[]; serviceIds?: string[]; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: boolean; taskType?: string; } @@ -1841,6 +1853,10 @@ export interface WorkflowTaskGetGitlabCommitsTaskParams { postToIncidentTimeline?: boolean; postToSlackChannels?: outputs.WorkflowTaskGetGitlabCommitsTaskParamsPostToSlackChannel[]; serviceIds?: string[]; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: boolean; taskType?: string; } @@ -1851,6 +1867,10 @@ export interface WorkflowTaskGetGitlabCommitsTaskParamsPostToSlackChannel { export interface WorkflowTaskGetPulsesTaskParams { environmentIds?: string[]; + /** + * Value must be one of true or false + */ + environmentsImpactedByIncident?: boolean; labels?: string[]; /** * How far back to fetch commits (in format '1 minute', '30 days', '3 months', etc.) @@ -1863,6 +1883,10 @@ export interface WorkflowTaskGetPulsesTaskParams { postToSlackChannels?: outputs.WorkflowTaskGetPulsesTaskParamsPostToSlackChannel[]; refs?: string[]; serviceIds?: string[]; + /** + * Value must be one of true or false + */ + servicesImpactedByIncident?: boolean; sources?: string[]; taskType?: string; }