fastly.NgwafAlertOpsgenieIntegration
Explore with Pulumi AI
Provides Fastly Next-Gen WAF Alert Opsgenie integrations, which provide a connection to Opsgenie.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const demoOpsgenieAlert = new fastly.NgwafAlertOpsgenieIntegration("demo_opsgenie_alert", {
description: "A description",
key: "123456789",
workspaceId: demo.id,
});
import pulumi
import pulumi_fastly as fastly
demo_opsgenie_alert = fastly.NgwafAlertOpsgenieIntegration("demo_opsgenie_alert",
description="A description",
key="123456789",
workspace_id=demo["id"])
package main
import (
"github.com/pulumi/pulumi-fastly/sdk/v11/go/fastly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fastly.NewNgwafAlertOpsgenieIntegration(ctx, "demo_opsgenie_alert", &fastly.NgwafAlertOpsgenieIntegrationArgs{
Description: pulumi.String("A description"),
Key: pulumi.String("123456789"),
WorkspaceId: pulumi.Any(demo.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fastly = Pulumi.Fastly;
return await Deployment.RunAsync(() =>
{
var demoOpsgenieAlert = new Fastly.NgwafAlertOpsgenieIntegration("demo_opsgenie_alert", new()
{
Description = "A description",
Key = "123456789",
WorkspaceId = demo.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fastly.NgwafAlertOpsgenieIntegration;
import com.pulumi.fastly.NgwafAlertOpsgenieIntegrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var demoOpsgenieAlert = new NgwafAlertOpsgenieIntegration("demoOpsgenieAlert", NgwafAlertOpsgenieIntegrationArgs.builder()
.description("A description")
.key("123456789")
.workspaceId(demo.id())
.build());
}
}
resources:
demoOpsgenieAlert:
type: fastly:NgwafAlertOpsgenieIntegration
name: demo_opsgenie_alert
properties:
description: A description
key: '123456789'
workspaceId: ${demo.id}
Create NgwafAlertOpsgenieIntegration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NgwafAlertOpsgenieIntegration(name: string, args: NgwafAlertOpsgenieIntegrationArgs, opts?: CustomResourceOptions);
@overload
def NgwafAlertOpsgenieIntegration(resource_name: str,
args: NgwafAlertOpsgenieIntegrationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NgwafAlertOpsgenieIntegration(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
workspace_id: Optional[str] = None,
description: Optional[str] = None)
func NewNgwafAlertOpsgenieIntegration(ctx *Context, name string, args NgwafAlertOpsgenieIntegrationArgs, opts ...ResourceOption) (*NgwafAlertOpsgenieIntegration, error)
public NgwafAlertOpsgenieIntegration(string name, NgwafAlertOpsgenieIntegrationArgs args, CustomResourceOptions? opts = null)
public NgwafAlertOpsgenieIntegration(String name, NgwafAlertOpsgenieIntegrationArgs args)
public NgwafAlertOpsgenieIntegration(String name, NgwafAlertOpsgenieIntegrationArgs args, CustomResourceOptions options)
type: fastly:NgwafAlertOpsgenieIntegration
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 NgwafAlertOpsgenieIntegrationArgs
- 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 NgwafAlertOpsgenieIntegrationArgs
- 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 NgwafAlertOpsgenieIntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NgwafAlertOpsgenieIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NgwafAlertOpsgenieIntegrationArgs
- 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 ngwafAlertOpsgenieIntegrationResource = new Fastly.NgwafAlertOpsgenieIntegration("ngwafAlertOpsgenieIntegrationResource", new()
{
Key = "string",
WorkspaceId = "string",
Description = "string",
});
example, err := fastly.NewNgwafAlertOpsgenieIntegration(ctx, "ngwafAlertOpsgenieIntegrationResource", &fastly.NgwafAlertOpsgenieIntegrationArgs{
Key: pulumi.String("string"),
WorkspaceId: pulumi.String("string"),
Description: pulumi.String("string"),
})
var ngwafAlertOpsgenieIntegrationResource = new NgwafAlertOpsgenieIntegration("ngwafAlertOpsgenieIntegrationResource", NgwafAlertOpsgenieIntegrationArgs.builder()
.key("string")
.workspaceId("string")
.description("string")
.build());
ngwaf_alert_opsgenie_integration_resource = fastly.NgwafAlertOpsgenieIntegration("ngwafAlertOpsgenieIntegrationResource",
key="string",
workspace_id="string",
description="string")
const ngwafAlertOpsgenieIntegrationResource = new fastly.NgwafAlertOpsgenieIntegration("ngwafAlertOpsgenieIntegrationResource", {
key: "string",
workspaceId: "string",
description: "string",
});
type: fastly:NgwafAlertOpsgenieIntegration
properties:
description: string
key: string
workspaceId: string
NgwafAlertOpsgenieIntegration 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 NgwafAlertOpsgenieIntegration resource accepts the following input properties:
- Key string
- The Opsgenie key.
- Workspace
Id string - The ID of the workspace.
- Description string
- The description of the alert.
- Key string
- The Opsgenie key.
- Workspace
Id string - The ID of the workspace.
- Description string
- The description of the alert.
- key String
- The Opsgenie key.
- workspace
Id String - The ID of the workspace.
- description String
- The description of the alert.
- key string
- The Opsgenie key.
- workspace
Id string - The ID of the workspace.
- description string
- The description of the alert.
- key str
- The Opsgenie key.
- workspace_
id str - The ID of the workspace.
- description str
- The description of the alert.
- key String
- The Opsgenie key.
- workspace
Id String - The ID of the workspace.
- description String
- The description of the alert.
Outputs
All input properties are implicitly available as output properties. Additionally, the NgwafAlertOpsgenieIntegration 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 NgwafAlertOpsgenieIntegration Resource
Get an existing NgwafAlertOpsgenieIntegration 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?: NgwafAlertOpsgenieIntegrationState, opts?: CustomResourceOptions): NgwafAlertOpsgenieIntegration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
key: Optional[str] = None,
workspace_id: Optional[str] = None) -> NgwafAlertOpsgenieIntegration
func GetNgwafAlertOpsgenieIntegration(ctx *Context, name string, id IDInput, state *NgwafAlertOpsgenieIntegrationState, opts ...ResourceOption) (*NgwafAlertOpsgenieIntegration, error)
public static NgwafAlertOpsgenieIntegration Get(string name, Input<string> id, NgwafAlertOpsgenieIntegrationState? state, CustomResourceOptions? opts = null)
public static NgwafAlertOpsgenieIntegration get(String name, Output<String> id, NgwafAlertOpsgenieIntegrationState state, CustomResourceOptions options)
resources: _: type: fastly:NgwafAlertOpsgenieIntegration 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.
- Description string
- The description of the alert.
- Key string
- The Opsgenie key.
- Workspace
Id string - The ID of the workspace.
- Description string
- The description of the alert.
- Key string
- The Opsgenie key.
- Workspace
Id string - The ID of the workspace.
- description String
- The description of the alert.
- key String
- The Opsgenie key.
- workspace
Id String - The ID of the workspace.
- description string
- The description of the alert.
- key string
- The Opsgenie key.
- workspace
Id string - The ID of the workspace.
- description str
- The description of the alert.
- key str
- The Opsgenie key.
- workspace_
id str - The ID of the workspace.
- description String
- The description of the alert.
- key String
- The Opsgenie key.
- workspace
Id String - The ID of the workspace.
Import
Fastly Next-Gen WAF Alert Opsgenie integrations can be imported using their ID and the ID of the workspace they belong to.
$ pulumi import fastly:index/ngwafAlertOpsgenieIntegration:NgwafAlertOpsgenieIntegration example <workspace_id>/<alert_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.