Provides a Datadog On-Call user notification channel resource.
Create OnCallUserNotificationChannel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OnCallUserNotificationChannel(name: string, args: OnCallUserNotificationChannelArgs, opts?: CustomResourceOptions);@overload
def OnCallUserNotificationChannel(resource_name: str,
args: OnCallUserNotificationChannelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OnCallUserNotificationChannel(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_id: Optional[str] = None,
email: Optional[OnCallUserNotificationChannelEmailArgs] = None,
phone: Optional[OnCallUserNotificationChannelPhoneArgs] = None)func NewOnCallUserNotificationChannel(ctx *Context, name string, args OnCallUserNotificationChannelArgs, opts ...ResourceOption) (*OnCallUserNotificationChannel, error)public OnCallUserNotificationChannel(string name, OnCallUserNotificationChannelArgs args, CustomResourceOptions? opts = null)
public OnCallUserNotificationChannel(String name, OnCallUserNotificationChannelArgs args)
public OnCallUserNotificationChannel(String name, OnCallUserNotificationChannelArgs args, CustomResourceOptions options)
type: datadog:OnCallUserNotificationChannel
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 OnCallUserNotificationChannelArgs
- 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 OnCallUserNotificationChannelArgs
- 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 OnCallUserNotificationChannelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OnCallUserNotificationChannelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OnCallUserNotificationChannelArgs
- 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 onCallUserNotificationChannelResource = new Datadog.OnCallUserNotificationChannel("onCallUserNotificationChannelResource", new()
{
UserId = "string",
Email = new Datadog.Inputs.OnCallUserNotificationChannelEmailArgs
{
Address = "string",
Formats = new[]
{
"string",
},
},
Phone = new Datadog.Inputs.OnCallUserNotificationChannelPhoneArgs
{
Number = "string",
},
});
example, err := datadog.NewOnCallUserNotificationChannel(ctx, "onCallUserNotificationChannelResource", &datadog.OnCallUserNotificationChannelArgs{
UserId: pulumi.String("string"),
Email: &datadog.OnCallUserNotificationChannelEmailArgs{
Address: pulumi.String("string"),
Formats: pulumi.StringArray{
pulumi.String("string"),
},
},
Phone: &datadog.OnCallUserNotificationChannelPhoneArgs{
Number: pulumi.String("string"),
},
})
var onCallUserNotificationChannelResource = new OnCallUserNotificationChannel("onCallUserNotificationChannelResource", OnCallUserNotificationChannelArgs.builder()
.userId("string")
.email(OnCallUserNotificationChannelEmailArgs.builder()
.address("string")
.formats("string")
.build())
.phone(OnCallUserNotificationChannelPhoneArgs.builder()
.number("string")
.build())
.build());
on_call_user_notification_channel_resource = datadog.OnCallUserNotificationChannel("onCallUserNotificationChannelResource",
user_id="string",
email={
"address": "string",
"formats": ["string"],
},
phone={
"number": "string",
})
const onCallUserNotificationChannelResource = new datadog.OnCallUserNotificationChannel("onCallUserNotificationChannelResource", {
userId: "string",
email: {
address: "string",
formats: ["string"],
},
phone: {
number: "string",
},
});
type: datadog:OnCallUserNotificationChannel
properties:
email:
address: string
formats:
- string
phone:
number: string
userId: string
OnCallUserNotificationChannel 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 OnCallUserNotificationChannel resource accepts the following input properties:
- User
Id string - ID of the user to associate the notification channel with.
- Email
On
Call User Notification Channel Email - Phone
On
Call User Notification Channel Phone
- User
Id string - ID of the user to associate the notification channel with.
- Email
On
Call User Notification Channel Email Args - Phone
On
Call User Notification Channel Phone Args
- user
Id String - ID of the user to associate the notification channel with.
- email
On
Call User Notification Channel Email - phone
On
Call User Notification Channel Phone
- user
Id string - ID of the user to associate the notification channel with.
- email
On
Call User Notification Channel Email - phone
On
Call User Notification Channel Phone
- user_
id str - ID of the user to associate the notification channel with.
- email
On
Call User Notification Channel Email Args - phone
On
Call User Notification Channel Phone Args
- user
Id String - ID of the user to associate the notification channel with.
- email Property Map
- phone Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the OnCallUserNotificationChannel 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 OnCallUserNotificationChannel Resource
Get an existing OnCallUserNotificationChannel 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?: OnCallUserNotificationChannelState, opts?: CustomResourceOptions): OnCallUserNotificationChannel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
email: Optional[OnCallUserNotificationChannelEmailArgs] = None,
phone: Optional[OnCallUserNotificationChannelPhoneArgs] = None,
user_id: Optional[str] = None) -> OnCallUserNotificationChannelfunc GetOnCallUserNotificationChannel(ctx *Context, name string, id IDInput, state *OnCallUserNotificationChannelState, opts ...ResourceOption) (*OnCallUserNotificationChannel, error)public static OnCallUserNotificationChannel Get(string name, Input<string> id, OnCallUserNotificationChannelState? state, CustomResourceOptions? opts = null)public static OnCallUserNotificationChannel get(String name, Output<String> id, OnCallUserNotificationChannelState state, CustomResourceOptions options)resources: _: type: datadog:OnCallUserNotificationChannel 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.
- Email
On
Call User Notification Channel Email - Phone
On
Call User Notification Channel Phone - User
Id string - ID of the user to associate the notification channel with.
- Email
On
Call User Notification Channel Email Args - Phone
On
Call User Notification Channel Phone Args - User
Id string - ID of the user to associate the notification channel with.
- email
On
Call User Notification Channel Email - phone
On
Call User Notification Channel Phone - user
Id String - ID of the user to associate the notification channel with.
- email
On
Call User Notification Channel Email - phone
On
Call User Notification Channel Phone - user
Id string - ID of the user to associate the notification channel with.
- email
On
Call User Notification Channel Email Args - phone
On
Call User Notification Channel Phone Args - user_
id str - ID of the user to associate the notification channel with.
- email Property Map
- phone Property Map
- user
Id String - ID of the user to associate the notification channel with.
Supporting Types
OnCallUserNotificationChannelEmail, OnCallUserNotificationChannelEmailArgs
OnCallUserNotificationChannelPhone, OnCallUserNotificationChannelPhoneArgs
- Number string
- The E-164 formatted phone number (e.g. +3371234567)
- Number string
- The E-164 formatted phone number (e.g. +3371234567)
- number String
- The E-164 formatted phone number (e.g. +3371234567)
- number string
- The E-164 formatted phone number (e.g. +3371234567)
- number str
- The E-164 formatted phone number (e.g. +3371234567)
- number String
- The E-164 formatted phone number (e.g. +3371234567)
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
