// Creates a notification rule for a resource. The rule specifies the events you
// want notifications about and the targets (such as SNS topics) where you want to
// receive them.
Creates a notification rule for a resource. The rule specifies the events you
want notifications about and the targets (such as SNS topics) where you want to
receive them.
// Creates a notification rule for a resource . The rule specifies the events you // want notifications about and the targets ( such as SNS topics ) where you want to // receive them .
func (c *Client) CreateNotificationRule(ctx context.Context, params *CreateNotificationRuleInput, optFns ...func(*Options)) (*CreateNotificationRuleOutput, error) {
	if params == nil {
		params = &CreateNotificationRuleInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateNotificationRule", params, optFns, addOperationCreateNotificationRuleMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateNotificationRuleOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateNotificationRule ( ctx context . Context , params * CreateNotificationRuleInput , optFns ... func ( * Options ) ) ( * CreateNotificationRuleOutput , error ) { if params == nil { params = & CreateNotificationRuleInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateNotificationRuleMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateNotificationRuleOutput ) out . ResultMetadata = metadata return out , nil }
Creates a notification rule for a resource.
Creates a notification rule for a resource .