GetNotifications

This data source provides available notification resources.

NOTE: Available in 1.72.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ds = Output.Create(AliCloud.Ess.GetNotifications.InvokeAsync(new AliCloud.Ess.GetNotificationsArgs
        {
            ScalingGroupId = "scaling_group_id",
        }));
        this.FirstNotification = ds.Apply(ds => ds.Notifications[0].Id);
    }

    [Output("firstNotification")]
    public Output<string> FirstNotification { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ds = alicloud.ess.get_notifications(scaling_group_id="scaling_group_id")
pulumi.export("firstNotification", ds.notifications[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ds = pulumi.output(alicloud.ess.getNotifications({
    scalingGroupId: "scaling_group_id",
}, { async: true }));

export const firstNotification = ds.notifications[0].id;

Using GetNotifications

function getNotifications(args: GetNotificationsArgs, opts?: InvokeOptions): Promise<GetNotificationsResult>
function  get_notifications(ids=None, output_file=None, scaling_group_id=None, opts=None)
func GetNotifications(ctx *Context, args *GetNotificationsArgs, opts ...InvokeOption) (*GetNotificationsResult, error)
public static class GetNotifications {
    public static Task<GetNotificationsResult> InvokeAsync(GetNotificationsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ScalingGroupId string

Scaling group id the notifications belong to.

Ids List<string>

A list of notification ids.

OutputFile string
ScalingGroupId string

Scaling group id the notifications belong to.

Ids []string

A list of notification ids.

OutputFile string
scalingGroupId string

Scaling group id the notifications belong to.

ids string[]

A list of notification ids.

outputFile string
scaling_group_id str

Scaling group id the notifications belong to.

ids List[str]

A list of notification ids.

output_file str

GetNotifications Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Notifications List<Pulumi.AliCloud.Ess.Outputs.GetNotificationsNotification>

A list of notifications. Each element contains the following attributes:

ScalingGroupId string

ID of the scaling group.

Ids List<string>

A list of notification ids.

OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Notifications []GetNotificationsNotification

A list of notifications. Each element contains the following attributes:

ScalingGroupId string

ID of the scaling group.

Ids []string

A list of notification ids.

OutputFile string
id string

The provider-assigned unique ID for this managed resource.

notifications GetNotificationsNotification[]

A list of notifications. Each element contains the following attributes:

scalingGroupId string

ID of the scaling group.

ids string[]

A list of notification ids.

outputFile string
id str

The provider-assigned unique ID for this managed resource.

notifications List[GetNotificationsNotification]

A list of notifications. Each element contains the following attributes:

scaling_group_id str

ID of the scaling group.

ids List[str]

A list of notification ids.

output_file str

Supporting Types

GetNotificationsNotification

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

ID of the notification.

NotificationArn string

The Alibaba Cloud Resource Name (ARN) for the notification object.

NotificationTypes List<string>

The notification types of Auto Scaling events and resource changes.

ScalingGroupId string

Scaling group id the notifications belong to.

Id string

ID of the notification.

NotificationArn string

The Alibaba Cloud Resource Name (ARN) for the notification object.

NotificationTypes []string

The notification types of Auto Scaling events and resource changes.

ScalingGroupId string

Scaling group id the notifications belong to.

id string

ID of the notification.

notificationArn string

The Alibaba Cloud Resource Name (ARN) for the notification object.

notificationTypes string[]

The notification types of Auto Scaling events and resource changes.

scalingGroupId string

Scaling group id the notifications belong to.

id str

ID of the notification.

notification_arn str

The Alibaba Cloud Resource Name (ARN) for the notification object.

notification_types List[str]

The notification types of Auto Scaling events and resource changes.

scaling_group_id str

Scaling group id the notifications belong to.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.