// Adds a subscription to a cost anomaly detection monitor. You can use each
// subscription to define subscribers with email or SNS notifications. Email
// subscribers can set a dollar threshold and a time frequency for receiving
// notifications.
Adds a subscription to a cost anomaly detection monitor. You can use each
subscription to define subscribers with email or SNS notifications. Email
subscribers can set a dollar threshold and a time frequency for receiving
notifications.
// Adds a subscription to a cost anomaly detection monitor . You can use each // subscription to define subscribers with email or SNS notifications . Email // subscribers can set a dollar threshold and a time frequency for receiving // notifications .
func (c *Client) CreateAnomalySubscription(ctx context.Context, params *CreateAnomalySubscriptionInput, optFns ...func(*Options)) (*CreateAnomalySubscriptionOutput, error) {
	if params == nil {
		params = &CreateAnomalySubscriptionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateAnomalySubscription", params, optFns, addOperationCreateAnomalySubscriptionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateAnomalySubscriptionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateAnomalySubscription ( ctx context . Context , params * CreateAnomalySubscriptionInput , optFns ... func ( * Options ) ) ( * CreateAnomalySubscriptionOutput , error ) { if params == nil { params = & CreateAnomalySubscriptionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateAnomalySubscriptionMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateAnomalySubscriptionOutput ) out . ResultMetadata = metadata return out , nil }
Adds a subscription to a cost anomaly detection monitor.
Adds a subscription to a cost anomaly detection monitor .