Documentation ¶
Index ¶
- type Subscription
- func (r *Subscription) Endpoint() *pulumi.StringOutput
- func (r *Subscription) EventType() *pulumi.StringOutput
- func (r *Subscription) Format() *pulumi.MapOutput
- func (r *Subscription) ID() *pulumi.IDOutput
- func (r *Subscription) Protocol() *pulumi.StringOutput
- func (r *Subscription) ResourceId() *pulumi.StringOutput
- func (r *Subscription) URN() *pulumi.URNOutput
- type SubscriptionArgs
- type SubscriptionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Provides a Spotinst subscription resource.
func GetSubscription ¶
func GetSubscription(ctx *pulumi.Context, name string, id pulumi.ID, state *SubscriptionState, opts ...pulumi.ResourceOpt) (*Subscription, error)
GetSubscription gets an existing Subscription resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSubscription ¶
func NewSubscription(ctx *pulumi.Context, name string, args *SubscriptionArgs, opts ...pulumi.ResourceOpt) (*Subscription, error)
NewSubscription registers a new resource with the given unique name, arguments, and options.
func (*Subscription) Endpoint ¶
func (r *Subscription) Endpoint() *pulumi.StringOutput
The endpoint the notification will be sent to: url in case of `"http"`/`"https"`, email address in case of `"email"`/`"email-json"`, sns-topic-arn in case of `"aws-sns"`.
func (*Subscription) EventType ¶
func (r *Subscription) EventType() *pulumi.StringOutput
The event to send the notification when triggered. Valid values: `"AWS_EC2_INSTANCE_TERMINATE"`, `"AWS_EC2_INSTANCE_TERMINATED"`, `"AWS_EC2_INSTANCE_LAUNCH"`, `"AWS_EC2_INSTANCE_UNHEALTHY_IN_ELB"`, `"GROUP_ROLL_FAILED"`, `"GROUP_ROLL_FINISHED"`, `"CANT_SCALE_UP_GROUP_MAX_CAPACITY"`, `"GROUP_UPDATED"`, `"AWS_EC2_CANT_SPIN_OD"`, `"AWS_EMR_PROVISION_TIMEOUT"`, `"AWS_EC2_INSTANCE_READY_SIGNAL_TIMEOUT"`.
func (*Subscription) Format ¶
func (r *Subscription) Format() *pulumi.MapOutput
The format of the notification content (JSON Format - Key+Value). Valid values: `"%instance-id%"`, `"%event%"`, `"%resource-id%"`, `"%resource-name%"`.
func (*Subscription) ID ¶
func (r *Subscription) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*Subscription) Protocol ¶
func (r *Subscription) Protocol() *pulumi.StringOutput
The protocol to send the notification. Valid values: `"http"`, `"https"`, `"email"`, `"email-json"`, `"aws-sns"`, `"web"`.
func (*Subscription) ResourceId ¶
func (r *Subscription) ResourceId() *pulumi.StringOutput
Spotinst Resource ID (Elastigroup ID).
func (*Subscription) URN ¶
func (r *Subscription) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type SubscriptionArgs ¶
type SubscriptionArgs struct { // The endpoint the notification will be sent to: url in case of `"http"`/`"https"`, email address in case of `"email"`/`"email-json"`, sns-topic-arn in case of `"aws-sns"`. Endpoint interface{} // The event to send the notification when triggered. Valid values: `"AWS_EC2_INSTANCE_TERMINATE"`, `"AWS_EC2_INSTANCE_TERMINATED"`, `"AWS_EC2_INSTANCE_LAUNCH"`, `"AWS_EC2_INSTANCE_UNHEALTHY_IN_ELB"`, `"GROUP_ROLL_FAILED"`, `"GROUP_ROLL_FINISHED"`, `"CANT_SCALE_UP_GROUP_MAX_CAPACITY"`, `"GROUP_UPDATED"`, `"AWS_EC2_CANT_SPIN_OD"`, `"AWS_EMR_PROVISION_TIMEOUT"`, `"AWS_EC2_INSTANCE_READY_SIGNAL_TIMEOUT"`. EventType interface{} // The format of the notification content (JSON Format - Key+Value). Valid values: `"%instance-id%"`, `"%event%"`, `"%resource-id%"`, `"%resource-name%"`. Format interface{} // The protocol to send the notification. Valid values: `"http"`, `"https"`, `"email"`, `"email-json"`, `"aws-sns"`, `"web"`. Protocol interface{} // Spotinst Resource ID (Elastigroup ID). ResourceId interface{} }
The set of arguments for constructing a Subscription resource.
type SubscriptionState ¶
type SubscriptionState struct { // The endpoint the notification will be sent to: url in case of `"http"`/`"https"`, email address in case of `"email"`/`"email-json"`, sns-topic-arn in case of `"aws-sns"`. Endpoint interface{} // The event to send the notification when triggered. Valid values: `"AWS_EC2_INSTANCE_TERMINATE"`, `"AWS_EC2_INSTANCE_TERMINATED"`, `"AWS_EC2_INSTANCE_LAUNCH"`, `"AWS_EC2_INSTANCE_UNHEALTHY_IN_ELB"`, `"GROUP_ROLL_FAILED"`, `"GROUP_ROLL_FINISHED"`, `"CANT_SCALE_UP_GROUP_MAX_CAPACITY"`, `"GROUP_UPDATED"`, `"AWS_EC2_CANT_SPIN_OD"`, `"AWS_EMR_PROVISION_TIMEOUT"`, `"AWS_EC2_INSTANCE_READY_SIGNAL_TIMEOUT"`. EventType interface{} // The format of the notification content (JSON Format - Key+Value). Valid values: `"%instance-id%"`, `"%event%"`, `"%resource-id%"`, `"%resource-name%"`. Format interface{} // The protocol to send the notification. Valid values: `"http"`, `"https"`, `"email"`, `"email-json"`, `"aws-sns"`, `"web"`. Protocol interface{} // Spotinst Resource ID (Elastigroup ID). ResourceId interface{} }
Input properties used for looking up and filtering Subscription resources.