// RegisterEventTopicRequest returns a request value for making API operation for
// AWS Directory Service.
//
// Associates a directory with an SNS topic. This establishes the directory
// as a publisher to the specified SNS topic. You can then receive email or
// text (SMS) messages when the status of your directory changes. You get notified
// if your directory goes from an Active status to an Impaired or Inoperable
// status. You also receive a notification when the directory returns to an
// Active status.
//
//    // Example sending a request using the RegisterEventTopicRequest method.
//    req := client.RegisterEventTopicRequest(params)
//    resp, err := req.Send()
//    if err == nil {
//        fmt.Println(resp)
//    }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopic
RegisterEventTopicRequest returns a request value for making API operation for
AWS Directory Service.

Associates a directory with an SNS topic. This establishes the directory
as a publisher to the specified SNS topic. You can then receive email or
text (SMS) messages when the status of your directory changes. You get notified
if your directory goes from an Active status to an Impaired or Inoperable
status. You also receive a notification when the directory returns to an
Active status.

Example sending a request using the RegisterEventTopicRequest method.
req := client.RegisterEventTopicRequest(params)
resp, err := req.Send()
if err == nil {
fmt.Println(resp)
}


// RegisterEventTopicRequest returns a request value for making API operation for // AWS Directory Service . // // Associates a directory with an SNS topic . This establishes the directory // as a publisher to the specified SNS topic . You can then receive email or // text ( SMS ) messages when the status of your directory changes . You get notified // if your directory goes from an Active status to an Impaired or Inoperable // status . You also receive a notification when the directory returns to an // Active status . // // // Example sending a request using the RegisterEventTopicRequest method . // req : = client . RegisterEventTopicRequest ( params ) // resp err : = req . Send () // if err == nil { // fmt . Println ( resp ) // } // // Please also see https : // docs . aws . amazon . com / goto / WebAPI / ds - 2015 - 04 - 16 / RegisterEventTopic
func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicInput) RegisterEventTopicRequest {
	op := &aws.Operation{
		Name:       opRegisterEventTopic,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &RegisterEventTopicInput{}
	}
	output := &RegisterEventTopicOutput{}
	req := c.newRequest(op, input, output)
	output.responseMetadata = aws.Response{Request: req}
	return RegisterEventTopicRequest{Request: req, Input: input, Copy: c.RegisterEventTopicRequest}
}
func ( c * DirectoryService ) RegisterEventTopicRequest ( input * RegisterEventTopicInput ) RegisterEventTopicRequest { op := & aws . Operation { Name : opRegisterEventTopic , HTTPMethod : " " , HTTPPath : " " , } if input == nil { input = & RegisterEventTopicInput { } } output := & RegisterEventTopicOutput { } req := c . newRequest ( op , input , output ) output . responseMetadata = aws . Response { Request : req } return RegisterEventTopicRequest { Request : req , Input : input , Copy : c . RegisterEventTopicRequest } }
RegisterEventTopicRequest returns a request value for making API operation for
AWS Directory Service.
RegisterEventTopicRequest returns a request value for making API operation for AWS Directory Service .