// DeleteDirectoryRequest returns a request value for making API operation for
// AWS Directory Service.
//
// Deletes an AWS Directory Service directory.
//
// Before you call DeleteDirectory, ensure that all of the required permissions
// have been explicitly granted through a policy. For details about what permissions
// are required to run the DeleteDirectory operation, see AWS Directory Service
// API Permissions: Actions, Resources, and Conditions Reference (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html).
//
//    // Example sending a request using the DeleteDirectoryRequest method.
//    req := client.DeleteDirectoryRequest(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/DeleteDirectory
DeleteDirectoryRequest returns a request value for making API operation for
AWS Directory Service.

Deletes an AWS Directory Service directory.

Before you call DeleteDirectory, ensure that all of the required permissions
have been explicitly granted through a policy. For details about what permissions
are required to run the DeleteDirectory operation, see AWS Directory Service
API Permissions: Actions, Resources, and Conditions Reference .

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


// DeleteDirectoryRequest returns a request value for making API operation for // AWS Directory Service . // // Deletes an AWS Directory Service directory . // // Before you call DeleteDirectory ensure that all of the required permissions // have been explicitly granted through a policy . For details about what permissions // are required to run the DeleteDirectory operation see AWS Directory Service // API Permissions : Actions Resources and Conditions Reference ( http : // docs . aws . amazon . com / directoryservice / latest / admin - guide / UsingWithDS_IAM_ResourcePermissions . html ) . // // // Example sending a request using the DeleteDirectoryRequest method . // req : = client . DeleteDirectoryRequest ( 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 / DeleteDirectory
func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) DeleteDirectoryRequest {
	op := &aws.Operation{
		Name:       opDeleteDirectory,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &DeleteDirectoryInput{}
	}
	output := &DeleteDirectoryOutput{}
	req := c.newRequest(op, input, output)
	output.responseMetadata = aws.Response{Request: req}
	return DeleteDirectoryRequest{Request: req, Input: input, Copy: c.DeleteDirectoryRequest}
}
func ( c * DirectoryService ) DeleteDirectoryRequest ( input * DeleteDirectoryInput ) DeleteDirectoryRequest { op := & aws . Operation { Name : opDeleteDirectory , HTTPMethod : " " , HTTPPath : " " , } if input == nil { input = & DeleteDirectoryInput { } } output := & DeleteDirectoryOutput { } req := c . newRequest ( op , input , output ) output . responseMetadata = aws . Response { Request : req } return DeleteDirectoryRequest { Request : req , Input : input , Copy : c . DeleteDirectoryRequest } }
DeleteDirectoryRequest returns a request value for making API operation for
AWS Directory Service.
DeleteDirectoryRequest returns a request value for making API operation for AWS Directory Service .