Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse
dynatrace.PagerDutyNotification
Explore with Pulumi AI
Create PagerDutyNotification Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PagerDutyNotification(name: string, args: PagerDutyNotificationArgs, opts?: CustomResourceOptions);
@overload
def PagerDutyNotification(resource_name: str,
args: PagerDutyNotificationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PagerDutyNotification(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
active: Optional[bool] = None,
profile: Optional[str] = None,
service: Optional[str] = None,
api_key: Optional[str] = None,
legacy_id: Optional[str] = None,
name: Optional[str] = None)
func NewPagerDutyNotification(ctx *Context, name string, args PagerDutyNotificationArgs, opts ...ResourceOption) (*PagerDutyNotification, error)
public PagerDutyNotification(string name, PagerDutyNotificationArgs args, CustomResourceOptions? opts = null)
public PagerDutyNotification(String name, PagerDutyNotificationArgs args)
public PagerDutyNotification(String name, PagerDutyNotificationArgs args, CustomResourceOptions options)
type: dynatrace:PagerDutyNotification
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 PagerDutyNotificationArgs
- 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 PagerDutyNotificationArgs
- 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 PagerDutyNotificationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PagerDutyNotificationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PagerDutyNotificationArgs
- 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 pagerDutyNotificationResource = new Dynatrace.PagerDutyNotification("pagerDutyNotificationResource", new()
{
Account = "string",
Active = false,
Profile = "string",
Service = "string",
ApiKey = "string",
LegacyId = "string",
Name = "string",
});
example, err := dynatrace.NewPagerDutyNotification(ctx, "pagerDutyNotificationResource", &dynatrace.PagerDutyNotificationArgs{
Account: pulumi.String("string"),
Active: pulumi.Bool(false),
Profile: pulumi.String("string"),
Service: pulumi.String("string"),
ApiKey: pulumi.String("string"),
LegacyId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var pagerDutyNotificationResource = new PagerDutyNotification("pagerDutyNotificationResource", PagerDutyNotificationArgs.builder()
.account("string")
.active(false)
.profile("string")
.service("string")
.apiKey("string")
.legacyId("string")
.name("string")
.build());
pager_duty_notification_resource = dynatrace.PagerDutyNotification("pagerDutyNotificationResource",
account="string",
active=False,
profile="string",
service="string",
api_key="string",
legacy_id="string",
name="string")
const pagerDutyNotificationResource = new dynatrace.PagerDutyNotification("pagerDutyNotificationResource", {
account: "string",
active: false,
profile: "string",
service: "string",
apiKey: "string",
legacyId: "string",
name: "string",
});
type: dynatrace:PagerDutyNotification
properties:
account: string
active: false
apiKey: string
legacyId: string
name: string
profile: string
service: string
PagerDutyNotification Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PagerDutyNotification resource accepts the following input properties:
- Account string
- The name of the PagerDuty account
- Active bool
- The configuration is enabled (
true
) or disabled (false
) - Profile string
- The ID of the associated alerting profile
- Service string
- The name of the PagerDuty Service
- Api
Key string - The API key to access PagerDuty
- Legacy
Id string - The ID of these settings when referred to from resources requiring the REST API V1 keys
- Name string
- The name of the notification configuration
- Account string
- The name of the PagerDuty account
- Active bool
- The configuration is enabled (
true
) or disabled (false
) - Profile string
- The ID of the associated alerting profile
- Service string
- The name of the PagerDuty Service
- Api
Key string - The API key to access PagerDuty
- Legacy
Id string - The ID of these settings when referred to from resources requiring the REST API V1 keys
- Name string
- The name of the notification configuration
- account String
- The name of the PagerDuty account
- active Boolean
- The configuration is enabled (
true
) or disabled (false
) - profile String
- The ID of the associated alerting profile
- service String
- The name of the PagerDuty Service
- api
Key String - The API key to access PagerDuty
- legacy
Id String - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name String
- The name of the notification configuration
- account string
- The name of the PagerDuty account
- active boolean
- The configuration is enabled (
true
) or disabled (false
) - profile string
- The ID of the associated alerting profile
- service string
- The name of the PagerDuty Service
- api
Key string - The API key to access PagerDuty
- legacy
Id string - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name string
- The name of the notification configuration
- account str
- The name of the PagerDuty account
- active bool
- The configuration is enabled (
true
) or disabled (false
) - profile str
- The ID of the associated alerting profile
- service str
- The name of the PagerDuty Service
- api_
key str - The API key to access PagerDuty
- legacy_
id str - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name str
- The name of the notification configuration
- account String
- The name of the PagerDuty account
- active Boolean
- The configuration is enabled (
true
) or disabled (false
) - profile String
- The ID of the associated alerting profile
- service String
- The name of the PagerDuty Service
- api
Key String - The API key to access PagerDuty
- legacy
Id String - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name String
- The name of the notification configuration
Outputs
All input properties are implicitly available as output properties. Additionally, the PagerDutyNotification 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 PagerDutyNotification Resource
Get an existing PagerDutyNotification 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?: PagerDutyNotificationState, opts?: CustomResourceOptions): PagerDutyNotification
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
active: Optional[bool] = None,
api_key: Optional[str] = None,
legacy_id: Optional[str] = None,
name: Optional[str] = None,
profile: Optional[str] = None,
service: Optional[str] = None) -> PagerDutyNotification
func GetPagerDutyNotification(ctx *Context, name string, id IDInput, state *PagerDutyNotificationState, opts ...ResourceOption) (*PagerDutyNotification, error)
public static PagerDutyNotification Get(string name, Input<string> id, PagerDutyNotificationState? state, CustomResourceOptions? opts = null)
public static PagerDutyNotification get(String name, Output<String> id, PagerDutyNotificationState 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 string
- The name of the PagerDuty account
- Active bool
- The configuration is enabled (
true
) or disabled (false
) - Api
Key string - The API key to access PagerDuty
- Legacy
Id string - The ID of these settings when referred to from resources requiring the REST API V1 keys
- Name string
- The name of the notification configuration
- Profile string
- The ID of the associated alerting profile
- Service string
- The name of the PagerDuty Service
- Account string
- The name of the PagerDuty account
- Active bool
- The configuration is enabled (
true
) or disabled (false
) - Api
Key string - The API key to access PagerDuty
- Legacy
Id string - The ID of these settings when referred to from resources requiring the REST API V1 keys
- Name string
- The name of the notification configuration
- Profile string
- The ID of the associated alerting profile
- Service string
- The name of the PagerDuty Service
- account String
- The name of the PagerDuty account
- active Boolean
- The configuration is enabled (
true
) or disabled (false
) - api
Key String - The API key to access PagerDuty
- legacy
Id String - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name String
- The name of the notification configuration
- profile String
- The ID of the associated alerting profile
- service String
- The name of the PagerDuty Service
- account string
- The name of the PagerDuty account
- active boolean
- The configuration is enabled (
true
) or disabled (false
) - api
Key string - The API key to access PagerDuty
- legacy
Id string - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name string
- The name of the notification configuration
- profile string
- The ID of the associated alerting profile
- service string
- The name of the PagerDuty Service
- account str
- The name of the PagerDuty account
- active bool
- The configuration is enabled (
true
) or disabled (false
) - api_
key str - The API key to access PagerDuty
- legacy_
id str - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name str
- The name of the notification configuration
- profile str
- The ID of the associated alerting profile
- service str
- The name of the PagerDuty Service
- account String
- The name of the PagerDuty account
- active Boolean
- The configuration is enabled (
true
) or disabled (false
) - api
Key String - The API key to access PagerDuty
- legacy
Id String - The ID of these settings when referred to from resources requiring the REST API V1 keys
- name String
- The name of the notification configuration
- profile String
- The ID of the associated alerting profile
- service String
- The name of the PagerDuty Service
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.