// CreateAliasRequest returns a request value for making API operation for
// AWS Directory Service.
//
// Creates an alias for a directory and assigns the alias to the directory.
// The alias is used to construct the access URL for the directory, such as
// http://<alias>.awsapps.com.
//
// After an alias has been created, it cannot be deleted or reused, so this
// operation should only be used when absolutely necessary.
//
//    // Example sending a request using the CreateAliasRequest method.
//    req := client.CreateAliasRequest(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/CreateAlias
CreateAliasRequest returns a request value for making API operation for
AWS Directory Service.

Creates an alias for a directory and assigns the alias to the directory.

After an alias has been created, it cannot be deleted or reused, so this
operation should only be used when absolutely necessary.

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


// CreateAliasRequest returns a request value for making API operation for // AWS Directory Service . // // Creates an alias for a directory and assigns the alias to the directory . // The alias is used to construct the access URL for the directory such as // http : // <alias > . awsapps . com . // // After an alias has been created it cannot be deleted or reused so this // operation should only be used when absolutely necessary . // // // Example sending a request using the CreateAliasRequest method . // req : = client . CreateAliasRequest ( 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 / CreateAlias
func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) CreateAliasRequest {
	op := &aws.Operation{
		Name:       opCreateAlias,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}
	if input == nil {
		input = &CreateAliasInput{}
	}
	output := &CreateAliasOutput{}
	req := c.newRequest(op, input, output)
	output.responseMetadata = aws.Response{Request: req}
	return CreateAliasRequest{Request: req, Input: input, Copy: c.CreateAliasRequest}
}
func ( c * DirectoryService ) CreateAliasRequest ( input * CreateAliasInput ) CreateAliasRequest { op := & aws . Operation { Name : opCreateAlias , HTTPMethod : " " , HTTPPath : " " , } if input == nil { input = & CreateAliasInput { } } output := & CreateAliasOutput { } req := c . newRequest ( op , input , output ) output . responseMetadata = aws . Response { Request : req } return CreateAliasRequest { Request : req , Input : input , Copy : c . CreateAliasRequest } }
CreateAliasRequest returns a request value for making API operation for
AWS Directory Service.
CreateAliasRequest returns a request value for making API operation for AWS Directory Service .