// CreateDirectoryRequest returns a request value for making API operation for
// AWS Directory Service.
//
// Creates a Simple AD directory.
//
// Before you call CreateDirectory, ensure that all of the required permissions
// have been explicitly granted through a policy. For details about what permissions
// are required to run the CreateDirectory 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 CreateDirectoryRequest method.
//    req := client.CreateDirectoryRequest(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/CreateDirectory
CreateDirectoryRequest returns a request value for making API operation for
AWS Directory Service.

Creates a Simple AD directory.

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

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


// CreateDirectoryRequest returns a request value for making API operation for // AWS Directory Service . // // Creates a Simple AD directory . // // Before you call CreateDirectory ensure that all of the required permissions // have been explicitly granted through a policy . For details about what permissions // are required to run the CreateDirectory 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 CreateDirectoryRequest method . // req : = client . CreateDirectoryRequest ( 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 / CreateDirectory
func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) CreateDirectoryRequest {
	op := &aws.Operation{
		Name:       opCreateDirectory,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &CreateDirectoryInput{}
	}
	output := &CreateDirectoryOutput{}
	req := c.newRequest(op, input, output)
	output.responseMetadata = aws.Response{Request: req}
	return CreateDirectoryRequest{Request: req, Input: input, Copy: c.CreateDirectoryRequest}
}
func ( c * DirectoryService ) CreateDirectoryRequest ( input * CreateDirectoryInput ) CreateDirectoryRequest { op := & aws . Operation { Name : opCreateDirectory , HTTPMethod : " " , HTTPPath : " " , } if input == nil { input = & CreateDirectoryInput { } } output := & CreateDirectoryOutput { } req := c . newRequest ( op , input , output ) output . responseMetadata = aws . Response { Request : req } return CreateDirectoryRequest { Request : req , Input : input , Copy : c . CreateDirectoryRequest } }
CreateDirectoryRequest returns a request value for making API operation for
AWS Directory Service.
CreateDirectoryRequest returns a request value for making API operation for AWS Directory Service .