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:
- Scaling
Group stringId Scaling group id the notifications belong to.
- Ids List<string>
A list of notification ids.
- Output
File string
- Scaling
Group stringId Scaling group id the notifications belong to.
- Ids []string
A list of notification ids.
- Output
File string
- scaling
Group stringId Scaling group id the notifications belong to.
- ids string[]
A list of notification ids.
- output
File string
- scaling_
group_ strid 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.
Ali Cloud. Ess. Outputs. Get Notifications Notification> A list of notifications. Each element contains the following attributes:
- Scaling
Group stringId ID of the scaling group.
- Ids List<string>
A list of notification ids.
- Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Notifications
[]Get
Notifications Notification A list of notifications. Each element contains the following attributes:
- Scaling
Group stringId ID of the scaling group.
- Ids []string
A list of notification ids.
- Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- notifications
Get
Notifications Notification[] A list of notifications. Each element contains the following attributes:
- scaling
Group stringId ID of the scaling group.
- ids string[]
A list of notification ids.
- output
File string
- id str
The provider-assigned unique ID for this managed resource.
- notifications
List[Get
Notifications Notification] A list of notifications. Each element contains the following attributes:
- scaling_
group_ strid 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.
- Notification
Arn string The Alibaba Cloud Resource Name (ARN) for the notification object.
- Notification
Types List<string> The notification types of Auto Scaling events and resource changes.
- Scaling
Group stringId Scaling group id the notifications belong to.
- Id string
ID of the notification.
- Notification
Arn string The Alibaba Cloud Resource Name (ARN) for the notification object.
- Notification
Types []string The notification types of Auto Scaling events and resource changes.
- Scaling
Group stringId Scaling group id the notifications belong to.
- id string
ID of the notification.
- notification
Arn string The Alibaba Cloud Resource Name (ARN) for the notification object.
- notification
Types string[] The notification types of Auto Scaling events and resource changes.
- scaling
Group stringId 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_ strid 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
alicloudTerraform Provider.